/* ==========================================================================
   girisharora.com
   Dark slate theme. Copper traces + cyan signal pulses.
   Type scale floor: body text 16px, labels and dates 13px.
   ========================================================================== */

:root {
  --bg: #11161d;
  --bg-2: #151b23;
  --surface: #19212b;
  --surface-2: #1e2732;
  --line: #29333f;
  --line-2: #364251;
  --text: #e9eef3;
  --body: #d3dbe4;
  --muted: #a6b1be;
  --faint: #8592a0;
  --copper: #e8a35c;
  --copper-2: #f4c27a;
  --cyan: #4dd6c8;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Space Grotesk", var(--font-body);
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-label: .8125rem;   /* 13px: labels, dates, tags */
  --fs-small: .875rem;    /* 14px: tools lines, footer */
  --fs-body: 1rem;        /* 16px minimum for reading text */

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 10px;
  --header-h: 60px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--copper-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(232, 163, 92, .35); color: #fff; }
sub { font-size: .72em; line-height: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 0;
}

.mono { font-family: var(--font-mono); }
.mono-label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--copper); color: #000; padding: 8px 12px; border-radius: 6px;
}
.skip:focus { left: 8px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(17, 22, 29, .9);
  border-bottom: 1px solid rgba(41, 51, 63, .8);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(17, 22, 29, .76); backdrop-filter: blur(10px); }
}
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-chip {
  position: relative;
  display: grid; place-items: center;
  width: 30px; height: 30px;
  font: 600 .75rem/1 var(--font-mono);
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--copper);
  border-radius: 4px;
  box-shadow:
    -5px -6px 0 -4px var(--copper), -5px 0 0 -4px var(--copper), -5px 6px 0 -4px var(--copper),
    5px -6px 0 -4px var(--copper), 5px 0 0 -4px var(--copper), 5px 6px 0 -4px var(--copper);
}
.brand-chip::before {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--cyan);
}
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }

.nav-links { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 6px 10px; border-radius: 6px;
  color: var(--muted); text-decoration: none; font-size: 1rem;
  transition: color .2s, background-color .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--surface); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--copper); }

@media (max-width: 760px) {
  .nav-sec { display: none; }
  .brand-name { display: none; }
  .nav-links a { padding: 6px 9px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line-2); border-radius: 8px;
  background: rgba(25, 33, 43, .8);
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 1rem;
  transition: transform .2s var(--ease), border-color .2s, background-color .2s, color .2s;
}
.btn:hover { border-color: var(--copper); color: var(--text); }
.btn-primary { background: var(--copper); border-color: var(--copper); color: #160d03; }
.btn-primary:hover { background: var(--copper-2); border-color: var(--copper-2); color: #160d03; }
@media (hover: hover) { .btn:hover { transform: translateY(-2px); } }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 8vh, 88px) 0 clamp(32px, 5vh, 52px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 500px at 80% 35%, rgba(232, 163, 92, .06), transparent 70%),
    var(--bg);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero > .wrap { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
}
.hero-text { display: flex; flex-direction: column; align-items: flex-start; }
.hero-status {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 20px; padding: 6px 14px 6px 12px;
  font-family: var(--font-mono); font-size: var(--fs-small);
  color: var(--text);
  border: 1px solid rgba(77, 214, 200, .35);
  background: rgba(77, 214, 200, .08);
  border-radius: 999px;
}
.dot {
  flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(77, 214, 200, .18);
}
.hero-name {
  font-size: clamp(2.6rem, 7.5vw, 5rem);
  letter-spacing: -.03em;
  line-height: 1;
  background: linear-gradient(180deg, #fff 30%, #c9d3dd);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-title { margin: 18px 0 8px; font-size: clamp(1.06rem, 2.1vw, 1.25rem); color: var(--text); font-weight: 500; }
.hero-focus {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--copper-2);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.hero-photo { display: flex; justify-content: center; }
.headshot {
  position: relative; display: block;
  width: min(260px, 100%);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .7);
  cursor: zoom-in;
}
.headshot img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; transition: transform .5s var(--ease); }
@media (hover: hover) { .headshot:hover img { transform: scale(1.03); } }

.highlights { margin-top: clamp(32px, 6vh, 52px); }
.highlights .mono-label { margin-bottom: 10px; }
.highlight-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.highlight-list a {
  display: flex; flex-direction: column; gap: 4px; height: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2px solid var(--copper);
  border-radius: 8px;
  text-decoration: none; color: var(--text);
  transition: border-color .25s, transform .25s var(--ease), background-color .25s;
}
.hl-title { font-weight: 600; font-size: 1rem; }
.hl-stat { font-family: var(--font-mono); font-size: var(--fs-small); color: var(--cyan); }
@media (hover: hover) {
  .highlight-list a:hover { transform: translateY(-3px); border-color: var(--line-2); border-left-color: var(--cyan); background: var(--surface-2); }
}

@media (max-width: 820px) {
  .hero { padding-top: 28px; }
  /* Phone: small photo sits beside the name; the availability line moves under the focus line. */
  .hero-grid { display: block; position: relative; }
  .hero-photo { position: absolute; top: 2px; right: var(--gutter); }
  .headshot { width: 84px; border-radius: 10px; }
  .hero-name, .hero-title { padding-right: 100px; }
  .hero-name { font-size: clamp(2.2rem, 10.5vw, 2.8rem); }
  .hero-status { order: 4; margin: 18px 0 0; }
  .hero-actions { order: 5; margin-top: 20px; }
  .highlight-list { grid-template-columns: 1fr; gap: 8px; }
  .highlight-list a { padding: 12px 14px; }
}

/* ---------- Process band (scroll-driven ALD) ---------- */

.fab-band {
  position: relative;
  height: clamp(118px, 13vw, 160px);
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.fab-band canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fab-label {
  position: absolute; left: var(--gutter); top: 10px;
  font-size: var(--fs-label); letter-spacing: .04em; color: var(--muted);
  padding: 3px 8px; border-radius: 4px;
  background: rgba(17, 22, 29, .8); border: 1px solid var(--line);
}
@media (min-width: 1184px) { .fab-label { left: calc((100vw - var(--wrap)) / 2 + var(--gutter)); } }

/* ---------- Sections ---------- */

.section { padding: clamp(56px, 9vw, 96px) 0; border-bottom: 1px solid var(--line); }
.section:nth-of-type(even) { background: var(--bg-2); }
.section--tight { padding-top: 24px; border-bottom: 0; }

.section-head { margin-bottom: clamp(24px, 4vw, 40px); }
.section-head h2 {
  display: flex; align-items: center; gap: 16px;
  font-size: clamp(1.8rem, 4.2vw, 2.5rem);
}
.section-head h2::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--line-2), transparent);
}

.bullets { margin: 0; padding: 0; list-style: none; }
.bullets li { position: relative; padding-left: 18px; margin: 8px 0; color: var(--body); font-size: var(--fs-body); }
.bullets li::before {
  content: ""; position: absolute; left: 2px; top: .68em;
  width: 6px; height: 6px; border: 1.5px solid var(--copper); border-radius: 50%;
}

/* ---------- About ---------- */

.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 5vw, 56px); align-items: start; }
.about-text p { margin: 0 0 1.1em; font-size: 1.0625rem; color: var(--body); }
.about-photo {
  display: block; overflow: hidden; border-radius: 12px; border: 1px solid var(--line-2);
  cursor: zoom-in;
}
.about-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .5s var(--ease); }
@media (hover: hover) { .about-photo:hover img { transform: scale(1.03); } }

.edu { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.edu h3 { margin-bottom: 4px; }
.edu-list { list-style: none; margin: 0; padding: 0; }
.edu-list li { padding: 12px 0; border-bottom: 1px dashed var(--line-2); }
.edu-list li:last-child { border-bottom: 0; }
.edu-list p { margin: 0; }
.edu-school { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 16px; font-weight: 600; font-size: 1rem; }
.edu-degree { color: var(--body); font-size: 1rem; }
.edu-date { font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 400; color: var(--muted); white-space: nowrap; }
.edu-award { color: var(--body); font-size: 1rem; margin-top: 4px !important; }

@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; }
}

/* ---------- Experience ---------- */

.jobs { display: grid; }
.job { padding: 28px 0; border-top: 1px solid var(--line); }
.job:first-child { padding-top: 0; border-top: 0; }
.job p { margin: 10px 0 0; color: var(--body); font-size: 1.0625rem; }
.job .bullets { margin-top: 10px; }
.job-head { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; align-items: baseline; }
.job-head h3 { font-size: 1.25rem; }
.job-head p { margin: 0; }
.job-role { grid-column: 1; margin-top: 2px !important; color: var(--copper-2) !important; font-weight: 500; font-size: 1rem !important; }
.job-date { grid-column: 2; grid-row: 1; font-size: var(--fs-label) !important; color: var(--muted) !important; white-space: nowrap; }
.job--media { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(20px, 4vw, 40px); align-items: start; }
.job-slot .slot-media { aspect-ratio: 4 / 3; border: 1px solid var(--line-2); border-radius: 10px; }
.job-slot figcaption { margin-top: 8px; font-size: var(--fs-label); color: var(--muted); font-family: var(--font-mono); }

@media (max-width: 820px) {
  .job--media { grid-template-columns: 1fr; }
  .job-slot { max-width: 420px; }
}
@media (max-width: 640px) {
  .job-head { grid-template-columns: 1fr; }
  .job-date { grid-column: 1; grid-row: auto; margin-top: 2px !important; }
}

/* ---------- Image slots ---------- */

.slot { position: relative; margin: 0; }
.slot-media { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg); }
.slot-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
a.slot-media { cursor: zoom-in; }
.slot--contain .slot-media img { object-fit: contain; background: var(--surface-2); }
.slot--chip .slot-media img { object-position: 50% 55%; }
.slot--poster .slot-media img { object-position: 50% 30%; }
.slot-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--faint);
  background:
    linear-gradient(rgba(166, 177, 190, .05) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, rgba(166, 177, 190, .05) 1px, transparent 1px) 0 0 / 20px 20px,
    var(--bg);
}
.slot-ph svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.slot-ph span { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .04em; }
@media (hover: hover) { a.slot-media:hover img { transform: scale(1.04); } }

/* ---------- Project cards ---------- */

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.card {
  position: relative;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.card::after {
  /* signal trace that runs across the top edge on hover */
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; z-index: 2;
  background: linear-gradient(90deg, transparent, var(--cyan) 40%, var(--copper) 70%, transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.card .slot-media { border-bottom: 1px solid var(--line); }
.card .slot figcaption {
  position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px);
  padding: 3px 8px; border-radius: 4px;
  font-family: var(--font-mono); font-size: var(--fs-label); color: var(--text);
  background: rgba(17, 22, 29, .78);
  pointer-events: none;
}
.card-body { flex: 1; display: flex; flex-direction: column; padding: 20px 22px 22px; }
.card h3 { font-size: 1.25rem; margin: 10px 0 6px; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; }
.tag {
  padding: 3px 9px; border-radius: 4px;
  font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .03em;
  color: var(--copper-2); background: rgba(232, 163, 92, .08); border: 1px solid rgba(232, 163, 92, .28);
}
.card-date { font-family: var(--font-mono); font-size: var(--fs-label); color: var(--muted); }
.card strong { font-weight: 600; color: var(--text); }
.card .metric { font-family: var(--font-mono); font-weight: 500; font-size: 1em; color: var(--copper-2); white-space: nowrap; }
.card-foot {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px;
  margin: auto 0 0; padding-top: 14px;
}
.card-tools { font-size: var(--fs-small); color: var(--muted); }
.repo-link { font-size: .9375rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.repo-link:hover { text-decoration: underline; }

@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px);
    border-color: rgba(232, 163, 92, .45);
    box-shadow: 0 22px 50px -26px rgba(0, 0, 0, .8), 0 18px 60px -34px rgba(232, 163, 92, .35);
  }
  .card:hover::after { transform: scaleX(1); }
}

@media (max-width: 820px) {
  .cards { grid-template-columns: 1fr; }
  .card-body { padding: 18px 18px 20px; }
}

/* ---------- Skills ---------- */

.skills { margin: 0; display: grid; }
.skill-row {
  display: grid; grid-template-columns: 240px 1fr; gap: 20px;
  padding: 18px 0; border-top: 1px solid var(--line);
}
.skill-row:last-child { border-bottom: 1px solid var(--line); }
.skill-row dt { font-family: var(--font-mono); font-size: var(--fs-small); color: var(--copper-2); padding-top: 5px; }
.skill-row dd { margin: 0; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 4px 12px; font-size: .9375rem; line-height: 1.5;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--surface); color: var(--body);
  transition: border-color .2s, color .2s, background-color .2s;
}
@media (hover: hover) { .chips li:hover { border-color: var(--cyan); color: var(--text); background: rgba(77, 214, 200, .06); } }
@media (max-width: 640px) { .skill-row { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Contact block ---------- */

.section--contact { padding: clamp(44px, 7vw, 72px) 0; }
.contact-block h2 { font-size: clamp(1.6rem, 3.6vw, 2.1rem); margin-bottom: 18px; }
.contact-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.contact-links a {
  display: flex; align-items: center; gap: 14px; height: 100%;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--text); text-decoration: none;
  font-weight: 600; font-size: 1rem; overflow-wrap: anywhere;
  transition: border-color .25s, transform .25s var(--ease);
}
.contact-links svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--copper-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact-label { display: block; font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (hover: hover) { .contact-links a:hover { border-color: rgba(232, 163, 92, .5); transform: translateY(-3px); color: var(--text); } }
@media (max-width: 820px) { .contact-links { grid-template-columns: 1fr; } }

/* ---------- Inner pages ---------- */

.page-head {
  padding: clamp(48px, 9vw, 96px) 0 clamp(24px, 4vw, 40px);
  background:
    radial-gradient(700px 300px at 85% 0%, rgba(232, 163, 92, .08), transparent 70%),
    repeating-linear-gradient(90deg, rgba(41, 51, 63, .35) 0 1px, transparent 1px 48px),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(2.4rem, 7vw, 4rem); letter-spacing: -.03em; }
.page-dek { margin: 10px 0 0; color: var(--muted); font-size: 1.0625rem; }

/* Blog list */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-item {
  display: grid; gap: 4px; padding: 22px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--text);
}
.post-item time { font-family: var(--font-mono); font-size: var(--fs-label); color: var(--muted); }
.post-item-title { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; transition: color .2s; }
.post-item-dek { color: var(--muted); font-size: 1rem; }
.post-item:hover .post-item-title { color: var(--copper-2); }

.empty { padding: 28px; border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--surface); }
.empty > p:first-child { margin: 0 0 18px; font-size: 1.1rem; }
.planned { list-style: none; margin: 10px 0 0; padding: 0; }
.planned li { padding: 10px 0 10px 22px; border-top: 1px solid var(--line); color: var(--body); position: relative; font-size: 1rem; }
.planned li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 10px; height: 2px; background: var(--faint); }

/* Post */
.post { padding: clamp(32px, 6vw, 64px) var(--gutter) clamp(56px, 8vw, 96px); }
.back-link { font-family: var(--font-mono); font-size: var(--fs-small); text-decoration: none; color: var(--muted); }
.back-link:hover { color: var(--copper-2); }
.post-header { margin: 24px 0 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.post-header h1 { font-size: clamp(2rem, 5.5vw, 3rem); margin-top: 10px; }
.post-dek { color: var(--muted); font-size: 1.15rem; margin: 12px 0 0; }
.post-footer { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }

.prose { font-size: 1.0625rem; color: var(--body); }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { color: var(--text); margin-top: 1.8em; }
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.25rem; }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose li + li { margin-top: .35em; }
.prose img { border-radius: 8px; border: 1px solid var(--line-2); cursor: zoom-in; }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--copper); color: var(--muted); }
.prose code { font-family: var(--font-mono); font-size: .9em; padding: .1em .35em; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); }
.prose pre { overflow-x: auto; padding: 16px; border-radius: 8px; background: #0d1218; border: 1px solid var(--line); line-height: 1.5; }
.prose pre code { padding: 0; border: 0; background: none; font-size: .9rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { font-family: var(--font-mono); font-size: var(--fs-label); color: var(--muted); font-weight: 500; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* ---------- Footer ---------- */

.site-footer { padding: 28px 0 40px; color: var(--faint); font-size: var(--fs-small); border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-inner p { margin: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--copper-2); }

/* ---------- Lightbox ---------- */

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--text);
  overflow: hidden;
}
.lightbox[open] { display: grid; place-items: center; animation: lb-fade .25s ease both; }
.lightbox::backdrop { background: rgba(8, 11, 15, .92); }
.lightbox figure { margin: 0; padding: 56px 16px 16px; max-width: 100%; max-height: 100%; display: grid; justify-items: center; gap: 12px; }
.lightbox img {
  max-width: min(1200px, 94vw); max-height: calc(100vh - 140px);
  width: auto; height: auto; object-fit: contain;
  border-radius: 8px; border: 1px solid var(--line-2);
  animation: lb-zoom .3s var(--ease) both;
}
.lightbox figcaption { font-family: var(--font-mono); font-size: var(--fs-small); color: var(--muted); text-align: center; }
.lightbox-close {
  position: fixed; top: 12px; right: 12px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--surface);
  color: var(--text); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { border-color: var(--copper); }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lb-zoom { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Scroll-in reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.in { opacity: 1; transform: none; }
.js .card.reveal.in { transition: transform .35s var(--ease), border-color .35s, box-shadow .35s, opacity .7s var(--ease); transition-delay: 0s; }

.js .hero-text > *, .js .hero-photo, .js .highlights { animation: rise .8s var(--ease) both; }
.js .hero-text > :nth-child(2) { animation-delay: .06s; }
.js .hero-text > :nth-child(3) { animation-delay: .12s; }
.js .hero-text > :nth-child(4) { animation-delay: .18s; }
.js .hero-text > :nth-child(5) { animation-delay: .24s; }
.js .hero-photo { animation-delay: .1s; }
.js .highlights { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
