/* ============================================================
   Northern Borough Designs — Alexis Rivera
   Dark canvas, Bricolage Grotesque display, one warm accent.
   Restrained on purpose: no cursor tricks, no scroll gimmicks.
   Content and credentials lead; typography does the rest.
   ============================================================ */

/* --- Tokens -------------------------------------------- */
/* Bronx-flag palette, shared with the résumé PDF:
   navy #103a6e, orange, and cream standing in for the white. */
:root {
  --bg: #0e2542;
  --bg-2: #16314f;
  --fg: #f3efe4;
  --fg-dim: #a3bad6;
  --muted: #7089a6;
  --line: rgba(243, 239, 228, 0.12);
  --line-strong: rgba(243, 239, 228, 0.22);
  --accent: #ff6a3d;
  --blue: #103a6e;
  /* Structural blue for text/rules. Navy on cream, lifted steel on
     navy, so the flag's blue stays legible in both themes. */
  --blue-text: #9dc0e8;
  /* The three flag squares. */
  --sq-orange: #ff6a3d;
  --sq-white: #f3efe4;
  --sq-blue: #5b8fd0;

  --display: "Bricolage Grotesque", "Space Grotesk", -apple-system, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, monospace;

  --gutter: clamp(1rem, 3vw, 2.5rem);
  --measure: 42rem;
}

/* Respect the visitor's OS theme. */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbf8f2;
    --bg-2: #f3efe4;
    --fg: #17161d;
    --fg-dim: #55503f;
    --muted: #8a8271;
    --line: rgba(23, 22, 29, 0.10);
    --line-strong: rgba(23, 22, 29, 0.18);
    --accent: #e8590c;
    --blue: #103a6e;
    --blue-text: #103a6e;
    --sq-orange: #e8590c;
    --sq-white: #ffffff;
    --sq-blue: #103a6e;
  }
}

/* --- Reset --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Editorial typesetting defaults. Hanging punctuation pulls
     opening quotes out of the measure so paragraph edges align
     optically. text-wrap keeps rag natural and kills orphans. */
  hanging-punctuation: first last;
  font-feature-settings: "kern", "liga", "calt";
  font-variant-numeric: proportional-nums;
  /* Prevent long unbreakable strings (URLs, emails, long words)
     from forcing horizontal overflow on narrow screens. */
  overflow-wrap: break-word;
  word-wrap: break-word;
}
html, body {
  overflow-x: clip;
  max-width: 100vw;
}
/* Defensive: nothing inside a wrap should ever exceed the viewport.
   Handles absolute-positioned decor (chapter marks), long unbreakable
   strings, and any grid/flex child that would otherwise force expansion. */
.wrap, .measure { max-width: min(1200px, 100%); }
img, svg, video, iframe, table { max-width: 100%; height: auto; }
/* Wrap discipline — the single move that separates template
   from designed. Balance on headlines gives visually even lines;
   pretty on body copy prevents last-line orphans. */
h1, h2, h3, h4, .hero-heading, .section-title, .project-title,
.foot-mega, .roles .role-title {
  text-wrap: balance;
}
p, li, .hero-sub, .prose p, .profile,
.work-row .title, .project-body p {
  text-wrap: pretty;
}
/* Tabular numerals wherever numbers align in columns — dates,
   metrics, index numbers. Keeps digit widths uniform. */
.hero-meta .val, .work-row .idx, .work-row .meta,
.project-meta, .roles .years, .project-idx {
  font-variant-numeric: tabular-nums;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection { background: var(--accent); color: var(--bg); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--fg); color: var(--bg);
  padding: 10px 14px; z-index: 100;
  border-radius: 6px; font-family: var(--mono); font-size: 13px;
}
.skip:focus { left: 12px; top: 12px; }

/* --- Layout containers --------------------------------- */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.measure {
  max-width: var(--measure);
  margin-left: auto; margin-right: auto;
  padding: 0 var(--gutter);
}

/* --- Nav (sticky, gains a surface on scroll) ----------- */
header.nav {
  position: sticky; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1.1rem 0;
  transition: padding .25s ease, background .25s ease;
}
header.nav.scrolled {
  padding: 0.7rem 0;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
header.nav .row {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
  min-width: 0;
}
header.nav .row > * { min-width: 0; }
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: var(--fg);
  font-family: var(--mono); font-size: 0.78rem;
  letter-spacing: 0.1em; text-transform: uppercase;
}
/* Three rounded squares: orange / white / blue. The same mark that
   sits above the name on the résumé, carried into the nav. */
.brand-flag {
  display: inline-flex; gap: 3px; flex-shrink: 0;
}
.brand-flag i {
  display: block;
  width: 8px; height: 8px;
  border-radius: 2px;
}
.brand-flag i:nth-child(1) { background: var(--sq-orange); }
.brand-flag i:nth-child(2) { background: var(--sq-white); border: 1px solid var(--line-strong); }
.brand-flag i:nth-child(3) { background: var(--sq-blue); }
.brand em { color: var(--fg-dim); font-style: normal; font-weight: 400; margin-left: 0.15rem; }
nav.primary {
  display: flex; align-items: center; gap: 1.5rem;
  font-family: var(--mono); font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase;
}
nav.primary a {
  color: var(--fg-dim);
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
nav.primary a:hover,
nav.primary a[aria-current="page"] {
  color: var(--fg);
  border-bottom-color: var(--accent);
}
@media (max-width: 640px) {
  .brand em { display: none; }
  nav.primary { gap: 0.9rem; }
  nav.primary a { font-size: 0.7rem; }
}
/* Below iPhone SE width, shrink brand + nav further so both fit. */
@media (max-width: 460px) {
  .brand { font-size: 0.66rem; letter-spacing: 0.06em; gap: 0.4rem; }
  .brand-text { display: none; }
  nav.primary { gap: 0.85rem; }
  nav.primary a { font-size: 0.66rem; letter-spacing: 0.09em; }
}

/* --- Hero (a page header, not a stage) ------------------ */
.hero {
  padding: 3.5rem 0 3rem;
}
.hero-kicker {
  font-family: var(--mono); font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue-text);
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.hero-kicker::before {
  content: ""; display: inline-block;
  width: 28px; height: 1.5px; background: var(--accent);
}
.hero-heading {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(34px, 5.2vw, 76px);
  line-height: 1.04; letter-spacing: -0.02em;
  color: var(--fg);
  max-width: 16ch;
}
.hero-heading em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  max-width: 42rem;
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.6;
  color: var(--fg-dim);
}
.hero-sub strong { color: var(--fg); font-weight: 500; }
.hero-link { color: var(--fg); border-bottom: 1px solid var(--accent); padding-bottom: 1px; }
.hero-link:hover { color: var(--accent); }

/* --- 404 page ------------------------------------------- */
.hero.notfound { padding-top: 2.5rem; }
.notfound-code {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(120px, 20vw, 260px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--blue-text);
  opacity: 0.14;
  font-variant-numeric: tabular-nums lining-nums;
  margin-bottom: -0.35em;
  pointer-events: none;
  user-select: none;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 2.25rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue-text);
}
.hero-meta .val {
  display: block; color: var(--fg); font-size: 0.92rem;
  letter-spacing: 0.01em; margin-top: 0.3rem; text-transform: none;
  font-family: var(--sans);
}
@media (max-width: 720px) {
  .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}

/* --- Section --------------------------------------------- */
.section {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  border-top: 1px solid var(--line);
}
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}
.section-kicker {
  font-family: var(--mono); font-size: 0.75rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue-text);
  display: flex; align-items: center; gap: 0.65rem;
  margin-bottom: 0.6rem;
  font-weight: 500;
}
.section-kicker::before {
  content: ""; display: inline-block;
  width: 22px; height: 1.5px; background: var(--accent);
}
/* Editorial section number, sits opposite the kicker like a
   magazine chapter mark. Absent by default — pages opt in with
   a data attribute. */
.section-header[data-mark] { position: relative; overflow: hidden; }
.section-header[data-mark]::before {
  content: attr(data-mark);
  position: absolute;
  right: 0; top: -0.35rem;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(60px, 8vw, 110px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--blue-text);
  opacity: 0.14;
  pointer-events: none;
  font-variant-numeric: tabular-nums lining-nums;
}
/* Hide the ghost chapter mark on narrow screens — decorative, and
   at small viewport widths it competes with the actual header content. */
@media (max-width: 720px) {
  .section-header[data-mark]::before { display: none; }
}
.section-title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.15; letter-spacing: -0.015em;
  max-width: 22ch;
}
.section-title em { color: var(--accent); font-style: italic; }

/* --- Work list — timeline-styled rows to match résumé ---- */
.work-list {
  list-style: none;
  border-top: 1px solid var(--line);
}
.work-row {
  border-bottom: 1px solid var(--line);
  transition: background .2s ease;
  position: relative;
}
/* Ditch the tiny circle — the big number IS the marker now. */
.work-row:hover { background: var(--bg-2); }
.work-row a {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 1.75rem;
  align-items: center;
  padding: 1.5rem 0.75rem;
  color: var(--fg);
  transition: color .2s ease;
}
/* Oversized display numeral, tabular so 01/02/03/04 stack cleanly.
   The number becomes a rhythmic anchor down the list — a magazine
   feature-index device, not a bullet. */
.work-row .idx {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(28px, 3vw, 40px);
  color: var(--blue-text);
  letter-spacing: -0.02em;
  line-height: 1;
  text-align: right;
  font-variant-numeric: tabular-nums lining-nums;
  opacity: 0.75;
  transition: opacity .2s ease, color .2s ease;
}
.work-row:hover .idx { opacity: 1; color: var(--accent); }
.work-row .title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(19px, 2vw, 26px);
  letter-spacing: -0.012em;
  transition: color .2s ease;
}
.work-row:hover .title { color: var(--accent); }
.work-row .meta {
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue-text);
  text-align: right;
}
@media (max-width: 640px) {
  .work-row a {
    grid-template-columns: 3rem 1fr;
    gap: 1rem;
    padding: 1.15rem 0.5rem;
  }
  .work-row .idx {
    font-size: 28px;
    text-align: left;
  }
  .work-row .title { font-size: 18px; }
  .work-row .meta {
    grid-column: 2;
    text-align: left;
    font-size: 0.65rem;
    margin-top: 0.35rem;
  }
}

/* --- Prose --------------------------------------------- */
.prose > * + * { margin-top: 1.05em; }
.prose p, .prose li {
  color: var(--fg-dim);
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.65;
}
.prose strong { color: var(--fg); font-weight: 500; }
.prose a {
  color: var(--fg); border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: color .2s ease;
}
.prose a:hover { color: var(--accent); }

/* --- Buttons ------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--mono); font-size: 0.76rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.8rem 1.3rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--fg);
  background: transparent;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn.primary { background: var(--blue); color: #ffffff; border-color: var(--blue); }
.btn.primary:hover { background: var(--accent); color: #ffffff; border-color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* --- Project blocks (work.html) ------------------------ */
.project {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  border-top: 1px solid var(--line);
}
.project:first-of-type { border-top: 0; }
.project-idx {
  font-family: var(--mono); font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue-text);
  font-weight: 500;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.project-idx::before {
  content: ""; display: inline-block;
  width: 22px; height: 1.5px; background: var(--accent);
}
.project-title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.08; letter-spacing: -0.02em;
  max-width: 16ch;
}
.project-title em { color: var(--accent); font-style: italic; }
.project-meta {
  margin-top: 1rem;
  display: flex; gap: 1.25rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue-text);
}
.project-body {
  margin-top: 2rem;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 1000px;
}
.project-body p { color: var(--fg-dim); font-size: clamp(16px, 1.1vw, 18px); line-height: 1.6; }
.project-body p + p { margin-top: 1em; }
.project-body strong { color: var(--fg); font-weight: 500; }
@media (max-width: 720px) {
  .project-body { grid-template-columns: 1fr; gap: 1.25rem; }
}

.gallery {
  margin-top: 2.25rem;
  display: grid; gap: 0.85rem;
}
.gallery.two { grid-template-columns: 1fr 1fr; }
.gallery.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .gallery.four { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .gallery.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .gallery.two  { grid-template-columns: 1fr; } .gallery.four { grid-template-columns: 1fr; } }
.gallery figure {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  transition: border-color .2s ease;
}
.gallery figure:hover,
.gallery figure:focus-visible { border-color: var(--accent); }
.gallery figure img {
  width: 100%; height: auto;
}
.gallery figcaption {
  position: absolute; left: 10px; bottom: 10px;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 9px; border-radius: 2px;
  font-family: var(--mono); font-size: 0.68rem;
  color: var(--fg); letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity .2s ease;
}
.gallery figure:hover figcaption,
.gallery figure:focus-within figcaption { opacity: 1; }

/* --- About: role timeline (matches résumé rail treatment) - */
.roles {
  list-style: none;
  position: relative;
  padding-left: 1.75rem;
  border-left: 1.5px solid var(--line-strong);
  margin-left: 0.5rem;
}
.roles > li {
  padding: clamp(1.25rem, 2.5vw, 2rem) 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 2rem;
  position: relative;
}
.roles > li:first-child { border-top: 0; padding-top: 0.5rem; }
.roles > li::before {
  content: "";
  position: absolute;
  left: calc(-1.75rem - 5.5px);
  top: calc(clamp(1.25rem, 2.5vw, 2rem) + 0.35rem);
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--blue-text);
}
.roles > li:first-child::before {
  top: 0.85rem;
  background: var(--accent);
  border-color: var(--accent);
  width: 11px; height: 11px;
  left: calc(-1.75rem - 6.5px);
}
.roles .years {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue-text);
  padding-top: 0.5rem;
  font-weight: 500;
}
.roles .role-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.25; letter-spacing: -0.01em;
  color: var(--fg);
}
.roles .role-org {
  font-family: var(--sans); font-size: 0.88rem;
  color: var(--fg-dim); margin-top: 0.3rem;
}
.roles .role-body {
  margin-top: 1rem;
  color: var(--fg-dim);
  font-size: clamp(15px, 1.05vw, 16.5px);
  line-height: 1.6;
}
.roles .role-body ul { list-style: none; padding: 0; }
.roles .role-body li {
  padding: 0.3rem 0 0.3rem 1.1rem;
  position: relative;
}
.roles .role-body li::before {
  content: "›"; position: absolute; left: 0;
  color: var(--accent); font-weight: 700;
}
.roles .sub {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line-strong);
}
.roles .sub-title {
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: 1rem;
}
.roles .sub-years {
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.08em; color: var(--fg-dim);
  margin-left: 0.65rem;
}
@media (max-width: 720px) {
  .roles > li { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* --- About: toolkit --------------------------------------- */
.toolkit {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0.9rem 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.toolkit:last-of-type { border-bottom: 1px solid var(--line); }
.toolkit dt {
  font-family: var(--mono); font-size: 0.75rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue-text);
  font-weight: 500;
}
.toolkit dd {
  color: var(--fg);
  font-size: clamp(14.5px, 1vw, 16px);
  line-height: 1.55;
}
@media (max-width: 620px) {
  .toolkit { grid-template-columns: 1fr; gap: 0.3rem; }
}

/* --- Footer -------------------------------------------- */
footer.foot {
  padding: clamp(3rem, 5vw, 4.5rem) 0 2.5rem;
  border-top: 1px solid var(--line);
}
.foot-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.25rem;
}
.foot-mega {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.15; letter-spacing: -0.015em;
  max-width: 20ch;
}
.foot-mega em { color: var(--accent); font-style: italic; }
.foot-col {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-dim);
}
.foot-col strong { color: var(--blue-text); font-weight: 500; }
.foot-col a {
  display: block; color: var(--fg); text-transform: none;
  letter-spacing: 0.01em; font-family: var(--sans); font-size: 0.94rem;
  margin-top: 0.35rem;
}
.foot-col a:hover { color: var(--accent); }
.foot-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-dim);
}
.foot-brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
}

/* --- Contact page ----------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 2vw, 2rem);
  margin-bottom: 2.5rem;
}
.contact-card {
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-2);
}
.contact-card-cta { grid-column: 1 / -1; }
.contact-eyebrow {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue-text);
  font-weight: 500;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
  border-bottom: 1.5px solid var(--accent);
  display: inline-block;
}
.contact-methods {
  list-style: none;
  display: grid;
  gap: 1rem;
}
.contact-methods li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
}
.contact-method-label {
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-dim);
}
.contact-method-value {
  font-family: var(--sans);
  font-size: clamp(15px, 1.15vw, 17px);
  color: var(--fg);
  overflow-wrap: anywhere;
}
a.contact-method-value {
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
a.contact-method-value:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.contact-list {
  list-style: none;
  display: grid;
  gap: 1rem;
}
.contact-list li {
  color: var(--fg-dim);
  font-size: clamp(15px, 1.05vw, 16.5px);
  line-height: 1.55;
  padding-left: 1rem;
  position: relative;
}
.contact-list li::before {
  content: "›"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}
.contact-list strong { color: var(--fg); font-weight: 500; }
.contact-list a {
  color: var(--fg); border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}
.contact-cta-copy {
  color: var(--fg-dim);
  font-size: clamp(15px, 1.05vw, 16.5px);
  line-height: 1.55;
  max-width: 42rem;
  margin-bottom: 1.5rem;
}
.contact-fineprint {
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--fg-dim);
  max-width: 42rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-methods li { grid-template-columns: 5rem 1fr; gap: 0.75rem; }
}
@media (max-width: 720px) { .foot-top { grid-template-columns: 1fr; } }

/* --- Lightbox ------------------------------------------ */
dialog.lb {
  padding: 0; border: 0; background: transparent;
  color: var(--fg);
  max-width: 100vw; max-height: 100vh;
  width: 100%; height: 100%;
  overflow: hidden;
}
dialog.lb::backdrop {
  background: rgba(11, 10, 18, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
dialog.lb[open] { display: flex; align-items: center; justify-content: center; }
.lb-inner {
  position: relative; margin: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1rem;
  max-width: 92vw; max-height: 92vh;
}
.lb-img {
  max-width: 92vw; max-height: 82vh;
  width: auto; height: auto; object-fit: contain;
  border-radius: 4px;
  background: var(--bg-2);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}
.lb-caption {
  font-family: var(--mono); font-size: 0.76rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg); text-align: center; padding: 0 1rem;
}
.lb-count { color: var(--fg-dim); font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; }
.lb-original {
  color: var(--fg); font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  border-bottom: 1px solid var(--accent); padding-bottom: 2px;
}
.lb-original:hover { color: var(--accent); }
.lb-close,
.lb-nav {
  position: fixed; z-index: 1;
  background: rgba(240, 235, 224, 0.06);
  color: var(--fg);
  border: 1px solid rgba(240, 235, 224, 0.14);
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
  font-family: var(--mono); line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.lb-close:hover, .lb-nav:hover {
  background: rgba(240, 235, 224, 0.14);
  border-color: var(--accent);
}
.lb-close { top: 18px; right: 22px; width: 40px; height: 40px; font-size: 21px; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 44px; height: 44px; font-size: 22px; }
.lb-prev { left: 22px; }
.lb-next { right: 22px; }
@media (max-width: 640px) {
  .lb-nav { width: 36px; height: 36px; font-size: 18px; }
  .lb-prev { left: 10px; } .lb-next { right: 10px; }
  .lb-close { top: 10px; right: 10px; width: 34px; height: 34px; }
}

/* --- Reveal (very subtle, short) ------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
