/* Vinicius Siqueira — Portfolio
   Minimal editorial system */

:root {
  --bg: #f5f3ef;
  --bg-alt: #efece6;
  --ink: #1a1a1a;
  --ink-soft: #5a5852;
  --ink-mute: #9a978f;
  --line: #1a1a1a;
  --line-soft: rgba(26, 26, 26, 0.12);
  --accent: #009EFF;

  --display: 'Outfit', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --body: 'Outfit', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; max-width: 100%; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: #5a5a5a;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

/* Headings keep full ink color */
h1, h2, h3, h4, h5, h6 { color: var(--ink); }

.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }

/* ─── App shell ────────────────────────────────────────── */
.app { min-height: 100vh; position: relative; }

/* Top bar */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  z-index: 50;
  color: var(--ink);
  pointer-events: none;
  transition: color 0.4s;
}
.topbar-logo {
  transition: opacity 0.4s;
}
/* Default: dark logo visible, light hidden */
.topbar-logo-dark  { opacity: 1; }
.topbar-logo-light { opacity: 0; position: absolute; }

/* On hover state: swap to white logo */
.app:has(.home.is-hovering) .topbar {
  color: #fff;
}
.app:has(.home.is-hovering) .topbar-logo-dark  { opacity: 0; }
.app:has(.home.is-hovering) .topbar-logo-light { opacity: 1; }
.topbar > * { pointer-events: auto; }
.topbar .brand {
  font-family: var(--display);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.topbar nav, .topbar-nav-desktop {
  display: flex; gap: 28px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
}
.topbar nav button, .topbar-nav-desktop button { opacity: 0.7; transition: opacity .25s; }
.topbar nav button:hover, .topbar nav button.active,
.topbar-nav-desktop button:hover, .topbar-nav-desktop button.active { opacity: 1; }
.topbar nav button.active, .topbar-nav-desktop button.active { text-decoration: underline; text-underline-offset: 4px; }

.lang-switch {
  display: flex; gap: 4px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
}
.lang-switch button { opacity: 0.45; transition: opacity .2s; }
.lang-switch button.active { opacity: 1; }
.lang-switch .sep { opacity: 0.4; }

/* ─── HOME ──────────────────────────────────────────────── */
.home { position: relative; min-height: 100vh; overflow: hidden; }

.home-stage {
  position: absolute; inset: 0;
  background: var(--bg);
}

/* Hero photo layer */
.home-photo {
  position: absolute; inset: 0;
  background-image: url('assets/BG_desktop_site.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transition: opacity 1100ms cubic-bezier(.2,.7,.2,1), transform 1400ms cubic-bezier(.2,.7,.2,1), filter 1100ms;
  transform: scale(1.0);
  will-change: opacity, transform;
}

/* Background slideshow layer (per category) */
.home-slideshow {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1100ms cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.home-slideshow .slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1500ms cubic-bezier(.4,0,.2,1), transform 8000ms linear;
  background-size: cover; background-position: center;
  transform: scale(1.04);
}
.home-slideshow .slide.is-active {
  opacity: 1;
  transform: scale(1.12);
}

/* Tint overlay so text remains legible */
.home-tint {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.18) 35%, rgba(0,0,0,0) 65%);
  opacity: 0;
  transition: opacity 1100ms;
  pointer-events: none;
}

.home.is-hovering .home-photo { opacity: 0; transform: scale(1.04); filter: blur(2px); }
.home.is-hovering .home-slideshow { opacity: 1; }
.home.is-hovering .home-tint { opacity: 1; }

/* ── Liquid reveal layers ───────────────────────────────── */
.home-reveal-layer {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  pointer-events: none;
  /* starts clipped off-screen — JS updates clip-path each frame */
  clip-path: polygon(0px 0px);
  -webkit-clip-path: polygon(0px 0px);
  will-change: clip-path;
}
.home-reveal-2 {
  background-image: url('assets/BG_desktop_site-2.jpg');
  z-index: 1;
}
.home-reveal-3 {
  background-image: url('assets/BG_desktop_site-3.jpg');
  z-index: 2;
}
/* When hovering a category, fade liquid reveal (slideshow takes over) */
.home.is-hovering .home-reveal-layer {
  opacity: 0;
  transition: opacity 0.4s ease;
}
/* Mobile — liquid reveal via touch */
.touch-capture { display: none; }
@media (max-width: 760px) {
  .home-reveal-layer { display: block; }
  .touch-capture {
    display: block;
    position: absolute; inset: 0;
    z-index: 3;
    touch-action: none; /* tells browser: no scroll/zoom here, pass events through */
    background: transparent;
  }
}

/* Home content overlay */
.home-overlay {
  position: relative;
  min-height: 100vh;
  padding: 96px 48px 40px;
  display: grid;
  grid-template-rows: 1fr auto auto;
  z-index: 2;
}

.home-intro {
  align-self: end;
  max-width: 540px;
  transition: color .8s, opacity .6s;
}
.home.is-hovering .home-intro { color: #fff; }
.home-intro .eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 18px;
}
.home-intro h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(42px, 6.4vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
}
.home-intro h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.home-intro p {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.45;
  max-width: 440px;
  opacity: 0.85;
  margin: 0;
}

/* Category list — small, top-left overlay */
.cat-list {
  position: absolute;
  top: 50%;
  left: 48px;
  transform: translateY(-50%);
  z-index: 3;
  display: flex; flex-direction: column;
  gap: 4px;
  transition: color .8s;
}
.home.is-hovering .cat-list { color: #fff; }

.cat-list .cat-list-label {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 18px;
}

.cat-item {
  display: flex; align-items: baseline; gap: 14px;
  padding: 14px 0;
  cursor: pointer;
  position: relative;
  text-align: left;
  transition: padding .35s cubic-bezier(.2,.7,.2,1), opacity .3s;
}
.cat-item .num {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.08em;
  opacity: 0.55;
  width: 22px;
  transition: opacity .3s;
}
.cat-item .label {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.cat-item .label::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.cat-item:hover .label::after { transform: scaleX(1); }
.cat-item:hover { padding-left: 14px; }

.home.is-hovering .cat-item:not(.is-hovered) { opacity: 0.35; }
.cat-item.is-hovered .num { opacity: 1; color: var(--accent); }
.cat-item.is-hovered .label { color: #fff; }

/* arrow that appears on hover */
.cat-item .arrow {
  font-family: var(--display); font-size: 18px; opacity: 0;
  transform: translateX(-6px); transition: all .35s;
}
.cat-item:hover .arrow { opacity: 1; transform: translateX(0); }

/* footer of home */
.home-foot {
  display: flex; justify-content: space-between; align-items: end;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  opacity: 0.6;
  transition: color .8s, opacity .6s;
  position: relative;
  z-index: 3;
}
.home.is-hovering .home-foot { color: #fff; opacity: 0.85; }

.home-foot .left, .home-foot .right { display: flex; gap: 32px; }
.home-foot .scrub { display: flex; align-items: center; gap: 8px; }
.home-foot .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

/* Slideshow caption (bottom right when hovering) */
.slide-caption {
  position: absolute; bottom: 96px; right: 48px;
  z-index: 3;
  color: #fff;
  text-align: right;
  opacity: 0;
  transition: opacity .6s;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
}
.home.is-hovering .slide-caption { opacity: 0.7; }

/* ─── INNER PAGES ──────────────────────────────────────── */
.page {
  min-height: 100vh;
  padding: 96px 48px 96px;
}
.page-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 56px;
  margin-bottom: 56px;
  align-items: end;
}
.page-head .crumb {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.page-head h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0;
}
.page-head h1 em { font-style: italic; color: var(--accent); font-weight: 300; }
.page-head .lede {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(15px, 1.1vw, 18px); line-height: 1.5;
  max-width: 420px;
  color: var(--ink-soft);
  justify-self: end;
  margin: 0;
}

/* Category grid (Behance style) */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
}
@media (max-width: 980px) { .proj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .proj-grid { grid-template-columns: 1fr; } }

.proj-card { cursor: pointer; display: block; text-align: left; }
.proj-card .thumb {
  width: 100%; aspect-ratio: 4/3;
  position: relative; overflow: hidden;
  background: var(--bg-alt);
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.proj-card .thumb-inner {
  position: absolute; inset: 0;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.proj-card:hover .thumb-inner { transform: scale(1.04); }

.proj-card .meta {
  margin-top: 14px;
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px;
}
.proj-card .meta-l { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.proj-card h3 {
  font-family: var(--display); font-weight: 500;
  font-size: 18px; letter-spacing: -0.01em; margin: 0;
}
.proj-card .tags {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.proj-card .year {
  font-family: var(--mono); font-size: 11px; color: var(--ink-mute); flex-shrink: 0;
}

/* Filter row */
.filter-row {
  display: flex; gap: 24px; align-items: center;
  margin-bottom: 40px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
}
.filter-row .filter-label { color: var(--ink-mute); }
.filter-row button { color: var(--ink-soft); transition: color .2s; }
.filter-row button:hover, .filter-row button.active { color: var(--accent); }

/* ─── PROJECT (BLOG) PAGE ──────────────────────────────── */
.project-page { padding-top: 96px; }
.project-head {
  padding: 48px 48px 96px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: end;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 0;
}
.project-head .crumb {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 18px;
}
.project-head h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(56px, 7.5vw, 128px);
  line-height: 0.92; letter-spacing: -0.04em;
  margin: 0;
}
.project-head .subtitle {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(16px, 1.2vw, 20px); line-height: 1.45;
  color: var(--ink-soft);
  max-width: 460px;
  justify-self: end;
  margin: 0;
}

.project-meta {
  padding: 32px 48px 56px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border-bottom: 1px solid var(--line-soft);
}
.project-meta .item .k {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 6px;
}
.project-meta .item .v { font-family: var(--display); font-size: 15px; font-weight: 500; }

/* Body blocks */
.project-body { padding: 0; }
.block { width: 100%; margin: 0; }
.block:not(.block-image.is-hero) { margin-bottom: 32px; }
.block:last-child { margin-bottom: 0; }

.block-image {
  width: 100%;
  padding: 0;
}
.block-image .frame {
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
}
/* Hero: ponta a ponta, altura fixa */
.block-image.is-hero {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.block-image.is-hero .frame {
  aspect-ratio: unset !important;
  height: 500px !important;
  max-height: 500px !important;
  width: 100%;
  overflow: hidden;
}
.block-image.is-contained {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
.block-image.is-contained .frame {
  position: relative;
  width: 100%;
  aspect-ratio: unset;
  height: auto;
  background: none;
  overflow: hidden;
}
.block-image.is-contained .frame img {
  width: 100%;
  height: auto;
  display: block;
}
.block-image .caption {
  display: none;
}

/* Wide (panoramic) — full viewport width, natural image height */
.block-image.is-wide {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.block-image.is-wide .frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: none;
  aspect-ratio: unset;
}
.block-image.is-wide .frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* Clickable frames */
.frame.is-clickable { cursor: zoom-in; }
.frame.is-clickable:hover .zoom-hint { opacity: 1; }
.zoom-hint {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

/* Modal lightbox */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  cursor: zoom-out;
  animation: fadeIn 0.2s ease;
}
.modal-inner {
  display: flex; align-items: center; justify-content: center;
  cursor: default;
}
.modal-inner img {
  max-width: 90vw; max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 32px 96px rgba(0,0,0,0.6);
  transition: transform 0.15s ease;
  transform-origin: center center;
}
.modal-close {
  position: fixed; top: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff; font-size: 18px;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
  z-index: 10000;
}
.modal-close:hover { background: rgba(255,255,255,0.3); }
.modal-arrow {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff; font-size: 32px; line-height: 1;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
  z-index: 10000;
}
.modal-arrow:hover { background: rgba(255,255,255,0.28); }
.modal-arrow-prev { left: 24px; }
.modal-arrow-next { right: 24px; }
.modal-counter {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  z-index: 10000;
}

/* Mosaic block */
.block-mosaic {
  display: grid; gap: 4px;
  width: 100%; padding: 0;
}
.mosaic-2 { grid-template-columns: 1fr 1fr; }
.mosaic-3 { grid-template-columns: 1fr 1fr 1fr; }
.mosaic-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.mosaic-item {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}
.mosaic-item .colorfield { width: 100%; height: 100%; }
.mosaic-item:hover .zoom-hint { opacity: 1; }
.mosaic-caption { display: none; }

/* Floating back button */
.fab-back {
  position: fixed;
  bottom: 32px; left: 50%; transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  border: none; cursor: pointer;
  padding: 12px 24px;
  border-radius: 100px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 100;
  white-space: nowrap;
}
.fab-back:hover { opacity: 0.8; transform: translateX(-50%) translateY(-2px); }

.block-text {
  padding: 80px 48px;
  display: grid; grid-template-columns: 1fr minmax(auto, 640px) 1fr;
  gap: 0;
}
.block-text > * { grid-column: 2; }
.block-text h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(28px, 2.5vw, 36px); line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.block-text p {
  font-family: var(--display); font-weight: 400;
  font-size: 19px; line-height: 1.6;
  color: #5a5a5a;
  margin: 0;
  text-wrap: pretty;
}

.block-pair {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
}
.block-pair .frame { aspect-ratio: 4/5; position: relative; }
.block-pair .caption {
  display: none;
}

/* Video block — shows "play" overlay */
.block-video .frame {
  position: relative; width: 100%; aspect-ratio: 16/9;
}
.block-video .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--ink);
}

/* YouTube embed block */
.block-youtube { max-width: 1440px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.youtube-wrap { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 4px; overflow: hidden; }
.youtube-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Color-field "image" placeholder */
.colorfield {
  position: absolute; inset: 0;
  overflow: hidden;
}
.colorfield::before {
  content: ''; position: absolute; inset: 0;
  background: var(--cf);
}
.colorfield::after {
  content: ''; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 14px),
    radial-gradient(ellipse at 30% 40%, rgba(255,255,255,0.18), transparent 60%);
  mix-blend-mode: overlay;
}
.colorfield .cf-label {
  position: absolute; bottom: 12px; left: 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  z-index: 2;
}

/* When a real image is provided, hide the color gradient + noise overlay */
.colorfield.has-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.colorfield.has-image::before,
.colorfield.has-image::after { display: none; }
.colorfield.has-image .cf-label {
  background: rgba(0,0,0,0.5);
  padding: 4px 8px;
  border-radius: 3px;
  color: rgba(255,255,255,0.9);
}

/* Project navigation footer */
.project-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 80px 48px;
  border-top: 1px solid var(--line-soft);
  margin-top: 0;
}
.project-nav .nav-btn {
  display: flex; flex-direction: column; gap: 8px;
}
.project-nav .nav-btn .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
.project-nav .nav-btn .v { font-family: var(--display); font-size: 22px; letter-spacing: -0.01em; }
.project-nav .nav-btn:hover .v { color: var(--accent); }
.project-nav .nav-btn.next { text-align: right; }

/* ─── ABOUT ──────────────────────────────────────────── */
.about {
  padding: 120px 48px 96px;
  max-width: 1280px;
  margin: 0 auto;
}
.about .lede {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.2; letter-spacing: -0.02em;
  max-width: 880px;
  margin: 0 0 96px;
  text-wrap: pretty;
}
.about .lede em { font-style: italic; color: var(--accent); font-weight: 300; }

.about-grid {
  display: grid; grid-template-columns: 1fr 2fr; gap: 64px;
  border-top: 1px solid var(--line-soft);
  padding-top: 56px;
}
.about-grid .col-l h3 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute); margin: 0 0 18px;
}
.about-grid p {
  font-family: var(--display); font-size: 17px; line-height: 1.6;
  margin: 0 0 18px;
  max-width: 580px;
}
.about-grid .clients-list {
  list-style: none; padding: 0; margin: 0;
  columns: 2; column-gap: 32px;
  font-family: var(--display); font-size: 16px; line-height: 1.7;
}

/* ─── CONTACT ──────────────────────────────────────── */
.contact { padding: 120px 48px 96px; }
.contact .pretitle {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 32px;
}
.contact h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(56px, 8vw, 144px); line-height: 0.92; letter-spacing: -0.04em;
  margin: 0 0 64px;
  max-width: 1100px;
  text-wrap: balance;
}
.contact h1 em { font-style: italic; color: var(--accent); font-weight: 300; }

.contact-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 80px;
  border-top: 1px solid var(--line-soft); padding-top: 56px;
}

.form-row {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.form-row label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute);
}
.form-row input, .form-row textarea, .form-row select {
  font-family: var(--display); font-size: 18px; color: var(--ink);
  background: transparent; border: 0; outline: 0; padding: 4px 0;
  resize: none;
}
.form-row input::placeholder, .form-row textarea::placeholder { color: var(--ink-mute); }
.form-row.with-chips { gap: 12px; padding-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--line-soft); padding: 8px 14px; border-radius: 999px;
  cursor: pointer;
  transition: all .2s;
}
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.submit-row { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; }
.submit-btn {
  font-family: var(--display); font-size: 18px;
  background: var(--accent); color: #fff;
  padding: 18px 32px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 12px;
  transition: transform .25s, background .25s;
}
.submit-btn:hover { background: var(--ink); transform: translateX(4px); }

.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact-info .info-block .k {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 6px;
}
.contact-info .info-block .v {
  font-family: var(--display); font-size: 22px; letter-spacing: -0.01em;
}
.contact-info .info-block .v a:hover { color: var(--accent); }

/* ─── CV ──────────────────────────────────────────── */
.cv { padding: 120px 48px 96px; max-width: 1280px; margin: 0 auto; position: relative; }

.cv-square-photo {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  border-radius: 8px;
  background-image: url('assets/vinicius-cv-hero.jpeg');
  background-size: cover;
  background-position: center 15%;
}

.cv-head {
  position: relative;
  z-index: 1;
  padding-top: 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end;
  padding-bottom: 56px; border-bottom: 1px solid var(--line-soft);
}
.cv-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end;
  padding-bottom: 56px; border-bottom: 1px solid var(--line-soft);
}
.cv-head h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(56px, 7vw, 120px); letter-spacing: -0.035em; line-height: 0.95;
  margin: 0;
}
.cv-head .download {
  justify-self: end;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-soft); padding: 14px 22px; border-radius: 999px;
  transition: all .2s;
}
.cv-head .download:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.cv-section { padding: 56px 0; border-bottom: 1px solid var(--line-soft); }
.cv-section .row {
  display: grid; grid-template-columns: 200px 1fr 1fr; gap: 32px;
  padding: 18px 0;
}
.cv-section .row .year { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-mute); padding-top: 4px; }
.cv-section .row .role { font-family: var(--display); font-size: 19px; letter-spacing: -0.005em; }
.cv-section .row .place { font-family: var(--display); font-size: 17px; color: var(--ink-soft); }
.cv-section h2 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute); margin: 0 0 28px;
}

/* ─── TWEAKS PANEL ─────────────────────────────────── */
.tweaks-panel {
  position: fixed; bottom: 24px; right: 24px;
  width: 320px; max-height: 80vh; overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  z-index: 100;
  font-family: var(--body); font-size: 13px;
  display: none;
}
.tweaks-panel.open { display: block; }
.tweaks-panel .head {
  padding: 16px 18px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
}
.tweaks-panel .body { padding: 18px; display: flex; flex-direction: column; gap: 22px; }
.tweak-group .k {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 8px;
}
.tweak-group .opts { display: flex; flex-wrap: wrap; gap: 6px; }
.tweak-group .opt {
  border: 1px solid var(--line-soft);
  padding: 8px 12px;
  font-size: 12px; cursor: pointer;
  border-radius: 999px;
}
.tweak-group .opt.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tweak-group .swatches { display: flex; gap: 8px; }
.tweak-group .swatch {
  width: 28px; height: 28px; border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
}
.tweak-group .swatch.active { border-color: var(--ink); }

/* ─── PAGE TRANSITIONS ─────────────────────────────── */
.fade-in { animation: fadeIn .55s cubic-bezier(.2,.7,.2,1); }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ─── Mobile preview bar (home) ───────────────────── */
.mobile-preview-bar {
  display: none; /* shown only on mobile via media query */
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
  padding: 16px 20px 32px;
  flex-direction: column;
  gap: 12px;
  animation: slideUp .3s cubic-bezier(.2,.7,.2,1);
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.mobile-preview-label {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -.02em;
  color: var(--ink);
}
.mobile-preview-actions {
  display: flex;
  gap: 12px;
}
.mobile-preview-back {
  flex: 1;
  padding: 14px 0;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}
.mobile-preview-enter {
  flex: 2;
  padding: 14px 0;
  border: none;
  border-radius: 999px;
  background: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bg);
  cursor: pointer;
}

/* ─── Hamburger / Mobile drawer ───────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  padding: 6px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
  transform-origin: center;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 999;
  display: flex; flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
}
.mobile-drawer nav {
  background: var(--bg);
  width: 72vw; max-width: 320px;
  min-height: 100svh;
  padding: 96px 32px 48px;
  display: flex; flex-direction: column;
  gap: 8px;
}
.mobile-drawer nav button {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
  background: none; border: none;
  cursor: pointer;
  text-align: left;
  padding: 8px 0;
  opacity: .55;
  transition: opacity .15s;
  letter-spacing: -.02em;
}
.mobile-drawer nav button.active,
.mobile-drawer nav button:hover { opacity: 1; }
.drawer-lang {
  display: flex; align-items: center; gap: 10px;
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .08em;
}
.drawer-lang button {
  font-family: var(--mono) !important;
  font-size: 13px !important;
  padding: 0 !important;
  opacity: .45 !important;
}
.drawer-lang button.active { opacity: 1 !important; }
.drawer-lang span { opacity: .3; }

/* ─── Responsive ──────────────────────────────────── */
@media (max-width: 760px) {

  /* ── Global ── */
  .topbar { padding: 0 20px; }
  .topbar-nav-desktop { display: none !important; }
  .topbar-lang-desktop { display: none !important; }
  .hamburger { display: flex; }

  /* ── Mobile preview bar ── */
  .mobile-preview-bar { display: flex; }

  /* ── Home ── */
  .home-photo {
    background-image: url('assets/BG_mobile_site.jpg');
    background-position: bottom center;
  }
  /* Tint sutil no estado normal */
  .home-tint {
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 45%, rgba(0,0,0,0.15) 100%);
  }
  /* Tint escuro quando preview ativo — mais escuro no mobile */
  .home.is-hovering .home-tint {
    opacity: 1 !important;
    background: rgba(0,0,0,0.65) !important;
  }
  .cat-list {
    position: absolute;
    top: 84px; left: 20px; bottom: auto;
    transform: none;
    z-index: 3;
  }
  .cat-list .cat-list-label { margin-bottom: 10px; }
  .cat-item { padding: 8px 0; }
  .cat-item .label { font-size: clamp(20px, 5.5vw, 30px); white-space: normal; }

  /* Overlay: flex column, topo reservado para cat-list */
  .home-overlay {
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    padding: 64px 20px 32px;
    grid-template-rows: none;
    min-height: 100svh;
  }
  /* Spacer = espaço para cat-list (84px topo + ~220px altura + 24px gap - 64px padding = 264px) */
  .home-overlay-top { flex: 0; height: 264px; min-height: 264px; }
  /* Footer fica na base */
  .home-foot { margin-top: auto; padding-top: 24px; }

  /* Tagline visível abaixo da lista */
  .home-overlay > div:nth-child(2) {
    display: block !important;
    margin-bottom: 24px;
  }
  .home-overlay > div:nth-child(2) .mono { display: none; }
  .home-overlay > div:nth-child(2) h1 {
    font-size: clamp(16px, 4vw, 22px) !important;
    color: var(--ink) !important;
  }

  /* Footer empilhado */
  .home-foot {
    display: flex !important;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }
  .home-foot .left {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .home-foot .right { margin-top: 4px; }

  .slide-caption { display: none; }

  /* Logo maior no mobile */
  .topbar-logo { height: 44px !important; }

  /* ── Inner pages ── */
  .page { padding: 88px 20px 64px; }
  .page-head { grid-template-columns: 1fr; gap: 20px; padding-bottom: 32px; margin-bottom: 32px; }
  .page-head .lede { justify-self: start; font-size: 15px; }
  .page-head h1 { font-size: clamp(36px, 10vw, 64px); }

  /* ── Filter row ── */
  .filter-row { flex-wrap: wrap; gap: 10px 16px; margin-bottom: 28px; }

  /* ── Category grid ── */
  .proj-card h3 { font-size: 16px; }

  /* ── Project page ── */
  .project-page { padding-top: 64px; }
  .project-head { grid-template-columns: 1fr; gap: 16px; padding: 32px 20px 48px; }
  .project-head h1 { font-size: clamp(36px, 10vw, 72px); }
  .project-head .subtitle { justify-self: start; font-size: 15px; }
  .project-meta { grid-template-columns: repeat(2, 1fr); padding: 24px 20px 36px; gap: 20px; }
  .project-nav { padding: 48px 20px; flex-direction: column; gap: 32px; }
  .project-nav .nav-btn.next { text-align: left; }
  .block-text { padding: 48px 20px; grid-template-columns: 1fr; }
  .block-text > * { grid-column: 1; }
  .block-text h2 { font-size: 24px; }
  .block-text p { font-size: 16px; }

  .block-image.is-hero { margin-left: -20px; margin-right: -20px; left: 0; width: calc(100% + 40px); }
  .block-image.is-hero .frame { height: 260px !important; max-height: 260px !important; }
  .block-pair { grid-template-columns: 1fr; }
  .block-mosaic { grid-template-columns: 1fr 1fr !important; }
  .block-image.is-contained { padding: 0 16px; }
  .zoom-hint { opacity: 0.6; }

  /* ── About ── */
  .about { padding: 88px 20px 64px; }
  .about .lede { font-size: clamp(20px, 5.5vw, 32px); margin-bottom: 48px; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-grid .clients-list { columns: 1; }

  /* ── Contact ── */
  .contact { padding: 88px 20px 64px; }
  .contact h1 { font-size: clamp(32px, 9vw, 72px); margin-bottom: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .submit-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .submit-btn { width: 100%; text-align: center; }

  /* ── CV ── */
  .cv { padding: 88px 20px 64px; }
  .cv-head { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; align-items: start; }
  .cv-head > div:first-child { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cv-square-photo { width: 88px; height: 88px; }
  .cv-head h1 { font-size: clamp(36px, 10vw, 64px); }
  .cv-head .download { justify-self: start; width: 100%; justify-content: center; box-sizing: border-box; }
  .cv-section { padding: 36px 0; }
  .cv-section .row { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
  .cv-section .row .year { margin-bottom: 4px; }

  /* ── Modal ── */
  .modal-arrow-prev { left: 8px; width: 40px; height: 40px; font-size: 24px; }
  .modal-arrow-next { right: 8px; width: 40px; height: 40px; font-size: 24px; }
  .modal-close { top: 12px; right: 12px; }
  .modal-counter { bottom: 16px; font-size: 10px; }

  /* ── Floating back button ── */
  .fab-back { font-size: 10px; padding: 10px 18px; bottom: 20px; }
}
