/*
Theme Name: GNDN HUD
Theme URI: https://dev.gndn.me/
Author: GNDN
Author URI: https://dev.gndn.me/
Description: Matrix-HUD portfolio theme for gndn.me. Black hairline linework on warm near-white paper, reading as an architectural blueprint. Horizontal panorama layout with five panels (NODE / INDEX / PROFILE / TRANSMIT / CONTACT).
Version: 0.1.0
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gndn-hud
Tags: portfolio, one-column, custom-colors, custom-menu, custom-logo, block-styles, full-site-editing
*/

:root {
  --paper: #f1ede4;
  --paper-2: #ece6d9;
  --paper-bar: #f6f3ec;
  --ink: #0a0a0a;
  --ink-2: #2a2a28;
  --rule: rgba(10,10,10,0.85);
  --rule-2: rgba(10,10,10,0.35);
  --rule-3: rgba(10,10,10,0.18);
  --depth-1: rgba(10,10,10,0.06);
  --depth-2: rgba(10,10,10,0.08);
  --depth-3: rgba(10,10,10,0.10);
  --accent: oklch(0.55 0.18 25);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --display-style: normal;
  --display-weight: 600;
  --display-tracking: 0.02em;
  --display-case: uppercase;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter Tight", system-ui, -apple-system, sans-serif;
  --hair: 0.75px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02";
  overflow-x: hidden;
  transition: background .25s ease, color .25s ease;
}

body.theme-dark {
  --paper: #0d0d0c;
  --paper-2: #161614;
  --paper-bar: #18181a;
  --ink: #ebe7dc;
  --ink-2: #c8c4b8;
  --rule: rgba(235,231,220,0.85);
  --rule-2: rgba(235,231,220,0.35);
  --rule-3: rgba(235,231,220,0.18);
  --depth-1: rgba(235,231,220,0.06);
  --depth-2: rgba(235,231,220,0.08);
  --depth-3: rgba(235,231,220,0.10);
}
body.theme-dark .pd-scrim { background: rgba(13,13,12,0.85); }
body.theme-dark .work-tile { background: rgba(255,255,255,0.025); }
body.theme-dark .submit { background: var(--ink); color: var(--paper); }
body.theme-dark .link-btn { background: var(--ink); color: var(--paper); }

.paper {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background-image: var(--paper-tex, none);
  mix-blend-mode: multiply;
  opacity: var(--grain-op, 0);
}
.frame-marks {
  position: fixed; inset: 14px; pointer-events: none; z-index: 2;
  color: var(--ink);
}
.frame-marks .fm { position: absolute; width: 16px; height: 16px; }
.frame-marks .tl { top: 0; left: 0; }
.frame-marks .tr { top: 0; right: 0; }
.frame-marks .bl { bottom: 0; left: 0; }
.frame-marks .br { bottom: 0; right: 0; }

.cursor-cross {
  position: fixed; pointer-events: none; z-index: 9000;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px;
  opacity: .9;
  mix-blend-mode: multiply;
}
/* multiply darkens, which kills a light stroke on a dark background.
   Swap to screen in dark mode so the crosshair brightens against the ink. */
body.theme-dark .cursor-cross { mix-blend-mode: screen; }
.cursor-cross svg { display: block; }

.sys-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--paper-bar);
  border-bottom: var(--hair) solid var(--rule);
  box-shadow: 0 1px 0 var(--rule-3);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .04em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.sys-bar-inner {
  max-width: 100%; margin: 0;
  padding: 10px 28px;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 24px;
}
.sys-bar-l { display: flex; align-items: center; }
.sys-bar-c { text-align: center; display: flex; justify-content: center; align-items: center; gap: 14px; }
.sys-bar-r { text-align: right; display: flex; justify-content: flex-end; align-items: center; gap: 14px; }

.theme-btn {
  appearance: none; background: transparent; border: var(--hair) solid var(--rule);
  color: inherit; font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  padding: 4px 10px; cursor: default; display: inline-flex; align-items: center; gap: 6px;
}
.theme-btn:hover { border-color: var(--accent); color: var(--accent); }
.theme-btn .dot {
  width: 8px; height: 8px; border-radius: 50%; border: var(--hair) solid currentColor;
  background: var(--ink);
}
body.theme-dark .theme-btn .dot { background: var(--paper); }

.sec-head {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: end; gap: 24px;
  padding: 30px 0 22px;
  border-bottom: var(--hair) solid var(--rule);
  margin-bottom: 28px;
}
.sec-head-l { display: flex; align-items: baseline; gap: 14px; }
.sec-head-c { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-align: center; }
.sec-head-r { display: flex; justify-content: flex-end; }
.sec-title {
  font-family: var(--display);
  font-style: var(--display-style);
  font-weight: var(--display-weight);
  font-size: clamp(40px, 4.4vw, 64px); margin: 0; line-height: 0.95;
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-case);
}
.sec-title .dot { font-style: normal; opacity: .55; font-family: var(--mono); font-size: 0.5em; text-transform: none; letter-spacing: 0; }

.wrap {
  position: relative; z-index: 5;
  display: flex;
  flex-direction: row;
  width: 100vw;
  height: 100vh;
  padding-top: 54px;
  padding-bottom: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.wrap::-webkit-scrollbar { display: none; }

.wrap > section {
  flex: 0 0 100vw;
  width: 100vw;
  height: calc(100vh - 54px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow-y: auto;
  overflow-x: hidden;
  /* right: 220px to clear the compass dial at bottom-right;
     bottom: 64px so last content row clears it vertically. */
  padding: 18px 220px 64px 56px;
  box-sizing: border-box;
  position: relative;
  border-right: var(--hair) solid var(--rule-3);
}
.wrap > section:last-child { border-right: 0; }

.scroll-progress {
  position: fixed;
  left: 0; right: 0; top: 54px;
  height: 3px;
  background: var(--rule-3);
  z-index: 49;
  pointer-events: none;
}
.scroll-progress > i {
  display: block; height: 100%;
  background: var(--accent);
  transform-origin: left center;
  transition: transform .15s ease-out;
}

.depth-bg {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.depth-layer {
  position: absolute; inset: -40% -40%;
  will-change: transform;
}
.depth-layer svg { width: 100%; height: 100%; display: block; }
.depth-l1 { opacity: 0.28; filter: blur(0.4px); }
.depth-l2 { opacity: 0.42; filter: blur(0.2px); }
.depth-l3 { opacity: 0.55; }
body.theme-dark .depth-l1 { opacity: 0.16; }
body.theme-dark .depth-l2 { opacity: 0.22; }
body.theme-dark .depth-l3 { opacity: 0.32; }

.compass {
  position: fixed; right: 24px; bottom: 24px;
  width: 168px; height: 168px;
  z-index: 60;
  pointer-events: auto;
  font-family: var(--mono); font-size: 9px; letter-spacing: .12em;
}
.compass-trigger {
  position: absolute; inset: 0;
  background: transparent; border: 0; padding: 0;
  cursor: default; color: inherit;
  border-radius: 50%;
}
.compass-ring { position: absolute; inset: 0; pointer-events: none; }
.compass-needle {
  position: absolute; top: 50%; left: 50%;
  width: 78px; height: 1px;
  background: linear-gradient(to right, transparent, var(--accent) 75%, var(--accent));
  transform-origin: 0 50%;
  transition: transform .35s cubic-bezier(.5,.05,.3,1);
  pointer-events: none;
}
.compass-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  text-align: center;
  font-family: var(--mono); font-size: 8px; letter-spacing: .14em;
  pointer-events: none;
}
.compass-center b { font-size: 12px; display: block; letter-spacing: .12em; }
.compass-center i { font-style: normal; opacity: .55; display: block; margin-top: 2px; }
.compass-caret {
  position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 8px; opacity: .55; letter-spacing: .14em;
  pointer-events: none;
}

.menu-dd {
  position: fixed;
  z-index: 80;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  background: var(--paper-bar);
  border: var(--hair) solid var(--rule);
  box-shadow: 0 4px 0 -2px var(--rule-3), 0 10px 24px rgba(0,0,0,0.06);
  min-width: 220px;
  padding: 14px 0 10px;
  animation: ddIn .18s cubic-bezier(.2,.6,.2,1);
}
body.theme-dark .menu-dd { box-shadow: 0 4px 0 -2px var(--rule-3), 0 10px 24px rgba(0,0,0,0.6); }
@keyframes ddIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.menu-dd[hidden] { display: none; }

.menu-dd::before, .menu-dd::after {
  content: ""; position: absolute; top: -1px; width: 14px; height: 14px;
  border: var(--hair) solid var(--ink);
  pointer-events: none;
}
.menu-dd::before { left: -1px; border-right: 0; border-bottom: 0; }
.menu-dd::after  { right: -1px; border-left: 0; border-bottom: 0; }

.menu-dd-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0 14px 10px;
  border-bottom: var(--hair) dashed var(--rule-2);
  margin-bottom: 6px;
}
.menu-dd-head b { font-weight: 500; opacity: .55; }
.menu-dd-head i { font-style: normal; opacity: .35; }

.menu-dd-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center; gap: 10px;
  padding: 8px 14px;
  color: inherit; text-decoration: none;
  cursor: default;
}
.menu-dd-item:hover { background: rgba(10,10,10,0.05); color: var(--accent); }
body.theme-dark .menu-dd-item:hover { background: rgba(235,231,220,0.06); }
.menu-dd-item .n { opacity: .5; }
.menu-dd-item .l { font-family: var(--display); font-style: var(--display-style); font-weight: var(--display-weight);
  font-size: 22px; letter-spacing: var(--display-tracking); text-transform: var(--display-case); }
.menu-dd-item .arr { opacity: .35; }
.menu-dd-item.is-active { background: var(--ink); color: var(--paper); }
.menu-dd-item.is-active .n { opacity: .65; }
.menu-dd-item.is-active .arr::before { content: "▸ "; color: var(--accent); }

.menu-dd-foot {
  padding: 10px 14px 0;
  border-top: var(--hair) dashed var(--rule-2);
  margin-top: 6px;
  display: flex; justify-content: space-between;
  font-size: 9px; opacity: .55;
}

.sys-section-btn {
  appearance: none; background: transparent; border: 0; padding: 2px 8px;
  color: inherit; font: inherit; letter-spacing: .18em; cursor: default;
  display: inline-flex; align-items: center; gap: 8px;
  border-left: var(--hair) solid var(--rule-3);
  border-right: var(--hair) solid var(--rule-3);
}
.sys-section-btn:hover { color: var(--accent); }
.sys-section-btn .caret { font-size: 9px; opacity: .55; }
.sys-section-btn[aria-expanded="true"] { background: rgba(10,10,10,0.04); color: var(--accent); }
body.theme-dark .sys-section-btn[aria-expanded="true"] { background: rgba(235,231,220,0.04); }

.contact-mask {
  position: absolute;
  inset: 60px 36px 56px 36px;
  pointer-events: none;
  background: var(--paper-bar);
  border: var(--hair) solid var(--rule-3);
  opacity: 0;
  transition: opacity .25s ease-out;
  z-index: 0;
}
.contact-mask::before, .contact-mask::after {
  content: "";
  position: absolute; width: 12px; height: 12px;
  border: var(--hair) solid var(--ink);
}
.contact-mask::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.contact-mask::after  { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
body.theme-dark .contact-mask { background: var(--paper-bar); }
.contact > *:not(.contact-mask) { position: relative; z-index: 1; }

.ring-labels { display: none; }

.hero {
  position: relative;
  padding: 24px 0 30px;
  min-height: auto;
  display: flex; flex-direction: column;
}
.hero-top {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: start;
  padding-bottom: 18px;
}
.anno-l { font-family: var(--mono); font-size: 10px; }
.anno-c { text-align: center; }
.anno-c > * + * { margin-left: 0; }
.anno-r { display: flex; justify-content: flex-end; }
.hero-stage {
  flex: 1;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px;
  align-items: center;
  padding: 30px 0;
}
.hero-left, .hero-right {
  align-self: stretch;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-right { align-items: flex-end; }

.hero-center {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hero-mark { text-align: center; }
.hero-mark-tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em; opacity: .55; margin-bottom: 6px;
}
.hero-name {
  font-family: var(--display);
  font-style: var(--display-style);
  font-weight: var(--display-weight);
  font-size: clamp(82px, 11vw, 168px);
  line-height: 0.88; margin: 0;
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-case);
}
.hero-name .dot { font-family: var(--mono); font-size: 0.35em; opacity: .55; vertical-align: 0.5em; text-transform: none; letter-spacing: 0; }
.hero-sub {
  font-family: var(--mono); font-size: 10px; letter-spacing: .25em; margin-top: 10px; opacity: .65;
}

.bio-strip { max-width: 260px; }
.bio-label { font-family: var(--mono); font-size: 10px; letter-spacing: .15em; opacity: .55; margin-bottom: 10px; }
.bio-text {
  font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.35;
  margin: 0 0 14px 0;
}
.bio-text .drop {
  font-family: var(--mono); font-weight: 600; font-size: 0.78em; letter-spacing: .1em;
  border: var(--hair) solid var(--ink); padding: 1px 5px; margin-right: 4px; vertical-align: 2px;
}
.bio-text em { font-style: italic; }
.bio-meta {
  display: flex; gap: 14px; font-family: var(--mono); font-size: 9px; opacity: .55; letter-spacing: .08em;
}

.signal-block { width: 260px; }
.signal-head {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; margin-bottom: 4px;
}
.signal-row {
  display: grid; grid-template-columns: repeat(5, 1fr);
  font-family: var(--mono); font-size: 9px;
  border-top: var(--hair) solid var(--rule);
  margin-top: 4px; padding-top: 4px;
}
.signal-row.dim { opacity: .5; padding-top: 2px; border-top: 0; }
.signal-row > span { text-align: left; }
.signal-row > span:last-child { text-align: right; }

.hero-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0 0; border-top: var(--hair) dashed var(--rule-2);
}
.link-btn {
  appearance: none; background: var(--ink); color: var(--paper);
  border: 0; padding: 9px 14px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  cursor: default; text-decoration: none; display: inline-block;
}
.link-btn span { margin-left: 10px; }
.link-btn:hover { background: var(--accent); }

.indexsec { padding: 24px 0 30px; position: relative; }

.works-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
}
.work {
  position: relative;
  padding: 22px 22px 20px;
  border-right: var(--hair) solid var(--rule-2);
  border-bottom: var(--hair) solid var(--rule-2);
  cursor: default;
  background: transparent;
  transition: background .2s ease;
  display: block; text-decoration: none; color: inherit;
}
.work:nth-child(3n) { border-right: 0; }
.work:hover, .work.is-hover {
  background: rgba(10,10,10,0.025);
}
.work-rm { position: absolute; opacity: 0; transition: opacity .15s ease; }
.work-rm.tl { top: 6px; left: 6px; }
.work-rm.tr { top: 6px; right: 6px; }
.work-rm.bl { bottom: 6px; left: 6px; }
.work-rm.br { bottom: 6px; right: 6px; }
.work:hover .work-rm { opacity: 1; }

.work-head {
  display: flex; justify-content: space-between; gap: 12px;
  margin-bottom: 12px;
}
.work-head-l { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 10px; }
.work-idx { opacity: .45; }
.work-sub { opacity: .55; }

.work-tile {
  position: relative;
  aspect-ratio: 16/10;
  border: var(--hair) solid var(--rule-2);
  background: rgba(255,255,255,0.25);
  margin-bottom: 12px;
  overflow: hidden;
}
.work.accent .work-tile { color: var(--ink); }
.work-tile-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 10px; opacity: 0; transition: opacity .15s ease;
  background: linear-gradient(135deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.04));
}
.work:hover .work-tile-overlay { opacity: 1; }
.work-open {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  border: var(--hair) solid var(--ink); padding: 4px 8px; background: var(--paper);
}

.work-body { margin-bottom: 14px; }
.work-kind { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; opacity: .55; margin-bottom: 4px; }
.work-title {
  font-family: var(--display);
  font-style: var(--display-style);
  font-weight: var(--display-weight);
  font-size: 34px; line-height: 1; margin: 0 0 8px 0;
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-case);
}
.work-blurb { font-family: var(--mono); font-size: 11px; line-height: 1.5; opacity: .8; }

.work-foot { display: flex; gap: 14px; align-items: flex-end; }
.work-tags { display: flex; gap: 4px; align-items: flex-end; flex-wrap: wrap; }

.indexsec-foot { padding-top: 20px; display: flex; justify-content: center; }

.profile { padding: 24px 0 30px; }
.profile-body {
  display: grid; grid-template-columns: 220px 1fr 220px; gap: 36px;
  align-items: start;
}
.profile-marg { position: sticky; top: 50px; }
.profile-marg.right { padding-left: 0; }
.profile-lede {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 34px; line-height: 1.15; margin: 0 0 24px;
  max-width: 32ch; letter-spacing: -0.01em;
}
.rule { height: 0; border-top: var(--hair) solid var(--rule); margin: 18px 0; }
.prose-grid {
  display: grid; grid-template-columns: 140px 1fr; gap: 16px 24px;
  align-items: baseline;
}
.prose-grid h4 {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; font-weight: 600;
  margin: 0; opacity: .65; text-transform: uppercase;
}
.prose-grid p { font-family: var(--mono); font-size: 12px; line-height: 1.6; margin: 0; }
.prose-grid em { font-family: var(--serif); font-style: italic; font-size: 1.1em; }
.cli-list { list-style: none; padding: 0; margin: 0; font-family: var(--mono); font-size: 11px; }
.cli-list li {
  display: flex; justify-content: space-between; padding: 6px 0;
  border-bottom: var(--hair) dashed var(--rule-3);
}
.cli-list li:last-child { border-bottom: 0; }

.transmit { padding: 24px 0 30px; display: flex; flex-direction: column; min-height: 0; }
.tx-controls {
  display: flex; gap: 20px; align-items: center;
  padding: 4px 0 14px;
  border-bottom: var(--hair) dashed var(--rule-3);
  margin-bottom: 6px;
}
.tx-search-wrap {
  display: flex; align-items: center; gap: 10px;
  flex: 0 0 auto; min-width: 280px;
  border-bottom: var(--hair) solid var(--rule-2);
  padding-bottom: 4px;
}
.tx-search-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  opacity: .55;
}
.tx-search {
  appearance: none; background: transparent; border: 0;
  font-family: var(--mono); font-size: 12px; color: inherit;
  padding: 4px 2px;
  outline: none; width: 100%;
}
.tx-search::placeholder { opacity: .35; }
.tx-search-wrap:focus-within { border-bottom-color: var(--accent); }
.tx-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  flex: 1; justify-content: flex-end;
}
.tx-chip {
  appearance: none; background: transparent;
  border: var(--hair) solid var(--rule-2);
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  padding: 3px 8px; cursor: default; color: inherit;
}
.tx-chip:hover { border-color: var(--accent); color: var(--accent); }
.tx-chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.tx-empty { display: flex; align-items: center; padding: 14px 0; }
.tx-empty[hidden] { display: none; }

.tx-list { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.tx {
  display: grid;
  grid-template-columns: 40px 110px 70px 1fr 80px 20px;
  align-items: center; gap: 16px;
  padding: 14px 0;
  text-decoration: none; color: inherit;
  position: relative;
  border-top: var(--hair) solid var(--rule-2);
}
.tx[hidden] { display: none; }
.tx-idx { font-family: var(--mono); font-size: 10px; opacity: .45; font-variant-numeric: tabular-nums; }
.tx:last-of-type { border-bottom: var(--hair) solid var(--rule-2); }
.tx-date { font-family: var(--mono); font-size: 10px; opacity: .55; letter-spacing: .05em; }
.tx-title {
  font-family: var(--display); font-style: var(--display-style); font-weight: var(--display-weight);
  font-size: 28px; line-height: 1; text-wrap: pretty;
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-case);
  margin: 0;
}
.tx-len { font-family: var(--mono); font-size: 10px; opacity: .55; text-align: right; }
.tx-arrow { font-family: var(--mono); font-size: 14px; opacity: .55; }
.tx:hover { background: rgba(10,10,10,0.025); }
.tx:hover .tx-arrow { color: var(--accent); opacity: 1; }
.tx:hover .tx-title { font-style: italic; text-decoration: underline; text-decoration-thickness: 0.75px; text-underline-offset: 6px; }

/* SEE ALL button beside the section title */
.see-all {
  align-self: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  border: var(--hair) solid var(--rule); padding: 4px 10px;
  text-decoration: none; color: inherit;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.see-all:hover { border-color: var(--accent); color: var(--accent); }

.tx-foot { padding-top: 22px; display: flex; justify-content: center; }

/* ── TRANSMISSIONS ARCHIVE (blog page grid) ─────────────────────── */
.tx-archive { max-width: 1200px; margin: 0 auto; }
.tx-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: var(--hair) solid var(--rule-2);
  border-left: var(--hair) solid var(--rule-2);
}
.tx-card {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  border-right: var(--hair) solid var(--rule-2);
  border-bottom: var(--hair) solid var(--rule-2);
  padding: 18px;
  transition: background .2s ease;
}
.tx-card[hidden] { display: none; }
.tx-card:hover { background: rgba(10,10,10,0.025); }
body.theme-dark .tx-card:hover { background: rgba(235,231,220,0.03); }
.tx-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border: var(--hair) solid var(--rule-2);
  overflow: hidden;
  background: rgba(255,255,255,0.18);
  margin-bottom: 14px;
}
body.theme-dark .tx-card-media { background: rgba(255,255,255,0.025); }
.tx-card-media img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.tx-tile-fallback { position: absolute; inset: 0; opacity: .8; }
.tx-tile-fallback svg { width: 100%; height: 100%; }
.tx-card-rm { position: absolute; opacity: 0; transition: opacity .15s ease; z-index: 1; }
.tx-card-rm.tl { top: 6px; left: 6px; }
.tx-card-rm.br { bottom: 6px; right: 6px; }
.tx-card:hover .tx-card-rm { opacity: 1; }
.tx-card-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 9px; letter-spacing: .1em;
  opacity: .55; margin-bottom: 8px;
}
.tx-card-idx { font-variant-numeric: tabular-nums; }
.tx-card-code { opacity: .8; }
.tx-card-len { margin-left: auto; }
.tx-card-title {
  font-family: var(--display); font-style: var(--display-style); font-weight: var(--display-weight);
  font-size: 26px; line-height: 1.02; margin: 0;
  letter-spacing: var(--display-tracking); text-transform: var(--display-case);
}
.tx-card:hover .tx-card-title { color: var(--accent); }

/* Featured image on single transmissions */
.tx-feature {
  margin: 0 0 32px;
  border: var(--hair) solid var(--rule);
}
.tx-feature img { width: 100%; height: auto; display: block; }
.tx-feature-cap {
  display: flex; justify-content: space-between;
  padding: 6px 10px;
  border-top: var(--hair) solid var(--rule-2);
  font-family: var(--mono); font-size: 9px; letter-spacing: .14em; opacity: .65;
}

.contact { padding: 24px 0 40px; }
.contact-body {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: start;
  padding-bottom: 40px;
}
.contact-lede { font-family: var(--serif); font-style: italic; font-size: 28px; line-height: 1.2; margin: 0 0 20px; letter-spacing: -0.005em; }
.contact-rows > div {
  display: flex; justify-content: space-between; padding: 9px 0;
  border-bottom: var(--hair) dashed var(--rule-3);
  font-family: var(--mono); font-size: 11px; letter-spacing: .03em;
}
.contact-rows > div span:first-child { opacity: .55; letter-spacing: .12em; }

.contact-form { width: 100%; }
.form-head {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; opacity: .65;
  margin-bottom: 14px;
}
.form-row { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.form-row label {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; opacity: .55;
}
.form-row input, .form-row textarea {
  appearance: none; background: transparent; border: 0;
  border-bottom: var(--hair) solid var(--rule);
  font-family: var(--mono); font-size: 13px; color: inherit;
  padding: 6px 2px;
  outline: none; resize: none;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--accent); }
.form-foot {
  display: flex; align-items: flex-end; gap: 18px; margin-top: 18px;
  padding-top: 14px; border-top: var(--hair) dashed var(--rule-2);
}
.submit {
  appearance: none; background: var(--ink); color: var(--paper);
  border: 0; padding: 11px 18px; font-family: var(--mono); font-size: 10px; letter-spacing: .18em;
  cursor: default;
}
.submit:hover { background: var(--accent); }

.contact-foot {
  padding-top: 30px; border-top: var(--hair) solid var(--rule);
}
.colophon h4 { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; margin: 0 0 8px; opacity: .55; }
.colophon p { font-family: var(--mono); font-size: 11px; line-height: 1.6; margin: 0; max-width: 60ch; opacity: .85; }

.pd-root { position: fixed; inset: 0; z-index: 200; display: none; }
.pd-root.is-open { display: block; }
.pd-scrim {
  position: absolute; inset: 0;
  background: rgba(241,237,228,0.85);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.pd-sheet {
  position: absolute; inset: 24px;
  background: var(--paper);
  border: var(--hair) solid var(--rule);
  display: grid; grid-template-rows: auto 1fr auto;
  overflow: hidden;
  animation: pdIn 0.28s cubic-bezier(.2,.6,.2,1);
}
@keyframes pdIn { from { opacity: 0; transform: scale(0.985); } to { opacity: 1; transform: none; } }

.pd-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px; border-bottom: var(--hair) solid var(--rule);
}
.pd-head-l { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; }
.pd-sub { opacity: .55; }
.pd-kind { opacity: .55; letter-spacing: .14em; }
.pd-close {
  appearance: none; background: transparent; border: var(--hair) solid var(--ink);
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; padding: 6px 12px;
  cursor: default;
}
.pd-close:hover { background: var(--ink); color: var(--paper); }

.pd-grid {
  display: grid; grid-template-columns: 200px 1fr 200px; gap: 30px;
  padding: 26px 22px; overflow: auto;
  align-items: start;
}
.pd-left, .pd-right { position: sticky; top: 0; }
.pd-meta {
  display: flex; gap: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; opacity: .55;
  margin-bottom: 8px;
}
.pd-title {
  font-family: var(--display); font-style: var(--display-style); font-weight: var(--display-weight);
  font-size: 76px; line-height: 0.9; margin: 0 0 18px;
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-case);
}
.pd-blurb {
  font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.25; margin: 0 0 16px;
  max-width: 50ch; letter-spacing: -0.005em;
}
.pd-tile {
  border: var(--hair) solid var(--rule);
  position: relative;
}
.pd-tile-meta {
  display: flex; justify-content: space-between;
  padding: 6px 10px;
  border-top: var(--hair) solid var(--rule-2);
  font-family: var(--mono); font-size: 9px; letter-spacing: .14em; opacity: .65;
}
.pd-twocol {
  display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 20px;
}
.pd-twocol h4 { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; margin: 0 0 8px; opacity: .65; }
.pd-twocol p { font-family: var(--mono); font-size: 12px; line-height: 1.55; margin: 0; }

.pd-foot {
  padding: 14px 22px;
  border-top: var(--hair) solid var(--rule);
  display: flex; align-items: center;
}

body.tf-shoulders {
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --display-style: normal; --display-weight: 600;
  --display-tracking: 0.02em; --display-case: uppercase;
}
body.tf-bricolage {
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --display-style: normal; --display-weight: 500;
  --display-tracking: -0.01em; --display-case: none;
}
body.tf-instrument {
  --display: "Instrument Serif", "Times New Roman", serif;
  --display-style: italic; --display-weight: 400;
  --display-tracking: -0.01em; --display-case: none;
}

.sys-menu-btn {
  appearance: none; background: transparent; border: var(--hair) solid var(--ink);
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  padding: 4px 8px; cursor: default; color: inherit;
  display: none;
}

.mob-menu {
  position: fixed; inset: 0; z-index: 60; display: none;
  background: var(--paper); padding: 24px 22px;
  flex-direction: column;
}
.mob-menu.is-open { display: flex; }
.mob-menu-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 18px; border-bottom: var(--hair) solid var(--rule);
}
.mob-menu-list {
  list-style: none; padding: 0; margin: 24px 0 0;
}
.mob-menu-list li {
  border-bottom: var(--hair) solid var(--rule-2);
}
.mob-menu-list a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 0; text-decoration: none; color: inherit;
}
.mob-menu-list .mm-num {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; opacity: .55;
}
.mob-menu-list .mm-title {
  font-family: var(--display); font-style: var(--display-style); font-weight: var(--display-weight);
  font-size: 36px; letter-spacing: var(--display-tracking); text-transform: var(--display-case);
}
.mob-menu-foot {
  margin-top: auto; padding-top: 24px;
  border-top: var(--hair) solid var(--rule);
  font-family: var(--mono); font-size: 10px; opacity: .55; letter-spacing: .12em;
  display: flex; justify-content: space-between;
}

@keyframes sweep { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.hero-sweep {
  position: absolute; inset: 0; pointer-events: none;
  animation: sweep 14s linear infinite;
  transform-origin: center;
}
.hero-sweep-grad {
  position: absolute; top: 50%; left: 50%; width: 50%; height: 1px;
  background: linear-gradient(to right, rgba(10,10,10,0) 0%, var(--accent) 80%, var(--accent) 100%);
  opacity: .8; transform-origin: 0 50%;
}

.bar-anim rect {
  transform-origin: bottom; transform: scaleY(0);
  transition: transform 0.9s cubic-bezier(.2,.7,.2,1);
}
.bar-anim.in rect { transform: scaleY(1); }
.bar-anim.in rect:nth-child(1) { transition-delay: 0.00s; }
.bar-anim.in rect:nth-child(2) { transition-delay: 0.05s; }
.bar-anim.in rect:nth-child(3) { transition-delay: 0.10s; }
.bar-anim.in rect:nth-child(4) { transition-delay: 0.15s; }
.bar-anim.in rect:nth-child(5) { transition-delay: 0.20s; }
.bar-anim.in rect:nth-child(6) { transition-delay: 0.25s; }
.bar-anim.in rect:nth-child(7) { transition-delay: 0.30s; }
.bar-anim.in rect:nth-child(8) { transition-delay: 0.35s; }

.dotgrid-anim line {
  stroke-dasharray: 200; stroke-dashoffset: 200;
  transition: stroke-dashoffset 1.4s cubic-bezier(.2,.7,.2,1);
}
.dotgrid-anim.in line { stroke-dashoffset: 0; }

.work-tile svg path, .work-tile svg rect, .work-tile svg line, .work-tile svg circle {
  transition: opacity .3s ease;
}

.count-tick { font-variant-numeric: tabular-nums; }

/* WP admin bar offset */
.admin-bar .sys-bar { top: 32px; }
.admin-bar .wrap { padding-top: 86px; }
.admin-bar .scroll-progress { top: 86px; }
@media (max-width: 782px) {
  .admin-bar .sys-bar { top: 46px; }
}

/* WP form niceties for WPForms inside contact */
.wpforms-container { font-family: var(--mono); }
.wpforms-container .wpforms-field { padding: 0 0 14px !important; }
.wpforms-container .wpforms-field-label,
.wpforms-container .wpforms-field-sublabel {
  font-family: var(--mono) !important; font-size: 10px !important;
  letter-spacing: .14em !important; opacity: .55 !important;
  text-transform: uppercase !important; font-weight: 500 !important;
}
.wpforms-container input,
.wpforms-container textarea {
  background: transparent !important; border: 0 !important;
  border-bottom: var(--hair) solid var(--rule) !important;
  font-family: var(--mono) !important; font-size: 13px !important; color: inherit !important;
  padding: 6px 2px !important; outline: none !important; resize: none !important;
  border-radius: 0 !important;
}
.wpforms-container button[type="submit"] {
  background: var(--ink) !important; color: var(--paper) !important;
  border: 0 !important; padding: 11px 18px !important;
  font-family: var(--mono) !important; font-size: 10px !important;
  letter-spacing: .18em !important; border-radius: 0 !important;
}
.wpforms-container button[type="submit"]:hover { background: var(--accent) !important; }

@media (max-width: 1100px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .work:nth-child(3n) { border-right: var(--hair) solid var(--rule-2); }
  .work:nth-child(2n) { border-right: 0; }
  .tx-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-body { grid-template-columns: minmax(0, 1fr); }
  .profile-marg { position: static; }
  .contact-body { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .pd-grid { grid-template-columns: minmax(0, 1fr); }
  /* minmax(0,1fr) so children can shrink below their intrinsic size.
     Without this, the 520px ring forces the column wide and drags bio/right out. */
  .hero-stage { grid-template-columns: minmax(0, 1fr); }
  .hero-left, .hero-right { align-items: stretch; min-width: 0; }
  .hero-right { align-items: flex-start; }
  .hero-stage > * { min-width: 0; max-width: 100%; }
  /* Ring + SVG become responsive */
  .hero-center > div { max-width: 100%; height: auto; aspect-ratio: 1; width: auto; }
  .hero-center > div > svg { width: 100% !important; height: auto !important; }
  .bio-strip, .bio-text { max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
}

@media (max-width: 820px) {
  body { overflow-x: hidden; }
  .wrap {
    display: block;
    width: 100%; height: auto;
    overflow-x: hidden; overflow-y: visible;
    scroll-snap-type: none;
    padding: 54px 0 0;
  }
  .wrap > section {
    flex: none;
    width: 100%; height: auto;
    overflow-y: visible;
    padding: 12px 18px 28px;
    scroll-snap-align: none;
    border-right: 0;
    border-bottom: var(--hair) solid var(--rule-3);
  }
  .scroll-progress { display: none; }
  .compass { display: none; }

  .sys-bar-inner {
    grid-template-columns: 1fr auto;
    padding: 10px 18px; gap: 12px;
  }
  .sys-bar-c { display: none; }
  .sys-bar-r {
    font-size: 9px; display: flex; gap: 8px; align-items: center;
  }
  .sys-bar-r .sys-r-time { display: none; }
  .sys-menu-btn { display: inline-block; }

  .hero { padding: 20px 0 30px; min-height: auto; }
  .hero-top { grid-template-columns: 1fr; gap: 14px; padding-bottom: 14px; }
  .anno-c, .anno-r { text-align: left; justify-content: flex-start; }
  .hero-stage { gap: 24px; padding: 16px 0; }
  .hero-left, .hero-right { align-items: stretch; }
  .signal-block, .bio-strip { width: 100%; max-width: none; }

  .sec-head { grid-template-columns: 1fr; gap: 12px; padding: 24px 0 14px; margin-bottom: 18px; }
  .sec-head-c, .sec-head-r { justify-content: flex-start; text-align: left; display: flex; }

  .works-grid { grid-template-columns: 1fr; }
  .work { border-right: 0 !important; }
  .work-title { font-size: 30px; }

  .tx-grid { grid-template-columns: 1fr; }
  .tx-archive { padding-left: 18px !important; padding-right: 18px !important; }
  .see-all { align-self: flex-start; }

  .pd-sheet { inset: 0; border: 0; }
  .pd-grid { padding: 18px 16px; gap: 18px; }
  .pd-twocol { grid-template-columns: 1fr; gap: 18px; }
  .pd-title { font-size: 44px; }
  .pd-blurb { font-size: 18px; }

  .tx {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "idx date arrow" "idx title title" "idx code len";
    gap: 4px 12px; padding: 14px 0;
  }
  .tx-idx { grid-area: idx; align-self: start; padding-top: 2px; }
  .tx-date { grid-area: date; }
  .tx-arrow { grid-area: arrow; }
  .tx-title { grid-area: title; font-size: 22px; }
  .tx-code { grid-area: code; }
  .tx-len { grid-area: len; text-align: right; }
  .tx-controls { flex-direction: column; align-items: stretch; gap: 14px; }
  .tx-search-wrap { min-width: 0; }
  .tx-chips { justify-content: flex-start; }

  .contact-foot { grid-template-columns: 1fr; gap: 24px; }
  .frame-marks { inset: 8px; }
  /* Ring SVG scales via width:100% rule in the 1100px breakpoint - no transform scale needed. */
  .hero-name { font-size: clamp(48px, 14vw, 96px) !important; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 13vw !important; }
  .sec-title { font-size: 36px !important; }
  .pd-title { font-size: 36px; }
  .hero-mark-tag, .hero-sub { font-size: 9px; }
  .cursor-cross { display: none; }
}

/* ── 404 / SIGNAL LOST ──────────────────────────────────────────── */
.err404 {
  position: relative; z-index: 5;
  min-height: calc(100vh - 54px);
  padding: 80px 56px 90px;
  max-width: 1100px; margin: 0 auto;
  overflow: hidden;
}
.err-stage {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding-top: 20px;
}
.err-ring {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}
.err-mark { text-align: center; }
.err-mark-tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em;
  color: var(--accent); margin-bottom: 6px;
  animation: err-flicker 4s steps(1) infinite;
}
.err-code {
  font-family: var(--display); font-style: var(--display-style); font-weight: var(--display-weight);
  font-size: clamp(96px, 13vw, 168px); line-height: 0.86;
  letter-spacing: var(--display-tracking); text-transform: var(--display-case);
  color: var(--accent);
  animation: err-flicker 4s steps(1) infinite;
}
.err-mark-sub {
  font-family: var(--mono); font-size: 10px; letter-spacing: .28em;
  opacity: .65; margin-top: 8px;
}
/* rotating red sweep on the ring */
.err-sweep {
  position: absolute; inset: 0; pointer-events: none;
  animation: err-sweep 3.4s linear infinite;
  transform-origin: center;
}
.err-sweep-grad {
  position: absolute; top: 50%; left: 50%; width: 50%; height: 1.4px;
  background: linear-gradient(to right, rgba(196,74,54,0) 0%, var(--accent) 78%, var(--accent) 100%);
  transform-origin: 0 50%;
}
/* pulsing red blips floating off the dial */
.err-blip {
  position: absolute; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent);
  pointer-events: none;
  animation: err-pulse 1.8s ease-in-out infinite;
}
.err-blip-1 { top: 22%; left: 70%; }
.err-blip-2 { top: 68%; left: 26%; animation-delay: .9s; }
/* vertical scanline crossing the whole panel */
.err-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(to right, rgba(196,74,54,0) 0%, rgba(196,74,54,.55) 50%, rgba(196,74,54,0) 100%);
  pointer-events: none; z-index: 6;
  animation: err-scanline 5.5s linear infinite;
}
.err-lede {
  font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.3;
  max-width: 44ch; margin: 18px 0 0;
}
.err-readout {
  margin: 22px 0 0;
  border-top: var(--hair) dashed var(--rule-2);
  border-bottom: var(--hair) dashed var(--rule-2);
  padding: 14px 0; width: 100%; max-width: 360px;
}
.err-actions {
  margin-top: 26px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.err-alt-link {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  color: var(--accent); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.err-alt-link:hover { text-decoration: underline; text-underline-offset: 4px; }

@keyframes err-sweep { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes err-pulse { 0%, 100% { opacity: .15; transform: scale(.7); } 50% { opacity: 1; transform: scale(1); } }
@keyframes err-scanline { 0% { top: -2px; } 100% { top: 100%; } }
@keyframes err-flicker {
  0%, 88%, 100% { opacity: 1; }
  89% { opacity: .35; }
  90% { opacity: 1; }
  93% { opacity: .55; }
  94% { opacity: 1; }
}

@media (max-width: 820px) {
  .err404 { padding: 60px 18px 60px; }
  .err-lede { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  /* Keep all decorative motion running (wave drift, bar pulse, hero sweep,
     crosshair tracking) since they're the heart of the schematic identity.
     Only the smooth-scroll-to-section is disabled to respect users who
     genuinely need instant scroll jumps. */
  .wrap { scroll-behavior: auto; }
  /* The 404 flicker is the one effect worth softening - kill the flicker,
     keep the slower sweep + pulse. */
  .err-code, .err-mark-tag { animation: none; }
}

/* Hide the Google reCAPTCHA badge globally - hangs over the page corner. */
.grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Content links use the marker red. Limited to body content - not chrome (nav, system bar, dropdown). */
.profile a,
.colophon a,
.contact a,
.tx-body a,
.cli-list a,
.prose-grid a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 0.75px;
  text-underline-offset: 4px;
}
.profile a:hover,
.colophon a:hover,
.contact a:hover,
.tx-body a:hover,
.cli-list a:hover,
.prose-grid a:hover {
  text-decoration-thickness: 1.5px;
}
