:root {
  color-scheme: dark;
  --bg: #080808;
  --bg-deep: #050505;
  --surface: rgba(13, 12, 14, .86);
  --surface-strong: rgba(10, 9, 11, .96);
  --surface-soft: rgba(232, 224, 213, .025);
  --text: #e8e0d5;
  --text-bright: #f4ede4;
  --muted: #aaa198;
  --quiet: #746d68;
  --line: rgba(232, 224, 213, .24);
  --line-soft: rgba(232, 224, 213, .10);
  --line-faint: rgba(232, 224, 213, .055);
  --accent: #9c70ea;
  --accent-bright: #b58cff;
  --accent-soft: rgba(156, 112, 234, .14);
  --green: #9fbca8;
  --amber: #cdb381;
  --max: 1360px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Baskerville, Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(156,112,234,.045), transparent 31rem),
    linear-gradient(180deg, #090909 0%, #050505 100%);
  font-family: var(--sans);
  line-height: 1.62;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("art-hero-dark.webp") center top / cover no-repeat;
  opacity: .16;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .18;
  background-image:
    radial-gradient(rgba(255,255,255,.08) .55px, transparent .55px),
    radial-gradient(rgba(255,255,255,.045) .45px, transparent .45px);
  background-size: 5px 5px, 9px 9px;
  background-position: 0 0, 2px 2px;
  mix-blend-mode: soft-light;
}

img, svg { max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: .08em; }
button, input { font: inherit; }
code, pre, .mono, .label, .kicker, .file-meta, .status, .asset-table th, .form-label, .section-index, .site-wordmark, .file-nav, .footer-links, .profile-role, .profile-experience, .profile-list, .working-item {
  font-family: var(--mono);
}

::selection { background: var(--accent); color: #080808; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: .75rem 1rem;
  background: var(--text);
  color: var(--bg);
}
.skip-link:focus { left: 1rem; top: 1rem; }

.site-shell { min-height: 100vh; }
.content {
  width: min(var(--max), calc(100% - 3rem));
  margin: 0 auto;
  padding: 0 0 4rem;
}
.page-file { min-height: 100vh; }

.file-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(7, 7, 8, .86);
  backdrop-filter: blur(18px);
}
.site-wordmark {
  color: var(--text-bright);
  text-decoration: none;
  letter-spacing: .48em;
  font-size: .96rem;
  white-space: nowrap;
}
.file-meta:first-child {
  color: var(--text-bright);
  letter-spacing: .16em;
  font-weight: 600;
}
.file-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1.1rem, 3vw, 3rem);
  font-size: .77rem;
  letter-spacing: .13em;
}
.file-nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  padding: 1.75rem 0;
}
.file-nav a:hover { color: var(--text-bright); }
.file-nav a[aria-current="page"] { color: var(--accent-bright); }
.file-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.3rem;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(156,112,234,.45);
}
.nav-mark {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(156,112,234,.55);
}
.dot { display: none; }
.file-inner { padding: clamp(2rem, 5vw, 5rem) 0 1rem; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--text-bright); }
h1, h2 { font-family: var(--serif); font-weight: 400; }
h1 {
  font-size: clamp(3.4rem, 7.4vw, 7rem);
  line-height: .88;
  letter-spacing: -.055em;
  margin: 0 0 1.5rem;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
  letter-spacing: -.038em;
  margin-bottom: .85rem;
}
h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.1;
  margin-bottom: .55rem;
}
p { color: var(--muted); }
.lead {
  color: #c7bfb5;
  font-family: var(--mono);
  font-size: clamp(.96rem, 1.3vw, 1.08rem);
  line-height: 1.8;
  max-width: 48rem;
}
.quiet { color: var(--quiet); }
.label, .kicker, .section-index {
  margin: 0 0 .75rem;
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.label, .kicker { color: var(--muted); }
.section-index { color: var(--accent-bright); }
.ink-rule {
  display: block;
  width: 34px;
  height: 2px;
  margin: 1.6rem 0 1.2rem;
  background: var(--accent);
  box-shadow: 0 0 15px rgba(156,112,234,.35);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  min-height: 450px;
  padding: clamp(1rem, 2vw, 2rem) 0 clamp(2rem, 4vw, 4rem);
}
body:not([data-page="home"]) .hero::after {
  content: "";
  position: absolute;
  right: -3vw;
  bottom: -4rem;
  width: min(42vw, 520px);
  height: 360px;
  background: url("art-botanical-circuit.webp") center / cover no-repeat;
  opacity: .12;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 75%, transparent);
  pointer-events: none;
}
.home-hero {
  grid-template-columns: minmax(330px, 1.08fr) minmax(280px, .9fr) minmax(300px, .82fr);
  align-items: center;
  min-height: 660px;
  padding-top: clamp(2rem, 4vw, 4rem);
}
.hero-copy { position: relative; z-index: 3; }
.home-hero h1 { font-size: clamp(4rem, 6.9vw, 7.45rem); }
.hero-art {
  position: relative;
  min-height: 600px;
  align-self: stretch;
  background: url("art-botanical-circuit.webp") 50% 48% / cover no-repeat;
  opacity: .86;
  filter: contrast(1.04);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 5% -8%;
  border: 1px solid rgba(232,224,213,.07);
  transform: rotate(-1.2deg);
  pointer-events: none;
}

.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.65rem; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 44px;
  padding: .65rem 0 .55rem;
  border: 0;
  border-bottom: 1px solid var(--accent);
  color: var(--accent-bright);
  background: transparent;
  text-decoration: none;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.button:hover { color: var(--text-bright); border-color: var(--text-bright); }
.button.primary { color: var(--accent-bright); }
.text-link {
  color: var(--accent-bright);
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}
.text-link::after { content: "  →"; }
.text-link:hover { color: var(--text-bright); }
.back-link { margin-bottom: 1.4rem; }
.back-link a { color: var(--muted); font-family: var(--mono); font-size: .78rem; text-decoration: none; }
.back-link a:hover { color: var(--accent-bright); }

.signal-board, .card, .case-row, .project-card, .callout, .resume-block, .template, .stat, .asset-card {
  border: 1px solid var(--line);
  background: rgba(9, 9, 10, .74);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.012);
}
.signal-board { position: relative; overflow: hidden; }
.profile-board { align-self: center; min-height: 530px; }
.profile-board::before, .card::before, .case-row::before, .resume-block::before, .asset-card::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  top: -1px;
  left: -1px;
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
  opacity: .65;
  pointer-events: none;
}
.profile-art {
  height: 250px;
  background:
    linear-gradient(180deg, transparent 45%, rgba(8,8,8,.75) 100%),
    url("art-signal-shrine.webp") center 23% / 120% auto no-repeat;
  border-bottom: 1px solid var(--line-soft);
  filter: contrast(1.05);
}
.profile-copy { padding: 1.35rem 1.5rem 1.55rem; }
.profile-name {
  margin: 0 0 .35rem;
  color: var(--text-bright);
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
}
.profile-role {
  margin: 0;
  color: var(--accent-bright);
  font-size: .72rem;
  line-height: 1.55;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.profile-divider { height: 1px; background: var(--line-soft); margin: 1.2rem 0; }
.profile-experience {
  margin-bottom: .8rem;
  color: #c7bfb5;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.profile-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .36rem; }
.profile-list li { color: var(--muted); font-size: .7rem; letter-spacing: .035em; text-transform: uppercase; }
.profile-list li::before { content: "+"; color: var(--accent); margin-right: .65rem; }

.board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--quiet);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.board-head strong { color: var(--text); }
.board-body { padding: 1rem; display: grid; gap: .85rem; }
.board-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--line-soft);
}
.board-row:last-child { border-bottom: 0; padding-bottom: 0; }
.board-row dt { color: var(--quiet); font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.board-row dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }

.section {
  position: relative;
  margin-top: clamp(3.5rem, 7vw, 7rem);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line-soft);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 1.6rem;
}
.section-head.compact { margin-bottom: 1.1rem; }
.section-head p { margin-bottom: 0; }

.focus-panel {
  min-height: 340px;
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(420px, 1.25fr) 220px;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: rgba(7,7,8,.62);
  overflow: hidden;
}
.focus-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to right, transparent, #000 20%, #000 80%, transparent);
  pointer-events: none;
}
.focus-intro { position: relative; z-index: 2; }
.focus-intro h2 { font-size: clamp(2rem, 3vw, 3.15rem); }
.focus-grid {
  position: relative;
  z-index: 2;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem 1.3rem;
}
.focus-grid li {
  color: #b9b0a7;
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.focus-grid li::before { content: "+"; color: var(--accent); margin-right: .75rem; }
.focus-art {
  position: absolute;
  right: -36px;
  bottom: -170px;
  width: 330px;
  height: 520px;
  background: url("art-signal-shrine.webp") center / cover no-repeat;
  opacity: .38;
  mask-image: linear-gradient(to left, #000 55%, transparent 100%);
  pointer-events: none;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 5vw, 4rem); }
.card, .callout, .resume-block, .template, .asset-card { position: relative; padding: 1.25rem; }
.card h3, .resume-block h3, .asset-card h3 { color: var(--text-bright); }
.card p:last-child, .callout p:last-child, .resume-block p:last-child { margin-bottom: 0; }
.callout { border-left: 3px solid var(--accent); }

.focus-list, .plain-list, .number-list, .resume-list, .mini-list { margin: 0; padding: 0; list-style: none; }
.focus-list { display: grid; gap: .65rem; }
.focus-list li, .plain-list li, .resume-list li, .mini-list li {
  color: var(--muted);
  position: relative;
  padding-left: 1.1rem;
}
.focus-list li::before, .plain-list li::before, .resume-list li::before, .mini-list li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-family: var(--mono);
}
.columns { columns: 2; column-gap: 2.25rem; }
.columns li { break-inside: avoid; margin-bottom: .48rem; }
.number-list { counter-reset: item; display: grid; gap: 1rem; }
.number-list li { color: var(--muted); counter-increment: item; display: grid; grid-template-columns: 2.8rem 1fr; gap: 1rem; align-items: start; }
.number-list li::before { content: counter(item, decimal-leading-zero); color: var(--accent); font-family: var(--mono); }
.number-list strong { color: var(--text-bright); }

.project-list { display: grid; gap: 1rem; }
.home-projects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.case-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "number status"
    "title title"
    "copy copy"
    "arrow arrow";
  gap: .8rem 1rem;
  min-height: 260px;
  padding: 1.3rem;
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
  overflow: hidden;
}
.case-row::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -45px;
  bottom: -55px;
  border: 1px solid rgba(232,224,213,.09);
  border-radius: 50%;
  box-shadow: inset 0 0 0 22px rgba(232,224,213,.018), inset 0 0 0 44px rgba(156,112,234,.018);
}
.case-row:hover { border-color: rgba(181,140,255,.6); background: rgba(18,14,22,.82); transform: translateY(-3px); }
.case-number { grid-area: number; color: var(--muted); font-size: .72rem; letter-spacing: .08em; }
.case-row .status { grid-area: status; justify-self: end; }
.case-row h2, .case-row h3 { grid-area: title; margin: .2rem 0 0; font-size: clamp(1.55rem, 2vw, 2.15rem); }
.case-row p { grid-area: copy; margin: 0; max-width: 48rem; }
.case-arrow { grid-area: arrow; align-self: end; color: var(--accent-bright); font-size: 1.5rem; }
.tag, .status {
  display: inline-flex;
  align-items: center;
  width: max-content;
  color: var(--muted);
  font-size: .67rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.status::before { content: "•"; margin-right: .45rem; }
.status.active { color: var(--accent-bright); }
.status.complete { color: var(--amber); }
.status.future { color: var(--green); }
body[data-page="projects"] .project-list:not(.home-projects) { grid-template-columns: repeat(2, minmax(0,1fr)); }
body[data-page="projects"] .project-list:not(.home-projects) .case-row { min-height: 300px; }

.working-section {
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: rgba(7,7,8,.62);
}
.working-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem 1rem; }
.working-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: .8rem;
  align-items: center;
  color: #bcb3aa;
  font-size: .72rem;
  line-height: 1.55;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.work-symbol {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  color: var(--text-bright);
  font-size: 1.15rem;
}

.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.stat { padding: 1.2rem; }
.stat strong { display: block; color: var(--text-bright); font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; font-weight: 400; }
.stat span { color: var(--muted); font-size: .9rem; }

.diagram {
  overflow: auto;
  border: 1px solid var(--line);
  background: rgba(5,5,6,.84);
  padding: 1rem;
}
.diagram-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.diagram h3 { margin: 0 0 .65rem; color: var(--text-bright); }
.diagram svg { min-width: 760px; display: block; }
.diagram-image { display: block; width: 100%; min-width: 760px; height: auto; filter: saturate(.55) contrast(1.03); }
.svg-box { fill: #111; stroke: rgba(232,224,213,.34); stroke-width: 2; }
.svg-box.firewall { fill: #151018; stroke: rgba(156,112,234,.72); }
.svg-box.service { fill: #101511; stroke: rgba(159,188,168,.62); }
.svg-box.ghost { fill: #0b0b0c; stroke-dasharray: 6 6; opacity: .72; }
.svg-line { fill: none; stroke: rgba(232,224,213,.34); stroke-width: 4; stroke-linecap: round; }
.svg-line.alt { stroke: var(--accent); }
.svg-label { fill: var(--muted); font: 700 14px var(--mono); letter-spacing: .06em; }
.svg-title { fill: var(--text); font: 800 17px var(--sans); text-anchor: middle; }
.svg-sub { fill: var(--muted); font: 13px var(--sans); text-anchor: middle; }
.svg-note { fill: #c7bfb5; font: 13px var(--sans); }

.search-box { margin-bottom: 1.4rem; display: block; }
.form-label { display: block; color: var(--quiet); font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; margin-bottom: .5rem; }
input[type="search"] {
  width: min(560px, 100%);
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(9,9,10,.86);
  color: var(--text);
  padding: .75rem .85rem;
}
input[type="search"]:focus { outline: 1px solid var(--accent); outline-offset: 3px; }

.asset-table-wrap { overflow: auto; border: 1px solid var(--line); }
.asset-table { width: 100%; border-collapse: collapse; min-width: 860px; background: rgba(8,8,9,.8); }
.asset-table th, .asset-table td { text-align: left; padding: .82rem .88rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.asset-table th { color: var(--quiet); text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; background: rgba(255,255,255,.02); }
.asset-table td { color: var(--muted); }
.asset-table td:first-child, .asset-table td:nth-child(2) { color: var(--text); font-weight: 700; }
.asset-table tr:last-child td { border-bottom: 0; }
.asset-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.asset-card { position: relative; }
.asset-card dl { display: grid; grid-template-columns: 90px 1fr; gap: .4rem .7rem; margin: .8rem 0 0; }
.asset-card dt { color: var(--quiet); font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.asset-card dd { margin: 0; color: var(--muted); }

.notes-timeline { display: grid; gap: .9rem; margin-top: 1rem; }
.note-entry {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: rgba(9,9,10,.68);
}
.note-entry time { color: var(--accent); font-family: var(--mono); font-size: .78rem; }
.note-entry p { margin: 0; }

.resume-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1rem; }
.resume-list { display: grid; gap: .8rem; }
.resume-list strong { display: block; color: var(--text-bright); }
.resume-list span { color: var(--muted); }
.timeline { display: grid; gap: 1rem; }
.timeline-item {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1.2rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--line-soft);
}
.timeline-item:last-child { border-bottom: 0; padding-bottom: 0; }
.timeline-date { color: var(--accent); font-family: var(--mono); font-size: .78rem; }
.timeline-item h3 { margin-bottom: .25rem; }

.site-footer {
  width: min(var(--max), calc(100% - 3rem));
  margin: 0 auto;
  padding: 0 0 2.5rem;
  color: var(--quiet);
  font-size: .76rem;
  letter-spacing: .18em;
  font-family: var(--mono);
}
.site-footer-inner {
  border-top: 1px solid var(--line-soft);
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent-bright); }
.footer-links { display: flex; align-items: center; gap: 2rem; }

pre {
  margin: .85rem 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #d8d0c7;
  background: rgba(4,4,5,.78);
  border: 1px solid var(--line-soft);
  padding: 1rem;
}

@media (max-width: 1120px) {
  .home-hero { grid-template-columns: minmax(320px, 1fr) minmax(260px, .75fr); }
  .home-hero .hero-art { position: absolute; inset: 8% 24% 0 25%; opacity: .35; z-index: 0; }
  .home-hero .hero-copy, .home-hero .profile-board { position: relative; z-index: 2; }
  .focus-panel { grid-template-columns: minmax(250px, .9fr) minmax(380px, 1.2fr); }
  .focus-art { opacity: .18; }
  .working-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .content, .site-footer { width: min(100% - 1.5rem, var(--max)); }
  .file-bar { min-height: 70px; }
  .site-wordmark { letter-spacing: .28em; }
  .file-nav { gap: 1.1rem; }
  .file-nav a { padding: 1.35rem 0; }
  .file-nav a[aria-current="page"]::after { bottom: 1rem; }
  .hero, .home-hero, .split, .grid-2, .grid-3, .resume-grid, .asset-card-grid, .focus-panel { grid-template-columns: 1fr; }
  .home-hero { min-height: auto; }
  .home-hero .hero-art {
    position: relative;
    inset: auto;
    min-height: 480px;
    opacity: .72;
    order: 3;
  }
  .profile-board { min-height: auto; max-width: 620px; }
  .focus-panel { padding-right: 1.5rem; }
  .focus-art { right: -120px; bottom: -150px; }
  .home-projects, body[data-page="projects"] .project-list:not(.home-projects) { grid-template-columns: 1fr; }
  .case-row { min-height: 220px; }
  .columns { columns: 1; }
  .stat-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body::before { background-position: center top; opacity: .11; }
  .content, .site-footer { width: min(100% - 1rem, var(--max)); }
  .file-bar { align-items: flex-start; flex-direction: column; gap: .35rem; padding: 1rem 0 .75rem; }
  .site-wordmark { font-size: .86rem; }
  .file-nav { width: 100%; justify-content: space-between; gap: .65rem; }
  .file-nav a { padding: .6rem 0; font-size: .68rem; }
  .file-nav a[aria-current="page"]::after { bottom: .25rem; }
  .file-inner { padding-top: 2.4rem; }
  h1 { font-size: clamp(3.2rem, 17vw, 5rem); }
  h2 { font-size: clamp(2rem, 10vw, 3rem); }
  .home-hero h1 { font-size: clamp(3.2rem, 16vw, 5.1rem); }
  .home-hero .hero-art { min-height: 400px; }
  .profile-art { height: 210px; }
  .focus-grid { grid-template-columns: 1fr; }
  .focus-art { display: none; }
  .working-grid { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .board-row, .timeline-item, .note-entry { grid-template-columns: 1fr; gap: .3rem; }
  .asset-card dl { grid-template-columns: 1fr; }
  .footer-links { gap: .8rem; }
  .diagram::after {
    content: "Scroll horizontally to inspect the full diagram →";
    display: block;
    padding-top: .65rem;
    color: var(--quiet);
    font-family: var(--mono);
    font-size: .68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Project index rows retain their original grouped markup. */
body[data-page="projects"] .project-list:not(.home-projects) .case-row {
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  grid-template-areas: "number content arrow";
  align-items: start;
}
body[data-page="projects"] .project-list:not(.home-projects) .case-row > .case-number {
  grid-area: number;
  line-height: 1.8;
}
body[data-page="projects"] .project-list:not(.home-projects) .case-row > span:nth-child(2) {
  grid-area: content;
  display: block;
}
body[data-page="projects"] .project-list:not(.home-projects) .case-row > span:nth-child(2) .status {
  float: right;
  margin-left: 1rem;
}
body[data-page="projects"] .project-list:not(.home-projects) .case-row > span:nth-child(2) h2 {
  margin-top: 1.1rem;
}
body[data-page="projects"] .project-list:not(.home-projects) .case-row > .case-arrow {
  grid-area: arrow;
  align-self: end;
}

@media (max-width: 640px) {
  body[data-page="projects"] .project-list:not(.home-projects) .case-row {
    grid-template-columns: 1fr auto;
    grid-template-areas: "number arrow" "content content";
  }
  body[data-page="projects"] .project-list:not(.home-projects) .case-row > span:nth-child(2) .status {
    float: none;
    margin: 0 0 .5rem;
  }
  body[data-page="projects"] .project-list:not(.home-projects) .case-row > span:nth-child(2) h2 {
    margin-top: 0;
  }
}

/* ========================================================================== 
   LOW SIGNAL — integrated etched composition pass
   Artwork is used as transparent linework woven into the layout, rather than
   placed in rectangular image panels.
   ========================================================================== */

:root {
  --bg: #070708;
  --bg-deep: #030304;
  --paper: #e8e0d5;
  --paper-dim: #bbb2a8;
  --etched-line: rgba(232, 224, 213, .20);
  --etched-faint: rgba(232, 224, 213, .075);
  --violet-line: rgba(164, 116, 242, .58);
}

body {
  background:
    radial-gradient(ellipse at 50% -12%, rgba(117, 76, 171, .13), transparent 38rem),
    radial-gradient(ellipse at 104% 46%, rgba(125, 85, 178, .065), transparent 34rem),
    linear-gradient(180deg, #09090a 0%, #050506 55%, #030304 100%);
}

/* Fine etched paper and registration grid across the entire page. */
body::before {
  background:
    url("ink-hero-dark-overlay.webp") 50% 0 / min(1850px, 132vw) auto no-repeat,
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(255,255,255,.025) 50%, transparent calc(50% + .5px));
  opacity: .23;
  mix-blend-mode: screen;
  mask-image: linear-gradient(to bottom, #000 0, #000 45rem, transparent 85rem);
}
body::after {
  opacity: .38;
  background-image:
    radial-gradient(circle, rgba(232,224,213,.085) .55px, transparent .7px),
    linear-gradient(90deg, rgba(232,224,213,.022) 1px, transparent 1px),
    linear-gradient(rgba(232,224,213,.018) 1px, transparent 1px);
  background-size: 7px 7px, 84px 84px, 84px 84px;
  background-position: 0 0, 0 0, 0 0;
  mix-blend-mode: soft-light;
}

.content {
  position: relative;
  isolation: isolate;
}
.content::before,
.content::after {
  content: "";
  position: fixed;
  top: 6.5rem;
  bottom: 2rem;
  width: 1px;
  z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--etched-faint) 12%, var(--etched-faint) 86%, transparent);
  pointer-events: none;
}
.content::before { left: max(.65rem, calc(50vw - var(--max)/2 - 1.2rem)); }
.content::after { right: max(.65rem, calc(50vw - var(--max)/2 - 1.2rem)); }

.page-file {
  position: relative;
  background-image:
    url("ink-botanical-circuit-overlay.webp"),
    url("ink-signal-shrine-overlay.webp"),
    url("ink-botanical-circuit-overlay.webp");
  background-repeat: no-repeat;
  background-size: 730px auto, 620px auto, 670px auto;
  background-position:
    calc(0% - 470px) 860px,
    calc(100% + 390px) 1750px,
    calc(0% - 430px) 2950px;
}
.page-file::before,
.page-file::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.page-file::before {
  inset: 81px 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--etched-line) 7%, var(--etched-line) 93%, transparent);
}
.page-file::after {
  right: -10px;
  top: 106px;
  width: 42px;
  height: 210px;
  opacity: .35;
  background:
    linear-gradient(var(--accent),var(--accent)) 50% 0 / 1px 100% no-repeat,
    radial-gradient(circle, var(--accent) 0 2px, transparent 2.5px) 50% 18% / 8px 34px repeat-y;
}

.file-bar {
  min-height: 82px;
  padding-inline: .15rem;
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(5,5,6,.94), rgba(5,5,6,.76));
  backdrop-filter: blur(20px) saturate(.8);
}
.file-bar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--etched-line), transparent 34%, transparent 66%, var(--etched-line));
}
.file-bar::after {
  content: "+";
  position: absolute;
  left: 50%;
  bottom: -8px;
  color: rgba(232,224,213,.24);
  font: .7rem var(--mono);
  transform: translateX(-50%);
  background: #060607;
  padding: 0 .5rem;
}
.site-wordmark { text-shadow: 0 0 24px rgba(232,224,213,.08); }
.file-nav a { color: #968e87; }
.file-nav a::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 1.15rem;
  width: 3px;
  height: 3px;
  border: 1px solid transparent;
  transform: translateX(-50%) rotate(45deg);
}
.file-nav a:hover::before,
.file-nav a[aria-current="page"]::before { border-color: var(--accent); }
.nav-mark {
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: transparent;
  border: 1px solid var(--accent-bright);
}

.file-inner {
  position: relative;
  padding-top: clamp(2.8rem, 5vw, 5.6rem);
}
.file-inner::before {
  content: "";
  position: absolute;
  inset: 0 -4vw auto;
  height: 760px;
  z-index: -1;
  background: url("ink-hero-dark-overlay.webp") center top / min(1750px, 126vw) auto no-repeat;
  opacity: .20;
  mix-blend-mode: screen;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, #000 0, #000 70%, transparent 100%);
}

/* HERO — text, art and profile share one composition rather than three boxes. */
.hero {
  position: relative;
  min-height: 520px;
  padding: clamp(2rem, 4vw, 4rem) clamp(.2rem, 1vw, 1rem) clamp(4rem, 7vw, 7rem);
  border-bottom: 1px solid var(--etched-line);
}
.hero::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 120px;
  height: 36px;
  border-left: 1px solid var(--violet-line);
  border-bottom: 1px solid var(--violet-line);
  opacity: .58;
}
.hero::after {
  content: "";
  position: absolute;
  right: 0;
  top: 1.8rem;
  width: 180px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--etched-line) 0 2px, transparent 2px 8px);
  opacity: .55;
}
.home-hero {
  display: grid;
  grid-template-columns: minmax(420px, 1.12fr) minmax(300px, .72fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
  min-height: 720px;
  overflow: visible;
}
.home-hero .hero-copy { max-width: 690px; }
.home-hero h1 {
  font-size: clamp(4.5rem, 7vw, 7.65rem);
  text-wrap: balance;
  text-shadow: 0 0 1px rgba(255,255,255,.2);
}
.hero-art {
  position: absolute;
  z-index: 0;
  left: clamp(32%, 39vw, 47%);
  top: 0;
  width: min(54vw, 760px);
  height: 700px;
  min-height: 0;
  background: url("ink-botanical-circuit-overlay.webp") center 52% / contain no-repeat;
  opacity: .69;
  filter: contrast(1.08) brightness(1.08);
  mask-image: radial-gradient(ellipse at center, #000 38%, rgba(0,0,0,.82) 62%, transparent 84%);
  pointer-events: none;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 8% 15% 12% 20%;
  border: 1px solid rgba(232,224,213,.08);
  border-radius: 50%;
  box-shadow: inset 0 0 0 48px rgba(156,112,234,.012), inset 0 0 0 96px rgba(232,224,213,.01);
}
.hero-art::after { display: none; }
.hero-copy { position: relative; z-index: 3; }
.hero-copy::after {
  content: "";
  position: absolute;
  left: -1.3rem;
  top: 4.3rem;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(181,140,255,.75);
  transform: rotate(45deg);
}

/* Open etched profile frame. */
.profile-board {
  position: relative;
  z-index: 4;
  align-self: center;
  min-height: 540px;
  overflow: visible;
  border: 0;
  background:
    linear-gradient(var(--etched-line),var(--etched-line)) 0 0 / 64px 1px no-repeat,
    linear-gradient(var(--etched-line),var(--etched-line)) 0 0 / 1px 64px no-repeat,
    linear-gradient(var(--etched-line),var(--etched-line)) 100% 0 / 64px 1px no-repeat,
    linear-gradient(var(--etched-line),var(--etched-line)) 100% 0 / 1px 64px no-repeat,
    linear-gradient(var(--etched-line),var(--etched-line)) 0 100% / 64px 1px no-repeat,
    linear-gradient(var(--etched-line),var(--etched-line)) 0 100% / 1px 64px no-repeat,
    linear-gradient(var(--etched-line),var(--etched-line)) 100% 100% / 64px 1px no-repeat,
    linear-gradient(var(--etched-line),var(--etched-line)) 100% 100% / 1px 64px no-repeat,
    linear-gradient(180deg, rgba(7,7,8,.18), rgba(7,7,8,.72) 58%, rgba(7,7,8,.94));
  box-shadow: none;
}
.profile-board::before {
  width: 16px;
  height: 16px;
  top: -4px;
  left: auto;
  right: 16%;
  border: 1px solid var(--accent);
  background: #070708;
  transform: rotate(45deg);
  opacity: .8;
}
.profile-board::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(232,224,213,.07);
  pointer-events: none;
}
.profile-art {
  position: absolute;
  inset: -55px -34px 120px;
  height: auto;
  border: 0;
  background: url("ink-signal-shrine-overlay.webp") center 18% / 108% auto no-repeat;
  opacity: .52;
  filter: contrast(1.06) brightness(1.08);
  mask-image: linear-gradient(to bottom, #000 5%, #000 64%, transparent 92%);
}
.profile-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 5rem 1.6rem 1.65rem;
  background: linear-gradient(to bottom, transparent, rgba(5,5,6,.88) 24%, rgba(5,5,6,.98));
}
.profile-divider {
  position: relative;
  background: linear-gradient(90deg, var(--etched-line), transparent);
}
.profile-divider::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -.68rem;
  color: var(--accent);
  font: .8rem var(--mono);
}

/* Generic content sections become etched plates with art bleeding through edges. */
.section {
  isolation: isolate;
  border-top: 0;
  padding-top: clamp(2rem, 4vw, 3rem);
}
.section:not(.focus-panel):not(.working-section)::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--etched-line), transparent 38%, transparent 62%, var(--etched-line));
  z-index: -1;
}
.section:not(.focus-panel):not(.working-section)::after {
  content: "";
  position: absolute;
  right: -3rem;
  top: -8rem;
  width: 360px;
  height: 420px;
  z-index: -2;
  opacity: .105;
  background: url("ink-botanical-circuit-overlay.webp") center / contain no-repeat;
  pointer-events: none;
  mask-image: radial-gradient(ellipse, #000 20%, transparent 75%);
}
.section:nth-of-type(even):not(.focus-panel):not(.working-section)::after {
  right: auto;
  left: -4rem;
  transform: scaleX(-1);
}
.section-head {
  position: relative;
  padding-left: 1.15rem;
}
.section-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: .15rem;
  bottom: .25rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), transparent 72%);
}
.section-head::after {
  content: "";
  position: absolute;
  left: -3px;
  top: .1rem;
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
  background: var(--bg);
}

.focus-panel,
.working-section {
  overflow: visible;
  border: 0;
  background:
    linear-gradient(var(--etched-line),var(--etched-line)) 0 0 / 100% 1px no-repeat,
    linear-gradient(var(--etched-line),var(--etched-line)) 0 100% / 100% 1px no-repeat,
    linear-gradient(var(--etched-line),var(--etched-line)) 0 0 / 1px 100% no-repeat,
    linear-gradient(var(--etched-line),var(--etched-line)) 100% 0 / 1px 100% no-repeat,
    linear-gradient(90deg, rgba(255,255,255,.018), transparent 30%, transparent 70%, rgba(156,112,234,.025));
}
.focus-panel {
  grid-template-columns: minmax(270px, .9fr) minmax(440px, 1.2fr) 180px;
  min-height: 390px;
  padding: clamp(2rem, 4vw, 3rem);
}
.focus-panel::before {
  inset: 1px;
  background-image:
    linear-gradient(90deg, rgba(232,224,213,.026) 1px, transparent 1px),
    linear-gradient(rgba(232,224,213,.022) 1px, transparent 1px),
    radial-gradient(circle, rgba(156,112,234,.16) 0 1px, transparent 1.5px);
  background-size: 64px 64px, 64px 64px, 16px 16px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 90%, transparent);
}
.focus-panel::after,
.working-section::after {
  content: "";
  position: absolute;
  width: 54px;
  height: 54px;
  right: -9px;
  top: -9px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  opacity: .52;
}
.focus-art {
  right: -65px;
  bottom: -110px;
  width: 390px;
  height: 590px;
  background: url("ink-signal-shrine-overlay.webp") center / contain no-repeat;
  opacity: .36;
  mask-image: linear-gradient(to left, #000 58%, transparent 100%);
}
.focus-intro h2 { max-width: 18ch; }
.focus-grid li {
  position: relative;
  padding: .38rem 0 .38rem 1.35rem;
  border-bottom: 1px dotted rgba(232,224,213,.10);
}
.focus-grid li::before {
  position: absolute;
  left: 0;
  color: var(--accent-bright);
}

/* Cards are etched fragments, not generic dark rectangles. */
.signal-board, .card, .case-row, .project-card, .callout, .resume-block, .template, .stat, .asset-card {
  border: 0;
  background:
    linear-gradient(var(--etched-line),var(--etched-line)) 0 0 / 42px 1px no-repeat,
    linear-gradient(var(--etched-line),var(--etched-line)) 0 0 / 1px 42px no-repeat,
    linear-gradient(var(--etched-line),var(--etched-line)) 100% 0 / 42px 1px no-repeat,
    linear-gradient(var(--etched-line),var(--etched-line)) 100% 0 / 1px 42px no-repeat,
    linear-gradient(var(--etched-line),var(--etched-line)) 0 100% / 42px 1px no-repeat,
    linear-gradient(var(--etched-line),var(--etched-line)) 0 100% / 1px 42px no-repeat,
    linear-gradient(var(--etched-line),var(--etched-line)) 100% 100% / 42px 1px no-repeat,
    linear-gradient(var(--etched-line),var(--etched-line)) 100% 100% / 1px 42px no-repeat,
    linear-gradient(135deg, rgba(255,255,255,.018), rgba(255,255,255,0) 46%, rgba(156,112,234,.018));
  box-shadow: none;
}
.card::before, .resume-block::before, .asset-card::before {
  width: 6px;
  height: 6px;
  top: -3px;
  left: 1.5rem;
  border: 1px solid var(--accent);
  background: #070708;
  transform: rotate(45deg);
}
.card, .resume-block, .template, .asset-card, .callout { padding: 1.6rem; }
.callout { border-left: 0; }
.callout::after {
  content: "";
  position: absolute;
  left: 0;
  top: 1.4rem;
  bottom: 1.4rem;
  width: 2px;
  background: linear-gradient(var(--accent), transparent);
}

.home-projects { gap: 1rem; }
.case-row {
  min-height: 300px;
  padding: 1.55rem;
  background-color: rgba(5,5,6,.22);
  isolation: isolate;
}
.case-row::before {
  width: 9px;
  height: 9px;
  top: -4px;
  left: 1.4rem;
  border: 1px solid var(--accent);
  background: #070708;
  transform: rotate(45deg);
  opacity: .9;
}
.case-row::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -75px -105px auto;
  width: 260px;
  height: 330px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: url("ink-signal-shrine-overlay.webp") center / contain no-repeat;
  opacity: .13;
  mask-image: radial-gradient(ellipse, #000 22%, transparent 72%);
}
.case-row:nth-child(2)::after {
  background-image: url("ink-botanical-circuit-overlay.webp");
  transform: rotate(12deg);
}
.case-row:nth-child(3)::after {
  inset: auto -55px -75px auto;
  transform: scale(.9) rotate(-5deg);
}
.case-row:hover {
  transform: translateY(-4px);
  background-color: rgba(156,112,234,.035);
  box-shadow: 0 18px 54px rgba(0,0,0,.30);
}
.case-row:hover::after { opacity: .22; }
.case-arrow {
  position: relative;
  width: 42px;
  height: 24px;
  overflow: hidden;
  font-size: 0;
}
.case-arrow::before,
.case-arrow::after {
  content: "";
  position: absolute;
}
.case-arrow::before {
  left: 0;
  top: 11px;
  width: 34px;
  height: 1px;
  background: var(--accent-bright);
}
.case-arrow::after {
  right: 6px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--accent-bright);
  border-right: 1px solid var(--accent-bright);
  transform: rotate(45deg);
}

.working-section {
  padding: clamp(2rem, 4vw, 3rem);
  background-color: rgba(5,5,6,.30);
}
.working-section::before {
  content: "";
  position: absolute;
  left: -110px;
  bottom: -105px;
  width: 360px;
  height: 430px;
  z-index: -1;
  background: url("ink-botanical-circuit-overlay.webp") center / contain no-repeat;
  opacity: .18;
  pointer-events: none;
  mask-image: radial-gradient(ellipse, #000 25%, transparent 75%);
}
.working-grid { position: relative; z-index: 2; }
.working-item {
  position: relative;
  padding: .65rem .4rem .8rem 0;
  border-bottom: 1px dotted rgba(232,224,213,.13);
}
.working-item::after {
  content: "+";
  position: absolute;
  right: .15rem;
  top: .75rem;
  color: rgba(156,112,234,.55);
}
.work-symbol {
  position: relative;
  border: 0;
  background:
    linear-gradient(var(--etched-line),var(--etched-line)) 0 0 / 16px 1px no-repeat,
    linear-gradient(var(--etched-line),var(--etched-line)) 0 0 / 1px 16px no-repeat,
    linear-gradient(var(--etched-line),var(--etched-line)) 100% 100% / 16px 1px no-repeat,
    linear-gradient(var(--etched-line),var(--etched-line)) 100% 100% / 1px 16px no-repeat;
}
.work-symbol::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 3px;
  height: 3px;
  border: 1px solid var(--accent);
  transform: translate(-50%,-50%) rotate(45deg);
  opacity: .58;
}

/* Secondary page heroes carry the same artwork as negative-space composition. */
body:not([data-page="home"]) .hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .65fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
  min-height: 520px;
  overflow: hidden;
}
body:not([data-page="home"]) .hero::after {
  right: -8rem;
  bottom: -13rem;
  top: auto;
  width: 590px;
  height: 700px;
  background: url("ink-botanical-circuit-overlay.webp") center / contain no-repeat;
  opacity: .20;
  mask-image: radial-gradient(ellipse, #000 25%, transparent 75%);
}
body:not([data-page="home"]) .hero > div:first-child { position: relative; z-index: 2; }
body:not([data-page="home"]) .hero .signal-board {
  position: relative;
  z-index: 2;
  background-color: rgba(5,5,6,.34);
}
.board-head {
  border-bottom: 0;
  background: linear-gradient(90deg, rgba(156,112,234,.08), transparent);
}
.board-head::after {
  content: "";
  flex: 1;
  height: 1px;
  margin-left: .6rem;
  background: repeating-linear-gradient(90deg, var(--etched-line) 0 2px, transparent 2px 7px);
}
.board-body { padding: 1.2rem 1.25rem 1.35rem; }
.board-row { border-bottom: 1px dotted rgba(232,224,213,.11); }

/* Inputs, tables, diagrams and code adopt the etched drafting language. */
input[type="search"] {
  border: 0;
  background:
    linear-gradient(var(--etched-line),var(--etched-line)) 0 100% / 100% 1px no-repeat,
    linear-gradient(90deg, rgba(156,112,234,.08), transparent 36%);
  padding-left: 0;
}
input[type="search"]:focus { outline: 0; background-color: rgba(156,112,234,.025); }
.asset-table-wrap,
.diagram {
  position: relative;
  border: 0;
  background:
    linear-gradient(var(--etched-line),var(--etched-line)) 0 0 / 100% 1px no-repeat,
    linear-gradient(var(--etched-line),var(--etched-line)) 0 100% / 100% 1px no-repeat,
    linear-gradient(var(--etched-line),var(--etched-line)) 0 0 / 1px 100% no-repeat,
    linear-gradient(var(--etched-line),var(--etched-line)) 100% 0 / 1px 100% no-repeat,
    rgba(4,4,5,.50);
}
.asset-table-wrap::before,
.diagram::before {
  content: "";
  position: absolute;
  left: 18px;
  top: -4px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--accent);
  background: #070708;
  transform: rotate(45deg);
  z-index: 2;
}
.asset-table { background: transparent; }
.asset-table th { background: rgba(156,112,234,.028); }
.asset-table th,
.asset-table td { border-bottom-style: dotted; }
.diagram-image { filter: grayscale(.25) saturate(.68) contrast(1.12); }
pre {
  border: 0;
  background:
    linear-gradient(var(--etched-line),var(--etched-line)) 0 0 / 28px 1px no-repeat,
    linear-gradient(var(--etched-line),var(--etched-line)) 0 0 / 1px 28px no-repeat,
    linear-gradient(var(--etched-line),var(--etched-line)) 100% 100% / 28px 1px no-repeat,
    linear-gradient(var(--etched-line),var(--etched-line)) 100% 100% / 1px 28px no-repeat,
    rgba(4,4,5,.56);
}

.timeline-item,
.note-entry {
  position: relative;
  border-bottom-style: dotted;
}
.note-entry {
  border: 0;
  background:
    linear-gradient(var(--etched-line),var(--etched-line)) 0 0 / 100% 1px no-repeat,
    linear-gradient(90deg, rgba(156,112,234,.045), transparent 35%);
}
.timeline-item::before,
.note-entry::before {
  content: "";
  position: absolute;
  left: -4px;
  top: .35rem;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(156,112,234,.75);
  transform: rotate(45deg);
  background: #070708;
}

.site-footer { position: relative; }
.site-footer::before {
  content: "";
  position: absolute;
  left: -80px;
  bottom: 0;
  width: 280px;
  height: 250px;
  z-index: -1;
  background: url("ink-botanical-circuit-overlay.webp") center / contain no-repeat;
  opacity: .12;
  mask-image: radial-gradient(ellipse, #000 20%, transparent 75%);
}
.site-footer-inner {
  border-top: 0;
  background: linear-gradient(90deg, var(--etched-line), transparent 40%, transparent 60%, var(--etched-line)) 0 0 / 100% 1px no-repeat;
}

@media (max-width: 1120px) {
  .home-hero { grid-template-columns: minmax(360px, 1fr) minmax(280px, .64fr); }
  .hero-art { left: 27%; width: 64vw; opacity: .48; }
  .focus-panel { grid-template-columns: minmax(250px, .9fr) minmax(370px, 1.15fr); }
  .focus-art { opacity: .20; }
}

@media (max-width: 900px) {
  .page-file { background-size: 600px auto, 480px auto, 520px auto; }
  .home-hero,
  body:not([data-page="home"]) .hero { grid-template-columns: 1fr; gap: 2.5rem; }
  .home-hero { padding-bottom: 3rem; }
  .hero-art {
    position: absolute;
    left: 24%;
    top: 8rem;
    width: 78vw;
    height: 620px;
    opacity: .33;
  }
  .profile-board { max-width: 560px; min-height: 500px; margin-left: auto; }
  .focus-panel { grid-template-columns: 1fr; }
  .focus-art { right: -150px; opacity: .16; }
  body:not([data-page="home"]) .hero::after { opacity: .12; right: -13rem; }
}

@media (max-width: 640px) {
  body::before { opacity: .13; }
  .page-file {
    background-size: 460px auto, 380px auto, 420px auto;
    background-position: -330px 700px, calc(100% + 270px) 1500px, -300px 2600px;
  }
  .file-bar::after { display: none; }
  .file-inner::before { opacity: .12; }
  .home-hero h1 { font-size: clamp(3.55rem, 17vw, 5.1rem); }
  .hero-art { left: 4%; top: 16rem; width: 102vw; opacity: .22; }
  .home-hero { min-height: auto; }
  .profile-board { margin: 3rem 0 0; min-height: 475px; }
  .profile-art { inset: -30px -18px 128px; }
  .focus-panel,
  .working-section { padding: 1.4rem; }
  .focus-art { display: block; opacity: .10; right: -220px; }
  .case-row { min-height: 275px; }
  .section:not(.focus-panel):not(.working-section)::after { opacity: .07; }
  .working-item { grid-template-columns: 40px 1fr; }
  body:not([data-page="home"]) .hero { min-height: 460px; }
  body:not([data-page="home"]) .hero::after { width: 460px; height: 560px; }
}

/* Readability balance: continuous page artwork stays present but recedes behind content. */
.page-file {
  background-image:
    linear-gradient(rgba(7,7,8,.58), rgba(7,7,8,.58)),
    url("ink-botanical-circuit-overlay.webp"),
    url("ink-signal-shrine-overlay.webp"),
    url("ink-botanical-circuit-overlay.webp");
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-size: 100% 100%, 730px auto, 620px auto, 670px auto;
  background-position: 0 0, calc(0% - 470px) 860px, calc(100% + 390px) 1750px, calc(0% - 430px) 2950px;
}
.section:not(.focus-panel):not(.working-section)::after { opacity: .07; }
@media (max-width: 900px) {
  .page-file {
    background-size: 100% 100%, 600px auto, 480px auto, 520px auto;
  }
}
@media (max-width: 640px) {
  .page-file {
    background-size: 100% 100%, 460px auto, 380px auto, 420px auto;
    background-position: 0 0, -330px 700px, calc(100% + 270px) 1500px, -300px 2600px;
  }
}

/* Mobile containment: preserve the composition without creating a horizontal canvas. */
html, body, .site-shell, .page-file { overflow-x: clip; }
.hero-copy, .profile-board, .focus-intro, .section-head > *, .case-row > * { min-width: 0; }
.profile-role, .profile-experience, .profile-list li { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .home-hero h1 { font-size: clamp(3rem, 14.5vw, 4.2rem); }
  .profile-board, .focus-panel { overflow: hidden; }
  .focus-art { right: -115px; width: 270px; height: 430px; }
  .hero-art { left: 0; width: 100%; }
}

/* ========================================================================== 
   LOW SIGNAL — RENAISSANCE ENGRAVING FINAL THEME
   Real-site implementation of the approved mockup. Decorative crops exclude
   the malformed hand artwork entirely.
   ========================================================================== */

:root {
  --bg: #070605;
  --bg-deep: #020202;
  --surface: rgba(10, 9, 8, .84);
  --surface-strong: rgba(6, 6, 5, .95);
  --text: #d6c7ae;
  --text-bright: #eee1cb;
  --muted: #a99a84;
  --quiet: #776b5b;
  --line: rgba(196, 170, 128, .31);
  --line-soft: rgba(196, 170, 128, .15);
  --line-faint: rgba(196, 170, 128, .075);
  --accent: #9d6bea;
  --accent-bright: #b58cff;
  --accent-soft: rgba(157, 107, 234, .13);
  --gold: #c6aa7d;
  --gold-bright: #e2c89a;
  --gold-soft: rgba(198, 170, 125, .14);
  --etched-line: rgba(198, 170, 125, .27);
  --etched-faint: rgba(198, 170, 125, .09);
}

html { background: var(--bg-deep); }
body {
  background:
    radial-gradient(ellipse at 50% -8%, rgba(157,107,234,.07), transparent 34rem),
    linear-gradient(180deg, #090806 0%, #050403 55%, #020202 100%);
  color: var(--text);
}

/* Edge-weighted dithered engraving. The center remains clear for content. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(3,3,3,.05), rgba(3,3,3,.58) 22%, rgba(3,3,3,.92) 38%, rgba(3,3,3,.92) 62%, rgba(3,3,3,.58) 78%, rgba(3,3,3,.05)),
    url("renaissance-field.webp") center top / cover no-repeat;
  opacity: .58;
  filter: contrast(1.12) sepia(.15);
  mask-image: linear-gradient(90deg, #000 0%, #000 18%, rgba(0,0,0,.18) 34%, transparent 43%, transparent 57%, rgba(0,0,0,.18) 66%, #000 82%, #000 100%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .43;
  background-image:
    radial-gradient(circle, rgba(222,202,169,.12) .48px, transparent .72px),
    radial-gradient(circle, rgba(157,107,234,.075) .45px, transparent .7px),
    linear-gradient(90deg, rgba(198,170,125,.022) 1px, transparent 1px),
    linear-gradient(rgba(198,170,125,.018) 1px, transparent 1px);
  background-size: 5px 5px, 11px 11px, 96px 96px, 96px 96px;
  background-position: 0 0, 3px 5px, 0 0, 0 0;
  mix-blend-mode: screen;
}

.site-shell {
  position: relative;
  isolation: isolate;
}
.site-shell::before,
.site-shell::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 80;
}
.site-shell::before {
  inset: 12px;
  border: 1px solid rgba(198,170,125,.24);
  box-shadow: inset 0 0 0 5px rgba(198,170,125,.018);
}
.site-shell::after {
  inset: 20px;
  background:
    linear-gradient(var(--gold),var(--gold)) 0 0 / 54px 1px no-repeat,
    linear-gradient(var(--gold),var(--gold)) 0 0 / 1px 54px no-repeat,
    linear-gradient(var(--gold),var(--gold)) 100% 0 / 54px 1px no-repeat,
    linear-gradient(var(--gold),var(--gold)) 100% 0 / 1px 54px no-repeat,
    linear-gradient(var(--gold),var(--gold)) 0 100% / 54px 1px no-repeat,
    linear-gradient(var(--gold),var(--gold)) 0 100% / 1px 54px no-repeat,
    linear-gradient(var(--gold),var(--gold)) 100% 100% / 54px 1px no-repeat,
    linear-gradient(var(--gold),var(--gold)) 100% 100% / 1px 54px no-repeat;
  opacity: .42;
}

.content,
.site-footer {
  width: min(1320px, calc(100% - 4.5rem));
}

.page-file {
  position: relative;
  border-left: 1px solid rgba(198,170,125,.22);
  border-right: 1px solid rgba(198,170,125,.22);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(157,107,234,.035), transparent 38rem),
    linear-gradient(180deg, rgba(9,8,6,.76), rgba(4,4,3,.90));
  box-shadow:
    0 0 100px rgba(0,0,0,.56),
    inset 0 0 120px rgba(0,0,0,.24);
}
.page-file::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    url("renaissance-botanical.webp") -180px 570px / 470px auto no-repeat,
    url("renaissance-column.webp") calc(100% + 150px) 920px / 430px auto no-repeat,
    url("renaissance-angel.webp") -170px calc(100% - 250px) / 430px auto no-repeat;
  opacity: .17;
  filter: contrast(1.15);
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 4rem, #000 12rem, #000 calc(100% - 8rem), transparent 100%);
}
.page-file::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(198,170,125,.07);
  pointer-events: none;
}

.file-bar {
  min-height: 82px;
  padding: 0 1.25rem;
  border-bottom: 1px solid rgba(198,170,125,.20);
  background:
    linear-gradient(90deg, rgba(198,170,125,.04), transparent 24%, transparent 76%, rgba(198,170,125,.04)),
    rgba(5,5,4,.91);
  backdrop-filter: blur(18px) saturate(.72);
}
.file-bar::before {
  content: "";
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent 22%, transparent 78%, var(--gold));
  opacity: .35;
}
.file-bar::after {
  content: "✦";
  position: absolute;
  left: 50%;
  bottom: -.72rem;
  transform: translateX(-50%);
  padding: 0 .55rem;
  color: var(--gold);
  background: #050504;
  font-size: .68rem;
  opacity: .65;
}
.site-wordmark {
  color: var(--gold-bright);
  letter-spacing: .55em;
  font-family: var(--serif);
  font-size: 1rem;
  text-shadow: 0 0 20px rgba(198,170,125,.12);
}
.site-wordmark::before {
  content: "✦";
  display: inline-block;
  margin-right: 1rem;
  color: var(--gold);
  font-size: .7rem;
  vertical-align: .15em;
}
.file-nav a { color: #aa9a82; }
.file-nav a:hover { color: var(--gold-bright); }
.file-nav a[aria-current="page"] { color: var(--accent-bright); }
.file-nav a[aria-current="page"]::after {
  background: var(--accent);
  box-shadow: 0 0 14px rgba(157,107,234,.34);
}
.nav-mark {
  border-color: var(--accent-bright);
  background: rgba(157,107,234,.25);
}

.file-inner { padding-inline: clamp(1.2rem, 3vw, 3.2rem); }

h1, h2, h3 { color: var(--text-bright); }
h1, h2 {
  text-shadow: 0 1px 0 rgba(0,0,0,.8), 0 0 24px rgba(198,170,125,.035);
}
.label, .kicker { color: var(--gold); }
.section-index { color: var(--accent-bright); }
.ink-rule {
  background: linear-gradient(90deg, var(--accent), transparent);
  width: 44px;
}
.lead { color: #c8baa4; }

/* Hero composition mirrors the approved Renaissance mockup. */
.home-hero {
  min-height: 760px;
  grid-template-columns: minmax(420px, 1.08fr) minmax(280px, .72fr) minmax(305px, .80fr);
  gap: clamp(1.8rem, 4vw, 4rem);
  padding-top: clamp(3rem, 5vw, 5rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 32%;
  background:
    radial-gradient(circle at 55% 22%, transparent 0 10%, rgba(198,170,125,.09) 10.2% 10.4%, transparent 10.6% 17%, rgba(157,107,234,.07) 17.2% 17.4%, transparent 17.6%),
    repeating-radial-gradient(circle at 55% 38%, transparent 0 47px, rgba(198,170,125,.035) 48px 49px);
  opacity: .8;
  pointer-events: none;
}
.home-hero::after {
  content: "Fig. I";
  position: absolute;
  right: 31%;
  top: 1.8rem;
  color: var(--gold);
  font: italic .72rem var(--serif);
  letter-spacing: .08em;
  opacity: .65;
}
.home-hero .hero-copy { z-index: 4; }
.home-hero h1 {
  font-size: clamp(4.25rem, 6.7vw, 7.3rem);
  line-height: .90;
}
.hero-art {
  position: relative;
  left: auto;
  top: auto;
  width: auto;
  height: 650px;
  min-height: 650px;
  z-index: 1;
  align-self: stretch;
  background: url("renaissance-botanical.webp") 48% 68% / 88% auto no-repeat;
  opacity: .86;
  filter: contrast(1.09) sepia(.06);
  mask-image: radial-gradient(ellipse at 50% 52%, #000 34%, rgba(0,0,0,.9) 60%, transparent 85%);
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 10% 6% 7%;
  border: 1px solid rgba(198,170,125,.09);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 42px rgba(198,170,125,.012),
    inset 0 0 0 86px rgba(157,107,234,.009);
}

.profile-board {
  min-height: 570px;
  border: 1px solid rgba(198,170,125,.38);
  outline: 1px solid rgba(198,170,125,.08);
  outline-offset: -9px;
  background: rgba(5,5,4,.70);
}
.profile-board::before {
  content: "✦";
  width: auto;
  height: auto;
  top: .55rem;
  left: .8rem;
  right: auto;
  border: 0;
  transform: none;
  color: var(--gold);
  background: transparent;
  font-size: .7rem;
}
.profile-board::after {
  content: "Fig. II";
  position: absolute;
  right: 1.1rem;
  top: .7rem;
  color: var(--gold);
  font: italic .66rem var(--serif);
  letter-spacing: .08em;
  opacity: .62;
  border: 0;
}
.profile-art {
  position: relative;
  inset: auto;
  height: 285px;
  border-bottom: 1px solid rgba(198,170,125,.18);
  background:
    radial-gradient(circle at 50% 45%, transparent 0 34%, rgba(198,170,125,.14) 34.5% 34.8%, transparent 35.2%),
    linear-gradient(180deg, transparent 55%, rgba(5,5,4,.88)),
    url("renaissance-bust.webp") center 25% / 95% auto no-repeat;
  opacity: .90;
  filter: contrast(1.08);
  mask-image: linear-gradient(to bottom, #000 0 84%, transparent 100%);
}
.profile-copy {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  padding: 1.45rem 1.55rem 1.65rem;
  background: linear-gradient(180deg, rgba(5,5,4,.32), rgba(5,5,4,.94));
}
.profile-name { color: var(--gold-bright); }
.profile-role { color: var(--accent-bright); }
.profile-divider { background: linear-gradient(90deg, var(--line), transparent); }
.profile-list li::before { color: var(--accent); }

/* Ornamental section framework. */
.section {
  margin-top: clamp(3rem, 6vw, 6rem);
  padding-top: clamp(2rem, 4vw, 3rem);
}
.section:not(.focus-panel):not(.working-section)::before {
  background: linear-gradient(90deg, var(--gold), transparent 30%, transparent 70%, var(--gold));
  opacity: .38;
}
.section-head::before { background: linear-gradient(var(--accent), transparent 75%); }
.section-head::after { background: var(--bg); }

.focus-panel,
.working-section {
  border: 1px solid rgba(198,170,125,.29);
  outline: 1px solid rgba(198,170,125,.06);
  outline-offset: -8px;
  background:
    linear-gradient(90deg, rgba(198,170,125,.025), transparent 35%, transparent 70%, rgba(157,107,234,.025)),
    rgba(5,5,4,.58);
}
.focus-panel::after,
.working-section::after {
  border-color: var(--gold);
}
.focus-panel {
  grid-template-columns: minmax(275px,.9fr) minmax(420px,1.22fr) 210px;
}
.focus-panel::before {
  background-image:
    linear-gradient(90deg, rgba(198,170,125,.03) 1px, transparent 1px),
    linear-gradient(rgba(198,170,125,.025) 1px, transparent 1px),
    radial-gradient(circle, rgba(157,107,234,.16) 0 1px, transparent 1.5px);
}
.focus-art {
  right: -15px;
  bottom: -65px;
  width: 285px;
  height: 470px;
  background: url("renaissance-column.webp") center / contain no-repeat;
  opacity: .58;
  filter: contrast(1.12);
  mask-image: linear-gradient(to left, #000 64%, transparent 100%);
}
.focus-grid li { border-bottom-color: rgba(198,170,125,.12); }

.home-projects { gap: 1.15rem; }
.case-row {
  min-height: 300px;
  border: 1px solid rgba(198,170,125,.30);
  outline: 1px solid rgba(198,170,125,.05);
  outline-offset: -7px;
  background: rgba(5,5,4,.54);
}
.case-row::before {
  content: "";
  width: 7px;
  height: 7px;
  top: .8rem;
  left: .8rem;
  border: 1px solid var(--accent);
  background: transparent;
}
.case-row::after {
  opacity: .18;
  width: 220px;
  height: 250px;
  right: -40px;
  bottom: -65px;
  background: url("renaissance-column.webp") center / contain no-repeat;
  mask-image: radial-gradient(ellipse, #000 30%, transparent 76%);
}
.case-row:nth-child(2)::after {
  background-image: url("renaissance-vitruvian.webp");
  transform: none;
  opacity: .16;
}
.case-row:nth-child(3)::after {
  background-image: url("renaissance-botanical.webp");
  transform: none;
  opacity: .18;
}
.case-row:hover {
  border-color: rgba(181,140,255,.54);
  background: rgba(15,11,18,.64);
  box-shadow: 0 18px 50px rgba(0,0,0,.32);
}
.case-number { color: var(--gold); }
.status.complete { color: var(--gold-bright); }

.working-section {
  overflow: hidden;
}
.working-section::before {
  left: -75px;
  bottom: -70px;
  width: 340px;
  height: 410px;
  background: url("renaissance-angel.webp") center / contain no-repeat;
  opacity: .28;
  filter: contrast(1.10);
}
.working-section::after {
  content: "Fig. V";
  width: auto;
  height: auto;
  right: 1.2rem;
  top: 1rem;
  border: 0;
  color: var(--gold);
  font: italic .66rem var(--serif);
  letter-spacing: .08em;
}
.working-grid { padding-left: clamp(0rem, 11vw, 10rem); }
.work-symbol {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(198,170,125,.32);
  border-radius: 50%;
  color: var(--gold-bright);
  background: radial-gradient(circle, rgba(157,107,234,.05), transparent 64%);
}
.work-symbol::after { border-color: var(--accent); }

/* Secondary pages retain the same visual grammar. */
body:not([data-page="home"]) .hero {
  border-bottom: 1px solid var(--line);
}
body:not([data-page="home"]) .hero::after {
  right: -6rem;
  bottom: -10rem;
  width: 560px;
  height: 650px;
  background:
    url("renaissance-column.webp") 75% 30% / 62% auto no-repeat,
    url("renaissance-botanical.webp") 25% 80% / 55% auto no-repeat;
  opacity: .22;
  filter: contrast(1.1);
}
body[data-page="resume"] .hero::after {
  background:
    url("renaissance-bust.webp") 75% 15% / 65% auto no-repeat,
    url("renaissance-botanical.webp") 25% 82% / 55% auto no-repeat;
}

.signal-board, .card, .project-card, .callout, .resume-block, .template, .stat, .asset-card {
  border: 1px solid rgba(198,170,125,.24);
  outline: 1px solid rgba(198,170,125,.045);
  outline-offset: -6px;
  background: rgba(5,5,4,.62);
}
.card::before, .resume-block::before, .asset-card::before {
  border-color: var(--gold);
}
.board-head { background: linear-gradient(90deg, rgba(198,170,125,.07), transparent); }
.board-head::after { background: repeating-linear-gradient(90deg, var(--line) 0 2px, transparent 2px 7px); }
.board-row { border-bottom-color: rgba(198,170,125,.12); }

.asset-table-wrap,
.diagram {
  border: 1px solid rgba(198,170,125,.26);
  outline: 1px solid rgba(198,170,125,.045);
  outline-offset: -6px;
  background: rgba(4,4,3,.70);
}
.asset-table-wrap::before,
.diagram::before {
  border-color: var(--gold);
}
.asset-table th { color: var(--gold); background: rgba(198,170,125,.04); }
.asset-table th,
.asset-table td { border-bottom-color: rgba(198,170,125,.10); }
input[type="search"] {
  background:
    linear-gradient(var(--gold),var(--gold)) 0 100% / 100% 1px no-repeat,
    linear-gradient(90deg, rgba(198,170,125,.07), transparent 45%);
}
pre {
  color: #d8c8ae;
  border: 1px solid rgba(198,170,125,.18);
  background: rgba(3,3,2,.76);
}

.site-footer-inner {
  border: 1px solid rgba(198,170,125,.22);
  padding: 1.25rem 1.35rem;
  background: rgba(5,5,4,.60);
}
.site-footer::before {
  background: url("renaissance-vitruvian.webp") center / contain no-repeat;
  opacity: .14;
}
.site-footer a:hover { color: var(--gold-bright); }

@media (max-width: 1120px) {
  .home-hero {
    grid-template-columns: minmax(360px,1fr) minmax(290px,.7fr);
  }
  .hero-art {
    position: absolute;
    inset: 8rem 24% 0 25%;
    width: auto;
    height: auto;
    min-height: 0;
    opacity: .48;
  }
  .home-hero .hero-copy,
  .home-hero .profile-board { position: relative; z-index: 3; }
  .focus-panel { grid-template-columns: minmax(250px,.9fr) minmax(380px,1.18fr); }
  .focus-art { opacity: .26; }
  .working-grid { padding-left: 7rem; }
}

@media (max-width: 900px) {
  .content, .site-footer { width: min(100% - 2rem, 1320px); }
  .page-file::before {
    background-position: -250px 760px, calc(100% + 210px) 1350px, -220px calc(100% - 150px);
    opacity: .13;
  }
  .home-hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-art {
    position: relative;
    inset: auto;
    min-height: 460px;
    opacity: .70;
    order: 2;
  }
  .profile-board { max-width: 620px; min-height: auto; }
  .profile-copy { position: relative; }
  .focus-panel { grid-template-columns: 1fr; }
  .focus-art { right: -90px; opacity: .20; }
  .working-grid { padding-left: 5rem; grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 640px) {
  .site-shell::before { inset: 5px; }
  .site-shell::after { inset: 10px; opacity: .25; }
  .content, .site-footer { width: min(100% - .8rem, 1320px); }
  .file-bar { padding-inline: .8rem; }
  .file-inner { padding-inline: 1rem; }
  .site-wordmark { letter-spacing: .30em; }
  .site-wordmark::before { margin-right: .55rem; }
  .home-hero h1 { font-size: clamp(3.2rem, 15vw, 4.7rem); }
  .hero-art { min-height: 380px; }
  .profile-art { height: 230px; }
  .focus-art { display: none; }
  .working-section::before { opacity: .13; left: -165px; }
  .working-grid { padding-left: 0; grid-template-columns: 1fr; }
  .page-file::before { opacity: .09; }
  body::before { opacity: .42; }
}

/* ========================================================================== 
   LOW SIGNAL — DITHERED RENAISSANCE EDGE INTEGRATION
   The artwork is now a pair of structural side rails that overlap the frame,
   fade into the page, and leave a quiet, high-contrast reading column.
   ========================================================================== */

:root {
  --frame-max: 1180px;
}

body {
  background:
    radial-gradient(ellipse at 50% -12%, rgba(157,107,234,.065), transparent 38rem),
    radial-gradient(ellipse at 50% 48%, rgba(198,170,125,.025), transparent 54rem),
    linear-gradient(180deg, #0a0807 0%, #050403 54%, #020202 100%);
}

/* Keep only the dither and registration texture on the body itself. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: .30;
  filter: none;
  mask-image: none;
  background:
    radial-gradient(circle at 50% 28%, rgba(198,170,125,.05), transparent 36rem),
    radial-gradient(circle, rgba(222,202,169,.12) .48px, transparent .75px),
    radial-gradient(circle, rgba(157,107,234,.075) .46px, transparent .72px);
  background-size: auto, 6px 6px, 13px 13px;
  background-position: center, 0 0, 3px 5px;
  mix-blend-mode: screen;
}

/* The side artwork is no longer a wallpaper. These fixed rails define the
   page perimeter and deliberately overlap the central frame by a small amount. */
.site-shell::before,
.site-shell::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  border: 0;
  box-shadow: none;
  opacity: .92;
  filter: contrast(1.08) saturate(.88);
  background-repeat: no-repeat;
  background-size: auto 100vh;
}

.site-shell::before {
  left: 0;
  right: auto;
  width: max(350px, calc((100vw - var(--frame-max)) / 2 + 235px));
  background-image: url("renaissance-edge-left.webp");
  background-position: left center;
  mask-image: linear-gradient(90deg, #000 0%, #000 52%, rgba(0,0,0,.78) 72%, rgba(0,0,0,.20) 90%, transparent 100%);
}

.site-shell::after {
  right: 0;
  left: auto;
  width: max(350px, calc((100vw - var(--frame-max)) / 2 + 235px));
  background-image: url("renaissance-edge-right.webp");
  background-position: right center;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.20) 10%, rgba(0,0,0,.78) 28%, #000 48%, #000 100%);
}

.content,
.site-footer {
  position: relative;
  z-index: 2;
  width: min(var(--frame-max), calc(100% - 3rem));
}

/* The center is an actual illuminated reading plate, not an opaque black box.
   The outer 8% remains slightly translucent so the etched rails bleed into it. */
.page-file {
  position: relative;
  isolation: isolate;
  border-left: 1px solid rgba(198,170,125,.30);
  border-right: 1px solid rgba(198,170,125,.30);
  background:
    linear-gradient(90deg,
      rgba(8,7,6,.68) 0%,
      rgba(7,6,5,.88) 7%,
      rgba(5,4,3,.965) 16%,
      rgba(4,4,3,.985) 50%,
      rgba(5,4,3,.965) 84%,
      rgba(7,6,5,.88) 93%,
      rgba(8,7,6,.68) 100%);
  box-shadow:
    0 0 0 1px rgba(198,170,125,.055),
    0 0 90px rgba(0,0,0,.72),
    0 0 180px rgba(0,0,0,.40),
    inset 0 0 105px rgba(0,0,0,.22);
  backdrop-filter: blur(1.4px) saturate(.82);
}

/* Matching fragments continue just inside the frame, linking the edge art to
   the section system without reducing text contrast. */
.page-file::before {
  content: "";
  position: absolute;
  inset: 0 -54px;
  z-index: -1;
  pointer-events: none;
  opacity: .18;
  filter: contrast(1.08) saturate(.82);
  background:
    url("renaissance-edge-left.webp") left 160px / 380px auto no-repeat,
    url("renaissance-edge-right.webp") right 980px / 380px auto no-repeat,
    url("renaissance-edge-left.webp") left calc(100% - 920px) / 330px auto no-repeat,
    url("renaissance-edge-right.webp") right calc(100% - 260px) / 330px auto no-repeat;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.60) 9%, transparent 24%, transparent 76%, rgba(0,0,0,.60) 91%, #000 100%);
}

.page-file::after {
  content: "";
  position: absolute;
  inset: 9px;
  z-index: 5;
  border: 1px solid rgba(198,170,125,.085);
  pointer-events: none;
  box-shadow:
    inset 0 0 0 4px rgba(198,170,125,.012),
    inset 0 0 54px rgba(198,170,125,.012);
}

.file-bar {
  background:
    linear-gradient(90deg, rgba(198,170,125,.075), transparent 18%, transparent 82%, rgba(198,170,125,.075)),
    rgba(5,5,4,.88);
}

/* Section rules extend into the translucent frame edge, visually stitching
   the content architecture to the surrounding engravings. */
.section:not(.focus-panel):not(.working-section)::before {
  left: -1.25rem;
  right: -1.25rem;
  background: linear-gradient(90deg,
    rgba(198,170,125,.08),
    var(--gold) 4%,
    transparent 31%,
    transparent 69%,
    var(--gold) 96%,
    rgba(198,170,125,.08));
  opacity: .46;
}

.focus-panel,
.working-section,
.case-row,
.signal-board,
.card,
.resume-block,
.asset-card,
.diagram,
.asset-table-wrap {
  box-shadow:
    0 12px 42px rgba(0,0,0,.18),
    inset 0 0 38px rgba(198,170,125,.012);
}

/* The outer art should frame—not compete with—the page on normal laptops. */
@media (max-width: 1320px) {
  .site-shell::before,
  .site-shell::after {
    width: 330px;
    opacity: .68;
  }
  .content,
  .site-footer {
    width: min(var(--frame-max), calc(100% - 2rem));
  }
}

@media (max-width: 1040px) {
  .site-shell::before,
  .site-shell::after {
    opacity: .32;
    width: 280px;
  }
  .page-file::before { opacity: .11; }
}

@media (max-width: 900px) {
  .site-shell::before,
  .site-shell::after {
    display: none;
  }
  .content,
  .site-footer {
    width: min(100% - 1.25rem, var(--frame-max));
  }
  .page-file {
    background: linear-gradient(180deg, rgba(6,5,4,.95), rgba(3,3,2,.98));
  }
  .page-file::before {
    inset: 0;
    opacity: .08;
    background:
      url("renaissance-edge-right.webp") calc(100% + 120px) 120px / 320px auto no-repeat,
      url("renaissance-edge-left.webp") -140px calc(100% - 650px) / 300px auto no-repeat;
    mask-image: linear-gradient(to bottom, #000, transparent 42%, transparent 70%, #000);
  }
}

@media (max-width: 640px) {
  .content,
  .site-footer { width: min(100% - .7rem, var(--frame-max)); }
  .page-file { border-color: rgba(198,170,125,.19); }
  .page-file::before { opacity: .055; }
}
