/* ==========================================================================
   Vinícius Bueno — photography portfolio
   Photobook feel: warm paper, ink, one tram-red accent.
   ========================================================================== */

:root {
  --paper: #f2efe9;
  --paper-2: #e9e5dc;
  --ink: #151413;
  --muted: #76716a;
  --line: rgba(21, 20, 19, 0.14);
  --accent: #b8321e;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: clamp(1.1rem, 3.2vw, 3rem);
  --max: 1480px;
  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
  color-scheme: light;
}

.theme-dark {
  --paper: #0e0e0d;
  --paper-2: #181817;
  --ink: #ebe8e2;
  --muted: #8f8b84;
  --line: rgba(235, 232, 226, 0.14);
  --accent: #e0563f;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.08rem, 0.98rem + 0.35vw, 1.3rem);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Film grain, fixed and non-interactive */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.mono,
.label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
}
.muted { color: var(--muted); }
.pt { font-style: italic; color: var(--muted); }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--gutter);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.45s var(--ease);
}
.site-header.is-solid {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.on-photo:not(.is-solid) { color: #f4f1ea; }

.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand span { font-style: italic; }
/* On the home page the name is tinted from the current hero photograph */
.brand { transition: color 1.2s var(--ease); }
.site-header.on-photo:not(.is-solid) .brand { color: var(--brand-on-photo, inherit); text-shadow: 0 1px 14px rgba(0, 0, 0, 0.25); }
.site-header.is-solid .brand { color: var(--brand-on-paper, inherit); }
.menu-open .site-header .brand { color: var(--ink) !important; text-shadow: none; }

.nav { display: flex; gap: clamp(0.9rem, 2vw, 2rem); align-items: center; }
.nav a {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  padding: 0.3rem 0;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { color: var(--accent); }
.site-header.on-photo:not(.is-solid) .nav a[aria-current="page"] { color: inherit; }

.menu-btn { display: none; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }

@media (max-width: 820px) {
  .menu-btn { display: block; position: relative; z-index: 2; }
  .nav {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center; gap: 1.4rem;
    background: var(--paper); color: var(--ink);
    opacity: 0; pointer-events: none;
    transition: opacity 0.35s var(--ease);
  }
  .nav a { font-family: var(--serif); font-size: 2.4rem; text-transform: none; letter-spacing: 0; }
  .menu-open .nav { opacity: 1; pointer-events: auto; }
  .menu-open .site-header { color: var(--ink) !important; }
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #111;
  color: #f4f1ea;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 9s linear;
}
.hero-slide.is-active img { transform: scale(1); }
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 52%, rgba(0,0,0,.6) 100%);
}
.hero-inner {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 0 var(--gutter) clamp(1.4rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 1.5rem;
}
.hero-title {
  margin: 0;
  font-weight: 400;
  font-size: clamp(3.6rem, 13.5vw, 15rem);
  line-height: 0.84;
  letter-spacing: -0.035em;
}
.hero-title em { font-style: italic; letter-spacing: -0.02em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line > span { display: inline-block; animation: rise 1.25s var(--ease) both; }
.hero-title .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero-sub { margin: 1.1rem 0 0; max-width: 34ch; animation: fade 1.4s 0.5s var(--ease) both; }
.hero-meta {
  text-align: right;
  display: grid; gap: 0.35rem; justify-items: end;
  animation: fade 1.4s 0.7s var(--ease) both;
}
.hero-caption { min-height: 2.6em; transition: opacity 0.6s var(--ease); }
.hero-progress { display: flex; gap: 6px; margin-top: 0.4rem; }
.hero-progress button { width: 28px; height: 14px; position: relative; }
.hero-progress button::before {
  content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: rgba(255,255,255,.4);
}
.hero-progress button.is-active::before { background: #fff; height: 2px; top: 5.5px; }

@media (max-width: 680px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-meta { text-align: left; justify-items: start; }
}

@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Portfolio downloads, at the top of the home page */
.downloads {
  position: absolute; z-index: 3;
  top: clamp(4.2rem, 7vw, 5.2rem); left: 0; right: 0;
  padding: 0 var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.7rem;
  animation: fade 1.2s 0.3s var(--ease) both;
}
.downloads-label { margin-right: 0.4rem; opacity: 0.85; }
.downloads-label .pt { color: inherit; font-family: var(--serif); text-transform: none; letter-spacing: 0; font-size: 0.95rem; }
.dl {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.5rem 0.9rem; border-radius: 999px;
  border: 1px solid rgba(244, 241, 234, 0.45);
  background: rgba(14, 14, 13, 0.28);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.dl .arr { transition: transform 0.35s var(--ease); }
.dl:hover { background: #f4f1ea; color: #151413; border-color: #f4f1ea; }
.dl:hover .arr { transform: translateY(2px); }
@media (max-width: 680px) {
  .downloads-label { flex-basis: 100%; }
  .dl { padding: 0.45rem 0.75rem; font-size: 0.64rem; }
}

/* ---------- Generic sections ---------- */

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(5rem, 12vw, 10rem) 0; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; padding-bottom: 1rem; margin-bottom: clamp(2.5rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}

/* Statement */
.statement {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: var(--gutter);
}
.statement blockquote {
  margin: 0;
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-indent: -0.4em;
}
.statement blockquote em { color: var(--accent); }
.statement cite { display: block; margin-top: 2rem; font-style: normal; }
@media (max-width: 820px) { .statement { grid-template-columns: 1fr; } }

/* Series chapters (home) */
.chapters { display: grid; gap: clamp(5rem, 12vw, 10rem); }
.chapter {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: end;
}
/* The large and small cover share a mat mixed from both photographs' colours */
.chapter-media {
  --mat: color-mix(in srgb, var(--tone, var(--paper-2)) 38%, var(--paper));
  grid-column: 1 / span 7; position: relative; overflow: hidden;
  background: var(--mat);
  padding: clamp(10px, 1.8vw, 26px);
  transition: background 0.8s var(--ease);
}
.chapter-media > [data-photo] { overflow: hidden; }
.chapter-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; transition: transform 1.4s var(--ease), filter 0.8s var(--ease); }
.chapter-media.wide img { aspect-ratio: 3 / 2; }
.chapter:hover .chapter-media > :not(.second) img { transform: scale(1.035); }
.chapter-media .second {
  position: absolute; right: 6%; bottom: 7%;
  width: 34%;
  border: clamp(4px, 0.6vw, 9px) solid var(--mat);
  box-shadow: 0 30px 60px -20px color-mix(in srgb, var(--tone, #000) 55%, #000);
  transition: transform 1.2s var(--ease);
}
.chapter-media .second img { aspect-ratio: auto; height: auto; }
.chapter:hover .chapter-media .second { transform: translateY(-10px); }
.chapter-text { grid-column: 9 / span 4; padding-bottom: 0.5rem; }
.chapter:nth-child(even) .chapter-media { grid-column: 6 / span 7; grid-row: 1; }
.chapter:nth-child(even) .chapter-text { grid-column: 1 / span 4; grid-row: 1; }
.chapter-num { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 0.8rem; }
.chapter h3 {
  font-weight: 400;
  font-size: clamp(3rem, 2rem + 4vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 1.4rem 0 0.4rem;
}
.chapter p { margin: 1.2rem 0 1.8rem; max-width: 36ch; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding-bottom: 0.3rem; border-bottom: 1px solid currentColor;
}
.link-arrow .arr { transition: transform 0.4s var(--ease); }
a:hover .link-arrow .arr,
.link-arrow:hover .arr { transform: translateX(6px); }
.chapter a.cover-link { position: absolute; inset: 0; z-index: 2; }

@media (max-width: 820px) {
  .chapter .chapter-media,
  .chapter:nth-child(even) .chapter-media,
  .chapter .chapter-text,
  .chapter:nth-child(even) .chapter-text { grid-column: 1 / -1; grid-row: auto; }
}

/* Selected works mosaic (home) */
.mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.6rem, 1.4vw, 1.2rem);
  align-items: start;
}
.mosaic figure { margin: 0; }
.mosaic .ph-btn { box-shadow: 0 24px 50px -30px rgba(0,0,0,.35); }
.mosaic .m1 { grid-column: 1 / span 5; margin-top: 12%; }
.mosaic .m2 { grid-column: 7 / span 6; }
.mosaic .m3 { grid-column: 2 / span 3; }
.mosaic .m4 { grid-column: 6 / span 4; margin-top: 18%; }
.mosaic .m5 { grid-column: 10 / span 3; margin-top: -8%; }
.mosaic .m6 { grid-column: 1 / span 7; margin-top: 4%; }
.mosaic .m7 { grid-column: 9 / span 4; margin-top: 22%; }
@media (max-width: 680px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic figure { grid-column: auto !important; margin-top: 0 !important; }
  .mosaic .m2, .mosaic .m6 { grid-column: 1 / -1 !important; }
}

/* About + contact */
.about {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}
.about-lead { grid-column: 1 / span 7; font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.9rem); line-height: 1.12; letter-spacing: -0.01em; margin: 0; }
.about-body { grid-column: 9 / span 4; }
.about-body p { margin: 0 0 1.1rem; }
.services { list-style: none; padding: 0; margin: 2rem 0 0; border-top: 1px solid var(--line); }
.services li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
@media (max-width: 820px) { .about-lead, .about-body { grid-column: 1 / -1; } }

.contact { background: var(--ink); color: var(--paper); }
.contact .rule { border-color: rgba(255,255,255,.16); }
.contact-title {
  font-weight: 400;
  font-size: clamp(3.2rem, 11vw, 12rem);
  line-height: 0.86;
  letter-spacing: -0.035em;
  margin: 0 0 clamp(3rem, 7vw, 6rem);
}
.contact-title em { color: var(--accent); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem var(--gutter); }
.contact-grid a { font-size: clamp(1.3rem, 1rem + 1vw, 2rem); display: inline-block; border-bottom: 1px solid transparent; transition: border-color .3s; }
.contact-grid a:hover { border-color: currentColor; }
.contact-grid .label { display: block; opacity: 0.55; margin-bottom: 0.5rem; }

.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding: 1.6rem var(--gutter);
  border-top: 1px solid var(--line);
}
.site-footer.ink { background: var(--ink); color: rgba(242,239,233,.55); border-color: rgba(255,255,255,.12); }

/* ---------- Series page ---------- */

.series-head { padding: clamp(8rem, 18vw, 13rem) 0 clamp(3rem, 7vw, 6rem); }
.series-head .grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: end;
}
.series-title {
  grid-column: 1 / span 8;
  margin: 0;
  font-weight: 400;
  font-size: clamp(4rem, 2rem + 10vw, 13rem);
  line-height: 0.82;
  letter-spacing: -0.04em;
}
.series-title .pt { display: block; font-size: 0.32em; letter-spacing: -0.01em; margin-top: 0.5em; }
.series-meta { grid-column: 10 / span 3; display: grid; gap: 0.4rem; }
.series-intro {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter);
  margin-top: clamp(2.5rem, 6vw, 5rem);
  padding-top: 1.2rem; border-top: 1px solid var(--line);
}
.series-intro p { margin: 0; }
.series-intro .en { grid-column: 1 / span 6; font-size: 1.25em; line-height: 1.3; }
.series-intro .pt-text { grid-column: 8 / span 5; color: var(--muted); font-style: italic; }
@media (max-width: 820px) {
  .series-title, .series-meta, .series-intro .en, .series-intro .pt-text { grid-column: 1 / -1; }
}

.view-toggle {
  position: sticky; top: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.9rem var(--gutter);
  max-width: none;
  pointer-events: none;
}
.view-toggle > * { pointer-events: auto; }
.toggle {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.toggle button { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.45rem 0.9rem; border-radius: 999px; transition: background .3s, color .3s; }
.toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* Sequence layout */
.sequence { display: grid; gap: clamp(4.5rem, 11vw, 9rem); padding: clamp(2rem, 5vw, 4rem) 0 clamp(6rem, 12vw, 10rem); }
.row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(0.8rem, 2vw, 2rem); align-items: end; }
.row.wide-full .ph { grid-column: 1 / -1; }
.row.wide-left .ph { grid-column: 1 / span 9; }
.row.wide-right .ph { grid-column: 4 / span 9; }
.row.tall-left .ph { grid-column: 2 / span 5; }
.row.tall-right .ph { grid-column: 7 / span 5; }
.row.tall-center .ph { grid-column: 4 / span 6; }
.row.pair .ph:first-child { grid-column: 1 / span 6; }
.row.pair .ph:last-child { grid-column: 7 / span 6; }
.row.pair.offset .ph:first-child { grid-column: 2 / span 5; margin-bottom: 12%; }
.row.pair.offset .ph:last-child { grid-column: 8 / span 4; }
.row.interlude { text-align: center; }
.row.interlude > div { grid-column: 3 / span 8; }
.interlude-text { font-size: clamp(2.2rem, 1.4rem + 3vw, 4.6rem); line-height: 1.02; letter-spacing: -0.02em; margin: 0; }
.interlude .pt { display: block; margin-top: 0.8rem; font-size: 1rem; }
@media (max-width: 680px) {
  .row .ph { grid-column: 1 / -1 !important; margin: 0 !important; }
  .row.pair { row-gap: 3.5rem; }
  .row.tall-left .ph, .row.tall-right .ph, .row.tall-center .ph { grid-column: 2 / span 10 !important; }
  .row.interlude > div { grid-column: 1 / -1; }
}

.ph { margin: 0; }
.ph-btn { display: block; width: 100%; position: relative; overflow: hidden; background: var(--paper-2); cursor: zoom-in; }
.ph-btn img { width: 100%; height: auto; transition: transform 1.2s var(--ease), opacity 0.8s var(--ease); opacity: 0; }
.ph-btn img.is-loaded { opacity: 1; }
.ph-btn:hover img { transform: scale(1.02); }
.ph figcaption {
  display: flex; gap: 0.9rem; align-items: baseline; flex-wrap: wrap;
  margin-top: 0.85rem;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.ph figcaption .t { font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0; text-transform: none; color: var(--ink); }
.ph figcaption .n { color: var(--accent); }
.ph figcaption .p { color: var(--muted); }

/* Index (contact sheet) */
.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: clamp(1.2rem, 2.4vw, 2.2rem) clamp(0.8rem, 1.6vw, 1.4rem);
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(6rem, 12vw, 10rem);
  align-items: end;
}
.index-grid .ph figcaption { margin-top: 0.5rem; gap: 0.5rem; }
.index-grid .ph figcaption .t { font-size: 0.92rem; }
.index-grid .ph figcaption .p { display: none; }
.index-grid .ph-btn img { aspect-ratio: auto; }

[hidden] { display: none !important; }

/* Next series */
.next {
  display: block;
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
  position: relative; overflow: hidden;
}
.next .label { display: block; margin-bottom: 1rem; }
.next-title {
  font-size: clamp(3.4rem, 1.5rem + 9vw, 11rem); line-height: 0.85; letter-spacing: -0.04em;
  display: inline-flex; align-items: baseline; gap: 0.25em;
  transition: transform 0.6s var(--ease);
}
.next:hover .next-title { transform: translateX(1.2rem); }
.next-title .arr { font-size: 0.4em; color: var(--accent); }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(12, 12, 11, 0.97);
  color: #ece9e3;
  display: grid;
  grid-template-rows: auto 1fr auto;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lb-top, .lb-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem var(--gutter); }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 clamp(0.5rem, 5vw, 5rem); }
.lb-stage img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  user-select: none; -webkit-user-drag: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.lb-stage img.is-changing { opacity: 0; transform: scale(0.985); }
.lb-nav { position: absolute; top: 0; bottom: 0; width: 34%; z-index: 2; }
.lb-prev { left: 0; cursor: w-resize; }
.lb-next { right: 0; cursor: e-resize; }
.lb-caption { font-family: var(--serif); font-size: 1.15rem; }
.lb-caption .p { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: #8f8b84; margin-left: 0.8rem; }
.lb-btn { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.4rem 0; }
.lb-arrows { display: flex; gap: 1.4rem; }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

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

/* Discourage casual image saving */
.ph img, .chapter-media img, .mosaic img, .hero img { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }

/* Long series names get a slightly smaller title */
[data-series="arquitetura"] .series-title { font-size: clamp(3.1rem, 1.4rem + 8vw, 11rem); }
.series-title em { font-style: italic; }

/* Evergreen: how I work */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.how > div { border-top: 1px solid var(--line); padding-top: 1rem; }
.how h3 { font-weight: 400; font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem); line-height: 1; letter-spacing: -0.02em; margin: 1.6rem 0 1rem; }
.how p { margin: 0 0 0.8rem; max-width: 36ch; }
.how-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1.5rem; margin-top: clamp(4rem, 9vw, 7rem); padding-top: 1.4rem; border-top: 1px solid var(--line); }
.how-cta p { margin: 0; font-size: clamp(2.4rem, 1.4rem + 4vw, 5.4rem); line-height: 1; letter-spacing: -0.03em; font-style: italic; }
@media (max-width: 820px) { .how { grid-template-columns: 1fr; } }
