/* ============================================================
   JOSH MALONE — TACTICAL HUD
   Inspired by OG Crysis (2007) HUD language:
   deep black + signature red + heavy condensed type +
   bracket corners, scanlines, and status indicators.
   ============================================================ */

:root {
  --bg-0: #000000;
  --bg-1: #050506;
  --bg-2: #0a0a0c;
  --bg-3: #0f1012;
  --panel: rgba(15, 16, 18, 0.86);
  --panel-2: rgba(20, 21, 23, 0.92);
  --panel-3: rgba(8, 8, 10, 0.6);

  --ink: #ededed;
  --ink-2: #bfbfbf;
  --muted: #7a7a7c;
  --quiet: #525254;

  /* signature red — Crysis alarm/warning red */
  --red: #ff1f1f;
  --red-1: #e10600;
  --red-2: #b00000;
  --red-3: #6a0000;
  --red-glow: rgba(255, 31, 31, 0.55);
  --red-soft: rgba(255, 31, 31, 0.14);
  --red-faint: rgba(255, 31, 31, 0.06);

  --amber: #ffb000;

  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --line-red: rgba(255, 31, 31, 0.28);
  --line-red-strong: rgba(255, 31, 31, 0.55);

  --font-display: "Oswald", "Bebas Neue", "Impact", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SF Mono", Menlo, monospace;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-deep: 0 30px 90px rgba(0, 0, 0, 0.65);
  --shadow-red: 0 0 0 1px var(--line-red), 0 0 32px rgba(255, 31, 31, 0.18);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg-0);
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  background:
    radial-gradient(circle at 92% -10%, rgba(255, 31, 31, 0.12), transparent 38rem),
    radial-gradient(circle at -8% 12%, rgba(255, 31, 31, 0.06), transparent 32rem),
    linear-gradient(180deg, #000 0%, #07070a 38%, #000 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* fixed background overlays — grid + scanlines + vignette */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 30%, black 0%, transparent 78%);
}
body::after {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.018) 0 1px,
      transparent 1px 3px
    ),
    radial-gradient(circle at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.65) 100%);
  mix-blend-mode: screen;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

/* skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--red);
  color: #000;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
}
.skip-link:focus { top: 1rem; }

/* ----------------------------------------------------------
   shell / containers
   ---------------------------------------------------------- */
.site-header,
main,
.site-footer {
  width: min(1480px, calc(100% - 48px));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

main { display: block; }

/* ----------------------------------------------------------
   header / nav
   ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.95), rgba(0,0,0,0.6));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0.6;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--ink);
}
.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-family: var(--font-mono);
  font-weight: 800;
  letter-spacing: -0.05em;
  font-size: 0.78rem;
  color: var(--ink);
  background: rgba(255, 31, 31, 0.06);
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
}
.brand-mark::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--red);
  border-left: 2px solid var(--red);
}
.brand-mark::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--red);
  border-right: 2px solid var(--red);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 1.05rem;
}

.nav {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 1.6rem;
}
.nav a {
  position: relative;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.4rem 0;
  transition: color 160ms ease;
}
.nav a::before {
  content: "//";
  margin-right: 0.45rem;
  color: var(--red);
  opacity: 0.55;
  transition: opacity 160ms ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::before { opacity: 1; }

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-2);
}
.status-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px var(--red), 0 0 0 1px rgba(255, 31, 31, 0.4);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.86); }
}
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.95rem;
  border: 1px solid var(--line-red-strong);
  background: var(--red-soft);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.header-cta:hover {
  background: var(--red);
  border-color: var(--red);
  color: #000;
  transform: translateY(-1px);
}
.header-cta::before { content: "["; color: var(--red); }
.header-cta::after  { content: "]"; color: var(--red); }
.header-cta:hover::before,
.header-cta:hover::after { color: #000; }

/* ----------------------------------------------------------
   eyebrows / dividers / shared
   ---------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.4rem;
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--red);
}

.section-divider {
  position: relative;
  margin: clamp(3rem, 6vw, 5rem) 0 0;
  height: 1px;
  background: var(--line);
}
.section-divider::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 80px;
  height: 1px;
  background: var(--red);
}

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

h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); margin: 0 0 1.4rem; }
h2 { font-size: clamp(2.2rem, 4.5vw, 4.4rem); margin: 0 0 1rem; }
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-2);
  margin: 0 0 0.7rem;
}

p { color: var(--ink-2); }

.red { color: var(--red); }
.dim { color: var(--muted); }

/* ----------------------------------------------------------
   bracket frame — used on hero portrait, project cards, photos
   four corner brackets, configurable via --b-color
   ---------------------------------------------------------- */
.frame {
  position: relative;
  --b-color: var(--red);
  --b-size: 18px;
  --b-thick: 2px;
}
.frame::before,
.frame::after,
.frame > .frame-cnr-1,
.frame > .frame-cnr-2 {
  content: "";
  position: absolute;
  width: var(--b-size);
  height: var(--b-size);
  pointer-events: none;
  z-index: 2;
}
.frame::before {
  top: -1px; left: -1px;
  border-top: var(--b-thick) solid var(--b-color);
  border-left: var(--b-thick) solid var(--b-color);
}
.frame::after {
  top: -1px; right: -1px;
  border-top: var(--b-thick) solid var(--b-color);
  border-right: var(--b-thick) solid var(--b-color);
}
.frame > .frame-cnr-1 {
  bottom: -1px; left: -1px;
  border-bottom: var(--b-thick) solid var(--b-color);
  border-left: var(--b-thick) solid var(--b-color);
}
.frame > .frame-cnr-2 {
  bottom: -1px; right: -1px;
  border-bottom: var(--b-thick) solid var(--b-color);
  border-right: var(--b-thick) solid var(--b-color);
}

/* ----------------------------------------------------------
   hero
   ---------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.78fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(3rem, 6vw, 5.5rem) 0 2.5rem;
}

.hero-vline {
  position: absolute;
  left: 0;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-red), transparent);
}
.hero-vlabel {
  position: absolute;
  left: -2.4rem;
  top: clamp(3rem, 7vw, 6rem);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.85;
}
@media (max-width: 1180px) {
  .hero-vline, .hero-vlabel { display: none; }
}

.hero-copy { position: relative; }
.hero-copy h1 span { display: block; }
.hero-copy h1 .accent {
  color: var(--red);
  text-shadow: 0 0 28px rgba(255, 31, 31, 0.45);
}
.hero-copy h1 .accent::after {
  content: "_";
  color: var(--red);
  margin-left: 0.05em;
  animation: caret 1s steps(2) infinite;
}
@keyframes caret { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

.hero-text {
  max-width: 640px;
  margin: 0.6rem 0 2rem;
  color: var(--ink-2);
  font-size: clamp(0.98rem, 1.2vw, 1.1rem);
  line-height: 1.7;
}
.hero-text strong { color: var(--ink); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.4rem;
}

/* tactical buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 50px;
  padding: 0 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.btn::before, .btn::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: currentColor;
  pointer-events: none;
}
.btn::before { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; }
.btn::after { bottom: -1px; right: -1px; border-bottom: 2px solid; border-right: 2px solid; }

.btn-primary {
  background: var(--red);
  color: #0a0000;
  border-color: var(--red);
}
.btn-primary:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 31, 31, 0.04);
  border-color: var(--line-red);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--red-soft);
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-1px);
}

/* hero status bar */
.hero-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  background: var(--panel-3);
  margin-top: 0.5rem;
}
.hero-status > div {
  padding: 0.85rem 1rem;
  border-right: 1px solid var(--line);
}
.hero-status > div:last-child { border-right: 0; }
.hero-status dt {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.hero-status dt::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--red);
}
.hero-status dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.hero-status dd small {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-left: 0.4rem;
}

/* hero portrait */
.hero-portrait {
  --b-size: 22px;
  --b-thick: 2px;
  position: relative;
  margin: 0;
  background: linear-gradient(140deg, rgba(255, 31, 31, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-deep), inset 0 0 80px rgba(255, 31, 31, 0.08);
}
.hero-portrait img {
  width: 100%;
  height: min(64vh, 620px);
  object-fit: cover;
  object-position: center 38%;
  filter: saturate(0.88) contrast(1.06) brightness(0.88);
  mix-blend-mode: normal;
}
.hero-portrait::before,
.hero-portrait::after,
.hero-portrait > .frame-cnr-1,
.hero-portrait > .frame-cnr-2 {
  content: "";
  position: absolute;
  width: var(--b-size);
  height: var(--b-size);
  pointer-events: none;
  z-index: 2;
}
.hero-portrait::before { top: -1px; left: -1px; border-top: 2px solid var(--red); border-left: 2px solid var(--red); }
.hero-portrait::after  { top: -1px; right: -1px; border-top: 2px solid var(--red); border-right: 2px solid var(--red); }

.portrait-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.55rem;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--line-red);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  backdrop-filter: blur(4px);
}
.portrait-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: pulse 1.6s ease-in-out infinite;
}

.portrait-caption {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.85);
  border-top: 1px solid var(--line-red);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.portrait-caption strong { color: var(--ink); font-weight: 700; }
.portrait-caption span { color: var(--muted); }

/* ----------------------------------------------------------
   capabilities (proof strip) — Crysis nanosuit modes
   ---------------------------------------------------------- */
.capabilities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  border: 1px solid var(--line);
  background: var(--panel-3);
}
.cap {
  position: relative;
  padding: 1.6rem 1.5rem 1.8rem;
  border-right: 1px solid var(--line);
  transition: background 220ms ease;
}
.cap:last-child { border-right: 0; }
.cap:hover { background: var(--red-faint); }
.cap-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--red);
  margin-bottom: 0.85rem;
}
.cap h3 { margin-bottom: 0.5rem; }
.cap p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; margin: 0; }
.cap::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 320ms ease;
}
.cap:hover::after { width: 100%; }

/* ----------------------------------------------------------
   feature project (Observer)
   ---------------------------------------------------------- */
.feature-section {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.4rem;
  align-items: end;
  margin-bottom: 2.2rem;
}
.section-heading.center { grid-template-columns: 1fr; }
.section-heading p { margin: 0; }

.observer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(480px, 1fr);
  gap: 0;
  border: 1px solid var(--line-red);
  background: var(--panel-3);
}
.observer-copy,
.observer-panel {
  background: var(--panel);
}
.observer-copy {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-right: 1px solid var(--line-red);
}
.observer-copy .lead {
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 1.4rem;
}
.observer-copy .lead strong { color: var(--ink); }
.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
  display: grid;
  gap: 0.65rem;
}
.check-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.check-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: -0.06em;
  color: var(--red);
  font-weight: 700;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.inline-actions a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  transition: color 160ms ease, transform 160ms ease;
}
.inline-actions a::after {
  content: "→";
  transition: transform 160ms ease;
}
.inline-actions a:hover {
  color: #fff;
}
.inline-actions a:hover::after {
  transform: translateX(3px);
}

/* terminal-style observer panel */
.observer-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.panel-topbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.4);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.panel-topbar .pip {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--red);
}
.panel-topbar .pip:nth-child(2) { background: var(--amber); }
.panel-topbar .pip:nth-child(3) { background: #2bcf6c; }
.panel-topbar .topbar-title {
  margin-left: 0.4rem;
  color: var(--ink-2);
}
.panel-topbar .topbar-meta {
  margin-left: auto;
  color: var(--muted);
}

.panel-content {
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
  flex: 1;
}
.panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.metric-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin: 1rem 0 1.2rem;
}
.metric-row > div {
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  position: relative;
}
.metric-row strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--ink);
}
.metric-row span {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.metric-row .delta {
  position: absolute;
  top: 0.65rem;
  right: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--red);
}

.observer-panel svg {
  width: 100%;
  height: auto;
  margin-top: 0.4rem;
}
.grid-line { stroke: rgba(255, 255, 255, 0.07); stroke-dasharray: 2 4; }
.chart-shadow {
  fill: none;
  stroke: rgba(255, 31, 31, 0.22);
  stroke-width: 16;
  stroke-linecap: round;
}
.chart-line {
  fill: none;
  stroke: var(--red);
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(255, 31, 31, 0.85));
}
.chart-dot {
  fill: var(--red);
  filter: drop-shadow(0 0 4px var(--red));
}

.panel-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 clamp(1.2rem, 2.5vw, 1.8rem) clamp(1.2rem, 2.5vw, 1.8rem);
}
.panel-footer span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: rgba(0, 0, 0, 0.4);
}
.panel-footer span::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--red);
}

/* ----------------------------------------------------------
   work grid
   ---------------------------------------------------------- */
.work-section {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  background: var(--panel-3);
}
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 1.6rem 1.4rem 1.5rem;
  border-right: 1px solid var(--line);
  transition: background 220ms ease;
}
.project-card:last-child { border-right: 0; }
.project-card:hover { background: var(--red-faint); }
.project-card::before,
.project-card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
}
.project-card::before {
  top: 0.65rem; left: 0.65rem;
  border-top: 2px solid var(--red);
  border-left: 2px solid var(--red);
}
.project-card::after {
  bottom: 0.65rem; right: 0.65rem;
  border-bottom: 2px solid var(--red);
  border-right: 2px solid var(--red);
}
.project-card:hover::before,
.project-card:hover::after { opacity: 1; }

.project-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--red);
  margin-bottom: 1rem;
}
.project-card h3 {
  margin-bottom: 0.7rem;
}
.project-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 1.6rem;
}
.project-card a.card-link {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 4px;
  transition: color 160ms ease, border-color 160ms ease;
}
.project-card a.card-link::after {
  content: " →";
  color: var(--red);
}
.project-card:hover a.card-link {
  color: var(--red);
  border-color: var(--red);
}

/* ----------------------------------------------------------
   about
   ---------------------------------------------------------- */
.about-section {
  margin: clamp(3.5rem, 6vw, 5.5rem) 0 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(320px, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: var(--panel-3);
}

.about-photo {
  --b-size: 18px;
  --b-thick: 2px;
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--line);
  background: var(--panel);
}
.about-photo img {
  flex: 1 1 auto;
  width: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.72) contrast(1.1) brightness(0.78);
}
.about-photo::before,
.about-photo::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  z-index: 2;
}
.about-photo::before {
  top: 0.65rem; left: 0.65rem;
  border-top: 2px solid var(--red);
  border-left: 2px solid var(--red);
}
.about-photo::after {
  top: 0.65rem; right: 0.65rem;
  border-top: 2px solid var(--red);
  border-right: 2px solid var(--red);
}
.about-photo figcaption {
  flex: 0 0 auto;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--line-red);
  background: rgba(0, 0, 0, 0.7);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-copy {
  padding: clamp(1.6rem, 4vw, 3rem);
  background: var(--panel);
}
.about-copy p {
  max-width: 56ch;
  margin-bottom: 1rem;
}
.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
}
.about-stats span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line-red);
  background: var(--red-faint);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}
.about-stats span::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--red);
}

/* ----------------------------------------------------------
   contact
   ---------------------------------------------------------- */
.contact-section {
  position: relative;
  margin: clamp(3.5rem, 6vw, 5.5rem) 0 0;
  padding: clamp(2.5rem, 5vw, 4rem);
  border: 1px solid var(--line-red);
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 31, 31, 0.16), transparent 32rem),
    var(--panel);
}
.contact-section::before,
.contact-section::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
}
.contact-section::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--red);
  border-left: 2px solid var(--red);
}
.contact-section::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--red);
  border-right: 2px solid var(--red);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
}
.contact-grid p {
  max-width: 56ch;
  font-size: 1.02rem;
}
.contact-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 0.5rem;
}
.contact-links a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0 0.95rem;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.contact-links a::after { content: "→"; color: var(--red); }
.contact-links a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #000;
}
.contact-links a:hover::after { color: #000; }

/* ----------------------------------------------------------
   footer
   ---------------------------------------------------------- */
.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: 1.6rem 0 2.6rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--quiet);
}
.site-footer .footer-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-2);
}
.site-footer .footer-status::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}

/* ----------------------------------------------------------
   responsive
   ---------------------------------------------------------- */
@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }
  .nav {
    grid-column: 1 / -1;
    justify-self: start;
    width: 100%;
    overflow-x: auto;
    padding: 0.5rem 0;
    border-top: 1px solid var(--line);
  }
  .hero,
  .observer-grid,
  .about-section,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .observer-copy { border-right: 0; border-bottom: 1px solid var(--line-red); }
  .about-photo { border-right: 0; border-bottom: 1px solid var(--line); }
  .capabilities { grid-template-columns: 1fr; }
  .cap { border-right: 0; border-bottom: 1px solid var(--line); }
  .cap:last-child { border-bottom: 0; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .project-card:last-child { border-bottom: 0; }
}

@media (max-width: 700px) {
  .site-header,
  main,
  .site-footer {
    width: min(1480px, calc(100% - 24px));
  }
  h1 { font-size: clamp(2.8rem, 12vw, 4.6rem); }
  h2 { font-size: clamp(1.9rem, 9vw, 3rem); }
  .hero { min-height: auto; padding-top: 1.8rem; }
  .hero-text { font-size: 0.95rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-status { grid-template-columns: repeat(2, 1fr); }
  .hero-status > div:nth-child(2) { border-right: 0; }
  .hero-status > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .header-status .status-dot span { display: none; }
  .nav { gap: 1rem; }
  .nav a { font-size: 0.68rem; }
  .nav a::before { margin-right: 0.25rem; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .project-card:last-child { border-bottom: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-links { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: 1fr; }
  .portrait-caption { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot::before,
  .portrait-tag::before,
  .site-footer .footer-status::before,
  .hero-copy h1 .accent::after { animation: none; }
  html { scroll-behavior: auto; }
}
