/* ==========================================================================
   Donny Davidson Portfolio v5.0.0 — DD1/DD2 Visual Convergence
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Theme tokens
   -------------------------------------------------------------------------- */
:root {
  --bg: #070c11;
  --bg-raised: #0a1118;
  --surface: #0d141d;
  --surface-strong: #141d29;
  --text: #f2f1ee;
  --text-muted: #92a2b4;
  --text-subtle: #5b6d81;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --teal: #00dad5;
  --aqua: #40f6ff;
  --violet: #7b61ff;
  --ember: #ff6b30;
  --focus: rgba(64, 246, 255, 0.5);
  --success: #00d5a0;
  --error: #ff5560;

  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', 'Courier New', monospace;

  --max-width: 1240px;
  --header-height: 68px;
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.16s ease;
  --t: 0.3s var(--ease);
}

[data-theme="light"] {
  --bg: #f4f1ec;
  --bg-raised: #fbfaf7;
  --surface: #ffffff;
  --surface-strong: #efede6;
  --text: #0a1118;
  --text-muted: #46566b;
  --text-subtle: #7b8a9c;
  --border: rgba(10, 17, 24, 0.11);
  --border-strong: rgba(10, 17, 24, 0.2);
  --teal: #009e9a;
  --aqua: #007f88;
  --violet: #5a3fd4;
  --ember: #d14e12;
  --focus: rgba(0, 158, 154, 0.5);
  --success: #00875f;
  --error: #c22f3a;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 100%; color-scheme: dark light; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 18% 18%, rgba(0, 218, 213, 0.028) 0%, transparent 60%),
    radial-gradient(ellipse 55% 40% at 82% 75%, rgba(123, 97, 255, 0.026) 0%, transparent 60%);
}
[data-theme="light"] body::before { display: none; }

/* --------------------------------------------------------------------------
   3. Accessibility
   -------------------------------------------------------------------------- */
:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus); border-radius: var(--radius-xs); }

.skip-link {
  position: absolute;
  top: -100px; left: 1rem;
  background: var(--aqua);
  color: #070c11;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  z-index: 10000;
  border-radius: var(--radius-xs);
  text-decoration: none;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: clamp(2.7rem, 5.2vw + 0.5rem, 4.8rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3vw + 0.5rem, 3rem); letter-spacing: -0.028em; }
h3 { font-size: clamp(1.2rem, 1.6vw + 0.3rem, 1.6rem); }

p { margin-bottom: 1rem; line-height: 1.75; }
p:last-child { margin-bottom: 0; }

a { color: var(--aqua); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--teal); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--teal);
  display: block;
  margin-bottom: 1rem;
}

.meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-subtle); }

/* --------------------------------------------------------------------------
   5. Layout
   -------------------------------------------------------------------------- */
.shell { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 2.5rem; }

main { position: relative; z-index: 1; }

.section { padding: 6.5rem 0; position: relative; }
.section + .section { border-top: 1px solid var(--border); }

.section-head { max-width: 700px; margin-bottom: 3.75rem; }
.section-head h2 { margin-bottom: 1.1rem; }
.section-head p { font-size: 1.12rem; color: var(--text-muted); }

.anchor-compat { display: block; position: relative; top: calc(-1 * var(--header-height) - 1rem); visibility: hidden; }

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(7, 12, 17, 0.85);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  transition: background var(--t), border-color var(--t);
}
[data-theme="light"] .site-header { background: rgba(244, 241, 236, 0.88); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.brand {
  display: flex; align-items: center; gap: 0.8rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--text); text-decoration: none; }

.brand-mark {
  width: 30px; height: 30px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 5px rgba(64, 246, 255, 0.35));
  transition: filter var(--t), transform var(--t);
}
.brand:hover .brand-mark { filter: drop-shadow(0 0 10px rgba(64, 246, 255, 0.6)); }

.primary-nav { display: flex; align-items: center; gap: 2rem; }
.primary-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.3rem 0;
  transition: color var(--t-fast);
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--text); }
.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--aqua);
  transition: width var(--t);
}
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { width: 100%; }

.header-tools { display: flex; align-items: center; gap: 0.75rem; }

.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 44px; min-width: 44px;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.theme-toggle:hover { border-color: var(--border-strong); color: var(--text); }
.theme-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 5px rgba(64,246,255,0.6); }

.header-cta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #070c11;
  background: var(--teal);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-xs);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex; align-items: center;
  transition: background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.header-cta:hover { color: #070c11; background: var(--aqua); text-decoration: none; transform: translateY(-1px); box-shadow: 0 0 18px rgba(64,246,255,0.3); }

/* Mobile nav */
.nav-disclosure { display: none; }
.nav-disclosure summary {
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
  color: var(--text); cursor: pointer; padding: 0.5rem; list-style: none;
  min-height: 44px; display: flex; align-items: center;
}
.nav-disclosure summary::-webkit-details-marker { display: none; }
.mobile-nav {
  position: absolute; top: var(--header-height); left: 0; right: 0;
  background: rgba(10, 17, 24, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  display: flex; flex-direction: column; gap: 1.2rem;
}
[data-theme="light"] .mobile-nav { background: rgba(251, 250, 247, 0.97); }
.mobile-nav a { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--text-muted); }
.mobile-nav a:hover { color: var(--text); }

/* --------------------------------------------------------------------------
   7. Hero — sigil, waveform, signal field
   -------------------------------------------------------------------------- */
.hero-stage {
  position: relative;
  min-height: 92vh;
  padding: calc(var(--header-height) + 4rem) 0 5rem;
  display: flex; align-items: center;
  overflow: hidden;
}
.signal-field { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.6; }

.hero { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 4rem; align-items: center; }
.hero-copy { max-width: 620px; }

.hero-copy h1 { margin-bottom: 1.5rem; }
.hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--teal), var(--aqua));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--text-muted); margin-bottom: 1.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }

/* Hero sigil composition */
.hero-sigil { position: relative; display: flex; align-items: center; justify-content: center; min-height: 320px; }

.sigil-topo { position: absolute; inset: -12%; width: 124%; height: 124%; opacity: 0.5; }

.sigil-glow {
  position: absolute; width: 72%; height: 72%; border-radius: 50%;
  background: radial-gradient(circle, rgba(64, 246, 255, 0.13) 0%, rgba(123, 97, 255, 0.07) 45%, transparent 70%);
  animation: sigilBreathe 5.5s ease-in-out infinite alternate;
}
@keyframes sigilBreathe {
  from { opacity: 0.65; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1.04); }
}

.sigil-mark {
  position: relative; z-index: 1;
  width: clamp(200px, 24vw, 300px); height: auto;
  filter: drop-shadow(0 0 22px rgba(0, 218, 213, 0.35)) drop-shadow(0 0 60px rgba(123, 97, 255, 0.2));
}

.sigil-wave { position: absolute; bottom: 8%; left: 50%; transform: translateX(-50%); width: 78%; opacity: 0.9; }
.sigil-wave .wave-line { stroke-dasharray: 420; stroke-dashoffset: 420; animation: waveDraw 2.2s var(--ease) 0.4s forwards; }
@keyframes waveDraw { to { stroke-dashoffset: 0; } }

/* --------------------------------------------------------------------------
   8. Buttons — DD mono capsule style
   -------------------------------------------------------------------------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.8rem 1.6rem;
  min-height: 48px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  transition: all var(--t);
}
.button:hover { text-decoration: none; border-color: var(--aqua); color: var(--text); background: var(--surface-strong); box-shadow: 0 0 16px rgba(64, 246, 255, 0.12); }

.button--primary { background: var(--teal); border-color: var(--teal); color: #070c11; }
.button--primary:hover { background: var(--aqua); border-color: var(--aqua); color: #070c11; box-shadow: 0 0 22px rgba(64, 246, 255, 0.3); }

.button--ghost { background: transparent; border-color: var(--border); color: var(--text-muted); }
.button--ghost:hover { background: var(--surface); border-color: var(--border-strong); color: var(--text); box-shadow: none; }

/* --------------------------------------------------------------------------
   9. Capabilities — hairline rule grid
   -------------------------------------------------------------------------- */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.capability-item { background: var(--bg-raised); padding: 2.25rem; transition: background var(--t); position: relative; }
.capability-item:hover { background: var(--surface); }
.capability-item::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0; transition: opacity var(--t);
}
.capability-item:hover::after { opacity: 0.6; }
.capability-item .meta { margin-bottom: 0.9rem; }
.capability-item h3 { font-size: 1.12rem; margin-bottom: 0.7rem; }
.capability-item p { color: var(--text-muted); font-size: 0.92rem; }

/* --------------------------------------------------------------------------
   10. Project portals — authored visual windows
   -------------------------------------------------------------------------- */
.project-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }

.project-portal {
  position: relative;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.project-portal:hover { transform: translateY(-4px); }

.project--sovereignty:hover { border-color: rgba(0, 218, 213, 0.35); box-shadow: 0 14px 44px -10px rgba(0, 0, 0, 0.55), 0 0 28px rgba(0, 218, 213, 0.1); }
.project--localcred:hover { border-color: rgba(255, 107, 48, 0.32); box-shadow: 0 14px 44px -10px rgba(0, 0, 0, 0.55), 0 0 28px rgba(255, 107, 48, 0.08); }
.project--martial:hover { border-color: rgba(123, 97, 255, 0.35); box-shadow: 0 14px 44px -10px rgba(0, 0, 0, 0.55), 0 0 28px rgba(123, 97, 255, 0.1); }
.project--ttett:hover { border-color: rgba(64, 246, 255, 0.35); box-shadow: 0 14px 44px -10px rgba(0, 0, 0, 0.55), 0 0 28px rgba(64, 246, 255, 0.1); }

.portal-visual {
  position: relative;
  aspect-ratio: 16 / 8.5;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.portal-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.portal-body { padding: 1.9rem 2rem 2rem; display: flex; flex-direction: column; flex: 1; }

.portal-meta { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.8rem; }
.portal-index { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-subtle); letter-spacing: 0.08em; }

/* Status chip: pill + dot (DD component) */
.portal-state {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  background: var(--surface);
}
.portal-state::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.project--sovereignty .portal-state { color: var(--teal); border-color: rgba(0, 218, 213, 0.3); }
.project--localcred .portal-state { color: var(--ember); border-color: rgba(255, 107, 48, 0.3); }
.project--martial .portal-state { color: var(--violet); border-color: rgba(123, 97, 255, 0.32); }
.project--ttett .portal-state { color: var(--aqua); border-color: rgba(64, 246, 255, 0.3); }

.portal-name {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em;
  color: var(--text); display: block; margin-bottom: 0.65rem;
  transition: color var(--t-fast);
}
.portal-name:hover { color: var(--aqua); text-decoration: none; }

.portal-summary { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 0.6rem; }
.portal-description { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 1.2rem; flex: 1; }

.portal-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1.2rem; }
.portal-tags span {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem; border-radius: 3px;
  background: var(--surface); color: var(--text-subtle);
}

.portal-link {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal); margin-top: auto;
  transition: color var(--t-fast);
}
.portal-link:hover { color: var(--aqua); text-decoration: none; }
.portal-link::after { content: '\2192'; transition: transform var(--t-fast); }
.portal-link:hover::after { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   11. Approach
   -------------------------------------------------------------------------- */
.approach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.approach-item {
  counter-increment: step;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2rem;
  transition: border-color var(--t), transform var(--t);
}
.approach-item:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.approach-item::before {
  content: '0' counter(step);
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; color: var(--teal);
  display: block; margin-bottom: 1rem; letter-spacing: 0.1em;
}
.approach-item h3 { font-size: 1.08rem; margin-bottom: 0.65rem; }
.approach-item p { color: var(--text-muted); font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   12. About
   -------------------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 1fr 0.52fr; gap: 4rem; align-items: center; }
.about-copy { font-size: 1.08rem; color: var(--text-muted); line-height: 1.8; }

.about-portrait {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--surface);
  border: 1px solid var(--border-strong);
}
.about-portrait::after {
  content: '';
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 -60px 60px -30px rgba(7, 12, 17, 0.35);
  pointer-events: none;
}
[data-theme="light"] .about-portrait::after { box-shadow: inset 0 0 0 1px rgba(10, 17, 24, 0.05); }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --------------------------------------------------------------------------
   13. Contact
   -------------------------------------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-copy h2 { margin-bottom: 1rem; }
.contact-copy p { font-size: 1.05rem; color: var(--text-muted); }

.contact-form {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-field--wide { grid-column: 1 / -1; }

.form-field label { display: block; font-weight: 600; font-size: 0.84rem; margin-bottom: 0.35rem; }
.form-field .optional { font-weight: 400; color: var(--text-subtle); font-size: 0.75rem; }

.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  font-family: var(--font-body); font-size: 0.92rem;
  padding: 0.72rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text);
  line-height: 1.5;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--focus);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field select { cursor: pointer; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-note { font-size: 0.76rem; color: var(--text-subtle); margin: 1.1rem 0 0.8rem; }
.form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-status { font-size: 0.86rem; font-weight: 500; }
.form-status--error { color: var(--error); }

.form-success {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  text-align: center;
}
.form-success h3 { color: var(--success); margin-bottom: 0.75rem; }
.form-success[hidden] { display: none; }

/* --------------------------------------------------------------------------
   14. Project pages
   -------------------------------------------------------------------------- */
.project-page .project-hero {
  padding: calc(var(--header-height) + 4rem) 0 4.5rem;
  position: relative;
  overflow: hidden;
}
.project-page .project-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 40% at 28% 40%, rgba(0, 218, 213, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 40% 45% at 72% 50%, rgba(123, 97, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
}
.project-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: start; }
.project-hero-grid .eyebrow { margin-bottom: 1rem; }
.project-hero-grid h1 { margin-bottom: 1.2rem; max-width: 660px; }

.project-deck { font-size: 1.14rem; color: var(--text-muted); max-width: 600px; }

.project-hero-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.project-hero-meta span {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em;
  padding: 0.22rem 0.6rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-muted);
}

.project-monogram {
  font-family: var(--font-display); font-size: 6rem; font-weight: 700;
  line-height: 0.95; letter-spacing: -0.05em;
  opacity: 0.055; user-select: none; text-align: right;
}

.project-content-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: start; }

.project-ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.project-ledger > div {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  transition: border-color var(--t-fast);
}
.project-ledger > div:hover { border-color: var(--border-strong); }
.project-ledger dt {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 0.55rem;
}
.project-ledger dd { color: var(--text-muted); font-size: 0.92rem; }

.project-evidence {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
}
.project-evidence h3 { margin-bottom: 0.75rem; }
.project-evidence p { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); padding: 3rem 0; background: var(--bg-raised); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 2rem; }
.footer-inner strong { font-family: var(--font-display); font-size: 1rem; }
.footer-inner p { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.2rem; }

/* --------------------------------------------------------------------------
   16. Reduced motion — static compositions, not slowed animation
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .signal-field { display: none; }
  .sigil-glow { animation: none; opacity: 0.85; }
  .sigil-wave .wave-line { animation: none; stroke-dashoffset: 0; }
  .brand-mark { transition: none; }
}

/* --------------------------------------------------------------------------
   17. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-sigil { order: -1; min-height: 220px; }
  .sigil-mark { width: clamp(160px, 30vw, 220px); }
  .project-stack { grid-template-columns: 1fr; }
  .project-hero-grid { grid-template-columns: 1fr; }
  .project-monogram { font-size: 4rem; text-align: left; }
  .project-content-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .capability-grid { grid-template-columns: 1fr 1fr; }
  .approach-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-portrait { max-width: 300px; }
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  :root { --header-height: 60px; }
  .shell { padding: 0 1.25rem; }
  .section { padding: 4rem 0; }
  .section-head { margin-bottom: 2.5rem; }
  .primary-nav { display: none; }
  .header-cta { display: none; }
  .nav-disclosure { display: block; }
  .hero-stage { min-height: auto; padding: calc(var(--header-height) + 2.5rem) 0 3rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .capability-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
  .project-ledger { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field--wide { grid-column: 1; }
  .footer-inner { flex-direction: column; gap: 1rem; }
}

@media (max-width: 480px) {
  .shell { padding: 0 1rem; }
  .section { padding: 3rem 0; }
  .hero-copy h1 { font-size: 2.1rem; }
  .hero-lead { font-size: 0.98rem; }
  .portal-body { padding: 1.4rem; }
  .contact-form { padding: 1.6rem; }
  .project-monogram { font-size: 2.8rem; }
}
