:root {
  color-scheme: dark;
  --bg: #080b10;
  --bg-soft: #0d121a;
  --panel: rgba(16, 23, 34, 0.78);
  --panel-strong: #121a25;
  --line: rgba(162, 179, 202, 0.16);
  --line-strong: rgba(162, 179, 202, 0.28);
  --text: #f4f7fb;
  --muted: #9ba8b8;
  --subtle: #6f7d8f;
  --accent: #49d3a9;
  --accent-2: #63a6ff;
  --warning: #f2be5c;
  --danger: #f07178;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(73, 211, 169, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 166, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 15% 0%, rgba(73, 211, 169, 0.14), transparent 30rem),
    radial-gradient(circle at 90% 10%, rgba(99, 166, 255, 0.13), transparent 32rem),
    var(--bg);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  transform: translateY(-150%);
  background: var(--accent);
  color: #04110d;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(8, 11, 16, 0.72);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(8, 11, 16, 0.9);
}

.nav-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark,
.brand-photo {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.brand-mark {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(73, 211, 169, 0.18), rgba(99, 166, 255, 0.14));
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-photo {
  display: block;
  object-fit: cover;
  object-position: center 37%;
  background: var(--panel-strong);
}

.brand-copy {
  display: grid;
  line-height: 1.2;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.78rem;
}

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

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: var(--radius);
  transition: color 160ms ease, background 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 104px 0;
}

.hero {
  padding-top: 90px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 6vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.32rem;
  line-height: 1.2;
}

.hero-text,
.section-heading p,
.about-section p,
.contact-panel p {
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-text {
  max-width: 680px;
  margin-bottom: 22px;
}

.evidence-note {
  margin-top: 16px;
  border: 1px solid rgba(73, 211, 169, 0.18);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: #c5d0dd !important;
  background: rgba(73, 211, 169, 0.055);
  font-size: 0.95rem !important;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 680px;
  margin: 0 0 26px;
}

.hero-proof span {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.84rem;
}

.hero-proof strong {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
}
}

.hero-actions,
.card-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.btn-primary {
  background: var(--accent);
  color: #04110d;
  box-shadow: 0 14px 40px rgba(73, 211, 169, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-ghost {
  color: var(--muted);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.btn-small {
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.88rem;
}

.btn-disabled,
.btn-disabled:hover {
  color: var(--subtle);
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--line);
  cursor: not-allowed;
  transform: none;
}

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

.signal-row span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.86rem;
}

.hero-visual,
.project-card,
.skill-card,
.process-step,
.contact-panel,
.highlight-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 26, 37, 0.94), rgba(11, 16, 23, 0.9));
  box-shadow: var(--shadow);
}

.hero-visual {
  overflow: hidden;
}

.window-bar,
.preview-top {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--danger);
}

.window-bar span:nth-child(2) {
  background: var(--warning);
}

.window-bar span:nth-child(3) {
  background: var(--accent);
}

.window-bar strong {
  margin-left: 8px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 500;
}

.workspace-preview {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  padding: 18px;
}

.code-pane,
.status-pane {
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(4, 8, 13, 0.68);
}

.code-pane {
  padding: 20px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.85rem;
}

.code-pane p {
  margin-bottom: 14px;
  white-space: nowrap;
}

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

.keyword {
  color: var(--accent-2);
}

.string {
  color: var(--accent);
}

.status-pane {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.status-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.status-card span,
.status-card small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.status-card strong {
  display: block;
  margin: 6px 0;
  font-size: 1.45rem;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 10px 0;
}

.pipeline i {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.align-left {
  margin-left: 0;
  text-align: left;
}

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

.project-card {
  overflow: hidden;
}

.project-preview {
  min-height: 270px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    rgba(4, 8, 13, 0.5);
  background-size: 28px 28px;
}

.preview-top {
  justify-content: space-between;
  min-height: auto;
  padding: 0 0 16px;
  margin-bottom: 18px;
  border-bottom-color: var(--line);
}

.preview-top strong {
  color: var(--accent);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric-strip b {
  min-height: 78px;
  display: grid;
  place-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
  font-size: 1.35rem;
}

.metric-strip small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.table-lines,
.mini-table {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.mini-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(4, 8, 13, 0.45);
}

.mini-table div {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.mini-table div:last-child {
  border-bottom: 0;
}

.mini-table b {
  color: var(--warning);
  font-weight: 700;
}

.mini-table em {
  color: var(--text);
  font-style: normal;
}

.table-lines i,
.kanban i,
.pipeline-columns i,
.chart-bars i {
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.table-lines i {
  height: 12px;
}

.table-lines i:nth-child(2),
.table-lines i:nth-child(4) {
  width: 76%;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.kanban div {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.kanban b {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.75rem;
}

.kanban i {
  min-height: 34px;
  margin-bottom: 9px;
  border-radius: var(--radius);
  padding: 8px;
  color: #c5d0dd;
  font-style: normal;
  font-size: 0.72rem;
  line-height: 1.25;
}

.task-preview small,
.crm-preview small {
  display: block;
  margin-top: 16px;
  color: var(--muted);
}

.task-screenshot-preview,
.project-screenshot-preview {
  display: grid;
  align-content: start;
}

.task-screenshot-preview img,
.project-screenshot-preview img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  object-position: left top;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(4, 8, 13, 0.62);
}

.carcure-shot-grid {
  min-height: 201px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  overflow: hidden;
}

.project-screenshot-preview .carcure-shot-grid img {
  height: 201px;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: top center;
}

.uptime-ring {
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  margin: 4px auto 22px;
  border: 16px solid rgba(73, 211, 169, 0.18);
  border-top-color: var(--accent);
  border-right-color: var(--accent-2);
  border-radius: 50%;
  font-weight: 800;
}

.chart-bars {
  height: 70px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 8px;
}

.chart-bars i {
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(180deg, var(--accent-2), rgba(99, 166, 255, 0.18));
}

.chart-bars i:nth-child(1) { height: 42%; }
.chart-bars i:nth-child(2) { height: 70%; }
.chart-bars i:nth-child(3) { height: 50%; }
.chart-bars i:nth-child(4) { height: 88%; }
.chart-bars i:nth-child(5) { height: 62%; }
.chart-bars i:nth-child(6) { height: 76%; }

.alert-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.78rem;
}

.alert-row b {
  margin-left: auto;
  color: var(--text);
  font-weight: 700;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.dot.ok {
  background: var(--accent);
}

.dot.warn {
  background: var(--warning);
}

.pipeline-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-items: end;
  min-height: 150px;
}

.pipeline-columns i {
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(73, 211, 169, 0.5), rgba(73, 211, 169, 0.08));
}

.pipeline-columns i:nth-child(1) { height: 88%; }
.pipeline-columns i:nth-child(2) { height: 66%; }
.pipeline-columns i:nth-child(3) { height: 74%; }
.pipeline-columns i:nth-child(4) { height: 46%; }

.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

.contact-row span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  flex: 0 0 auto;
}

.contact-row b {
  color: var(--text);
  font-size: 0.82rem;
}

.contact-row em {
  margin-left: auto;
  color: var(--accent);
  font-style: normal;
  font-size: 0.74rem;
}

.card-body {
  padding: 24px;
}

.card-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.82rem;
}

.card-kicker b {
  padding: 5px 8px;
  border: 1px solid rgba(73, 211, 169, 0.28);
  border-radius: var(--radius);
  color: var(--accent);
  background: rgba(73, 211, 169, 0.08);
}

.card-body p {
  color: var(--muted);
}

.data-label {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  color: #c5d0dd !important;
  font-size: 0.92rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.tag-list span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #d5dde8;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.78rem;
  font-weight: 600;
}

.feature-list {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding-left: 20px;
  color: var(--muted);
}

.evidence-box {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(4, 8, 13, 0.35);
  overflow: hidden;
}

.evidence-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.evidence-head h4 {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
}

.evidence-head span {
  color: var(--muted);
  font-size: 0.76rem;
  text-align: right;
}

.evidence-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px 4px;
}

.evidence-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 10px 16px 16px;
}

.evidence-list div {
  min-width: 0;
  border-bottom: 1px solid rgba(162, 179, 202, 0.1);
  padding: 10px 10px 10px 0;
}

.evidence-list dt {
  margin-bottom: 4px;
  color: var(--subtle);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.evidence-list dd {
  margin: 0;
  color: #d5dde8;
  font-size: 0.83rem;
  overflow-wrap: anywhere;
}

.evidence-list dd span {
  display: inline-flex;
  margin-left: 4px;
  color: var(--warning);
  font-size: 0.72rem;
}

.evidence-box-compact .evidence-list {
  grid-template-columns: 1fr;
}

.evidence-box-compact .evidence-head {
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
}

.evidence-box-compact .evidence-head span {
  text-align: left;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.highlight-grid,
.skills-grid,
.process-grid {
  display: grid;
  gap: 16px;
}

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

.highlight-grid article,
.skill-card,
.process-step {
  padding: 20px;
  box-shadow: none;
}

.highlight-grid strong,
.highlight-grid span {
  display: block;
}

.highlight-grid span,
.skill-card p,
.process-step p {
  color: var(--muted);
}

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

.skill-card h3,
.process-step h3 {
  color: var(--text);
}

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

.process-step span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 800;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  padding: 34px;
}

.contact-list {
  display: grid;
  gap: 10px;
}

.contact-list a,
.contact-list span {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  overflow-wrap: anywhere;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  color: var(--text);
  border-color: var(--line-strong);
  outline: none;
}

.contact-actions {
  grid-column: 1 / -1;
}

.site-footer {
  width: min(var(--max), calc(100% - 40px));
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
  padding: 34px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--accent);
  font-weight: 700;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.modal-backdrop[hidden] {
  display: none;
}

.project-modal {
  position: relative;
  width: min(880px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #0d121a;
  box-shadow: var(--shadow);
  padding: 32px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 1.55rem;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  border-color: var(--line-strong);
  outline: none;
}

.modal-type {
  color: var(--muted);
}

.modal-content {
  display: grid;
  gap: 16px;
}

.modal-content .evidence-box {
  margin-top: 0;
}

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

.modal-section h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.modal-section p,
.modal-section li {
  color: var(--muted);
}

.modal-section ul {
  margin: 0;
  padding-left: 20px;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .nav-shell,
  .section,
  .site-footer {
    width: min(100% - 28px, var(--max));
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(8, 11, 16, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
  }

  .brand-copy small {
    display: none;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 54px;
  }

  .workspace-preview {
    grid-template-columns: 1fr;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .code-pane,
  .status-pane {
    min-height: auto;
  }

  .code-pane {
    overflow-x: auto;
  }

  .highlight-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .evidence-list {
    grid-template-columns: 1fr;
  }

  .evidence-actions .btn {
    width: 100%;
  }

  .contact-panel {
    padding: 22px;
  }

  .site-footer {
    flex-direction: column;
  }
}

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

  .hero-actions .btn,
  .contact-actions .btn {
    width: 100%;
  }

  .metric-strip,
  .kanban {
    grid-template-columns: 1fr;
  }

  .mini-table div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .kanban div {
    min-height: auto;
  }

  .project-modal {
    padding: 24px 18px;
  }
}

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