/* ==========================================================================
   Alison Amorim — Monochrome Editorial · black & white, Syne + Inter + Plex Mono
   Inspirado em template galeria B&W: full-bleed, parallax, alto contraste.
   ========================================================================== */

:root {
  --paper:  #FAFAF8;
  --ink:    #0A0A0A;
  --ink-2:  #565656;
  --faint:  #6E6E6A;
  --rule:   rgba(10, 10, 10, 0.16);
  --rule-2: rgba(10, 10, 10, 0.34);

  --display: 'Syne', system-ui, sans-serif;
  --sans:    'Inter', system-ui, -apple-system, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, monospace;

  --maxw: 1240px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--paper); }
h1, h2, h3, .name, .plate-title, .pill-title, .work-name, .ph-mark { font-family: var(--display); }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: #c9c9c4; border: 3px solid var(--paper); border-radius: 10px; }

/* ===== preview flag ===== */
.preview-flag { background: var(--ink); color: var(--paper); text-align: center; font-family: var(--mono); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; padding: .5rem; }

/* ===== skip link ===== */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: .82rem; padding: .7rem 1.1rem; }
.skip-link:focus { left: 0; }

/* ===== masthead ===== */
.masthead { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .9rem var(--pad); background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--ink); }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; display: inline-flex; align-items: baseline; gap: .1rem; }
.wm-dot { color: var(--ink); }
.wm-full { font-family: var(--sans); font-weight: 500; font-size: .9rem; margin-left: .4rem; }
.mast-nav { display: flex; gap: 1.5rem; }
.mast-nav a { font-family: var(--mono); font-size: .75rem; letter-spacing: .03em; color: var(--ink-2); padding-bottom: 2px; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.mast-nav a:hover, .mast-nav a.active { color: var(--ink); border-bottom-color: var(--ink); }
.lang-switch { font-family: var(--mono); font-size: .78rem; background: none; border: 1px solid var(--ink); color: var(--ink-2); padding: .3rem .55rem; cursor: pointer; letter-spacing: .04em; }
.lang-switch [data-lang].on { color: var(--ink); font-weight: 500; }
.ls-sep { margin: 0 .25em; color: var(--faint); }

/* ===== hero (video) ===== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(.7); }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,.5) 0%, rgba(10,10,10,.2) 38%, rgba(10,10,10,.88) 100%); }
.hero-content { position: relative; z-index: 2; color: var(--paper); max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 0 var(--pad) clamp(3rem, 8vw, 6rem); }
.kicker { font-family: var(--mono); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(250,250,248,.82); margin-bottom: 1.4rem; }
.name { font-weight: 800; line-height: .82; letter-spacing: -.03em; text-transform: uppercase; margin-bottom: 1.6rem; color: var(--paper); }
.name-l1, .name-l2 { display: block; font-size: clamp(2.8rem, 11vw, 7rem); }
.name-l2 { color: transparent; -webkit-text-stroke: 2px var(--paper); text-stroke: 2px var(--paper); }
@supports not ((-webkit-text-stroke: 2px #fff) or (text-stroke: 2px #fff)) { .name-l2 { color: var(--paper); } }
.hero-lede { font-size: clamp(1.1rem, 1.9vw, 1.45rem); line-height: 1.45; max-width: 34ch; color: rgba(250,250,248,.92); margin-bottom: 1.8rem; }
.hero-links { list-style: none; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.hero-links a { font-family: var(--mono); font-size: .85rem; color: var(--paper); border-bottom: 1px solid var(--paper); padding-bottom: 2px; transition: opacity .2s; }
.hero-links a:hover { opacity: .6; }
.scroll-cue { position: absolute; bottom: 1.3rem; right: var(--pad); z-index: 2; color: var(--paper); font-family: var(--mono); font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; opacity: .75; }
.scroll-cue:hover { opacity: 1; }

/* ===== parallax bands ===== */
.band { position: relative; min-height: 64vh; display: flex; align-items: center; background-color: var(--ink); background-position: center; background-size: cover; background-repeat: no-repeat; }
/* fixed só em desktop com mouse — iOS/iPadOS não suporta background-attachment: fixed */
@media (hover: hover) and (pointer: fine) { .band { background-attachment: fixed; } }
.band-facade { background-image: url('../media/facade.jpg'); }
.band-central { background-image: url('../media/central.jpg'); }
.band::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,.82) 0%, rgba(10,10,10,.5) 60%, rgba(10,10,10,.35) 100%); }
.band-inner { position: relative; z-index: 2; max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 0 var(--pad); color: var(--paper); }
.band-quote { font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 3.6vw, 2.6rem); line-height: 1.08; letter-spacing: -.02em; text-transform: uppercase; max-width: 22ch; }
.band-cred { font-family: var(--mono); font-size: .82rem; color: rgba(250,250,248,.72); margin-top: 1.3rem; letter-spacing: .03em; }

/* ===== ticker ===== */
.ticker { border-block: 2px solid var(--ink); overflow: clip; white-space: nowrap; max-width: 100%; }
.ticker-row { display: inline-flex; will-change: transform; animation: marquee 34s linear infinite; }
.ticker-row:hover { animation-play-state: paused; }
.ticker-item { font-family: var(--display); font-weight: 700; font-size: clamp(1.1rem, 2.4vw, 1.8rem); text-transform: uppercase; letter-spacing: -.01em; padding: .7rem clamp(1rem, 2.5vw, 2rem); display: inline-flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.ticker-item::after { content: '✦'; font-size: .6em; color: var(--ink-2); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== sections ===== */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(4rem, 8vw, 7rem) var(--pad); }
.section.invert { max-width: none; background: var(--ink); color: var(--paper); }
.section.invert > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

/* plate (full-bleed section title) */
.plate { border-top: 2px solid currentColor; padding-top: 1.2rem; margin-bottom: 3rem; display: flex; align-items: flex-start; gap: 1.2rem; will-change: transform; }
.plate-no { font-family: var(--mono); font-size: .82rem; padding-top: .6rem; opacity: .65; }
.plate-title { font-weight: 800; font-size: clamp(1.3rem, 4.2vw, 3.2rem); line-height: .95; letter-spacing: -.02em; text-transform: uppercase; overflow-wrap: break-word; min-width: 0; }
.sec-note { font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.5; max-width: 62ch; color: var(--ink-2); margin: -1.5rem 0 2.5rem; }
.invert .sec-note { color: #B9B9B4; }

/* ===== pillars ===== */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.pill { min-width: 0; padding: 2rem 2rem 2rem 0; border-left: 1px solid rgba(250,250,248,.2); padding-left: 2rem; }
.pill:first-child { border-left: none; padding-left: 0; }
.pill-k { font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.pill-title { font-weight: 800; font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.06; letter-spacing: -.02em; margin: .8rem 0 1.2rem; text-transform: uppercase; overflow-wrap: break-word; hyphens: auto; }
.pill-text { font-size: 1.02rem; line-height: 1.55; color: #C4C4BF; max-width: 36ch; }

/* ===== about ===== */
.about-pull { font-weight: 700; font-size: clamp(1.5rem, 3.5vw, 2.6rem); line-height: 1.2; letter-spacing: -.02em; max-width: 24ch; margin-bottom: 2.5rem; }
.about-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); }
.about-cols p { font-size: 1.05rem; color: var(--ink-2); }

/* ===== ledger ===== */
.ledger-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2.6fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding: 2rem 0; border-top: 1px solid var(--rule); }
.ledger-row:first-child { border-top: none; padding-top: 0; }
.lr-period { font-family: var(--mono); font-size: .82rem; color: var(--faint); }
.lr-company { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -.01em; margin-top: .3rem; text-transform: uppercase; }
.lr-role { font-family: var(--mono); font-size: .9rem; font-weight: 500; color: var(--ink); margin-bottom: 1rem; }
.lr-bullets { list-style: none; display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1rem; }
.lr-bullets li { font-size: 1rem; color: var(--ink-2); padding-left: 1.4rem; position: relative; max-width: 72ch; }
.lr-bullets li::before { content: '—'; position: absolute; left: 0; color: var(--ink); }
.lr-tags { display: flex; flex-wrap: wrap; gap: .5rem .9rem; }
.lr-tag { font-family: var(--mono); font-size: .74rem; color: var(--ink-2); }
.lr-tag::before { content: '·'; color: var(--faint); margin-right: .55rem; }
.lr-tags .lr-tag:first-child::before { content: none; }

/* ===== capabilities ===== */
.cap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2.6fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding: 1.5rem 0; border-top: 1px solid var(--rule); align-items: baseline; }
.cap:first-child { border-top: none; padding-top: 0; }
.cap h3 { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
.cap-items { font-family: var(--display); font-weight: 600; font-size: clamp(1.05rem, 1.8vw, 1.4rem); line-height: 1.55; color: var(--ink-2); min-width: 0; overflow-wrap: break-word; }
.cap-items .sep { color: var(--faint); margin: 0 .45em; }
.cap-items b { color: var(--ink); font-weight: 800; }
.cap-items b::after { content: ''; }

/* ===== works ===== */
.works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 4rem); }
.work { min-width: 0; border-top: 1px solid rgba(250,250,248,.18); padding: 1.8rem 0; display: flex; flex-direction: column; }
.works > .work:nth-child(1), .works > .work:nth-child(2) { border-top: 2px solid var(--paper); }
.work-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.work-name-wrap { display: inline-flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.work-name { font-weight: 700; font-size: 1.6rem; letter-spacing: -.01em; text-transform: uppercase; transition: opacity .2s; }
.work:hover .work-name { opacity: .55; }
.work-idx { font-family: var(--mono); font-size: .74rem; opacity: .55; }
.work-feat { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--paper); padding: .12rem .45rem; margin-left: .6rem; white-space: nowrap; }
.work.is-feat .work-name { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.work-lang { font-family: var(--mono); font-size: .76rem; color: #C4C4BF; margin: .5rem 0 .9rem; }
.work-desc { font-size: 1rem; color: #BdBdB8; flex: 1; margin-bottom: 1rem; max-width: 46ch; }
.work-go { font-family: var(--mono); font-size: .78rem; border-bottom: 1px solid var(--paper); padding-bottom: 2px; width: fit-content; transition: opacity .2s; }
.work:hover .work-go { opacity: .55; }

/* ===== writing ===== */
.toc-featured { list-style: none; margin-bottom: 1.8rem; }
.toc-item { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 1.2rem; padding: 1.15rem 0; border-top: 1px solid var(--rule); transition: padding-left .25s var(--ease); }
.toc-item:first-child { border-top: none; }
.toc-item:hover { padding-left: .6rem; }
.toc-no { font-family: var(--mono); font-size: .78rem; color: var(--faint); }
.toc-t { font-family: var(--display); font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.5rem); line-height: 1.25; letter-spacing: -.01em; }
.toc-item:hover .toc-t { text-decoration: underline; text-underline-offset: 5px; }
.toc-tag { font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); white-space: nowrap; }
.text-toggle { font-family: var(--mono); font-size: .82rem; letter-spacing: .04em; background: none; border: none; color: var(--ink); cursor: pointer; padding: .6rem 0; border-bottom: 2px solid var(--ink); }
.toc-all { list-style: none; columns: 2; column-gap: clamp(2rem, 5vw, 4rem); margin-top: 1.6rem; border-top: 1px solid var(--rule); padding-top: 1.4rem; }
.toc-all[hidden] { display: none; }
.toc-all li { break-inside: avoid; margin-bottom: .15rem; }
.toc-all a { display: grid; grid-template-columns: auto 1fr; gap: .7rem; padding: .45rem .3rem; font-size: .92rem; color: var(--ink-2); line-height: 1.4; transition: color .2s; }
.toc-all a:hover { color: var(--ink); }
.toc-all .tn { font-family: var(--mono); font-size: .74rem; color: var(--faint); }

/* ===== articles: categories + carousel ===== */
.art-cats { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2.2rem; }
.art-cat { font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; background: none; border: 1px solid var(--rule-2); color: var(--ink-2); padding: .42rem .8rem; cursor: pointer; transition: background .2s, color .2s, border-color .2s; display: inline-flex; align-items: center; gap: .5rem; }
.art-cat:hover { border-color: var(--ink); color: var(--ink); }
.art-cat.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ac-n { font-size: .74rem; opacity: .55; }
.art-cat.on .ac-n { opacity: .8; }

.carousel { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: stretch; gap: 1rem; }
.car-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; align-content: start; }
.car-btn { font-family: var(--display); font-size: 1.5rem; width: 46px; min-height: 100%; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; transition: background .2s, color .2s; }
.car-btn:hover { background: var(--ink); color: var(--paper); }
.car-cell { min-width: 0; display: flex; flex-direction: column; gap: .6rem; }
.car-embed { position: relative; width: 100%; height: 600px; border: 1px solid var(--rule); background: #fff; overflow: hidden; }
.car-embed iframe { width: 100%; height: 100%; display: block; }
.car-fallback { font-family: var(--mono); font-size: .74rem; color: var(--ink-2); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.car-fallback:hover { color: var(--ink); }
.car-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1.3rem 0 .4rem; font-family: var(--mono); font-size: .78rem; color: var(--faint); }
.car-ind { color: var(--ink); letter-spacing: .04em; }
.car-note::before { content: '▣ '; opacity: .6; }

@media (max-width: 900px) {
  .carousel {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "track track"
      "prev  next";
    gap: .8rem 1rem;
  }
  .car-track { grid-area: track; grid-template-columns: 1fr; }
  .car-prev { grid-area: prev; justify-self: start; }
  .car-next { grid-area: next; justify-self: end; }
  .car-btn {
    width: auto;
    min-height: 0;
    height: auto;
    padding: .45rem .75rem;
    border: none;
    background: none;
    font-size: 1.7rem;
    line-height: 1;
  }
  .car-btn:hover { background: none; color: var(--ink); }
  .car-embed { height: 620px; }
}

/* ===== credentials ===== */
.cred { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2.6fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding: 1.5rem 0; border-top: 1px solid var(--rule); align-items: baseline; }
.cred:first-child { border-top: none; padding-top: 0; }
.cred h3 { font-family: var(--display); font-weight: 700; font-size: 1.25rem; text-transform: uppercase; letter-spacing: -.01em; }
.cred-year { font-family: var(--mono); font-size: .74rem; color: var(--ink-2); display: block; margin-top: .2rem; }
.cred-lines { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.cred-lines li { font-size: 1rem; color: var(--ink-2); padding-left: 1.3rem; position: relative; }
.cred-lines li::before { content: '·'; position: absolute; left: .3rem; color: var(--ink); }

/* ===== contact ===== */
.closing { padding-bottom: 5rem; }
.closing-line { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 3.4vw, 2.3rem); line-height: 1.2; letter-spacing: -.02em; max-width: 24ch; margin-bottom: 2.5rem; text-transform: uppercase; }
.contact-list { list-style: none; border-top: 1px solid rgba(250,250,248,.18); }
.contact-list li { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2.6fr); gap: 2rem; padding: 1.1rem 0; border-bottom: 1px solid rgba(250,250,248,.18); align-items: baseline; }
.cl-key { font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: #B9B9B4; }
.contact-list a { font-size: 1.15rem; border-bottom: 1px solid transparent; width: fit-content; transition: opacity .2s; }
.contact-list a:hover { opacity: .6; border-color: currentColor; }

/* ===== footer ===== */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 2rem var(--pad) 3rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 2px solid var(--ink); font-family: var(--mono); font-size: .76rem; color: var(--faint); }
.footer .to-top:hover { color: var(--ink); }

/* ===== reveal ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== responsive ===== */
@media (max-width: 900px) {
  .mast-nav { display: none; }
  .wm-full { display: none; }
  .band { min-height: 50vh; }
  .pillars { grid-template-columns: 1fr; }
  .pill { border-left: none; padding-left: 0; border-top: 1px solid rgba(250,250,248,.2); padding-top: 1.5rem; }
  .pill:first-child { border-top: none; padding-top: 0; }
  .about-cols { grid-template-columns: 1fr; }
  .ledger-row, .cap, .cred, .contact-list li { grid-template-columns: minmax(0, 1fr); gap: .7rem; }
  .works { grid-template-columns: 1fr; }
  .works > .work:nth-child(2) { border-top: 1px solid rgba(250,250,248,.18); }
  .toc-all { columns: 1; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .toc-item { grid-template-columns: auto 1fr; }
  .toc-tag { display: none; }
  .name-l2 { -webkit-text-stroke-width: 1.3px; text-stroke-width: 1.3px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  [data-parallax] { transform: none !important; }
}
