/* ==========================================================================
   Manoj Wagh — Personal Site
   Design system: "Blueprint" — technical spec-sheet aesthetic

   Theming: dark is ALWAYS the default, regardless of OS preference — it
   only changes when a visitor clicks .theme-toggle, which stores the
   explicit choice and applies it via [data-theme] on <html>. Light is
   the same system read as a diazo print — dark ink lines on warm
   drafting paper. See the .theme-toggle button + main.js.
   ========================================================================== */

:root {
  /* Dark theme (default) */
  --bg: #0b1e33;
  --bg-surface: #142c48;
  --text: #f5f7fa;
  --text-muted: #8ca0b3;
  --accent: #6fd6e8;
  --accent-warm: #f2a93b;

  --bg-rgb: 11, 30, 51;
  --accent-rgb: 111, 214, 232;
  --accent-warm-rgb: 242, 169, 59;
  --accent-dim: rgba(var(--accent-rgb), 0.35);

  /* Invariant — always-dark ink for text on bright surfaces (e.g. amber buttons) */
  --ink: #0b1e33;

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  --max-width: 1180px;
  --edge: clamp(1.25rem, 4vw, 3rem);
  --radius: 2px;

  color-scheme: dark;
}

/* Explicit override, set only by clicking .theme-toggle — the base :root
   above (dark) is otherwise always what renders, deliberately ignoring
   prefers-color-scheme. */
:root[data-theme="dark"] {
  --bg: #0b1e33;
  --bg-surface: #142c48;
  --text: #f5f7fa;
  --text-muted: #8ca0b3;
  --accent: #6fd6e8;
  --accent-warm: #f2a93b;

  --bg-rgb: 11, 30, 51;
  --accent-rgb: 111, 214, 232;
  --accent-warm-rgb: 242, 169, 59;

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f2efe7;
  --bg-surface: #ffffff;
  --text: #0b1e33;
  --text-muted: #5b6b78;
  --accent: #0c6478;
  --accent-warm: #b8720f;

  --bg-rgb: 242, 239, 231;
  --accent-rgb: 12, 100, 120;
  --accent-warm-rgb: 184, 114, 15;

  color-scheme: light;
}

/* -------------------------------------------------------------------------
   Reset
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;

  /* Deterrence only — see main.js for the matching event blocking */
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

/* -------------------------------------------------------------------------
   Background field — a quiet, animated "blueprint" texture behind all
   content. Pure CSS (two body pseudo-elements), never touches --bg itself:
   a faint drifting grid + a soft scanning highlight band, both drawn in
   --accent so they re-tint automatically on theme toggle with no JS.
   z-index:-1 pseudo-elements paint above body's own background but below
   every real child (header/main/footer) — no html/body relocation needed.
   ------------------------------------------------------------------------- */
body::before {
  content: "";
  position: fixed;
  inset: -60px;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(var(--accent-rgb), 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: bg-grid-drift 60s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  top: -20%;
  height: 45%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(var(--accent-rgb), 0.05) 50%,
    transparent 100%
  );
  animation: bg-scan-sweep 16s ease-in-out infinite alternate;
}

@keyframes bg-grid-drift {
  from { background-position: 0 0; }
  to { background-position: 48px 48px; }
}

@keyframes bg-scan-sweep {
  from { transform: translateY(0); }
  to { transform: translateY(260vh); }
}

/* Form fields must stay usable regardless of the site-wide no-select rule */
input,
textarea,
select {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}

img {
  max-width: 100%;
  display: block;
  -webkit-user-drag: none;
  user-drag: none;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent-warm);
  outline-offset: 3px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: var(--edge);
}

/* -------------------------------------------------------------------------
   Eyebrow / spec-sheet annotation labels
   ------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 1.6em;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

/* -------------------------------------------------------------------------
   Nav
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(var(--bg-rgb), 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.18);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--accent-dim);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius);
}

.wordmark span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.7rem);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent-warm);
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-left: 0.5rem;
}

.nav-social a {
  color: var(--text-muted);
  text-decoration: none;
}

.nav-social a:hover {
  color: var(--accent);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid var(--accent-dim);
  border-radius: 50%;
  background: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--accent-dim);
  color: var(--text);
  font-family: var(--font-mono);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius);
}

@media (max-width: 780px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    inset: 60px 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--accent-dim);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem var(--edge) 2rem;
    gap: 1.1rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .nav-links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-social {
    margin-left: 0;
    margin-top: 0.4rem;
  }
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 0.75em 1.3em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent-warm);
  color: var(--ink);
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #ffb84d;
}

.btn-ghost {
  border-color: var(--accent-dim);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.12);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 3.6rem);
  margin-bottom: 0.3em;
}

.hero .role {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  margin-bottom: 1.1em;
  letter-spacing: 0.01em;
}

.hero .intro {
  color: var(--text-muted);
  max-width: 46ch;
  font-size: 1.05rem;
}

/* Stat strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(var(--accent-rgb), 0.18);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  margin-top: clamp(2rem, 5vw, 3rem);
}

.stat-strip div {
  background: var(--bg);
  padding: 1rem 0.8rem;
  text-align: center;
}

.stat-strip strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  color: var(--text);
}

.stat-strip span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* -------------------------------------------------------------------------
   Architecture stack diagram (hero signature element)
   ------------------------------------------------------------------------- */
.stack-diagram {
  width: 100%;
  height: auto;
  overflow: visible;
}

.stack-layer-rect {
  fill: rgba(var(--accent-rgb), 0.06);
  stroke: var(--accent);
  stroke-width: 1.25;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw-layer 1.1s ease forwards;
}

.stack-layer-rect.layer-1 { animation-delay: 0.05s; }
.stack-layer-rect.layer-2 { animation-delay: 0.35s; }
.stack-layer-rect.layer-3 { animation-delay: 0.65s; }
.stack-layer-rect.layer-4 {
  animation-delay: 0.95s;
  fill: rgba(var(--accent-warm-rgb), 0.08);
  stroke: var(--accent-warm);
}

.stack-label {
  font-family: var(--font-mono);
  fill: var(--text);
  font-size: 13px;
  opacity: 0;
  animation: fade-in-up 0.6s ease forwards;
}

.stack-caption {
  font-family: var(--font-mono);
  fill: var(--text-muted);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  opacity: 0;
  animation: fade-in-up 0.6s ease forwards;
}

.stack-label.layer-1, .stack-caption.layer-1 { animation-delay: 0.5s; }
.stack-label.layer-2, .stack-caption.layer-2 { animation-delay: 0.8s; }
.stack-label.layer-3, .stack-caption.layer-3 { animation-delay: 1.1s; }
.stack-label.layer-4, .stack-caption.layer-4 { animation-delay: 1.4s; }

@keyframes draw-layer {
  to { stroke-dashoffset: 0; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .stack-layer-rect,
  .stack-label,
  .stack-caption {
    animation: none !important;
    stroke-dashoffset: 0 !important;
    opacity: 1 !important;
  }
}

/* -------------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------------- */
.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section-alt {
  background: var(--bg-surface);
  border-top: 1px solid rgba(var(--accent-rgb), 0.12);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.12);
  transition: background-color 0.2s ease;
}

.section h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  max-width: 30ch;
}

.section-lede {
  color: var(--text-muted);
  max-width: 60ch;
  font-size: 1.05rem;
}

/* -------------------------------------------------------------------------
   Blueprint card — corner-bracket frame
   ------------------------------------------------------------------------- */
.bp-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  padding: 1.6rem;
  transition: background-color 0.2s ease;
}

.bp-card::before,
.bp-card::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--accent);
}

.bp-card::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}

.bp-card::after {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

/* -------------------------------------------------------------------------
   Chips / tags
   ------------------------------------------------------------------------- */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--text);
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  padding: 0.4em 0.8em;
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-block;
}

.chip-amber {
  border-color: rgba(var(--accent-warm-rgb), 0.5);
  color: var(--accent-warm);
}

/* Competency category cards (home) */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .category-grid { grid-template-columns: 1fr; }
}

.category-card h3 {
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 0.6em;
}

/* -------------------------------------------------------------------------
   Skills matrix
   ------------------------------------------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}

@media (max-width: 780px) {
  .skills-grid { grid-template-columns: 1fr; }
}

.skills-group h3 {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9em;
  padding-bottom: 0.6em;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.18);
}

/* -------------------------------------------------------------------------
   Timeline / experience
   ------------------------------------------------------------------------- */
.role-block {
  padding: 2rem 0;
  border-top: 1px solid rgba(var(--accent-rgb), 0.14);
}

.role-block:first-child {
  border-top: none;
}

.role-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
}

.role-head h3 {
  font-size: 1.3rem;
  margin: 0;
}

.role-dates {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-warm);
  white-space: nowrap;
}

.role-org {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 0.3em;
}

.role-context {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1em;
}

.role-block ul {
  display: grid;
  gap: 0.6em;
}

.role-block li {
  position: relative;
  padding-left: 1.3em;
  font-size: 0.98rem;
}

.role-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--accent);
}

/* Revision log (earlier experience) */
.revision-log {
  margin-top: 2.5rem;
  border-top: 1px solid rgba(var(--accent-rgb), 0.14);
  padding-top: 1.2rem;
}

.revision-log summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-transform: uppercase;
  padding: 0.5em 0;
  list-style: none;
}

.revision-log summary::-webkit-details-marker {
  display: none;
}

.revision-log summary::before {
  content: "+ ";
}

.revision-log[open] summary::before {
  content: "\2212 ";
}

.revision-entry {
  padding: 1rem 0;
  border-top: 1px dashed rgba(var(--accent-rgb), 0.18);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.3rem 1rem;
}

.revision-entry .rev-role {
  font-weight: 600;
}

.revision-entry .rev-org {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.revision-entry .rev-dates {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: right;
}

.revision-entry p {
  grid-column: 1 / -1;
  margin: 0.2rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* -------------------------------------------------------------------------
   Project cards
   ------------------------------------------------------------------------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.3rem;
  margin-top: 2.2rem;
}

@media (max-width: 780px) {
  .project-grid { grid-template-columns: 1fr; }
}

.project-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.15em;
}

.project-org {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.8em;
}

.project-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.project-tags {
  margin-top: 1rem;
}

.proprietary-note {
  margin-top: 3rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  border-left: 2px solid var(--accent-warm);
  padding-left: 1rem;
}

/* -------------------------------------------------------------------------
   Education
   ------------------------------------------------------------------------- */
.edu-entry {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  padding: 1.6rem 0;
  border-top: 1px solid rgba(var(--accent-rgb), 0.14);
}

.edu-entry:first-of-type {
  border-top: none;
}

.edu-year {
  font-family: var(--font-mono);
  color: var(--accent-warm);
  font-size: 0.85rem;
  white-space: nowrap;
}

.edu-entry h3 {
  margin-bottom: 0.2em;
  font-size: 1.15rem;
}

.edu-entry p {
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 560px) {
  .edu-entry {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}

/* -------------------------------------------------------------------------
   Resume page
   ------------------------------------------------------------------------- */
.resume-embed {
  margin-top: 2rem;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  background: var(--bg-surface);
}

.resume-embed iframe {
  width: 100%;
  height: 80vh;
  border: none;
  display: block;
  /* PDFs render on white regardless of site theme */
  background: #e8e8e8;
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.6rem;
}

.resume-updated {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.resume-gate {
  width: 100%;
  max-width: 460px;
}

.resume-gate label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  margin-bottom: 0.6em;
}

.resume-gate-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.resume-gate-row input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  background: var(--bg-surface);
  border: 1px solid var(--accent-dim);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.7em 0.9em;
  border-radius: var(--radius);
}

.resume-gate-row input[type="email"]:focus-visible {
  outline: 2px solid var(--accent-warm);
  outline-offset: 2px;
}

.resume-gate-row input[aria-invalid="true"] {
  border-color: var(--accent-warm);
}

.resume-gate-error {
  margin: 0.6em 0 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-warm);
}

.resume-unlocked {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.resume-unlocked[hidden] {
  display: none;
}

.resume-gate-note {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* -------------------------------------------------------------------------
   Contact
   ------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
  margin-top: 2.2rem;
  max-width: 620px;
}

@media (max-width: 600px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-card {
  text-decoration: none;
  color: var(--text);
  display: block;
}

.contact-card .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.6em;
}

.contact-card .value {
  font-size: 1.05rem;
  word-break: break-word;
}

.contact-card:hover {
  border-color: var(--accent);
}

.form-note {
  margin-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  border-left: 2px solid var(--accent-dim);
  padding-left: 1rem;
  max-width: 60ch;
}

/* -------------------------------------------------------------------------
   Headshot — circular, plain ring frame
   ------------------------------------------------------------------------- */
.headshot-frame {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent-dim);
}

.headshot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid rgba(var(--accent-rgb), 0.14);
  padding: 2.4rem 0;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.footer-nav a {
  text-decoration: none;
  color: var(--text-muted);
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  text-decoration: none;
  color: var(--text-muted);
}

.footer-social a:hover {
  color: var(--accent);
}

.footer-caption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 1.4rem;
  opacity: 0.7;
}
