/* Architectural / precise — warm walnut accents */

:root {
  --bg-deep: #ebe6e0;
  --bg: #f4f1ed;
  --bg-elevated: #ffffff;
  --steel: #6e5644;
  --steel-bright: #574435;
  --steel-dim: #8a7b6c;
  --text: #2a2521;
  --text-muted: #6b5f54;
  --line: rgba(107, 95, 84, 0.2);
  --line-strong: rgba(107, 95, 84, 0.38);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --max: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--steel-bright);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--text);
}

.muted {
  color: var(--text-muted);
}

/* Blueprint atmosphere */

.blueprint {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 70% 8%, rgba(110, 86, 68, 0.1), transparent 55%),
    radial-gradient(ellipse 55% 40% at 8% 85%, rgba(235, 230, 224, 0.95), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

.blueprint::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--space);
  max-width: var(--max);
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(244, 241, 237, 0.94) 55%, transparent);
  backdrop-filter: blur(8px);
}

.logo {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text);
  border: 1px solid var(--line-strong);
  padding: 0.4rem 0.65rem;
}

.logo:hover {
  border-color: var(--steel);
  color: var(--steel-bright);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav a {
  color: var(--text-muted);
}

.nav a:hover {
  color: var(--steel-bright);
}

/* Layout */

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space) 4rem;
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  border-top: 1px solid var(--line);
}

.section__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section__index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--steel);
  letter-spacing: 0.08em;
}

.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* Hero */

.hero {
  min-height: min(92vh, 52rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}

.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}

.hero__name {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--text);
}

.hero__lede {
  margin: 0 0 2rem;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

.btn--primary {
  background: var(--steel);
  color: #ffffff;
  border-color: var(--steel);
}

.btn--primary:hover {
  background: var(--steel-bright);
  border-color: var(--steel-bright);
  color: #ffffff;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

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

.hero__portrait {
  justify-self: end;
  width: min(100%, 22rem);
}

.portrait {
  position: relative;
  aspect-ratio: 5 / 6;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  overflow: hidden;
}

.portrait::before {
  content: "";
  position: absolute;
  inset: 0.65rem;
  border: 1px dashed var(--line);
  pointer-events: none;
  z-index: 1;
}

.portrait--filled::before {
  display: none;
}

.portrait__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.portrait__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--steel-dim);
  background:
    linear-gradient(135deg, transparent 48%, var(--line) 48%, var(--line) 52%, transparent 52%),
    #f0ebe5;
}

.portrait__placeholder[hidden] {
  display: none;
}

.portrait__icon {
  width: 3rem;
  height: 3rem;
  opacity: 0.85;
}

.portrait__hint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.portrait__meta {
  margin: 0.75rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: right;
}

.hero__rule {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  height: 1px;
  background: linear-gradient(90deg, var(--steel), transparent 70%);
  transform-origin: left;
  animation: rule-draw 1.2s var(--ease) 0.4s both;
}

@keyframes rule-draw {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

/* Impact */

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

.impact-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.impact-item:first-child {
  border-top: 1px solid var(--line);
}

.impact-item__num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--steel);
  padding-top: 0.2rem;
}

.impact-item__stat {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.impact-item__text {
  margin: 0;
  max-width: 40rem;
  color: var(--text-muted);
}

/* Expertise */

.expertise {
  border-top: 1px solid var(--line);
}

.expertise__row {
  display: grid;
  grid-template-columns: minmax(7rem, 11rem) 1fr;
  gap: 1rem 2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.expertise__row::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--steel);
  transition: width 0.7s var(--ease);
}

.expertise__row.is-visible::before {
  width: 100%;
}

.expertise__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-bright);
}

.expertise__body {
  margin: 0;
  color: var(--text-muted);
  max-width: 42rem;
}

/* Tools strip */

.tools {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.tools__label {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}

.tools__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0;
}

.tools__list li {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding-right: 1rem;
  margin-right: 1rem;
  border-right: 1px solid var(--line);
}

.tools__list li:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

/* Projects */

.projects__intro {
  margin: -1rem 0 2rem;
  max-width: 36rem;
  color: var(--text-muted);
}

.projects {
  border-top: 1px solid var(--line);
}

.projects__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 2rem;
  align-items: end;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.projects__row:not(:has(.projects__link)) {
  grid-template-columns: 1fr;
}

.projects__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.projects__body {
  margin: 0;
  max-width: 36rem;
  color: var(--text-muted);
}

.projects__note {
  margin: 0.75rem 0 0;
  max-width: 36rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--steel);
}

.projects__note code {
  font-family: inherit;
  font-size: inherit;
  color: var(--text);
  background: rgba(110, 86, 68, 0.08);
  padding: 0.1rem 0.35rem;
  border: 1px solid var(--line);
}

.projects__link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel-bright);
  white-space: nowrap;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid var(--line);
  align-self: center;
}

.projects__link:hover {
  color: var(--text);
  border-color: var(--steel);
}

/* Timeline */

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 0;
}

.timeline__item {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) 1fr;
  gap: 1rem 2rem;
  padding: 2rem 0 2rem 1.5rem;
  border-left: 1px solid var(--line);
  position: relative;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 2.35rem;
  width: 7px;
  height: 7px;
  background: var(--steel);
  box-shadow: 0 0 0 3px var(--bg-deep);
}

.timeline__item.is-visible {
  border-left-color: var(--line-strong);
}

.timeline__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--steel);
  padding-top: 0.15rem;
}

.timeline__place {
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.timeline__role {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.timeline__org {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.timeline__note {
  margin: -0.55rem 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--steel-dim);
}

.timeline__bullets {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.timeline__bullets li::marker {
  color: var(--steel-dim);
}

/* Credentials */

.credentials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 2.5rem;
  padding-top: 0.5rem;
}

.credentials__label {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 500;
}

.credentials__block p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.credentials__list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

/* Contact */

.section--contact {
  border-bottom: 1px solid var(--line);
}

.contact__lede {
  margin: 0 0 1.75rem;
  max-width: 32rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  letter-spacing: 0.02em;
}

.contact__links a {
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.35rem;
  width: fit-content;
}

.contact__links a:hover {
  color: var(--steel-bright);
  border-color: var(--steel);
}

/* Footer */

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--space) 3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* Motion */

.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero .reveal:nth-child(1) {
  transition-delay: 0.05s;
}
.hero .reveal:nth-child(2) {
  transition-delay: 0.15s;
}
.hero .reveal:nth-child(3) {
  transition-delay: 0.25s;
}
.hero .reveal:nth-child(4) {
  transition-delay: 0.35s;
}
.hero__portrait.reveal {
  transition-delay: 0.2s;
}

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

  .reveal,
  .hero__rule {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .expertise__row::before {
    transition: none;
  }
}

/* Responsive */

@media (max-width: 860px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__portrait {
    justify-self: start;
    width: min(100%, 18rem);
    order: -1;
  }

  .portrait__meta {
    text-align: left;
  }

  .hero {
    min-height: auto;
    padding-top: 1.5rem;
  }

  .timeline__item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

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

  .expertise__row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .projects__row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    align-items: start;
  }

  .tools__list li {
    border-right: none;
    margin-right: 0.75rem;
    padding-right: 0;
  }
}

@media (max-width: 520px) {
  .nav {
    display: none;
  }

  .impact-item {
    grid-template-columns: 2.5rem 1fr;
  }
}

/* Project page */

.page {
  padding-top: 1.5rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0 0 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--steel);
}

.page-hero {
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}

.page-hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.page-hero__lede {
  margin: 0 0 1.75rem;
  max-width: 40rem;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2vw, 1.15rem);
}

.section__lede {
  margin: -1rem 0 1.75rem;
  max-width: 40rem;
  color: var(--text-muted);
}

.prose {
  max-width: 40rem;
  color: var(--text-muted);
}

.prose p {
  margin: 0 0 1rem;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.callout {
  border: 1px solid var(--line-strong);
  padding: 1.25rem 1.5rem;
  background: var(--bg-elevated);
  max-width: 40rem;
}

.callout p {
  margin: 0 0 0.75rem;
  color: var(--text);
}

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

.callout code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(110, 86, 68, 0.08);
  padding: 0.1rem 0.35rem;
  border: 1px solid var(--line);
}

.callout__warn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--steel) !important;
}

.feature-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.feature-list li {
  display: grid;
  grid-template-columns: minmax(7rem, 11rem) 1fr;
  gap: 1rem 2rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
}

.feature-list__label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-bright);
}

.expertise__body code,
.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--text);
}

/* Archify embed */

.arch-embed {
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  overflow: hidden;
}

.arch-embed iframe {
  display: block;
  width: 100%;
  height: min(90vh, 1200px);
  min-height: 980px;
  border: 0;
  background: var(--bg-elevated);
}

.arch-embed__link {
  margin: 0.85rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.arch-embed__link a {
  color: var(--steel-bright);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.15rem;
}

.arch-embed__link a:hover {
  color: var(--text);
  border-color: var(--steel);
}

@media (max-width: 860px) {
  .arch-embed iframe {
    height: 85vh;
    min-height: 800px;
  }
}

/* Legacy architecture helpers (kept for other pages if needed) */

.arch-stats {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.arch-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.arch-stat span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel-dim);
}

.pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0 0 1.25rem;
}

.pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.pill:hover {
  border-color: var(--steel);
  color: var(--steel-bright);
}

.pill.is-active {
  background: rgba(110, 86, 68, 0.12);
  border-color: var(--steel);
  color: var(--steel-bright);
  font-weight: 500;
}

.arch-view.hidden,
.hidden {
  display: none;
}

.arch-frame {
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  padding: 0.5rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.arch-frame--flow {
  margin-top: 1rem;
}

.arch-diagram {
  display: block;
  width: 100%;
  min-width: 48rem;
  height: auto;
}

.arch-frame--flow .arch-diagram {
  min-width: 36rem;
}

.arch-legend {
  margin: 0.85rem 0 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.arch-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.arch-card {
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  overflow: hidden;
}

.arch-card__h {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
}

.arch-card__h span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel-dim);
}

.arch-card__b {
  padding: 1rem;
  color: var(--text);
  font-size: 0.95rem;
}

.arch-card__sub {
  margin: 0 0 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--steel);
}

.arch-card__b p {
  margin: 0;
}

.arch-card__owns {
  margin-top: 0.85rem !important;
  font-size: 0.88rem;
  color: var(--steel-dim);
}

.arch-aside__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.arch-aside__gap {
  margin-top: 0.75rem;
}

.arch-flow__title {
  margin: 0.5rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

#flow-summary {
  margin: 0 0 0.25rem;
}

.arch-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.arch-table-wrap {
  overflow: auto;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
}

.arch-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.arch-table th,
.arch-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.arch-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel-dim);
  font-weight: 500;
}

.arch-table tbody tr:nth-child(even) {
  background: rgba(110, 86, 68, 0.04);
}

.arch-table td:first-child {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.arch-grid3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.85rem;
}

.arch-grid2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
}

.arch-small {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  color: var(--steel-dim);
}

.arch-details {
  margin-top: 0.25rem;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

.arch-details summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--steel-bright);
}

.arch-details p {
  margin: 0.65rem 0 0;
}

.arch-node:focus {
  outline: none;
}

.arch-node:focus-visible rect {
  stroke: var(--steel) !important;
  stroke-width: 2;
}

.projects__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-end;
  align-self: center;
}

@media (max-width: 860px) {
  .feature-list li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .projects__actions {
    align-items: flex-start;
  }

  .arch-detail-grid,
  .arch-grid3,
  .arch-grid2 {
    grid-template-columns: 1fr;
  }

  .arch-diagram {
    min-width: 42rem;
  }
}


