/* =========================================================
   Galeria Filomena Soares — 24H Draft  v2
   Immersive full-bleed · Clash Display + General Sans
   ========================================================= */

:root {
  --bg:     #f4f3ef;
  --bg-2:   #eceae3;
  --ink:    #131210;
  --ink-2:  #2c2823;
  --soft:   #5c564c;
  --muted:  #908a7e;
  --line:   #ddd9ce;
  --line-2: #cbc5b7;
  --accent: #e8451f;            /* vivid sienna — used sparingly */
  --white:  #fbfaf7;

  --display: "Clash Display", system-ui, sans-serif;
  --sans:    "General Sans", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1640px;
  --pad: clamp(1.25rem, 4.5vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--accent); color: #fff; }

.display { font-family: var(--display); font-weight: 600; line-height: .95; letter-spacing: -.02em; }
.eyebrow {
  font-family: var(--sans); font-size: .73rem; letter-spacing: .18em;
  text-transform: uppercase; font-weight: 500; color: var(--muted);
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(4rem, 9vw, 8.5rem); }

/* =========================================================
   TOPBAR
   ========================================================= */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.topbar__inner {
  max-width: var(--maxw); margin-inline: auto; padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; min-height: 70px;
}
.brand { display: flex; align-items: baseline; gap: .6rem; line-height: 1; }
.brand__mark { font-family: var(--display); font-weight: 600; font-size: 1.3rem; letter-spacing: -.01em; }
.brand__sub { font-size: .6rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.nav { display: flex; align-items: center; gap: clamp(.9rem, 1.5vw, 1.8rem); }
.nav a {
  font-size: .76rem; letter-spacing: .04em; font-weight: 500; color: var(--ink-2);
  position: relative; padding-block: .4rem; transition: color .3s var(--ease), opacity .3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: .05rem; width: 100%; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav a.is-active { color: var(--ink); }
.lang { display: flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 500; color: var(--muted); }
.lang button { padding: .15rem .1rem; transition: color .3s; }
.lang button.on { color: var(--ink); }
.lang span { opacity: .4; }
.burger { display: none; flex-direction: column; gap: 5px; padding: .5rem; }
.burger span { width: 24px; height: 1.5px; background: currentColor; transition: .35s var(--ease); }

/* --- transparent over cover, then solid on scroll --- */
.has-cover .topbar { position: fixed; left: 0; right: 0; background: transparent; backdrop-filter: none; border-color: transparent; color: #fff; }
.has-cover .topbar .brand__sub { color: rgba(255,255,255,.6); }
.has-cover .topbar .nav a { color: rgba(255,255,255,.92); }
.has-cover .topbar .lang { color: rgba(255,255,255,.6); }
.has-cover .topbar .lang button.on { color: #fff; }
.has-cover .topbar.solid {
  position: fixed; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(12px); border-color: var(--line); color: var(--ink);
}
.has-cover .topbar.solid .brand__sub, .has-cover .topbar.solid .lang { color: var(--muted); }
.has-cover .topbar.solid .nav a { color: var(--ink-2); }
.has-cover .topbar.solid .lang button.on { color: var(--ink); }

/* =========================================================
   COVER — immersive full-bleed hero
   ========================================================= */
.cover { position: relative; height: 100svh; min-height: 620px; background: #000; }
.cover__img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cover__img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 24%, rgba(0,0,0,0) 42%, rgba(0,0,0,.78) 100%);
}
.cover__inner {
  position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: clamp(2.4rem, 5vw, 4rem); color: #fff;
}
.cover__inner .eyebrow { color: rgba(255,255,255,.88); margin-bottom: 1.1rem; }
.cover__title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(3rem, 9vw, 8.5rem); line-height: .9; letter-spacing: -.025em; max-width: 15ch;
}
.cover__title .accent { color: var(--accent); }
.cover__meta { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem 2.4rem; font-size: clamp(.9rem,1.05vw,1.05rem); color: rgba(255,255,255,.9); }
.cover__meta b { color: rgba(255,255,255,.55); font-weight: 500; }
.cover__scroll {
  position: absolute; right: 0; bottom: clamp(2.4rem,5vw,4rem);
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.8);
  display: inline-flex; align-items: center; gap: .5rem;
}
.cover__scroll .ar { display: inline-block; animation: bob 2.4s var(--ease) infinite; }
@keyframes bob { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(5px);} }

/* hero load reveal */
.cover [data-load] { opacity: 0; transform: translateY(32px); animation: rise 1.1s var(--ease) forwards; }
.cover [data-load="1"]{ animation-delay:.15s } .cover [data-load="2"]{ animation-delay:.3s }
.cover [data-load="3"]{ animation-delay:.5s } .cover [data-load="4"]{ animation-delay:.7s }
.cover__img { opacity: 0; transform: scale(1.06); animation: zoom 1.6s var(--ease) forwards; }
@keyframes rise { to { opacity:1; transform:none; } }
@keyframes zoom { to { opacity:1; transform:none; } }

/* =========================================================
   STATEMENT
   ========================================================= */
.statement { border-bottom: 1px solid var(--line); }
.statement__inner { padding-block: clamp(3.5rem, 8vw, 7rem); display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem,5vw,5rem); align-items: end; }
.statement p { font-family: var(--display); font-weight: 500; font-size: clamp(1.7rem, 3.6vw, 3.1rem); line-height: 1.08; letter-spacing: -.02em; max-width: 18ch; }
.statement p .accent { color: var(--accent); }
.statement .meta { display: flex; flex-direction: column; gap: 1.4rem; }
.statement .meta div { display: flex; align-items: baseline; gap: 1rem; border-top: 1px solid var(--line); padding-top: .9rem; }
.statement .meta b { font-family: var(--display); font-weight: 600; font-size: 1.7rem; letter-spacing: -.02em; min-width: 4.5ch; }
.statement .meta span { font-size: .88rem; color: var(--soft); }

/* =========================================================
   SECTION HEAD
   ========================================================= */
.shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(1.8rem, 3.5vw, 3rem); }
.shead h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem, 4vw, 3.4rem); letter-spacing: -.025em; line-height: 1; margin-top: .5rem; }
.shead .idx { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.more { font-size: .78rem; letter-spacing: .02em; font-weight: 500; display: inline-flex; align-items: center; gap: .5rem; color: var(--ink-2); transition: gap .3s var(--ease), color .3s; }
.more svg { width: 15px; height: 15px; }
.more:hover { gap: .85rem; color: var(--accent); }

/* =========================================================
   EXHIBITIONS rows
   ========================================================= */
.exh { border-top: 1px solid var(--line); }
.exh__row { display: grid; grid-template-columns: 9rem 1fr auto; gap: clamp(1rem,3vw,3rem); align-items: center; padding-block: clamp(1.4rem,2.4vw,2.2rem); border-bottom: 1px solid var(--line); position: relative; transition: padding-left .45s var(--ease); }
.exh__row:hover { padding-left: 1.1rem; }
.exh__row::before { content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background:var(--accent); transform:scaleY(0); transform-origin:bottom; transition:transform .45s var(--ease); }
.exh__row:hover::before { transform:scaleY(1); transform-origin:top; }
.exh__date { font-size: .8rem; color: var(--muted); }
.exh__main h3 { font-family: var(--display); font-weight: 500; font-size: clamp(1.3rem,2.4vw,2.1rem); letter-spacing: -.02em; line-height: 1.05; }
.exh__artist { font-size: .88rem; color: var(--soft); margin-top: .35rem; }
.exh__cta { font-size: .72rem; letter-spacing: .04em; color: var(--muted); white-space: nowrap; transition: color .3s; }
.exh__row:hover .exh__cta { color: var(--ink); }

/* =========================================================
   PLATES (images)
   ========================================================= */
.plate { position: relative; overflow: hidden; background: var(--bg-2); }
.plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.plate__tag {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: flex-end; gap: .7rem;
  padding: 2.4rem 1rem .85rem; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: #fff;
  background: linear-gradient(to top, rgba(15,12,9,.6), transparent);
  opacity: 0; transform: translateY(6px); transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.plate__tag .num { font-family: var(--display); font-weight: 600; font-size: .82rem; letter-spacing: 0; }
a:hover .plate__tag, .acard:hover .plate__tag, .feat__item:hover .plate__tag { opacity: 1; transform: none; }
a:hover .plate img, .acard:hover .plate img, .feat__item:hover .plate img { transform: scale(1.05); }

/* =========================================================
   FEATURED grid
   ========================================================= */
.feat { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem,2.2vw,2rem); }
.feat__item h3 { font-family: var(--display); font-weight: 500; font-size: 1.3rem; letter-spacing: -.01em; margin-top: 1rem; }
.feat__item .cap { font-size: .8rem; color: var(--muted); margin-top: .3rem; }
.feat__a { grid-column: span 7; } .feat__a .plate { aspect-ratio: 16/11; }
.feat__b { grid-column: span 5; } .feat__b .plate { aspect-ratio: 4/5; }
.feat__c, .feat__d, .feat__e { grid-column: span 4; }
.feat__c .plate, .feat__d .plate, .feat__e .plate { aspect-ratio: 1/1; }

/* =========================================================
   ARTISTS list + grid
   ========================================================= */
.artists-list { columns: 3; column-gap: clamp(2rem,5vw,5rem); }
.artists-list a { display: block; break-inside: avoid; width: fit-content; font-family: var(--display); font-weight: 500; font-size: clamp(1.2rem,2vw,1.7rem); line-height: 1.55; letter-spacing: -.01em; color: var(--ink-2); position: relative; transition: color .3s var(--ease), padding-left .35s var(--ease); }
.artists-list a::before { content:"→"; position:absolute; left:-1.5rem; opacity:0; color:var(--accent); font-family:var(--sans); transition:opacity .3s, left .3s; }
.artists-list a:hover { color: var(--ink); padding-left:.2rem; }
.artists-list a:hover::before { opacity:1; left:-1.6rem; }

.grid-artists { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(1.2rem,2.4vw,2.4rem) clamp(1rem,2vw,2rem); }
.acard .plate { aspect-ratio: 3/4; transition: transform .6s var(--ease); }
.acard:hover .plate { transform: translateY(-6px); }
.acard h3 { font-family: var(--display); font-weight: 500; font-size: 1.12rem; letter-spacing: -.01em; margin-top: 1rem; line-height: 1.2; }
.acard p { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: .3rem; }

/* collection + catalogues */
.grid-coll { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(1.2rem,2.4vw,2.2rem) clamp(1rem,2vw,1.8rem); }
.ccard .plate { aspect-ratio: 1/1; transition: transform .6s var(--ease); }
.ccard:hover .plate { transform: translateY(-6px); }
.ccard h3 { font-family: var(--display); font-weight: 500; font-size: 1rem; letter-spacing: -.01em; margin-top: .9rem; line-height: 1.2; }
.ccard p { font-size: .76rem; color: var(--muted); margin-top: .25rem; }
.grid-cats { display: grid; grid-template-columns: repeat(5,1fr); gap: clamp(1.2rem,2.4vw,2.2rem) clamp(1rem,2vw,1.6rem); }
.catcard .plate { aspect-ratio: 3/4; transition: transform .6s var(--ease); }
.catcard:hover .plate { transform: translateY(-6px); }

/* =========================================================
   PUBLICATIONS band
   ========================================================= */
.pub { background: var(--ink); color: var(--bg); }
.pub__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,5rem); align-items: center; }
.pub .eyebrow { color: rgba(255,255,255,.55); }
.pub h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.025em; font-size: clamp(2rem,4.5vw,3.8rem); line-height: 1.02; margin-top: 1.1rem; }
.pub h2 .accent { color: var(--accent); }
.pub p { color: rgba(255,255,255,.72); margin-top: 1.5rem; max-width: 44ch; line-height: 1.6; }
.pub .more { color: #fff; margin-top: 2rem; }
.pub .more:hover { color: var(--accent); }
.pub__plate { aspect-ratio: 5/4; }
.pub__plate .plate__tag { opacity: 1; transform: none; }

/* =========================================================
   NEWS
   ========================================================= */
.news-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: clamp(1.5rem,4vw,4rem); }
.news-item { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.news-item time { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.news-item h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.02em; font-size: clamp(1.3rem,2.4vw,1.9rem); line-height: 1.12; margin-top: .8rem; max-width: 22ch; }
.news-item .more { margin-top: 1.3rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { border-top: 1px solid var(--line); padding-block: clamp(3.5rem,6vw,6rem) 2.4rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(1.5rem,3vw,3rem); }
.footer h4 { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 1.1rem; }
.footer__brand .brand__mark { font-size: 1.7rem; }
.footer__brand p { font-size: .86rem; color: var(--soft); margin-top: 1rem; max-width: 30ch; line-height: 1.6; }
.footer address { font-style: normal; font-size: .9rem; color: var(--ink-2); line-height: 1.7; }
.footer ul { list-style: none; font-size: .9rem; line-height: 2; color: var(--ink-2); }
.footer a.link { transition: color .3s; }
.footer a.link:hover { color: var(--accent); }
.news-form label { font-size: .85rem; color: var(--soft); display: block; margin-bottom: .9rem; line-height: 1.5; }
.news-form .field { display: flex; border-bottom: 1px solid var(--line-2); }
.news-form input { flex: 1; background: none; border: none; padding: .6rem 0; font: inherit; font-size: .9rem; color: var(--ink); }
.news-form input:focus { outline: none; }
.news-form input::placeholder { color: var(--muted); }
.news-form button { padding: .5rem .2rem .5rem .8rem; font-size: 1.1rem; transition: transform .3s var(--ease), color .3s; }
.news-form button:hover { transform: translateX(4px); color: var(--accent); }
.footer__social { display: flex; gap: 1.2rem; margin-top: 1.3rem; }
.footer__social a { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.footer__social a:hover { color: var(--ink); }
.footer__bottom { margin-top: clamp(3rem,5vw,5rem); padding-top: 1.7rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .72rem; color: var(--muted); }
.footer__bottom a { transition: color .3s; } .footer__bottom a:hover { color: var(--ink); }

/* draft ribbon */
.draftnote { position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 200; background: var(--ink); color: var(--bg); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; padding: .55rem 1.1rem; border-radius: 100px; font-weight: 500; box-shadow: 0 10px 30px rgba(19,18,16,.25); display: flex; align-items: center; gap: .55rem; }
.draftnote .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* =========================================================
   PAGE HEADER (interior)
   ========================================================= */
.pagehead { padding-top: clamp(3rem,6vw,5.5rem); padding-bottom: clamp(2rem,4vw,3.5rem); }
.pagehead h1 { font-family: var(--display); font-weight: 600; letter-spacing: -.03em; font-size: clamp(2.8rem,8vw,7rem); line-height: .92; }
.pagehead p { margin-top: 1.5rem; max-width: 54ch; color: var(--soft); font-size: clamp(1rem,1.3vw,1.18rem); line-height: 1.55; }
.crumb { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.5rem; }
.crumb a:hover { color: var(--ink); }

.prose { max-width: 64ch; }
.prose p { font-size: clamp(1.05rem,1.5vw,1.3rem); line-height: 1.6; color: var(--ink-2); margin-bottom: 1.4rem; }
.prose p.lead { font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem,3vw,2.3rem); line-height: 1.18; letter-spacing: -.02em; color: var(--ink); margin-bottom: 2.2rem; }
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem,6vw,6rem); align-items: start; }
.about-facts { border-top: 1px solid var(--line); }
.about-facts dl { display: grid; grid-template-columns: auto 1fr; gap: 1rem 2rem; padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.about-facts dt { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; font-weight: 600; }
.about-facts dd { font-size: .95rem; color: var(--ink-2); line-height: 1.5; }

/* =========================================================
   REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
[data-stagger] > * { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-stagger].in > * { opacity: 1; transform: none; }
[data-stagger].in > *:nth-child(2){transition-delay:.07s}
[data-stagger].in > *:nth-child(3){transition-delay:.14s}
[data-stagger].in > *:nth-child(4){transition-delay:.21s}
[data-stagger].in > *:nth-child(5){transition-delay:.28s}
[data-stagger].in > *:nth-child(6){transition-delay:.35s}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, [data-stagger] > *, .cover [data-load], .cover__img { opacity: 1; transform: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .footer__top { grid-template-columns: 1fr 1fr; row-gap: 3rem; }
  .grid-artists { grid-template-columns: repeat(3,1fr); }
  .grid-coll { grid-template-columns: repeat(3,1fr); }
  .grid-cats { grid-template-columns: repeat(4,1fr); }
  .artists-list { columns: 2; }
  .statement__inner { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .burger { display: flex; }
  .topbar.open .nav, .has-cover .topbar.open .nav {
    display: flex; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: flex-start;
    gap: 1.3rem; background: var(--bg); padding: 2rem var(--pad); border-bottom: 1px solid var(--line);
  }
  .has-cover .topbar.open { background: var(--bg); color: var(--ink); }
  .has-cover .topbar.open .nav a { color: var(--ink-2); }
  .topbar.open .burger span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
  .topbar.open .burger span:nth-child(2){ opacity: 0; }
  .topbar.open .burger span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }
  .feat__a,.feat__b,.feat__c,.feat__d,.feat__e { grid-column: span 12; }
  .feat__a .plate,.feat__b .plate { aspect-ratio: 16/11; }
  .feat__c .plate,.feat__d .plate,.feat__e .plate { aspect-ratio: 4/3; }
  .pub__grid, .about-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .grid-artists, .grid-coll, .grid-cats { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 560px) {
  .footer__top { grid-template-columns: 1fr; }
  .artists-list { columns: 1; }
  .exh__row { grid-template-columns: 1fr; gap: .4rem; }
  .exh__cta { display: none; }
  .cover__title { font-size: clamp(2.6rem, 13vw, 4rem); }
}
