@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #030303;
  --panel: rgba(8, 8, 8, .88);
  --panel-solid: #090909;
  --panel-raised: rgba(15, 8, 9, .94);
  --text: #f2eeee;
  --muted: #aaa0a2;
  --dim: #72686a;
  --red: #ed3038;
  --red-bright: #ff5961;
  --red-dark: #7f111b;
  --border: rgba(237, 48, 56, .28);
    font-family: var(--font);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; background: var(--bg); }
body.matrix-page {
  min-height: 100vh; margin: 0; position: relative; isolation: isolate; overflow-x: hidden;
  background: transparent !important; color: var(--text); font-family: var(--font); line-height: 1.7; letter-spacing: -.035em;
}
body.matrix-page::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(237,48,56,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237,48,56,.025) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 30%, rgba(0,0,0,.15) 0%, rgba(0,0,0,.65) 75%, #000 100%);
  background-size: 56px 56px, 56px 56px, 100% 100%;
}
#matrix-background {
  position: fixed !important; inset: 0 !important; z-index: -2 !important; display: block;
  width: 100vw; height: 100vh; pointer-events: none; opacity: .62;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red-bright); }
button { font: inherit; }
::selection { background: var(--red); color: #fff; }
.accent { color: var(--red); }
.shell { width: min(var(--max), 90%); margin-inline: auto; }
.skip-link { position: absolute; z-index: 1000; top: -60px; left: 16px; padding: 10px 14px; background: var(--red); color: white; }
.skip-link:focus { top: 12px; }

/* Shared navigation */
.site-header {
  position: sticky !important; top: 0; z-index: 100 !important; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; width: 100%; min-height: 76px; padding: 0 max(4.5vw, calc((100vw - var(--max)) / 2));
  background: rgba(4,4,4,.91) !important; border-bottom: 1px solid var(--border) !important; backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--red); color: var(--red); font-weight: 700; font-size: 12px; }
.brand-name, .footer-brand { color: var(--text); font-size: 14px; font-weight: 700; letter-spacing: .12em; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 2vw, 26px); }
.nav-link { position: relative; padding: 27px 0 25px; color: var(--muted); font-size: 10px; letter-spacing: .035em; transition: color .18s ease; white-space: nowrap; }
.nav-link::after { content: ''; position: absolute; bottom: 17px; left: 0; width: 0; height: 2px; background: var(--red); transition: width .18s ease; }
.nav-link:hover, .nav-link.active { color: var(--red-bright); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.header-github { flex: 0 0 auto; color: var(--red); font-size: 10px; border-left: 1px solid var(--border); padding-left: 20px; }
.menu-toggle { display: none; border: 1px solid var(--border); background: transparent; color: var(--red); width: 42px; height: 38px; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; margin: 4px 0; background: currentColor; }

/* Hero — terminal/editorial layout inspired by the reference, with original content. */
.hero { min-height: min(720px, calc(100svh - 76px)); padding-block: 80px 70px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(310px, .92fr); align-items: center; gap: clamp(38px, 6vw, 86px); }
.eyebrow, .section-path, .card-index { color: var(--red); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 25px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px rgba(237,48,56,.8); }
.slash { color: var(--dim); }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { max-width: 800px; margin: 0 0 14px; font-size: clamp(40px, 6vw, 76px); line-height: 1.12; font-weight: 700; letter-spacing: -.09em; }
.typing-cursor { display: inline-block; width: 4px; height: .8em; margin-left: 10px; background: var(--red); vertical-align: -.04em; animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.hero-role { color: var(--red-bright); font-size: 10px; letter-spacing: .045em; line-height: 1.9; margin-bottom: 25px; }
.hero-role span { padding-inline: 6px; color: var(--dim); }
.hero-description, .section-description, .inner-lead { max-width: 650px; color: var(--muted); font-size: 13px; line-height: 1.95; }
.hero-description { margin-bottom: 28px; }
.hero-actions, .contact-links { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 0 17px; border: 1px solid transparent; font-family: var(--font); font-size: 10px; font-weight: 600; transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { border-color: var(--red); background: var(--red); color: white; }
.button-primary:hover { background: transparent; color: var(--red-bright); }
.button-quiet, .button-outline { border-color: rgba(255,255,255,.24); background: rgba(7,7,7,.62); color: var(--text); }
.button-quiet:hover, .button-outline:hover { border-color: var(--red); color: var(--red-bright); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 11px 19px; margin-top: 29px; color: var(--muted); font-size: 9px; letter-spacing: .05em; }
.hero-tags i { color: var(--red); font-style: normal; }

/* Terminal/file panels */
.terminal-window { overflow: hidden; border: 1px solid var(--border); background: var(--panel); box-shadow: 0 20px 65px rgba(0,0,0,.45); backdrop-filter: blur(12px); }
.terminal-topbar { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 15px; border-bottom: 1px solid var(--border); background: rgba(20,5,7,.70); color: var(--muted); font-size: 9px; letter-spacing: .04em; }
.terminal-dots { display: flex; gap: 5px; }
.terminal-dots i { width: 7px; height: 7px; border-radius: 50%; background: #4c3a3b; }
.terminal-dots i:first-child { background: var(--red); }
.terminal-file-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px rgba(237,48,56,.65); }
.terminal-state { margin-left: auto; color: var(--red-bright); font-size: 8px; letter-spacing: .1em; }
.terminal-body { padding: 23px 22px; font-size: 11px; }
.command { color: var(--muted); margin-bottom: 18px; }
.command b { color: var(--red); margin-right: 7px; }
.hero-terminal h2 { margin: 4px 0 13px; color: var(--text); font-size: 22px; line-height: 1.5; letter-spacing: -.07em; }
.terminal-copy, .prose-terminal p { color: var(--muted); font-size: 10px; line-height: 1.9; }
.terminal-divider { height: 1px; margin: 18px 0; background: var(--border); }
.terminal-list { list-style: none; margin: 0 0 18px; padding: 0; color: #d1c8c9; font-size: 10px; line-height: 2; }
.terminal-list li::before { content: '>'; color: var(--red); padding-right: 9px; }
.terminal-prompt { margin: 0; color: var(--red); }
.cursor-block { display: inline-block; width: 7px; height: 13px; background: var(--red); vertical-align: -2px; animation: blink 1s steps(2,start) infinite; }
.profile-code dl { margin: 0; }
.profile-code dl div { display: grid; grid-template-columns: 104px 1fr; gap: 14px; padding: 9px 0; border-bottom: 1px solid rgba(237,48,56,.12); }
.profile-code dl div:last-child { border-bottom: 0; }
.profile-code dt { color: var(--red); font-size: 9px; }
.profile-code dd { margin: 0; color: var(--text); font-size: 10px; }
.comment-line { color: var(--red-bright) !important; }

/* Stats strip */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin: 6px auto 70px; border: 1px solid var(--border); background: rgba(7,5,6,.83); backdrop-filter: blur(10px); }
.stat { min-height: 112px; display: flex; flex-direction: column; justify-content: center; padding: 18px 23px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat strong { color: var(--red); font-size: 25px; line-height: 1.25; }
.stat span { color: var(--text); font-size: 9px; letter-spacing: .1em; margin-top: 4px; }
.stat small { color: var(--dim); font-size: 8px; margin-top: 5px; }

/* Sections and cards */
.content-section { padding-block: 76px; border-top: 1px solid rgba(237,48,56,.17); }
.section-heading { margin-bottom: 28px; }
.section-path { margin-bottom: 11px; }
.section-heading h2, .contact-section h2 { color: var(--text); font-size: clamp(26px, 3.6vw, 39px); line-height: 1.28; letter-spacing: -.08em; margin-bottom: 12px; }
.section-description { margin: 0; font-size: 11px; }
.two-column { display: grid; grid-template-columns: 1.12fr .88fr; gap: 22px; align-items: stretch; }
.prose-terminal h3 { color: var(--text); font-size: 17px; line-height: 1.5; margin: 0 0 17px; }
.prose-terminal p { font-size: 10px; line-height: 2; margin-bottom: 13px; }
.section-footnote { margin: 22px 0 0; }
.text-link { color: var(--red-bright); font-size: 9px; letter-spacing: .08em; font-weight: 600; }
.focus-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.focus-card, .cert-card, .project-card, .note-card, .writeup-card { position: relative; min-width: 0; border: 1px solid var(--border); background: rgba(8,6,7,.88); box-shadow: 0 14px 42px rgba(0,0,0,.27); backdrop-filter: blur(10px); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.focus-card { min-height: 218px; padding: 20px 18px; }
.focus-card:hover, .cert-card:hover, .project-card:hover, .note-card:hover, .writeup-card:hover { transform: translateY(-4px); border-color: rgba(255,75,84,.75); background: rgba(20,5,8,.94); }
.card-index { font-size: 8px; }
.focus-card h3, .cert-card h3, .project-card h3, .note-card h3, .writeup-card h3 { color: var(--text); font-size: 15px; line-height: 1.5; letter-spacing: -.06em; margin: 19px 0 9px; }
.focus-card p, .cert-card p, .project-card p, .note-card p, .writeup-card p { color: var(--muted); font-size: 9px; line-height: 1.85; margin-bottom: 14px; }
.card-foot { display: block; padding-top: 12px; border-top: 1px solid rgba(237,48,56,.16); color: var(--red-bright); font-size: 8px; }
.cert-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
.cert-card { min-height: 218px; padding: 22px; }
.cert-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cert-mark { display: inline-grid; place-items: center; min-width: 62px; min-height: 42px; border: 1px solid var(--red); color: var(--red); font-weight: 700; font-size: 13px; }
.cert-status { color: #ff686f; font-size: 8px; letter-spacing: .08em; }
.status-progress { color: #d4a05a; }
.cert-provider { margin: 20px 0 4px !important; color: var(--red) !important; font-size: 8px !important; letter-spacing: .1em; }
.cert-card h3 { margin: 0 0 4px; font-size: 18px; }
.cert-note { color: var(--dim); font-size: 8px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
.project-card { display: block; min-height: 235px; padding: 20px; }
.project-card-top, .writeup-card-top { display: flex; justify-content: space-between; gap: 10px; color: var(--red); font-size: 8px; letter-spacing: .09em; }
.project-symbol { margin-top: 23px; color: var(--red); font-weight: 700; font-size: 27px; letter-spacing: -.08em; }
.project-card h3 { margin: 7px 0 7px; font-size: 17px; }
.project-stack { display: inline-block; color: var(--red-bright); font-size: 8px; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.note-card { display: block; padding: 20px; min-height: 190px; }
.note-count { color: var(--red); font-size: 8px; letter-spacing: .1em; }
.note-card h3 { font-size: 16px; margin: 20px 0 8px; }
.note-path { color: var(--red-bright); font-size: 8px; }
.feature-writeups { margin-top: 16px; border: 1px solid var(--border); background: rgba(6,5,6,.86); }
.feature-writeup { display: grid; grid-template-columns: 160px 1fr minmax(210px,.9fr); align-items: center; gap: 16px; min-height: 58px; padding: 10px 17px; border-bottom: 1px solid rgba(237,48,56,.15); }
.feature-writeup:last-child { border-bottom: 0; }
.feature-writeup > span { color: var(--red); font-size: 8px; letter-spacing: .08em; }
.feature-writeup a { color: var(--text); font-size: 11px; font-weight: 600; }
.feature-writeup a b { color: var(--red); margin-left: 6px; }
.feature-writeup small { color: var(--dim); font-size: 8px; }
.contact-section { margin-block: 72px 40px; padding: 35px; border: 1px solid var(--border); background: rgba(8,6,7,.91); backdrop-filter: blur(12px); }
.contact-section h2 { margin-bottom: 10px; }
.contact-section > p:not(.section-path) { max-width: 620px; color: var(--muted); font-size: 11px; margin-bottom: 20px; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; min-height: 82px; margin-top: 25px; border-top: 1px solid var(--border); color: var(--dim); font-size: 8px; }
.site-footer p { margin: 0; }

/* Secondary pages use the same shell, nav, terminal language and Matrix field. */
.inner-main { padding-top: 62px; }
.inner-hero { padding: 25px 0 50px; }
.inner-hero h1 { color: var(--text); font-size: clamp(36px, 5.4vw, 61px); line-height: 1.2; letter-spacing: -.09em; margin: 0 0 18px; }
.inner-lead { font-size: 12px; max-width: 720px; }
.compact-section { padding-block: 38px 58px; }
.workflow-list { border: 1px solid var(--border); background: rgba(8,6,7,.86); }
.workflow-row { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 17px 20px; border-bottom: 1px solid rgba(237,48,56,.16); }
.workflow-row:last-child { border: 0; }
.workflow-row > span { color: var(--red); font-size: 12px; }
.workflow-row h3 { color: var(--text); margin: 0 0 3px; font-size: 12px; }
.workflow-row p { color: var(--muted); margin: 0; font-size: 9px; }
.summary-pills { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.summary-pills span { padding: 8px 12px; border: 1px solid var(--border); background: rgba(8,6,7,.85); color: var(--muted); font-size: 8px; }
.summary-pills b { color: var(--red-bright); }
.section-count { color: var(--red); font-size: 9px; letter-spacing: .1em; }
.writeup-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; }
.writeup-card { display: block; padding: 19px; min-height: 168px; }
.writeup-card h3 { margin: 17px 0 7px; font-size: 16px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card-tags span { padding: 4px 7px; border: 1px solid rgba(237,48,56,.18); color: var(--red-bright); font-size: 7px; }
.two-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }

/* Markdown writeups */
body.writeup-page .writeup-main { max-width: 950px; padding-top: 46px; padding-bottom: 55px; }
.writeup-toolbar, .writeup-endbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 0; border-bottom: 1px solid var(--border); margin-bottom: 30px; }
.writeup-back { color: var(--red-bright); font-size: 9px; letter-spacing: .08em; }
.markdown-content { padding: clamp(20px, 4vw, 38px); border: 1px solid var(--border); background: rgba(5,5,5,.91); box-shadow: 0 20px 60px rgba(0,0,0,.38); backdrop-filter: blur(12px); color: var(--text); font-size: 11px; line-height: 1.95; overflow-wrap: anywhere; }
.markdown-content h1, .markdown-content h2, .markdown-content h3, .markdown-content h4 { color: var(--text); font-family: var(--font); line-height: 1.35; letter-spacing: -.06em; }
.markdown-content h1 { font-size: clamp(25px, 4vw, 38px); border-bottom: 1px solid var(--border); padding-bottom: 16px; }
.markdown-content h2 { margin-top: 40px; padding-left: 13px; border-left: 3px solid var(--red); color: var(--red-bright); font-size: 21px; }
.markdown-content h3 { margin-top: 27px; color: #f4e9ea; font-size: 15px; }
.markdown-content p, .markdown-content li { color: #d1c9ca; }
.markdown-content a { color: var(--red-bright); text-decoration: underline; text-underline-offset: 3px; }
.markdown-content strong { color: #fff; }
.markdown-content code { padding: 2px 5px; background: #160b0d; color: #ff8187; border: 1px solid rgba(237,48,56,.18); font-family: var(--font); font-size: .9em; }
.markdown-content pre { max-width: 100%; padding: 17px; overflow-x: auto; background: #050505; border: 1px solid var(--border); border-left: 3px solid var(--red); }
.markdown-content pre code { padding: 0; border: 0; background: transparent; color: #e5dfe0; white-space: pre; }
.markdown-content blockquote { margin: 20px 0; padding: 13px 17px; border-left: 3px solid var(--red); background: #110809; color: var(--muted); }
.markdown-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.markdown-content th, .markdown-content td { padding: 9px 12px; border: 1px solid var(--border); text-align: left; }
.markdown-content th { color: #fff; background: #18090b; }
.markdown-content td { background: rgba(8,6,7,.85); }
.markdown-content img { display: block; max-width: 100%; height: auto; margin: 18px auto; border: 1px solid var(--border); }
.writeup-endbar { margin: 30px 0 0; border-top: 1px solid var(--border); border-bottom: 0; }

[data-reveal] { opacity: 0; transform: translateY(17px); transition: opacity .65s ease, transform .65s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1000px) {
  .site-header { gap: 15px; padding-inline: 4%; }
  .site-nav { gap: 13px; }
  .nav-link { font-size: 9px; }
  .header-github { padding-left: 12px; }
  .hero { gap: 32px; }
  .focus-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .site-header { min-height: 68px; }
  .menu-toggle { display: block; margin-left: auto; }
  .header-github { display: none; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; padding: 12px 5% 18px; background: rgba(4,4,4,.98); border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav.is-open { display: flex; }
  .nav-link { padding: 12px 2px; font-size: 10px; }
  .nav-link::after { bottom: 7px; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-block: 68px 55px; }
  .hero-terminal { max-width: 560px; }
  .stats-strip { grid-template-columns: repeat(2,1fr); margin-bottom: 35px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .two-column { grid-template-columns: 1fr; }
  .notes-grid { grid-template-columns: 1fr; }
  .writeup-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .feature-writeup { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .feature-writeup small { grid-column: 1 / -1; }
  .section-heading-row { align-items: flex-start; flex-direction: column; }
  .contact-section { padding: 24px 19px; }
}
@media (max-width: 480px) {
  .shell { width: 90%; }
  .hero h1 { font-size: clamp(37px, 12vw, 54px); }
  .hero-role { font-size: 8px; }
  .hero-tags { font-size: 8px; gap: 8px 12px; }
  .terminal-body { padding: 18px 15px; }
  .focus-grid, .cert-grid, .project-grid, .writeup-grid, .two-cards { grid-template-columns: 1fr; }
  .focus-card { min-height: 185px; }
  .stat { min-height: 100px; padding: 14px; }
  .stat strong { font-size: 22px; }
  .site-footer { align-items: flex-start; flex-direction: column; padding-block: 20px; }
  .writeup-toolbar, .writeup-endbar { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  #matrix-background { opacity: .25; }
}


/* Orbital identity graphic from the chosen reference layout. */
.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; }
.orbital-wrap { position: relative; width: min(100%, 550px); aspect-ratio: 1; display: grid; place-items: center; isolation: isolate; }
.orbit { position: absolute; border: 1px solid rgba(237,48,56,.30); border-radius: 50%; }
.orbit-a { width: 94%; height: 94%; border-color: rgba(237,48,56,.20); }
.orbit-b { width: 78%; height: 78%; border-color: rgba(237,48,56,.45); animation: orbit-spin 34s linear infinite; }
.orbit-c { width: 60%; height: 60%; border-color: rgba(237,48,56,.28); }
.orbit-core { position: relative; z-index: 2; width: 34%; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(237,48,56,.65); border-radius: 50%; background: radial-gradient(circle, rgba(80,8,14,.78), rgba(10,3,4,.94) 72%); box-shadow: 0 0 45px rgba(237,48,56,.15), inset 0 0 35px rgba(237,48,56,.10); }
.orbit-core strong { color: #fff; font-size: clamp(28px, 4vw, 54px); line-height: 1; letter-spacing: -.08em; }
.orbit-core small { margin-top: 10px; color: var(--red-bright); font-size: 9px; letter-spacing: .18em; }
.orbit-node { position: absolute; z-index: 3; width: 9px; height: 9px; border-radius: 50%; background: var(--red-bright); box-shadow: 0 0 14px rgba(255,80,90,.8); }
.node-a { top: 7%; left: 48%; }
.node-b { right: 8%; top: 54%; width: 7px; height: 7px; }
.node-c { left: 13%; bottom: 27%; width: 6px; height: 6px; }
.float-tag { position: absolute; z-index: 4; padding: 7px 11px; border: 1px solid rgba(237,48,56,.30); border-radius: 3px; background: rgba(7,5,6,.88); color: #e9c7ca; font-size: 8px; font-weight: 600; letter-spacing: .08em; box-shadow: 0 8px 28px rgba(0,0,0,.25); }
.tag-a { right: 1%; top: 20%; }
.tag-b { left: 0; top: 37%; }
.tag-c { right: 0; bottom: 27%; }
.tag-d { left: 12%; bottom: 12%; }
.visual-caption { display: flex; align-items: center; gap: 12px; margin-top: -3px; color: var(--dim); font-size: 8px; letter-spacing: .14em; text-align: center; }
.caption-line { width: 35px; height: 2px; background: var(--red); box-shadow: 0 0 12px rgba(237,48,56,.6); }
@keyframes orbit-spin { to { transform: rotate(360deg); } }

/* About and Writeups pages use the same split hero and orbit, with page-specific copy. */
.inner-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr); align-items: center; gap: clamp(28px, 5vw, 72px); padding-block: 35px 56px; }
.inner-hero-copy { min-width: 0; }
.inner-hero-grid .hero-visual { width: 100%; max-width: 470px; justify-self: end; }
.inner-hero-grid .orbital-wrap { width: 100%; }
.inner-hero-grid h1 { max-width: 720px; }
.inner-hero-grid .inner-lead { max-width: 620px; }
.inner-main { padding-top: 36px; }

/* Keep the Matrix visual behind readable page surfaces. */
body.matrix-page .terminal-window,
body.matrix-page .focus-card,
body.matrix-page .project-card,
body.matrix-page .writeup-card,
body.matrix-page .note-card,
body.matrix-page .contact-section,
body.matrix-page .workflow-list,
body.matrix-page .stats-strip,
body.matrix-page .markdown-content { background-color: rgba(5,5,5,.88); -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); }
body.matrix-page .writeup-card:hover,
body.matrix-page .focus-card:hover,
body.matrix-page .project-card:hover,
body.matrix-page .note-card:hover { border-color: rgba(237,48,56,.7); box-shadow: 0 16px 42px rgba(100,0,12,.2); }

@media (max-width: 760px) {
  .inner-hero-grid { grid-template-columns: 1fr; gap: 14px; padding-top: 18px; }
  .inner-hero-grid .hero-visual { max-width: 360px; justify-self: center; }
  .inner-hero-grid .orbital-wrap { width: min(100%, 350px); }
  .inner-hero-grid .visual-caption { margin-top: -8px; }
}
@media (max-width: 480px) {
  .orbital-wrap { width: min(100%, 390px); }
  .float-tag { padding: 5px 7px; font-size: 7px; }
  .orbit-core small { font-size: 7px; }
  .hero-visual { margin-top: 10px; }
}


/* General text */
body {
    font-family: "Rajdhani", sans-serif;
}

/* Headings and navigation */
h1, h2, h3, h4,
.site-header,
.writeup-toolbar {
    font-family: "Orbitron", sans-serif;
}

/* Terminal and code */
code, pre, kbd, samp {
    font-family: "Share Tech Mono", monospace;
}

/* Improved spacing across inner pages */

body.matrix-page {
    letter-spacing: 0.01em;
}

.hero h1 {
    letter-spacing: -0.015em;
}

p,
.section-description,
.inner-lead,
.terminal-copy {
    letter-spacing: 0.015em;
}

.nav-link {
    letter-spacing: 0.045em;
}

/* Larger body typography */
body.matrix-page {
    font-size: 23px;
}

p,
li,
label,
input,
textarea,
button,
.nav-link,
.section-description,
.inner-lead {
    font-size: 1.05em;
}

.site-footer p {
    font-size: 20px;
}
/* Improve paragraph readability */
body.matrix-page p {
    font-size: 17px;
    line-height: 1.8;
    letter-spacing: 0.01em;
}
/* Larger About section text */
.prose-terminal > p:not(.command):not(.comment-line) {
    font-size: 18px;
    line-height: 1.8;
    letter-spacing: 0.02em;
}

/* Slightly larger profile information */
.profile-code dl dt,
.profile-code dl dd {
    font-size: 16px;
    line-height: 1.7;
}
