/* ralphbalazs.com — dark design, after the "Web Developer Portfolio" Figma template. */

/* ---------- Tokens ---------- */
:root {
  --bg: #000;
  --bg-alt: #111827;
  --text: #fff;
  --text-body: #d1d5db;
  --text-muted: #9ca3af;
  --emerald: #34d399;
  --emerald-strong: #10b981;
  --blue: #60a5fa;
  --purple: #c084fc;
  --pink: #f472b6;
  --line: rgba(255, 255, 255, .1);
  --line-hover: rgba(16, 185, 129, .5);
  --radius: .625rem;
  --wrap: 80rem;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", monospace;
  --masthead-h: 4.25rem;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--text); font-weight: 500; line-height: 1.2; margin: 0; }
p { margin: 0; }
img, video, svg { max-width: 100%; }
img, video { display: block; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; border-radius: 2px; }
section[id], [id="experience"], [id="more-projects"] { scroll-margin-top: calc(var(--masthead-h) + 1rem); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .6rem 1rem; border-radius: .5rem;
  background: var(--emerald-strong); color: #000; font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.5rem; }

/* ---------- Shared components ---------- */
.eyebrow {
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--emerald);
}
.icon {
  width: 1.25em; height: 1.25em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.grad-emerald { color: var(--emerald); }
.grad-warm { color: var(--purple); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad-emerald, .grad-warm {
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
  }
  .grad-emerald { background-image: linear-gradient(90deg, var(--emerald), var(--blue)); }
  .grad-warm { background-image: linear-gradient(90deg, var(--purple), var(--pink)); }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 2rem; border-radius: .5rem; border: 1px solid transparent;
  font: inherit; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: transform .3s ease, background-color .3s ease, border-color .3s ease, color .3s ease;
}
.btn--primary { background: var(--emerald-strong); color: #000; }
.btn--primary:hover { background: var(--emerald); transform: scale(1.05); }
.btn--outline { border-color: rgba(16, 185, 129, .5); color: var(--emerald); background: transparent; }
.btn--outline:hover { background: rgba(16, 185, 129, .1); }

.text-link {
  color: var(--emerald); text-decoration: none;
  border-bottom: 1px solid rgba(52, 211, 153, .4);
  transition: color .2s ease, border-color .2s ease;
}
.text-link:hover { color: var(--text); border-color: var(--text); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 999px;
  background: rgba(255, 255, 255, .1); color: var(--text); text-decoration: none;
  transition: background-color .3s ease, color .3s ease, transform .3s ease;
}
.icon-btn:hover { background: rgba(255, 255, 255, .2); transform: scale(1.1); }
.icon-btn--sm { width: 2.5rem; height: 2.5rem; background: rgba(0, 0, 0, .7); }
.icon-btn--sm:hover { background: var(--emerald-strong); color: #000; }
.icon-btn--square { border-radius: .5rem; }
.icon-btn--square:hover { background: var(--emerald-strong); color: #000; }

.card {
  background: rgba(17, 24, 39, .5);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color .3s ease;
}
.section--alt .card { background: rgba(0, 0, 0, .5); }
.card--hover:hover, .card--hover:focus-within { border-color: var(--line-hover); }

.chip {
  display: inline-block; padding: .5rem 1rem; border-radius: 999px;
  background: rgba(16, 185, 129, .2); color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, .3);
  font-size: .875rem; line-height: 1.2;
}
.chip--muted {
  background: rgba(255, 255, 255, .05); color: var(--text-muted);
  border-color: var(--line); border-radius: .5rem;
}
.chip--sm { padding: .25rem .5rem; font-size: .75rem; border-radius: .25rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }

/* ---------- Sections ---------- */
.section { padding-block: 5rem; overflow-x: hidden; overflow-x: clip; }
.section--alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 4rem; }
.section-head h2 { font-size: 2.25rem; margin-bottom: 1.5rem; }
.section-rule {
  width: 6rem; height: 4px; margin-inline: auto;
  background: linear-gradient(90deg, var(--emerald), var(--blue));
}
.section-rule--warm { background: linear-gradient(90deg, var(--purple), var(--pink)); }
.section-lead { color: var(--text-muted); max-width: 42rem; margin: 1.5rem auto 0; }
@media (min-width: 768px) {
  .section-head h2 { font-size: 3rem; }
}

/* ---------- Masthead ---------- */
.masthead {
  position: fixed; inset: 0 0 auto; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease;
  animation: nav-in .6s ease both;
}
/* Without JS there is no scrolled background: keep the masthead in the flow instead of over content. */
html:not(.js) .masthead { position: relative; }
.masthead.is-scrolled {
  background: rgba(0, 0, 0, .8);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.masthead-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem 1.5rem; min-height: var(--masthead-h); padding-block: .75rem;
}
.wordmark { color: var(--text); font-size: 1.25rem; font-weight: 500; text-decoration: none; }
#primary-nav { display: flex; flex-wrap: wrap; gap: .5rem 2rem; }
#primary-nav a { color: var(--text-body); text-decoration: none; transition: color .2s ease; }
#primary-nav a:hover { color: var(--text); }
.menu-button { display: none; }

@media (max-width: 767px) {
  .js .menu-button {
    display: inline-flex; align-items: center;
    padding: .45rem .9rem; border-radius: .5rem;
    border: 1px solid var(--line); background: transparent; color: var(--text);
    font: inherit; font-size: .9rem; cursor: pointer;
  }
  .js #primary-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    padding: .5rem 1.5rem 1rem;
    background: #000; border-bottom: 1px solid var(--line);
  }
  .js #primary-nav.is-open { display: flex; }
  .js #primary-nav a { padding: .75rem 0; border-bottom: 1px solid var(--line); }
  .js #primary-nav a:last-child { border-bottom: 0; }
  #primary-nav { gap: .25rem 1.25rem; font-size: .95rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; min-height: 100svh;
  padding-block: calc(var(--masthead-h) + 2rem) 6rem;
  background: linear-gradient(135deg, #000, var(--bg-alt), #000);
  text-align: center;
}
.hero-particles { position: absolute; inset: 0; pointer-events: none; }
.particle {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255, 255, 255, .2); opacity: 0;
  animation: twinkle var(--dur, 3s) ease-in-out var(--delay, 0s) infinite;
}
.hero-inner { position: relative; z-index: 1; }
.hero-hello { color: var(--emerald); font-size: 1.125rem; letter-spacing: .05em; margin-bottom: 1.5rem; }
.hero h1 { font-size: 3rem; line-height: 1; margin-bottom: 1.5rem; }
.hero-tagline {
  font-size: 1.5rem; line-height: 1.35; color: var(--text-body);
  max-width: 56rem; margin: 0 auto 2rem;
}
.hero-lead { font-size: 1.125rem; color: var(--text-muted); max-width: 42rem; margin: 0 auto 2.5rem; }
.hero-actions {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.5rem;
}
.social-row { display: flex; gap: 1rem; }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 0; right: 0; margin-inline: auto;
  width: 2.5rem; height: 2.5rem; display: grid; place-items: center;
  color: rgba(255, 255, 255, .6); font-size: 1.25rem;
  animation: bounce 2s ease-in-out infinite;
}
.hero-scroll:hover { color: var(--text); }
[data-enter] { animation: fade-up .8s ease var(--delay, 0s) both; }
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 768px) {
  .hero h1 { font-size: 4.5rem; }
  .hero-tagline { font-size: 2.25rem; }
}

/* ---------- Scroll reveal ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
  transition-delay: var(--delay, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
/* An anchor target must not be shifted while the browser scrolls to it (fade only). */
.js [id][data-reveal] { transform: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem; color: var(--text-muted); font-size: .875rem; }
.site-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.site-footer a { color: var(--text-muted); text-decoration: none; transition: color .2s ease; }
.site-footer a:hover { color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

/* ---------- Keyframes ---------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes nav-in { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(0); } 50% { opacity: 1; transform: scale(1); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-particles { display: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .btn--primary:hover, .icon-btn:hover { transform: none; }
}

/* ---------- About ---------- */
.js [data-reveal="left"] { transform: translateX(-50px); }
.js [data-reveal="right"] { transform: translateX(50px); }
.about-grid { display: grid; gap: 3rem; align-items: center; }
.about-copy h3 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.about-copy p { line-height: 1.75; margin-bottom: 1.5rem; }
.about-copy .chips { margin: 2rem 0; }
.about-cards { display: grid; gap: 1.5rem; }
.about-card-icon {
  display: inline-flex; color: var(--emerald); font-size: 1.6rem; margin-bottom: 1rem;
  transition: transform .3s ease;
}
.about-card:hover .about-card-icon { transform: scale(1.1); }
.about-card h4 { font-size: 1.125rem; margin-bottom: .5rem; }
.about-card p { color: var(--text-muted); font-size: .875rem; }
@media (min-width: 640px) { .about-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .about-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Skills ---------- */
.skill-grid { display: grid; gap: 2rem; }
.skill-card { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.skill-card h3 { font-size: 1.25rem; text-align: center; margin-bottom: 1.5rem; }
.skill-card .chips { justify-content: center; }
.tech-strip { margin-top: 4rem; text-align: center; }
.tech-strip h3 { font-size: 1.5rem; margin-bottom: 2rem; }
.tech-strip .chips { justify-content: center; gap: .75rem; max-width: 60rem; margin-inline: auto; }
.chip--muted { transition: background-color .3s ease, color .3s ease; }
.tech-strip .chip--muted:hover { background: rgba(255, 255, 255, .1); color: var(--text); }
@media (min-width: 768px) { .skill-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Projects ---------- */
.featured-grid { display: grid; gap: 2rem; margin-bottom: 4rem; }
.project-grid { display: grid; gap: 1.5rem; }
.project-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.project-media {
  position: relative; height: 12rem; overflow: hidden;
  background: #0b1120; border-bottom: 1px solid var(--line);
}
.project-card--featured .project-media { height: 16rem; }
.project-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.project-card:hover .project-media img { transform: scale(1.1); }
.project-shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .4); transition: background-color .3s ease; }
.project-card:hover .project-shade { background: rgba(0, 0, 0, .2); }
.project-actions { position: absolute; top: 1rem; right: 1rem; display: flex; gap: .5rem; z-index: 2; }
.project-body { padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.project-card:not(.project-card--featured) .project-body { padding: 1rem 1.25rem 1.25rem; }
.project-body h3 { font-size: 1.25rem; }
.project-body h4 { font-size: 1.125rem; }
.project-body h3 a, .project-body h4 a { text-decoration: none; transition: color .3s ease; }
.project-card:hover h3 a, .project-card:hover h4 a, .project-body a:focus-visible { color: var(--emerald); }
.project-body p:not(.eyebrow) { color: var(--text-muted); line-height: 1.7; }
.project-card:not(.project-card--featured) .project-body p:not(.eyebrow) { font-size: .875rem; }
.project-body .chips { margin-top: auto; padding-top: .25rem; }
.project-card--featured .chip { padding: .25rem .75rem; }
.more-title { font-size: 1.5rem; text-align: center; margin-bottom: 2rem; }
.more-cta { text-align: center; margin-top: 3rem; }

/* Diagram panels (kept from the previous design, recoloured) */
.art-panel {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .5rem;
  padding: 1rem 1rem 2.25rem; color: var(--text-muted);
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; line-height: 1.3;
  background: radial-gradient(circle at 30% 20%, rgba(16, 185, 129, .12), transparent 60%), #0b1120;
}
.art-panel svg { width: 100%; height: 100%; color: var(--blue); }
.art-panel .art-caption {
  position: absolute; left: 1rem; bottom: .75rem; right: 1rem;
  font-size: .65rem; color: var(--text-muted); letter-spacing: .04em;
}
.kernel-diagram, .pipeline { display: flex; flex-direction: column; align-items: center; gap: .35rem; text-align: center; }
.pipeline { gap: .1rem; }
.pipeline b { font-weight: 400; line-height: 1; color: var(--emerald); }
.pipeline span { padding: .2rem .55rem; }
.kernel-port, .pipeline span, .kernel-output {
  padding: .3rem .6rem; border: 1px solid rgba(96, 165, 250, .4); border-radius: .35rem;
  color: var(--text-body); background: rgba(17, 24, 39, .8);
}
.pipeline .pipeline-result, .kernel-output { border-color: rgba(52, 211, 153, .6); color: var(--emerald); }
.signal-line { color: var(--emerald); }
.signal-line code { font-family: inherit; }

.project-gradient {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 1.25rem;
  background:
    linear-gradient(135deg, rgba(52, 211, 153, .25), rgba(96, 165, 250, .25)),
    var(--bg-alt);
}
.project-gradient--warm {
  background:
    linear-gradient(135deg, rgba(192, 132, 252, .25), rgba(244, 114, 182, .25)),
    var(--bg-alt);
}
.project-gradient .eyebrow { color: var(--text); }

@media (min-width: 768px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 3rem; align-items: start; }
.contact-card { padding: 2rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.contact-card h3 { font-size: 2rem; }
.contact-card p { color: var(--text-muted); line-height: 1.75; }
.contact-email { color: var(--text-body); text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-email:hover { color: var(--emerald); border-color: var(--emerald); }
.contact-side h3 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.contact-side > p { color: var(--text-muted); line-height: 1.75; margin-bottom: 2rem; }
.contact-side h4 { font-size: 1.125rem; margin: 2.5rem 0 1rem; }
.info-list { display: grid; gap: 1rem; }
.info-row {
  display: flex; align-items: center; gap: 1rem; padding: 1rem;
  background: rgba(17, 24, 39, .5); border: 1px solid var(--line); border-radius: .5rem;
  text-decoration: none; transition: border-color .3s ease;
}
.info-icon {
  display: grid; place-items: center; width: 3rem; height: 3rem; flex-shrink: 0;
  border-radius: .5rem; background: rgba(16, 185, 129, .2); color: var(--emerald);
  font-size: 1.25rem; transition: background-color .3s ease;
}
a.info-row:hover .info-icon { background: rgba(16, 185, 129, .3); }
.info-label { display: block; color: var(--text-muted); font-size: .875rem; }
.info-value { display: block; color: var(--text); overflow-wrap: anywhere; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Case studies ---------- */
[hidden] { display: none !important; }
.container {
  width: 100%; max-width: 48rem; margin-inline: auto;
  padding: calc(var(--masthead-h) + 3rem) 1.5rem 5rem;
}
.case-study__back {
  display: inline-block; margin-bottom: 2.5rem;
  color: var(--emerald); text-decoration: none; font-size: .9rem;
}
.case-study__back:hover { color: var(--text); }
.case-study__header { margin-bottom: 3.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
.section-label {
  display: block; margin-bottom: 1rem;
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--emerald);
}
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.tag {
  display: inline-block; padding: .3rem .8rem; border-radius: 999px; font-size: .8rem;
  background: rgba(16, 185, 129, .2); color: var(--emerald); border: 1px solid rgba(16, 185, 129, .3);
}
.tag--infra { background: rgba(96, 165, 250, .15); color: var(--blue); border-color: rgba(96, 165, 250, .35); }
.tag--ml { background: rgba(192, 132, 252, .15); color: var(--purple); border-color: rgba(192, 132, 252, .35); }
.case-study__header h1 { font-size: 2.5rem; line-height: 1.1; margin-bottom: 1.25rem; }
.case-study__one-liner { font-size: 1.25rem; line-height: 1.6; color: var(--text-body); margin-bottom: 2rem; }
.case-study__meta {
  display: grid; gap: .75rem; padding: 1.25rem 1.5rem;
  background: rgba(17, 24, 39, .5); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text-muted); font-size: .9rem;
}
.case-study__meta strong { color: var(--text); font-weight: 500; }
.case-study__meta dl { margin: 0; display: grid; grid-template-columns: 6rem 1fr; gap: .25rem 1rem; }
.case-study__meta dt {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--emerald); padding-top: .2rem;
}
.case-study__meta dd { margin: 0; color: var(--text-body); }
.case-study__links a, .case-study__body a { color: var(--emerald); }
.case-study__links a:hover, .case-study__body a:hover { color: var(--text); }
.case-study__body section { margin-bottom: 3.5rem; }
.case-study__body h2 { position: relative; font-size: 1.75rem; padding-top: 1.25rem; margin-bottom: 1.25rem; }
.case-study__body h2::before {
  content: ""; position: absolute; top: 0; left: 0; width: 3rem; height: 3px;
  background: linear-gradient(90deg, var(--emerald), var(--blue));
}
.case-study__body p { line-height: 1.75; margin-bottom: 1.25rem; }
code {
  font-family: var(--font-mono); font-size: .875em;
  background: #1f2937; color: var(--emerald); padding: .1rem .35rem; border-radius: .25rem;
}
.figure { margin: 2rem 0; }
.figure img, .figure video, .process-panel video {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: #000;
}
.figure figcaption, .process-panel figcaption { margin-top: .75rem; color: var(--text-muted); font-size: .85rem; }
.note { border-left: 3px solid var(--purple); padding-left: 1rem; color: var(--text-muted); font-size: .95rem; }
.case-study__nav {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: 1rem; padding-top: 2rem; border-top: 1px solid var(--line);
}
.case-study__nav a { color: var(--emerald); text-decoration: none; }
.case-study__nav a:hover { color: var(--text); }
@media (min-width: 768px) { .case-study__header h1 { font-size: 3.5rem; } }

/* Robot process notebook (SO-101 case study) */
.robot-notebook { margin-top: 1.5rem; }
.process-controls { display: none; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.js .process-controls { display: flex; }
.process-controls button {
  padding: .5rem 1rem; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--text-muted);
  font-family: var(--font-mono); font-size: .8rem;
  transition: border-color .3s ease, background-color .3s ease, color .3s ease;
}
.process-controls button span { margin-left: .35rem; font-family: var(--font-sans); color: var(--text-body); }
.process-controls button:hover { border-color: var(--line-hover); }
.process-controls button[aria-pressed="true"] {
  background: rgba(16, 185, 129, .2); border-color: rgba(16, 185, 129, .4); color: var(--emerald);
}
.process-controls button[aria-pressed="true"] span { color: var(--text); }
.process-panel {
  display: grid; gap: 1.5rem; padding: 1.5rem;
  background: rgba(17, 24, 39, .5); border: 1px solid var(--line); border-radius: var(--radius);
}
.process-panel + .process-panel { margin-top: 1rem; }
.process-panel h4 { font-size: 1.375rem; margin: .75rem 0 1rem; }
.case-study__body .process-panel p:not(.eyebrow) { margin-bottom: 0; }
.process-panel figure { margin: 0; }
.process-diagram {
  display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1.5rem;
  border: 1px dashed var(--line); border-radius: var(--radius);
  font-family: var(--font-mono); font-size: .75rem; color: var(--text-body); text-align: center;
}
.process-diagram span { padding: .4rem .8rem; border: 1px solid rgba(96, 165, 250, .4); border-radius: .35rem; background: rgba(0, 0, 0, .4); }
.process-diagram b { color: var(--emerald); font-weight: 400; }
.process-diagram small { margin-top: .5rem; color: var(--text-muted); }
.evaluation-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.evaluation-steps li {
  display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem;
  border: 1px solid var(--line); border-radius: .5rem; background: rgba(0, 0, 0, .3);
}
.evaluation-steps span { font-family: var(--font-mono); font-size: .8rem; color: var(--emerald); }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding-block: 4rem; }
.not-found__code {
  display: block; font-size: 8rem; line-height: 1; font-weight: 500; color: var(--emerald);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .not-found__code {
    background-image: linear-gradient(90deg, var(--emerald), var(--blue));
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
}
.not-found h1 { font-size: 2.5rem; margin: 1.5rem 0 1rem; }
.not-found p { color: var(--text-muted); margin-bottom: 2rem; }

/* ---------- Print ---------- */
@media print {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .masthead { position: static; animation: none; }
  .hero { min-height: 0; }
  .hero-particles, .hero-scroll, .menu-button { display: none; }
  [data-enter] { animation: none; }
}
