/* ==========================================================================
   Luis Salas — Fantasy Illustrator & Concept Artist
   Museum-grade dark gallery stylesheet (luis-salas.com)
   Palette: bg #0D0E12 · surface #15171E · elevated #1D2029
            border rgba(255,255,255,.08) · text #F3EFE7 · muted #A8A39A
            accent #C9A45C / hover #DFBE7A
   ========================================================================== */

:root {
  --bg: #0D0E12;
  --surface: #15171E;
  --elevated: #1D2029;
  --border: rgba(255, 255, 255, 0.08);
  --text: #F3EFE7;
  --muted: #A8A39A;
  --accent: #C9A45C;
  --accent-hover: #DFBE7A;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --header-h: 68px;
  --max-w: 1240px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .6em;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.7rem); }

p { margin: 0 0 1em; }

::selection { background: rgba(201, 164, 92, .35); color: var(--text); }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: #14151a;
  padding: .7rem 1.2rem;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}

/* ---------- Layout primitives ---------- */
.container {
  width: min(var(--max-w), 92vw);
  margin-inline: auto;
}

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 68ch;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 14, 18, 0.90);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: .65rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand img { height: 40px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: .03em;
}

/* Desktop nav — ALWAYS visible >= 860px */
.desktop-nav { display: none; }
.desktop-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 2vw, 1.6rem);
}
.desktop-nav a {
  color: var(--text);
  font-size: .95rem;
  font-weight: 500;
  padding: .45rem .15rem;
  border-bottom: 2px solid transparent;
}
.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: var(--accent-hover);
  border-bottom-color: var(--accent);
}

.shop-link {
  display: inline-block;
  margin-left: .4rem;
  padding: .5rem 1rem !important;
  border: 1px solid var(--accent) !important;
  border-radius: 999px;
  color: var(--accent) !important;
  font-weight: 600 !important;
}
.shop-link:hover {
  background: rgba(201, 164, 92, .12);
  color: var(--accent-hover) !important;
}

/* Mobile hamburger */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px; width: 100%;
  background: var(--text);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: #0D0E12;
  border-top: 1px solid var(--border);
  padding: 2rem 6vw 3rem;
  overflow-y: auto;
}
.mobile-drawer.is-open { display: block; }
.mobile-drawer ul { list-style: none; margin: 0; padding: 0; }
.mobile-drawer li { border-bottom: 1px solid var(--border); }
.mobile-drawer a {
  display: block;
  padding: 1rem .25rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--text);
}
.mobile-drawer a:hover,
.mobile-drawer a[aria-current="page"] { color: var(--accent-hover); }
.mobile-drawer .drawer-shop {
  margin-top: 1.6rem;
  display: inline-block;
  padding: .75rem 1.4rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent) !important;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
}

@media (min-width: 860px) {
  .desktop-nav { display: block; }
  .nav-toggle, .mobile-drawer { display: none !important; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: clamp(2rem, 4.2vw, 3.2rem) 0 clamp(1.2rem, 2.4vw, 2rem); }
.hero h1 { max-width: 22ch; margin-bottom: .5em; }
.hero .lead { margin-bottom: 1.25rem; }
#gallery.section { padding-top: clamp(1.5rem, 3vw, 2.2rem); }

.badge-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem 1.1rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent-hover);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.availability-badge::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(201, 164, 92, .8);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }

.btn {
  display: inline-block;
  padding: .85rem 1.7rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: .98rem;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.btn-primary { background: var(--accent); color: #14151a; }
.btn-primary:hover { background: var(--accent-hover); color: #14151a; transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-hover); }

/* ==========================================================================
   Gallery (masonry via CSS columns — zero cropping)
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2.2rem;
}
.filter-pill {
  padding: .55rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
}
.filter-pill:hover { border-color: var(--accent); color: var(--text); }
.filter-pill[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #14151a;
  font-weight: 600;
}

.masonry {
  column-count: 1;
  column-gap: 10px;
}
@media (min-width: 720px)  { .masonry { column-count: 2; } }
@media (min-width: 1100px) { .masonry { column-count: 3; } }

.art-card {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  cursor: zoom-in;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.art-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 164, 92, .45);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
}

.art-card figure { margin: 0; position: relative; overflow: hidden; }
.art-card img {
  width: 100%;
  height: auto;
  transition: transform .45s ease;
}
.art-card:hover img { transform: scale(1.02); }

/* Hover caption reveal */
.art-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.6rem 1.1rem .95rem;
  background: linear-gradient(to top, rgba(8, 9, 12, .94) 0%, rgba(8, 9, 12, .55) 55%, transparent 100%);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.art-card:hover .art-caption,
.art-card:focus-visible .art-caption { opacity: 1; transform: translateY(0); }

.art-caption h3 { font-size: 1.25rem; margin: 0 0 .15em; color: var(--text); }
.art-caption .cat-tag {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-hover);
  font-weight: 600;
}

/* Keyboard-accessible card (button semantics via <a> wrapper) */
.art-card a { display: block; color: inherit; }

.gallery-count-note {
  margin-top: .5rem;
  color: var(--muted);
  font-size: .9rem;
}

/* Floating Skip pill button while deep in gallery images */
.skip-gallery-btn {
  position: fixed;
  bottom: calc(1.25rem + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: clamp(.48rem, 1.2vw, .58rem) clamp(1.15rem, 3vw, 1.5rem);
  max-width: calc(100vw - 2rem);
  border-radius: 999px;
  background: rgba(13, 14, 18, .88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 164, 92, .55);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(.74rem, 1.4vw, .8rem);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .55);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity .24s ease, transform .24s ease, visibility .24s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.skip-gallery-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.skip-gallery-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #121318;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  background: rgba(6, 7, 10, .97);
}
.lightbox.is-open { display: flex; }

.lightbox-stage {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  overflow: hidden;
  padding: 3.4rem 4.2rem calc(3.8rem + env(safe-area-inset-bottom));
}
.lightbox-img-wrap {
  max-width: 100%;
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .28s ease;
  touch-action: none;
  will-change: transform;
}
.lightbox-img-wrap.is-zoomed {
  transition: transform .07s ease-out;
  cursor: zoom-out;
}

.lightbox img {
  max-width: min(88vw, 1540px);
  max-height: calc(100vh - 140px);
  width: auto; height: auto;
  border-radius: 4px;
  cursor: zoom-in;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .75);
}
.lightbox-img-wrap.is-zoomed img { cursor: zoom-out; }

/* Bottom INFO pill toggle + separated dark translucent drawer */
.lb-info-toggle {
  position: absolute;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .46rem 1.2rem;
  border-radius: 999px;
  background: rgba(16, 18, 24, .88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 164, 92, .55);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
}
.lb-info-toggle:hover,
.lb-info-toggle[aria-expanded="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #121318;
}

.lightbox-meta {
  position: absolute;
  left: 50%;
  bottom: calc(3.85rem + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(14px);
  z-index: 4;
  width: min(90vw, 760px);
  padding: 1.15rem 1.5rem;
  border-radius: 14px;
  background: rgba(10, 11, 16, .92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .75);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}
.lightbox.is-info-open .lightbox-meta {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.lightbox-meta h2 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); margin: 0 0 .35em; color: #F5F1E9; }
.lightbox-meta .lb-client {
  display: inline-block;
  padding: .24rem .75rem;
  border: 1px solid rgba(201, 164, 92, .4);
  background: rgba(201, 164, 92, .08);
  border-radius: 999px;
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: .55rem;
}
.lightbox-meta p { margin: 0; color: #D7D2C9; max-width: 72ch; font-size: .94rem; line-height: 1.58; }

.lb-btn {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(18, 20, 26, .88);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all .2s ease;
}
.lb-btn:hover { background: var(--elevated); border-color: var(--accent); color: var(--accent-hover); }

.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb-zoom { top: 1rem; right: 4.5rem; }

.lb-counter {
  position: absolute;
  top: 1.4rem; left: 1.4rem;
  font-size: .9rem;
  letter-spacing: .1em;
  color: var(--muted);
}

@media (max-width: 700px) {
  .lightbox-stage { padding: 3.6rem .75rem calc(3.8rem + env(safe-area-inset-bottom)); gap: .7rem; }
  .lightbox img { max-width: 95vw; max-height: calc(100vh - 145px); }
  .lightbox-meta { padding: 1rem 1.15rem; width: 92vw; }
  .lb-prev, .lb-next { width: 42px; height: 42px; top: 50%; }
}

/* ==========================================================================
   Process page (editorial)
   ========================================================================== */
.workflow-steps { counter-reset: step; display: grid; gap: 1.2rem; margin: 2.5rem 0 3.5rem; }
.workflow-step {
  position: relative;
  padding: 1.6rem 1.6rem 1.6rem 4.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.workflow-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1.4rem; top: 1.5rem;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
}
.workflow-step h3 { margin-bottom: .4em; }
.workflow-step p { margin: 0; color: var(--muted); max-width: 75ch; }

.process-figure {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
}
.process-figure img { width: 100%; height: auto; }

/* Case studies — labeled process + final artwork pairs */
.case-study { margin: 3rem 0; max-width: 900px; }
.case-study:first-of-type { margin-top: 1.5rem; }
.case-study-header h3 { font-size: 1.6rem; margin: .7rem 0 .25rem; color: var(--text); }
.case-study-client { margin: 0 0 1.4rem; color: var(--muted); font-size: .95rem; }
.stage-badge {
  display: inline-block;
  padding: .3rem .75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-hover);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.process-figure .cs-caption {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .8rem 1.1rem;
  border-top: 1px solid var(--border);
  cursor: default;
}

/* ==========================================================================
   About / Contact / Clases pages
   ========================================================================== */
.prose { max-width: 72ch; }
.container.prose { max-width: none; }
.container.prose > p,
.container.prose > h2,
.container.prose > h3,
.container.prose > ul,
.container.prose > .clase-card,
.container.prose > .faq-list { max-width: 72ch; }
.prose h2 { margin-top: 2.2em; }

.credits-grid { display: grid; gap: 1.2rem; margin: 2rem 0; }
@media (min-width: 860px) { .credits-grid { grid-template-columns: 1fr 1fr; } }
.credit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem 1.6rem;
}
.credit-card h3 { margin-bottom: .3em; font-size: 1.35rem; }
.credit-card .role { color: var(--accent-hover); font-weight: 600; font-size: .92rem; letter-spacing: .04em; text-transform: uppercase; display: block; margin-bottom: .7rem; }
.credit-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* FAQ */
.faq-list { border-top: 1px solid var(--border); margin-top: 2.5rem; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem .25rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--accent); transition: transform .2s ease; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 .25rem 1.3rem; color: var(--muted); max-width: 70ch; }

/* Contact */
.contact-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(1.6rem, 4vw, 2.8rem);
}
.email-display {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 2rem);
  color: var(--accent-hover);
  word-break: break-all;
}

.copy-email-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1rem;
  padding: .85rem 1.6rem;
  background: var(--accent);
  color: #14151a;
  border: none;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}
.copy-email-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.copy-email-btn.copied { background: #4d7c53; color: #fff; }

.contact-form { margin-top: 2.6rem; display: grid; gap: 1.1rem; max-width: 640px; }
.form-field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .4rem; }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: .85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--accent); outline: none; }
.form-note { color: var(--muted); font-size: .92rem; margin-top: .4rem; }
.form-status { margin-top: .6rem; font-size: .95rem; line-height: 1.5; min-height: 1.3em; }

.checklist { list-style: none; padding: 0; margin: 1.5rem 0; max-width: 68ch; }
.checklist li { position: relative; padding-left: 1.7rem; margin-bottom: .65rem; color: var(--muted); }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* Clases (ES) */
.clase-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.1rem;
}
.clase-card h3 { font-size: 1.3rem; margin-bottom: .35em; }
.clase-card p { margin: 0; color: var(--muted); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: #0A0B0E;
  padding: 3rem 0 2.4rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.footer-brand-lockup {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1rem;
}
.footer-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  margin: 0;
}
.footer-brand-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text);
  line-height: 1.15;
}
.footer-brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: .18rem;
}
.footer-brand p { color: var(--muted); font-size: .92rem; max-width: 36ch; }

.site-footer h4 {
  font-family: var(--font-body);
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: var(--text); font-size: .95rem; }
.footer-links a:hover { color: var(--accent-hover); }

.social-row { display: flex; gap: .8rem; margin-top: 1.2rem; }
.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  transition: all .2s ease;
}
.social-row a:hover { color: var(--accent-hover); border-color: var(--accent); }
.social-row svg { width: 19px; height: 19px; fill: currentColor; }

.footer-bottom {
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: .85rem;
}

/* ==========================================================================
   404 page
   ========================================================================== */
.error-page { text-align: center; padding: clamp(4rem, 12vw, 8rem) 0; }
.error-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 9rem);
  line-height: 1;
  color: var(--accent);
  margin-bottom: .2em;
}

/* ==========================================================================
   Reduced motion & print
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
