/* ==========================================================================
   Variant: DARK TECHNICAL
   Navy canvas, monospace labels, faint grid, cyan accent. Reads like a
   well-kept engineering tool rather than a brochure.
   ========================================================================== */

:root {
  --bg: #0b1017;
  --bg-raised: #111823;
  --bg-soft: #161f2c;
  --text: #e6edf3;
  --text-muted: #8b98a8;
  --accent: #4fd1c5;
  --accent-ink: #06201d;
  --accent-soft: #10302e;
  --border: #223041;
  --grid: rgb(255 255 255 / 0.035);
  --shadow: 0 1px 0 rgb(255 255 255 / 0.03) inset, 0 20px 40px -24px rgb(0 0 0 / 0.8);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --measure: 62ch;
  --container: 1120px;
  --gutter: 16px;
  --radius: 10px;
  --radius-sm: 6px;
}
/* This variant is dark by design; light scheme is not offered. */
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 100% 48px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 48px 100%,
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-sans);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.skip-link { position: absolute; left: 16px; top: -100px; padding: 10px 14px; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgb(11 16 23 / 0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; }
.brand { font-family: var(--font-mono); font-size: 0.95rem; text-decoration: none; letter-spacing: 0.02em; }
.brand::before { content: "~/ "; color: var(--accent); }
.site-nav { display: flex; gap: clamp(14px, 3vw, 28px); font-family: var(--font-mono); font-size: 0.85rem; }
.site-nav a { text-decoration: none; color: var(--text-muted); }
.site-nav a:hover { color: var(--accent); }

/* Hero */
.hero { padding-block: clamp(48px, 9vw, 110px); }
.hero__inner { display: grid; gap: 32px; align-items: center; }
@media (min-width: 880px) { .hero__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; } }
.eyebrow {
  margin: 0 0 18px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.lead { font-size: 1.15rem; color: var(--text-muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex; align-items: center; min-height: 46px; padding: 10px 20px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-raised); color: var(--text); font-weight: 500; text-decoration: none;
  font-family: var(--font-mono); font-size: 0.92rem;
  transition: border-color 150ms, background-color 150ms, color 150ms;
}
.button:hover { border-color: var(--accent); color: var(--accent); }
.button--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.button--primary:hover { background: #7ee3d9; color: var(--accent-ink); }
.hero__links { display: flex; gap: 20px; list-style: none; margin: 22px 0 0; padding: 0; font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); }
.hero__portrait { margin: 0; justify-self: center; width: min(100%, 400px); position: relative; }
@media (max-width: 879px) { .hero__portrait { width: min(70vw, 340px); } }
.hero__portrait img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  filter: saturate(0.92);
}
.hero__portrait::after {
  content: ""; position: absolute; inset: 12px -12px -12px 12px; z-index: -1;
  border: 1px solid var(--border); border-radius: var(--radius);
}

/* Sections */
section { scroll-margin-top: 72px; }
.section-head { margin-bottom: clamp(24px, 4vw, 40px); }
.section-head h2::before, .about h2::before, .contact h2::before {
  content: "// "; color: var(--accent); font-family: var(--font-mono); font-weight: 500;
}
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

/* Work */
.work { padding-block: clamp(40px, 7vw, 80px); border-top: 1px solid var(--border); }
.project {
  display: grid; gap: 20px; background: var(--bg-raised);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.project__media { margin: 0; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.project__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.project__body { padding: 4px 24px 26px; }
.project__body h3 { margin-top: 10px; }
.project__summary { font-size: 1.05rem; color: var(--text-muted); }
.project__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block; padding: 3px 9px; border-radius: var(--radius-sm);
  background: var(--bg-soft); color: var(--text-muted); border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.02em;
}
.tag--accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.facts { display: grid; gap: 10px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--border); font-size: 0.92rem; }
.facts div { display: grid; grid-template-columns: 5.5em 1fr; gap: 10px; }
.facts dt { color: var(--accent); font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; padding-top: 2px; }
.facts dd { margin: 0; }
.project--featured { margin-bottom: 24px; }
.project--featured .project__media img { aspect-ratio: 1440 / 967; }
@media (min-width: 720px) { .project--featured .project__body { padding: 8px 32px 32px; } }
.project-grid { display: grid; gap: 24px; }
@media (min-width: 720px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.project-grid .project__media { aspect-ratio: 4 / 3; overflow: hidden; }
.work__more { margin-top: 32px; color: var(--text-muted); max-width: 70ch; }

/* About */
.about { padding-block: clamp(40px, 7vw, 80px); border-top: 1px solid var(--border); }
.about__inner { display: grid; gap: 32px; }
@media (min-width: 880px) {
  .about__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: 64px; }
  .about__inner .section-head { grid-column: 1 / -1; }
}
.about__text p + p { margin-top: 1em; }
.about__side { padding: 24px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); align-self: start; }
.about__side h3 { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.about__side h3 + p, .about__side ul + h3 { margin-top: 24px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 24px; }
.checklist li::before { content: ">"; position: absolute; left: 0; top: 0; color: var(--accent); font-family: var(--font-mono); font-weight: 700; }
.tools { font-family: var(--font-mono); font-size: 0.9rem; line-height: 1.9; }

/* Contact */
.contact { padding-block: clamp(48px, 8vw, 96px); border-top: 1px solid var(--border); text-align: center; }
.contact .lead, .contact p { margin-inline: auto; }
.contact .actions { justify-content: center; }
.contact__note { margin-top: 20px; font-size: 0.92rem; color: var(--text-muted); font-family: var(--font-mono); }

/* Footer */
.site-footer { padding: 24px 0 40px; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); }
