/* Enrique Cabrera — Foundry night gallery
   Dark museum void; sculpture as light source; monumental geometric type. */

:root {
  --void: #060607;
  --void-lift: #0e0e11;
  --steel: #1a1c21;
  --edge: rgba(212, 218, 228, 0.14);
  --metal: #c9d0db;
  --metal-dim: #8b93a3;
  --platinum: #e7ecf3;
  --foundry: #b8924a;
  --foundry-soft: rgba(184, 146, 74, 0.35);
  --text: #e8eaef;
  --text-dim: #9aa3b2;
  --font-display: "Syne", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --wrap: min(1120px, calc(100% - 2.5rem));
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--void);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--platinum);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--foundry);
  color: var(--void);
  padding: 0.6rem 1rem;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 6, 7, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--edge);
}

.header-inner {
  width: var(--wrap);
  margin-inline: auto;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  height: 2.35rem;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(232, 236, 243, 0.15));
}

.nav-desktop-wrap {
  justify-self: center;
}

.nav-desktop {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop a {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--metal-dim);
  transition: color 0.25s var(--ease);
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--platinum);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-mail {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--metal);
}

.menu-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--edge);
  background: transparent;
  color: var(--platinum);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.65rem 0.9rem;
  cursor: pointer;
}

.nav-mobile {
  display: none;
}

@media (max-width: 960px) {
  .nav-desktop-wrap {
    display: none;
  }

  .header-mail {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .nav-mobile {
    display: block;
    max-height: 0;
    overflow: hidden;
    border-top: 1px solid transparent;
    transition: max-height 0.4s var(--ease), border-color 0.3s;
  }

  .nav-mobile.is-open {
    max-height: 28rem;
    border-top-color: var(--edge);
  }

  .nav-mobile ul {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0 1rem;
  }

  .nav-mobile a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.65rem 1.25rem;
    text-decoration: none;
    border-bottom: 1px solid var(--edge);
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .nav-mobile .drawer-cta {
    display: block;
    margin: 1rem 1.25rem 0.5rem;
    text-align: center;
    min-height: 44px;
    line-height: 44px;
    background: var(--platinum);
    color: var(--void);
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.8rem;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn-solid {
  background: var(--platinum);
  color: var(--void);
}

.btn-solid:hover {
  background: var(--foundry);
  color: var(--void);
}

.btn-ghost {
  background: transparent;
  border-color: var(--edge);
  color: var(--platinum);
}

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

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(92vh, 920px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  animation: hero-drift 28s var(--ease) infinite alternate;
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 6, 7, 0.35) 0%, rgba(6, 6, 7, 0.15) 35%, rgba(6, 6, 7, 0.82) 72%, rgba(6, 6, 7, 0.96) 100%),
    linear-gradient(90deg, rgba(6, 6, 7, 0.7) 0%, rgba(6, 6, 7, 0.2) 55%, rgba(6, 6, 7, 0.45) 100%);
}

.hero-copy {
  width: var(--wrap);
  margin: 0 auto 4.5rem;
  max-width: 38rem;
  justify-self: start;
  animation: rise 1.1s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--platinum);
  text-shadow: 0 0 40px rgba(201, 208, 219, 0.18);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--metal);
}

.hero-support {
  margin: 0 0 1.75rem;
  max-width: 28rem;
  color: var(--text-dim);
  font-size: 1.05rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img {
    animation: none;
    transform: none;
  }
  .hero-copy {
    animation: none;
  }
}

/* —— Sections —— */
.band {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.band-split {
  border-top: 1px solid var(--edge);
}

.section-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--foundry);
}

.band h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.band .lede {
  margin: 0 0 2rem;
  max-width: 36rem;
  color: var(--text-dim);
}

/* Featured strip — not a card grid */
.featured-rail {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
}

.featured-rail figure {
  margin: 0;
  position: relative;
  overflow: hidden;
}

.featured-rail img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.05);
  transition: transform 1.2s var(--ease);
}

.featured-rail a:hover img {
  transform: scale(1.04);
}

.featured-rail figcaption {
  margin-top: 0.85rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.featured-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--edge);
}

.featured-list a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--edge);
  text-decoration: none;
  transition: padding-left 0.35s var(--ease), color 0.25s;
}

.featured-list a:hover {
  padding-left: 0.5rem;
  color: var(--platinum);
}

.featured-list .idx {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--foundry);
}

.featured-list .name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.featured-list .meta {
  font-size: 0.78rem;
  color: var(--metal-dim);
  letter-spacing: 0.06em;
}

@media (max-width: 800px) {
  .featured-rail {
    grid-template-columns: 1fr;
  }

  .featured-rail img {
    aspect-ratio: 16 / 11;
  }
}

/* Statement */
.statement {
  padding: clamp(4rem, 10vw, 7rem) 0;
  background:
    radial-gradient(ellipse 70% 80% at 80% 20%, rgba(184, 146, 74, 0.08), transparent 55%),
    var(--void-lift);
  border-block: 1px solid var(--edge);
}

.statement blockquote {
  margin: 0 auto;
  width: var(--wrap);
  max-width: 42rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.55rem, 3.4vw, 2.45rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--platinum);
}

.statement cite {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--metal-dim);
}

/* Collection index */
.collect-index {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}

.collect-index a {
  text-decoration: none;
  display: block;
}

.collect-index figure {
  margin: 0;
  overflow: hidden;
  background: var(--steel);
}

.collect-index img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  transition: transform 1s var(--ease), filter 0.6s;
  filter: brightness(0.88);
}

.collect-index a:hover img {
  transform: scale(1.05);
  filter: brightness(1);
}

.collect-index h3 {
  margin: 0.9rem 0 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: -0.015em;
}

.collect-index p {
  margin: 0;
  color: var(--metal-dim);
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  .collect-index {
    grid-template-columns: 1fr;
  }
}

/* Collection detail sections */
.series {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  border-top: 1px solid var(--edge);
}

.series-grid {
  width: var(--wrap);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.series-grid.reverse {
  grid-template-columns: 1.05fr 0.95fr;
}

.series-grid.reverse .series-copy {
  order: 2;
}

.series-grid.reverse .series-visual {
  order: 1;
}

.series-copy h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  letter-spacing: -0.025em;
}

.series-copy p {
  margin: 0 0 1rem;
  color: var(--text-dim);
}

.series-specs {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--edge);
}

.series-specs li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--edge);
  font-size: 0.92rem;
}

.series-specs span {
  color: var(--foundry);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.7rem;
  padding-top: 0.2rem;
}

.series-visual {
  display: grid;
  gap: 0.75rem;
}

.series-visual img {
  width: 100%;
  object-fit: cover;
  background: var(--steel);
}

.series-visual .tall {
  aspect-ratio: 4 / 5;
}

.series-visual .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.series-visual .pair img {
  aspect-ratio: 1;
}

@media (max-width: 860px) {
  .series-grid,
  .series-grid.reverse {
    grid-template-columns: 1fr;
  }

  .series-grid.reverse .series-copy,
  .series-grid.reverse .series-visual {
    order: initial;
  }
}

/* About */
.about-hero {
  position: relative;
  min-height: 48vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.about-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  z-index: -2;
}

.about-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 6, 7, 0.25), rgba(6, 6, 7, 0.92));
}

.about-hero .wrap {
  padding-bottom: 3rem;
}

.about-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  letter-spacing: -0.03em;
}

.prose {
  max-width: 40rem;
}

.prose p {
  color: var(--text-dim);
  margin: 0 0 1.15rem;
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.about-split img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

@media (max-width: 760px) {
  .about-split {
    grid-template-columns: 1fr;
  }
}

.wiki-note {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--edge);
  font-size: 0.92rem;
  color: var(--metal-dim);
}

.wiki-note a {
  color: var(--metal);
}

/* Page intro */
.page-intro {
  padding: clamp(3rem, 7vw, 5rem) 0 1rem;
}

.page-intro h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  letter-spacing: -0.03em;
}

.page-intro .lede {
  margin: 0;
  max-width: 34rem;
  color: var(--text-dim);
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-facts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-facts li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--edge);
}

.contact-facts .label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--foundry);
}

.contact-facts a,
.contact-facts p {
  margin: 0;
  font-size: 1.05rem;
  text-decoration: none;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-row a {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--metal-dim);
}

.social-row a:hover {
  color: var(--platinum);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--metal-dim);
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  appearance: none;
  border: 1px solid var(--edge);
  background: var(--void-lift);
  color: var(--platinum);
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.85rem 0.95rem;
}

.contact-form textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-status {
  margin: 0.5rem 0 0;
  color: var(--foundry);
}

@media (max-width: 800px) {
  .contact-layout,
  .contact-form .form-row {
    grid-template-columns: 1fr;
  }
}

/* Final CTA */
.final-cta {
  padding: clamp(4rem, 9vw, 6.5rem) 0;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 70% at 50% 100%, rgba(184, 146, 74, 0.12), transparent 60%),
    var(--void);
  border-top: 1px solid var(--edge);
}

.final-cta h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.025em;
}

.final-cta p {
  margin: 0 auto 1.75rem;
  max-width: 28rem;
  color: var(--text-dim);
}

.final-cta .cta-row {
  justify-content: center;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--edge);
  padding: 2.5rem 0 3rem;
}

.footer-inner {
  width: var(--wrap);
  margin-inline: auto;
  display: grid;
  gap: 1.25rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  color: var(--metal-dim);
  font-size: 0.88rem;
}

.footer-meta a {
  text-decoration: none;
}

.footer-copy {
  margin: 0;
  color: var(--metal-dim);
  font-size: 0.8rem;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
