/* -------------------------------------------------------
   Zequinha de Abreu — One Page (moderno + toque vintage)
   CSS puro, sem framework. Responsivo. Acessível.
-------------------------------------------------------- */

:root{
  --bg: #f6f1e8;
  --bg-2: #f1eadf;
  --paper: #fffaf1;
  --ink: #1f1a16;
  --muted: rgba(31, 26, 22, .72);
  --faint: rgba(31, 26, 22, .12);
  --accent: #7b4f3a;
  --accent-2: #b47a57;
  --shadow: 0 14px 45px rgba(0,0,0,.08);
  --radius: 18px;
  --radius-2: 26px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body{
  margin:0;
  color: var(--ink);
  background: radial-gradient(1200px 700px at 10% -10%, rgba(180, 122, 87, .12), transparent 60%),
              radial-gradient(900px 600px at 100% 10%, rgba(123, 79, 58, .10), transparent 55%),
              linear-gradient(180deg, var(--bg), var(--bg-2));
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.55;
}

/* Grain leve (sem imagem externa) */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.10;
  mix-blend-mode:multiply;
  background-image:
    repeating-linear-gradient(0deg, rgba(0,0,0,.02) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.015) 0 1px, transparent 1px 4px);
}

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

a{ color: inherit; text-decoration-color: rgba(123,79,58,.35); text-underline-offset: 4px; }
a:hover{ text-decoration-color: rgba(123,79,58,.85); }

.container{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* Skip link */
.skip{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px; height:1px;
  overflow:hidden;
}
.skip:focus{
  left:16px; top:16px;
  width:auto; height:auto;
  padding:10px 14px;
  background: var(--paper);
  border:1px solid var(--faint);
  border-radius: 12px;
  z-index: 9999;
}

/* Header */
.header{
  position:sticky;
  top:0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.header.is-scrolled{
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  box-shadow: 0 10px 35px rgba(0,0,0,.06);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand{
  display:flex;
  flex-direction:column;
  gap: 2px;
  text-decoration:none;
}
.brand__name{
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing:.2px;
}
.brand__tag{
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav{
  display:flex;
  gap: 18px;
  align-items:center;
}
.nav__link{
  text-decoration:none;
  font-size: 14px;
  color: color-mix(in srgb, var(--ink) 86%, transparent);
  padding: 10px 10px;
  border-radius: 12px;
}
.nav__link:hover{
  background: rgba(0,0,0,.035);
}
.nav__link.is-active{
  background: rgba(123,79,58,.10);
  color: var(--ink);
}

.nav-toggle{
  display:none;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.75);
  padding: 10px;
  border-radius: 12px;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  flex-direction: column;
  width: 44px;
  height: 44px;
}
.nav-toggle span{
  display:block;
  width: 22px;
  height: 2px;
  background: color-mix(in srgb, var(--ink) 80%, transparent);
  border-radius: 999px;
  transition: transform .18s ease, opacity .18s ease;
  transform-origin: center;
}
.nav-toggle span + span{ margin-top: 6px; }

.nav-toggle.is-active span:nth-child(1){
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.is-active span:nth-child(2){
  opacity: 0;
  transform: scaleX(0.2);
}
.nav-toggle.is-active span:nth-child(3){
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero */
.hero{
  padding: 42px 0 20px;
}
.hero__grid{
  display:grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 42px;
  align-items:center;
}
.eyebrow{
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.hero__title{
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(42px, 4.2vw, 68px);
  line-height: 1.02;
  margin: 0 0 14px;
}
.accent{
  font-style: italic;
  color: var(--accent);
}
.hero__lead{
  font-size: 16.5px;
  color: color-mix(in srgb, var(--ink) 86%, transparent);
  margin: 0 0 22px;
  max-width: 56ch;
}
.hero__cta{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  border-radius: 16px;
  padding: 12px 16px;
  border: 1px solid rgba(0,0,0,.10);
  text-decoration:none;
  font-weight: 600;
  font-size: 14px;
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:active{ transform: translateY(1px); }
.btn--primary{
  background: color-mix(in srgb, var(--accent) 16%, var(--paper));
  border-color: color-mix(in srgb, var(--accent) 24%, rgba(0,0,0,.10));
  box-shadow: var(--shadow);
}
.btn--primary:hover{
  background: color-mix(in srgb, var(--accent) 22%, var(--paper));
}
.btn--ghost{
  background: rgba(255,255,255,.36);
}
.btn--ghost:hover{
  background: rgba(255,255,255,.55);
}
.btn--full{
  width: 100%;
}

.hero__facts{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
  border-left: 2px solid rgba(123,79,58,.22);
  padding-left: 14px;
  margin-top: 12px;
}
.fact__k{
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  display:block;
}
.fact__v{
  font-size: 14px;
  color: color-mix(in srgb, var(--ink) 84%, transparent);
}

/* Portrait (hero) */
.portrait{
  margin:0;
}
.portrait__frame{
  position:relative;
  width: min(420px, 85vw);
  aspect-ratio: 1 / 1;
  margin-left:auto;
  border-radius: 999px;
  padding: 16px;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.85), rgba(255,255,255,.35));
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,.08);
}
.portrait__frame img{
  width:100%;
  height:100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 999px;
  filter: sepia(.20) contrast(1.05) saturate(.92);
}
.portrait__note{
  position:absolute;
  right: 10px;
  bottom: 10px;
  width: 52px;
  height: 52px;
  display:grid;
  place-items:center;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 18px 30px rgba(0,0,0,.10);
  color: var(--accent);
}
.portrait__caption{
  text-align:center;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 12px 0 0;
}

/* Scroll hint */
.scroll-hint{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 10px;
  margin-top: 16px;
  opacity: .7;
}
.scroll-hint__line{
  width: 1px;
  height: 38px;
  background: rgba(0,0,0,.18);
}
.scroll-hint__dot{
  width: 8px;
  height: 8px;
  border-radius:999px;
  background: rgba(123,79,58,.55);
  animation: bob 1.5s ease-in-out infinite;
}
@keyframes bob{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(8px); }
}

/* Sections */
.section{
  padding: 70px 0;
}
.section--alt{
  background: rgba(255,255,255,.25);
  border-top: 1px solid rgba(0,0,0,.06);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.section__header{
  text-align:center;
  margin-bottom: 28px;
}
.section__title{
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 44px);
  margin: 0 0 10px;
}
.section__subtitle{
  color: var(--muted);
  margin: 0 auto;
  max-width: 64ch;
}

/* Bio */
.bio{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 26px;
  align-items:start;
}
.bio__text p{
  margin: 0 0 14px;
  color: color-mix(in srgb, var(--ink) 88%, transparent);
}
.callout{
  border-left: 2px solid rgba(123,79,58,.35);
  padding: 12px 14px;
  background: rgba(255,255,255,.40);
  border-radius: 14px;
  margin: 18px 0;
}
.callout__q{
  margin: 0 0 4px;
  font-family: "Playfair Display", serif;
  font-size: 18px;
}
.callout__a{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.chips{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.chip{
  border:1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.38);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  color: color-mix(in srgb, var(--ink) 82%, transparent);
}

.card{
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.55);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 18px 55px rgba(0,0,0,.05);
}
.card__title{
  font-family: "Playfair Display", serif;
  font-weight: 700;
  margin: 0 0 10px;
  font-size: 20px;
}
.card__note{
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}
.dl{
  margin: 0;
}
.dl__row{
  display:flex;
  justify-content:space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.dl__row:last-child{ border-bottom: 0; }
.dl dt{
  color: var(--muted);
  font-size: 13px;
}
.dl dd{
  margin:0;
  font-size: 13px;
  text-align:right;
  color: color-mix(in srgb, var(--ink) 86%, transparent);
}

/* Timeline */
.timeline{
  margin-top: 42px;
}
.timeline__title{
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 26px;
  text-align:center;
  margin: 0 0 18px;
}
.timeline__track{
  position:relative;
  padding: 18px 0;
}
.timeline__track::before{
  content:"";
  position:absolute;
  left:50%;
  top:0; bottom:0;
  width:1px;
  background: rgba(0,0,0,.12);
}
.titem{
  position:relative;
  display:grid;
  grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr);
  gap: 0;
  align-items:center;
  margin: 16px 0;
}
.titem[data-side="left"] .titem__card{ grid-column: 1; justify-self:end; }
.titem[data-side="right"] .titem__card{ grid-column: 3; justify-self:start; }
.titem__dot{
  grid-row: 1;
  grid-column: 2;
  justify-self:center;
  width: 12px;
  height: 12px;
  border-radius:999px;
  background: rgba(123,79,58,.55);
  box-shadow: 0 0 0 6px rgba(123,79,58,.10);
}
.titem__card{
  width: min(420px, 100%);
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.55);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 18px 45px rgba(0,0,0,.05);
  position:relative;
  overflow:hidden;
}
.titem__card::after{
  content: attr(data-watermark);
  position:absolute;
  right: 14px;
  top: 8px;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 54px;
  color: rgba(0,0,0,.05);
}
.titem__year{
  margin: 0;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.titem__h{
  margin: 6px 0 6px;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 18px;
}
.titem__p{
  margin: 0;
  color: color-mix(in srgb, var(--ink) 86%, transparent);
  font-size: 14px;
}

.tiny{
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  text-align:center;
}

/* Works */
.works{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  align-items:start;
}
.works__grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.work{
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.55);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 16px 45px rgba(0,0,0,.05);
}
.work__t{
  margin: 0 0 6px;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 18px;
}
.work__m{
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}
.work__d{
  margin: 0 0 12px;
  color: color-mix(in srgb, var(--ink) 86%, transparent);
  font-size: 14px;
}
.work__links{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}
.link{
  font-size: 13px;
  text-decoration:none;
  border-bottom: 1px dashed rgba(123,79,58,.45);
}
.link:hover{
  border-bottom-color: rgba(123,79,58,.95);
}

/* Legacy */
.legacy__grid{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
.panel{
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.55);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 16px 45px rgba(0,0,0,.05);
}
.panel__t{
  margin: 0 0 10px;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 18px;
}
.panel__p{
  margin:0;
  color: color-mix(in srgb, var(--ink) 86%, transparent);
  font-size: 14px;
}
.quote{
  margin-top: 18px;
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(123,79,58,.08);
}
.quote__text{
  margin:0;
  font-family: "Playfair Display", serif;
  font-size: 18px;
}
.quote__sub{
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* Media */
.media__grid{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
.list{
  margin: 10px 0 0;
  padding-left: 18px;
}
.list li{ margin: 6px 0; }
.list a{ color: color-mix(in srgb, var(--ink) 88%, transparent); }

/* Gallery */
.gallery__grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery-item{
  position:relative;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.55);
  border-radius: 18px;
  overflow:hidden;
  box-shadow: 0 16px 45px rgba(0,0,0,.05);
  transition: transform .18s ease, box-shadow .18s ease;
}
.gallery-item:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 55px rgba(0,0,0,.08);
}
.gallery-open{
  display:block;
  width:100%;
  border:0;
  padding:0;
  margin:0;
  background:transparent;
  cursor:pointer;
  position:relative;
}
.gallery-item img{
  width:100%;
  height: 220px;
  object-fit: cover;
  filter: sepia(.10) contrast(1.05) saturate(.95);
}
.gallery-item.is-broken img{ filter:none; opacity:.9; }
.gallery-item__label{
  position:absolute;
  left: 10px;
  bottom: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.80);
  border: 1px solid rgba(0,0,0,.10);
  font-size: 12px;
  font-weight: 600;
}

.gallery-item__meta{
  display:flex;
  justify-content:flex-end;
  padding: 10px 12px;
  border-top: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.35);
}
.gallery-item__source{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.75);
  text-decoration:none;
  color: color-mix(in srgb, var(--ink) 90%, transparent);
  font-weight: 700;
  font-size: 12px;
}
.gallery-item__source:hover{
  border-color: rgba(0,0,0,.16);
  transform: translateY(-1px);
}

.gallery__note{
  margin-top: 14px;
}

/* Contact */
.contact{
  max-width: 70ch;
  margin: 0 auto;
  text-align:center;
}
.contact__p{
  margin:0;
  font-size: 16px;
  color: color-mix(in srgb, var(--ink) 88%, transparent);
}
.contact__mail{
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed rgba(123,79,58,.55);
}
.contact__mail:hover{
  border-bottom-color: rgba(123,79,58,.95);
}

/* Footer */
.footer{
  padding: 34px 0 50px;
  border-top: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.12);
}
.footer__grid{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.footer__brand{
  font-family: "Playfair Display", serif;
  font-weight: 700;
  margin: 0 0 8px;
  font-size: 18px;
}
.footer__small{
  margin:0;
  color: var(--muted);
  font-size: 13px;
}
.footer__h{
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer__list{
  margin:0;
  padding-left: 18px;
}
.footer__list li{ margin: 6px 0; font-size: 14px}

/* Lightbox */
.lightbox{
  position:fixed;
  inset:0;
  display:none;
  z-index: 100;
}
.lightbox.is-open{ display:block; }
.lightbox__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
}
.lightbox__panel{
  position:absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(920px, calc(100% - 30px));
  border-radius: var(--radius-2);
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 30px 90px rgba(0,0,0,.35);
  padding: 16px;
  overflow:hidden;
}
.lightbox__close{
  position:absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.90);
  cursor:pointer;
  font-size: 16px;
}
.lightbox__img{
  width: 100%;
  max-height: 66vh;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.03);
}
.lightbox__cap{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.lightbox__actions{
  margin-top: 12px;
}

/* Reveal animation */
.reveal{
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-in{
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .scroll-hint__dot{ animation: none; }
  .reveal{ transition: none; transform: none; opacity: 1; }
}

/* Responsive */
@media (max-width: 980px){
  .hero__grid{ grid-template-columns: 1fr; gap: 26px; }
  .portrait__frame{ margin: 0 auto; }
  .bio{ grid-template-columns: 1fr; }
  .works{ grid-template-columns: 1fr; }
  .works__grid{ grid-template-columns: 1fr; }
  .legacy__grid{ grid-template-columns: 1fr; }
  .media__grid{ grid-template-columns: 1fr; }
  .gallery__grid{ grid-template-columns: 1fr 1fr; }
  .footer__grid{ grid-template-columns: 1fr; }
  .nav-toggle{ display:inline-flex; }
  .nav{
    position: absolute;
    right: 20px;
    top: 70px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    width: min(320px, calc(100vw - 40px));
    border-radius: 18px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(0,0,0,.10);
    box-shadow: 0 20px 60px rgba(0,0,0,.10);
    display:none;
  }
  .nav.is-open{ display:flex; }
  .nav__link{ padding: 12px 12px; }
  .timeline__track::before{ left: 14px; transform: translateX(-50%); width:2px; }
  .titem{
    grid-template-columns: 28px 1fr;
    gap: 10px;
  }
  .titem__dot{ grid-column: 1; }
  .titem__card{ grid-column: 2 !important; justify-self: stretch !important; }
}

@media (max-width: 520px){
  .gallery__grid{ grid-template-columns: 1fr; }
  .brand__tag{ display:none; }
}
