/* Shared styles for lay007.github.io pages. */

:root {
  color-scheme: dark;
  --bg: #08111f;
  --text: #eef4ff;
  --muted: #9eb0cb;
  --line: rgba(255, 255, 255, 0.08);
  --primary: #4fa1ff;
  --primary-2: #79f0d5;
  --link: #cfe6ff;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
  --radius: 24px;
  --maxw: 1180px;
  --nav-offset: 96px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-offset);
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 15% 12%, rgba(79, 161, 255, 0.18), transparent 0 28%),
    radial-gradient(circle at 85% 10%, rgba(121, 240, 213, 0.12), transparent 0 20%),
    radial-gradient(circle at 50% 100%, rgba(127, 140, 255, 0.10), transparent 0 28%),
    linear-gradient(180deg, #060d19 0%, #08111f 42%, #09131f 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(255,255,255,0.28), transparent 72%);
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--primary);
  color: #04101f;
  font-weight: 800;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(92%, var(--maxw));
  margin: 0 auto;
}

.section {
  padding: 34px 0 12px;
}

/* Navigation */

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
  background: rgba(6, 13, 25, 0.68);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(79,161,255,0.22), rgba(121,240,213,0.10)),
    rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  font-size: 0.9rem;
}

.brand-text,
.brand-text span {
  display: block;
}

.brand-text span {
  line-height: 1.05;
}

.brand-text .muted {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.nav-links a.nav-cta {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(79, 161, 255, 0.28);
  background: rgba(79, 161, 255, 0.12);
  color: #dcecff;
  font-weight: 700;
}

/* Shared components */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid rgba(79, 161, 255, 0.18);
  background: rgba(79, 161, 255, 0.10);
  color: #bfd8ff;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 18px rgba(79, 161, 255, 0.8);
}

.card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(13, 25, 48, 0.92), rgba(10, 19, 36, 0.90));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), transparent 24%);
}

h1 {
  margin: 16px 0 16px;
  max-width: 900px;
  font-size: clamp(2.5rem, 4vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 15px;
  font-weight: 700;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: white;
  border: none;
  background: linear-gradient(135deg, var(--primary), #276dff);
  box-shadow: 0 14px 32px rgba(54, 112, 255, 0.28);
}

.btn-secondary {
  background: rgba(255,255,255,0.03);
  color: var(--text);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(79, 161, 255, 0.10);
  color: #cbe1ff;
  border: 1px solid rgba(79, 161, 255, 0.16);
  font-size: 0.81rem;
  font-weight: 700;
}

/* Hero */

.hero {
  padding: 54px 0 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 26px;
  align-items: stretch;
}

.hero-main {
  padding: 40px 40px 34px;
}

.hero-lead {
  margin: 0 0 16px;
  max-width: 840px;
  font-size: 1.16rem;
  color: #d8e6ff;
}

.hero-summary {
  margin: 0 0 24px;
  max-width: 820px;
  color: var(--muted);
  font-size: 1.03rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: #cddcff;
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-side {
  padding: 24px;
  display: grid;
  gap: 16px;
  align-content: start;
}

.signal-panel {
  min-height: 210px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 20% 20%, rgba(79, 161, 255, 0.12), transparent 0 28%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
}

.signal-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.signal-svg {
  width: 100%;
  height: 130px;
  opacity: 0.92;
}

.signal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.legend-item {
  color: #d7e6ff;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
}

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

.metric {
  padding: 18px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}

.metric-value {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.04em;
}

.metric-value sup {
  font-size: 0.55em;
  line-height: 0;
  vertical-align: 0.8em;
  letter-spacing: 0;
}

.metric-label {
  color: var(--muted);
  font-size: 0.92rem;
}

.start-here {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(121, 240, 213, 0.22);
  background: linear-gradient(135deg, rgba(79, 161, 255, 0.14), rgba(121, 240, 213, 0.07));
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.start-here:hover {
  transform: translateY(-1px);
  border-color: rgba(121, 240, 213, 0.42);
}

.start-here-label {
  color: var(--primary-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.start-here strong {
  font-size: 1.05rem;
}

.start-here small {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Sections */

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 2.5vw, 2.3rem);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
}

.pipeline-card {
  display: block;
  overflow: hidden;
  border-color: rgba(79, 161, 255, 0.18);
  background: #07111e;
}

.pipeline-card picture {
  display: block;
}

.pipeline-card img {
  width: 100%;
  height: auto;
  transition: filter 0.25s ease;
}

.pipeline-card:hover img {
  filter: brightness(1.03);
}

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

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

.info-card,
.project-card,
.timeline-card,
.contact-card {
  padding: 24px;
}

.info-card h3,
.project-card h3,
.timeline-card h3,
.contact-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.info-card p,
.project-card p,
.timeline-card p,
.contact-card p {
  margin: 0;
  color: var(--muted);
}

.icon-box {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(135deg, rgba(79,161,255,0.16), rgba(121,240,213,0.08));
  color: #d7e7ff;
  font-weight: 800;
}

.list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: #d7e6ff;
}

.list li + li {
  margin-top: 8px;
}

/* Projects */

.project-card {
  --project-pad: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-card.wide {
  grid-column: 1 / -1;
}

.project-card.featured {
  border-color: rgba(79, 161, 255, 0.22);
  background:
    radial-gradient(circle at top right, rgba(79, 161, 255, 0.10), transparent 0 26%),
    linear-gradient(180deg, rgba(13, 25, 48, 0.96), rgba(10, 19, 36, 0.92));
}

.project-cover {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: calc(var(--project-pad) * -1) calc(var(--project-pad) * -1) 4px;
  border-bottom: 1px solid var(--line);
  background: #07101d;
}

.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.project-cover:hover img {
  transform: scale(1.02);
  filter: brightness(1.05);
}

.project-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.project-link {
  flex: none;
  color: #dff0ff;
  font-size: 0.95rem;
  font-weight: 700;
}

.project-link:hover {
  color: white;
}

.project-card p.project-evidence {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: #d7e6ff;
  font-size: 0.95rem;
}

.project-evidence strong {
  color: var(--primary-2);
}

.project-card p.project-open {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: auto;
  font-size: 0.92rem;
}

.project-open a,
.text-link {
  color: var(--link);
  font-weight: 700;
  border-bottom: 1px solid rgba(207, 230, 255, 0.28);
}

.project-open a:hover,
.text-link:hover {
  color: white;
  border-color: white;
}

/* Background, toolchain, contact */

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-card {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.timeline-label {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #b8d3ff;
  padding-top: 2px;
}

.stack-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack-item {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: #e0edff;
  font-weight: 600;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 18px;
}

.contact-card strong {
  color: var(--text);
}

.contact-links {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.contact-link {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 58px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.contact-link:hover {
  transform: translateY(-1px);
  border-color: rgba(79, 161, 255, 0.24);
}

.contact-link small {
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

.footer {
  padding: 42px 0 54px;
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--link);
}

.footer a:hover {
  color: white;
}

/* Portfolio review page */

.page-hero {
  padding: 48px 0 8px;
}

.page-hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
}

.lead {
  margin: 0;
  max-width: 780px;
  color: #d8e6ff;
  font-size: 1.12rem;
}

.review-card {
  margin-top: 18px;
  padding: 24px;
}

.review-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  letter-spacing: -0.02em;
}

.review-card p {
  margin: 0;
  color: var(--muted);
}

.review-card .tags {
  margin-bottom: 12px;
}

.review-card .hero-actions {
  margin: 18px 0 0;
}

.table-wrap {
  overflow-x: auto;
}

.steps {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
}

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

.steps th {
  color: #dff0ff;
  background: rgba(255,255,255,0.04);
  font-size: 0.92rem;
}

.steps td {
  color: var(--muted);
}

.steps td.step-num {
  color: var(--text);
  font-weight: 800;
  white-space: nowrap;
}

.step-time {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.steps td.step-repo a {
  color: var(--link);
  font-weight: 700;
}

.steps td.step-repo a:hover {
  color: white;
}

.limit {
  display: block;
  margin-top: 6px;
  color: #c9b8ff;
  font-size: 0.92rem;
}

.evidence-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

/* 404 page */

.not-found {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding-block: 48px;
}

.not-found-card {
  max-width: 720px;
  padding: 40px;
}

.not-found-card h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.not-found-card p {
  margin: 0 0 24px;
  color: var(--muted);
}

/* Responsive */

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

@media (max-width: 1080px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  :root {
    --nav-offset: 140px;
  }

  .nav {
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .hero-grid,
  .contact-grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .timeline-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-main {
    padding: 30px 28px;
  }

  .hero-side,
  .info-card,
  .project-card,
  .timeline-card,
  .contact-card {
    padding: 22px;
  }

  .project-card {
    --project-pad: 22px;
  }
}

@media (max-width: 760px) {
  .steps thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .steps,
  .steps tbody,
  .steps tr,
  .steps td {
    display: block;
    width: 100%;
  }

  .steps tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .steps td {
    padding: 4px 0;
    border: 0;
  }

  .steps td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: #b8d3ff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .evidence-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 14px;
  }
}

@media (max-width: 720px) {
  :root {
    --nav-offset: 16px;
  }

  .nav-wrap {
    position: static;
  }

  .nav-links {
    gap: 8px 16px;
  }

  .hero {
    padding-top: 32px;
  }

  .hero-actions,
  .section-head {
    flex-direction: column;
    align-items: start;
  }

  .grid-4,
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 2.25rem;
  }

  .btn {
    width: 100%;
  }

  .hero-main,
  .hero-side,
  .not-found-card {
    padding: 22px 18px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }
}


/* 2026-09 portfolio evidence refresh */

.section-first {
  padding-top: 48px;
}

.section-kicker,
.kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--primary-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.section-link {
  flex: none;
  margin-bottom: 8px;
}

.hero-name {
  margin: 18px 0 -4px;
  color: #dbe9ff;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-name span {
  color: var(--muted);
  font-weight: 650;
}

.signal-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 20px 0 24px;
}

.signal-chain span {
  padding: 7px 10px;
  border: 1px solid rgba(79, 161, 255, 0.18);
  border-radius: 999px;
  background: rgba(79, 161, 255, 0.07);
  color: #d8e8ff;
  font-size: 0.82rem;
  font-weight: 700;
}

.signal-chain i {
  color: var(--primary-2);
  font-style: normal;
  opacity: 0.85;
}

.evidence-side {
  gap: 14px;
}

.evidence-side-head {
  display: grid;
  gap: 4px;
}

.evidence-side-head strong {
  font-size: 1.06rem;
}

.hero-evidence-figure,
.case-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #07101d;
}

.hero-evidence-figure img,
.case-figure img {
  width: 100%;
  height: auto;
  background: #fff;
}

.hero-evidence-figure figcaption,
.case-figure figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.hero-evidence-secondary img {
  max-height: 180px;
  object-fit: cover;
  object-position: center;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 4px 0 20px;
}

.proof-card {
  display: grid;
  gap: 5px;
  min-height: 138px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(13, 25, 48, 0.88), rgba(10, 19, 36, 0.86));
  box-shadow: 0 16px 40px rgba(0,0,0,0.20);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.proof-card:hover {
  transform: translateY(-2px);
  border-color: rgba(79,161,255,0.30);
}

.proof-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proof-value {
  color: var(--text);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.proof-value sup {
  font-size: 0.55em;
}

.proof-detail {
  margin-top: auto;
  color: #c8d8ee;
  font-size: 0.88rem;
}

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

.flagship-grid .project-card {
  min-width: 0;
}

.project-status {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--primary-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.code-visual {
  min-height: 210px;
  margin: calc(var(--project-pad) * -1) calc(var(--project-pad) * -1) 4px;
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 20%, rgba(121,240,213,0.12), transparent 28%),
    linear-gradient(135deg, rgba(79,161,255,0.12), rgba(8,17,31,0.96));
}

.code-visual span {
  padding: 7px 10px;
  border: 1px solid rgba(79,161,255,0.18);
  border-radius: 10px;
  color: #d9e8ff;
  background: rgba(255,255,255,0.035);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
}

.code-visual strong,
.code-visual small {
  flex-basis: 100%;
}

.code-visual strong {
  margin-top: 12px;
  font-size: 1.2rem;
}

.code-visual small {
  color: var(--muted);
}

.more-work {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.more-work-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 12px;
}

.more-work-head h3,
.more-work-head p {
  margin: 0;
}

.more-work-head p {
  max-width: 620px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.compact-project {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  box-shadow: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.compact-project:hover {
  transform: translateY(-1px);
  border-color: rgba(79,161,255,0.28);
}

.compact-project strong,
.compact-project span {
  display: block;
}

.compact-project span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.compact-project b {
  color: var(--primary-2);
}

.case-figure {
  margin: 18px 0 20px;
  border-color: rgba(79,161,255,0.18);
}

.case-figure img {
  max-height: 560px;
  object-fit: contain;
}

.case-code-visual {
  min-height: 180px;
  margin: 18px 0 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

@media (max-width: 1080px) {
  .proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .flagship-grid .project-card {
    max-width: 820px;
  }
}

@media (max-width: 720px) {
  .proof-strip,
  .more-work-grid {
    grid-template-columns: 1fr;
  }

  .proof-card {
    min-height: 112px;
  }

  .more-work-head {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }

  .signal-chain i {
    display: none;
  }

  .hero-evidence-secondary img {
    max-height: none;
  }
}
