/* ==========================================================================
   LINDSY TORRES — Home / Legacy Gallery
   A private gallery lobby, not a link-in-bio page. Warm dark chocolate +
   black + ivory. Each offer is a lit, framed artwork within one collection.
   ========================================================================== */

:root {
  --noir: #12100e;
  --espresso-dark: #2a1913;
  --espresso: #3a241c;
  --cream: #f4ebdd;
  --ivory: #fbf7ef;
  --butter: #e9d99d;
  --gold: #b8975c;
  --gold-bright: #d7ad61;
  --wine: #5b1724;
  --deep-green: #213b32;

  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1240px;
  --max-read: 680px;

  --section-space-desktop: 148px;
  --section-space-mobile: 88px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-slow: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background-color: var(--noir);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--ivory);
  margin: 0;
}

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

.grain {
  position: relative;
}

.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.02) 0, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(255, 255, 255, 0.016) 0, transparent 40%),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.008) 0px,
      rgba(255, 255, 255, 0.008) 1px,
      transparent 1px,
      transparent 3px
    );
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.read-width {
  max-width: var(--max-read);
}

section {
  padding: var(--section-space-desktop) 0;
  position: relative;
}

@media (max-width: 900px) {
  section {
    padding: var(--section-space-mobile) 0;
  }
  .container {
    padding: 0 20px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.eyebrow--center {
  justify-content: center;
}

h1,
.h1 {
  font-size: clamp(38px, 9.5vw, 74px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

@media (min-width: 900px) {
  h1,
  .h1 {
    font-size: clamp(48px, 4.6vw, 74px);
  }
}

h2,
.h2 {
  font-size: clamp(28px, 5.6vw, 46px);
  line-height: 1.22;
}

@media (min-width: 900px) {
  h2,
  .h2 {
    font-size: clamp(30px, 2.8vw, 46px);
  }
}

p {
  margin: 0 0 18px;
  color: var(--cream);
  opacity: 0.82;
}

@media (max-width: 900px) {
  body {
    font-size: 16.5px;
  }
}

.text-gold {
  color: var(--gold-bright);
}

.center {
  text-align: center;
}

.gold-rule {
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 28px auto;
}

.gold-rule--reveal {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.2s var(--ease-slow);
}
.gold-rule--reveal.is-visible {
  transform: scaleX(1);
}

/* ==========================================================================
   Reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease-slow), transform 1s var(--ease-slow);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1.is-visible {
  transition-delay: 0.1s;
}
.reveal-delay-2.is-visible {
  transition-delay: 0.2s;
}
.reveal-delay-3.is-visible {
  transition-delay: 0.3s;
}

/* ==========================================================================
   Buttons — discreet, no exaggerated shine
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 1px;
  border: 1px solid transparent;
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease), filter 320ms var(--ease),
    background 320ms var(--ease), border-color 320ms var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, #ddc27e 0%, #a9803a 55%, #cdad63 100%);
  color: var(--noir);
  border-color: rgba(255, 240, 205, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: rgba(184, 151, 92, 0.5);
}
.btn-outline:hover {
  border-color: var(--gold-bright);
  color: var(--ivory);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 26px 0;
  background: rgba(18, 16, 14, 0);
  transition: background 400ms var(--ease), padding 400ms var(--ease), box-shadow 400ms var(--ease),
    backdrop-filter 400ms var(--ease);
}

.site-header.is-scrolled {
  background: rgba(24, 16, 12, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 16px 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(184, 151, 92, 0.14);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo img {
  height: 30px;
  width: auto;
  display: block;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 36px;
}

@media (min-width: 960px) {
  .site-nav {
    display: flex;
  }
}

.site-nav a {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.85;
  position: relative;
  transition: opacity 250ms var(--ease);
}
.site-nav a:hover {
  opacity: 1;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 1px;
  background: var(--gold-bright);
  transition: width 300ms var(--ease);
}
.site-nav a:hover::after {
  width: 100%;
}

.header__cta {
  display: none;
}
@media (min-width: 960px) {
  .header__cta {
    display: inline-flex;
  }
}

.hamburger {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
@media (min-width: 960px) {
  .hamburger {
    display: none;
  }
}
.hamburger span {
  width: 22px;
  height: 1px;
  background: var(--cream);
  transition: transform 300ms var(--ease), opacity 300ms var(--ease);
}
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--noir);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  transform: translateY(-100%);
  transition: transform 450ms var(--ease);
}
.mobile-menu.is-open {
  transform: translateY(0);
}
.mobile-menu a {
  font-family: var(--font-serif);
  font-size: 25px;
  color: var(--ivory);
}
.mobile-menu .btn {
  margin-top: 14px;
}

/* ==========================================================================
   Hero — the lobby
   ========================================================================== */

.hero {
  min-height: 86vh;
  display: flex;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 60% 50% at 78% 20%, rgba(184, 151, 92, 0.1), transparent 60%),
    linear-gradient(180deg, var(--noir) 0%, var(--espresso-dark) 60%, var(--noir) 100%);
}

.hero__architecture {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__photo {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 46%;
  z-index: 0;
  opacity: 0.85;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 32%, black 100%);
  mask-image: linear-gradient(90deg, transparent, black 32%, black 100%);
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(0.15) sepia(0.15) brightness(0.92) contrast(1);
}

@media (max-width: 900px) {
  .hero__photo {
    width: 100%;
    opacity: 0.3;
    -webkit-mask-image: linear-gradient(180deg, transparent, black 30%, black 80%, transparent);
    mask-image: linear-gradient(180deg, transparent, black 30%, black 80%, transparent);
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero__content .eyebrow {
  animation: fade-in-up 1s var(--ease-slow) 0.1s both;
}
.hero__content h1 {
  animation: fade-in-up 1.2s var(--ease-slow) 0.24s both;
}
.hero__content p {
  animation: fade-in-up 1.2s var(--ease-slow) 0.42s both;
}
.hero__actions {
  animation: fade-in-up 1.2s var(--ease-slow) 0.58s both;
  margin-top: 22px;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__meta {
  margin-top: 26px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}

/* ==========================================================================
   Transition into the collection
   ========================================================================== */

.collection-intro {
  text-align: center;
}

.collection-intro .read-width {
  margin: 0 auto;
}

/* ==========================================================================
   The gallery — horizontal collection row (Netflix-style rail)
   Uniform cards, full artwork always visible, copy lives below the frame
   (never on top of it), native scroll-snap for the "slide" feel.
   ========================================================================== */

.gallery-scroller-wrap {
  position: relative;
  margin-top: 24px;
}

.gallery-scroller {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-left: 24px;
  -webkit-overflow-scrolling: touch;
  padding: 4px 4px 20px;
  margin: -4px -4px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(184, 151, 92, 0.35) transparent;
}
.gallery-scroller::-webkit-scrollbar {
  height: 6px;
}
.gallery-scroller::-webkit-scrollbar-thumb {
  background: rgba(184, 151, 92, 0.3);
  border-radius: 3px;
}

.artwork {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: min(72vw, 300px);
  scroll-snap-align: start;
}

@media (min-width: 640px) {
  .artwork {
    width: 300px;
  }
}

.artwork__frame {
  position: relative;
  border: 1px solid rgba(184, 151, 92, 0.28);
  background: linear-gradient(180deg, var(--espresso-dark), var(--noir));
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 2px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 0 var(--artwork-accent, rgba(184, 151, 92, 0));
  transition: transform 450ms var(--ease-slow), box-shadow 450ms var(--ease-slow), border-color 450ms var(--ease-slow);
}

.artwork:hover .artwork__frame {
  transform: translateY(-5px);
  border-color: rgba(215, 173, 97, 0.6);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 46px var(--artwork-accent, rgba(184, 151, 92, 0.28));
}

.artwork--match {
  --artwork-accent: rgba(233, 217, 157, 0.3);
}
.artwork--story-machine {
  --artwork-accent: rgba(184, 151, 92, 0.32);
}
.artwork--recalibracion {
  --artwork-accent: rgba(65, 110, 90, 0.34);
}
.artwork--private-room {
  --artwork-accent: rgba(155, 60, 80, 0.32);
}

.artwork__image {
  position: absolute;
  inset: 0;
}
.artwork__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transition: transform 700ms var(--ease-slow);
}
.artwork:hover .artwork__image img {
  transform: scale(1.035);
}

.artwork__body {
  padding: 18px 2px 0;
}

.artwork__category {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.artwork__name {
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--ivory);
  margin-bottom: 8px;
  line-height: 1.2;
}

.artwork__meta {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--gold-bright);
  opacity: 0.85;
  margin-bottom: 12px;
}

.artwork__phrase {
  font-size: 14px;
  color: var(--cream);
  opacity: 0.78;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.artwork__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(184, 151, 92, 0.2);
}

.artwork__cta {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.artwork__cta::after {
  content: "→";
  transition: transform 300ms var(--ease);
}
.artwork:hover .artwork__cta::after {
  transform: translateX(4px);
}

.artwork__status {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(184, 151, 92, 0.4);
  padding: 4px 9px;
  border-radius: 20px;
  white-space: nowrap;
}

.artwork__featured-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--noir);
  background: linear-gradient(135deg, #ddc27e, #a9803a);
  padding: 5px 11px;
  border-radius: 20px;
}

/* Prev/next rail arrows — desktop only, hidden on touch */
.gallery-arrow {
  display: none;
  position: absolute;
  top: calc(50% - 30px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(18, 16, 14, 0.72);
  border: 1px solid rgba(184, 151, 92, 0.4);
  color: var(--ivory);
  backdrop-filter: blur(6px);
  z-index: 5;
  opacity: 0;
  transition: opacity 300ms var(--ease), background 300ms var(--ease);
}
.gallery-scroller-wrap:hover .gallery-arrow {
  opacity: 1;
}
.gallery-arrow:hover {
  background: rgba(42, 25, 19, 0.9);
}
.gallery-arrow--prev {
  left: -6px;
}
.gallery-arrow--next {
  right: -6px;
}
@media (min-width: 1040px) and (hover: hover) and (pointer: fine) {
  .gallery-arrow {
    display: flex;
  }
}

/* ==========================================================================
   Concierge
   ========================================================================== */

.concierge {
  background: linear-gradient(180deg, var(--espresso-dark) 0%, var(--noir) 100%);
  border-top: 1px solid rgba(184, 151, 92, 0.16);
  border-bottom: 1px solid rgba(184, 151, 92, 0.16);
}

.concierge__inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

/* ==========================================================================
   Social rooms
   ========================================================================== */

.social-grid {
  display: grid;
  gap: 1px;
  background: rgba(184, 151, 92, 0.18);
  border: 1px solid rgba(184, 151, 92, 0.18);
  margin-top: 56px;
}

@media (min-width: 800px) {
  .social-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.social-room {
  background: var(--noir);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: background 400ms var(--ease);
}
.social-room:hover {
  background: var(--espresso-dark);
}

.social-room__icon {
  width: 26px;
  height: 26px;
  margin-bottom: 22px;
  color: var(--gold-bright);
}
.social-room__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.social-room__name {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--ivory);
  margin-bottom: 12px;
}

.social-room__desc {
  font-size: 14.5px;
  flex-grow: 1;
  margin-bottom: 22px;
}

.social-room__cta {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.social-room__cta::after {
  content: "→";
  transition: transform 300ms var(--ease);
}
.social-room:hover .social-room__cta::after {
  transform: translateX(4px);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid rgba(184, 151, 92, 0.18);
  padding: 64px 0 32px;
  background: var(--espresso-dark);
}

.site-footer__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(184, 151, 92, 0.14);
}

.site-footer__logo img {
  height: 26px;
  width: auto;
}

.site-footer__tagline {
  max-width: 480px;
  margin: 0 auto;
  font-size: 15px;
}

.site-footer__links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: center;
}
.site-footer__links a {
  font-size: 13px;
  color: var(--cream);
  opacity: 0.75;
  transition: opacity 250ms var(--ease);
}
.site-footer__links a:hover {
  opacity: 1;
}

.site-footer__brands {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--gold);
  opacity: 0.75;
}

.site-footer__bottom {
  margin-top: 32px;
  text-align: center;
  font-size: 12px;
  color: rgba(244, 235, 221, 0.5);
}

.site-footer__legal-note {
  max-width: 560px;
  margin: 10px auto 0;
  text-align: center;
  font-size: 11px;
  color: rgba(244, 235, 221, 0.4);
}

/* ==========================================================================
   Legal pages
   ========================================================================== */

.legal-page {
  padding-top: 140px;
  min-height: 60vh;
}

.legal-page__body {
  max-width: var(--max-read);
  margin: 0 auto;
}

.legal-page__body h2 {
  font-size: 26px;
  margin-top: 44px;
  margin-bottom: 14px;
}
.legal-page__body h2:first-child {
  margin-top: 0;
}

.provisional-notice {
  display: inline-block;
  margin-bottom: 36px;
  padding: 14px 20px;
  border: 1px dashed rgba(184, 151, 92, 0.5);
  border-radius: 2px;
  font-size: 13px;
  color: var(--gold-bright);
}

/* Utility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
