/* ── Helvetica Now Text ────────────────────────────── */
@font-face {
  font-family: 'Helvetica Now Text';
  src: url('./fonts/HelveticaNowText-Thin.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Helvetica Now Text';
  src: url('./fonts/HelveticaNowText-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Helvetica Now Text';
  src: url('./fonts/HelveticaNowText-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }

body {
  font-family: 'Helvetica Now Text', Helvetica, Arial, sans-serif;
  color: #111;
}

.bg-gray {
  background: #e7e7e7;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='4' height='4' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
}

.floating-chip {
  position: fixed;
  top: 26px;
  left: 22px;
  z-index: 30;
  background: #f1f1f1;
  color: #737373;
  border: 1px solid #d0d0d0;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 14px 20px;
  font-size: 34px;
  line-height: 1;
  text-decoration: none;
}

.floating-chip.small {
  position: static;
  font-size: 36px;
  padding: 12px 22px;
}

.gallery-wrap {
  width: calc(100% - 80px);
  margin: 82px auto 28px;
}

.status {
  margin: 0 0 10px;
  font-size: 14px;
  color: #777;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  position: relative;
  display: block;
  text-decoration: none;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.94) translateY(16px);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card.card-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.project-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



.project-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
  text-align: center;
  padding: 16px;
}

.project-overlay span {
  font-size: 34px;
  font-weight: 400;
  line-height: 1.1;
}

.project-card:hover .project-overlay { opacity: 1; }

/* ── Folder card (Projetos Pessoais) ───────────────────────────── */
.folder-card {
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: default;
  gap: 6px;
  overflow: visible; /* permite papel sair acima do card */
}

.folder-wrap {
  position: relative;
  width: 55%;
}

.folder-paper {
  position: absolute;
  bottom: 62%;
  left: 50%;
  transform: translateX(-50%) translateY(48px) rotate(-3deg);
  width: 55%;
  padding: 9% 8% 8%;
  background: #f9f9f7;
  border-radius: 5px 8px 5px 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 0; /* atrás da pasta */
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  text-align: center;
}

.folder-paper::before {
  content: '';
  position: absolute;
  top: 28%;
  left: 18%;
  right: 18%;
  height: 1.5px;
  background: #e0e0e0;
  border-radius: 1px;
  box-shadow: 0 6px 0 #e0e0e0, 0 12px 0 #e0e0e0;
}

.folder-paper-text {
  font-family: 'Helvetica Now Text', Helvetica, Arial, sans-serif;
  font-size: clamp(7px, 0.9vw, 11px);
  font-weight: 500;
  color: #aaa;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.5;
}

.folder-img {
  position: relative;
  z-index: 1; /* na frente do papel */
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.folder-label {
  font-family: 'Helvetica Now Text', Helvetica, Arial, sans-serif;
  font-size: clamp(11px, 1vw, 14px);
  font-weight: 400;
  color: #555;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.folder-card:hover .folder-paper {
  transform: translateX(-50%) translateY(-42px) rotate(-3deg);
}


.folder-card:hover .folder-img {
  transform: scale(1.04);
}

.album-wrap {
  width: 1000px;
  max-width: calc(100% - 30px);
  margin: 0 auto;
  padding-top: 110px;
  padding-bottom: 60px;
}

.window-card {
  max-width: 560px;
}

.status-panel {
  color: #777;
  font-size: 14px;
}

.is-hidden { display: none; }

/* ── Album window card ──────────────────────────────── */
.window-card {
  background: #e8e8e8;
  border: 1px solid #cfcfcf;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  margin-bottom: 28px;
}

.window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #d8d8d8;
  border-bottom: 1px solid #c4c4c4;
}

.traffic-lights {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.window-home-btn {
  font-size: 12px;
  color: #888;
  text-decoration: none;
  background: rgba(0,0,0,0.06);
  border: 1px solid #c4c4c4;
  border-radius: 6px;
  padding: 3px 10px;
  transition: background 0.15s, color 0.15s;
}

.window-home-btn:hover {
  background: rgba(0,0,0,0.12);
  color: #222;
}

.window-body {
  padding: 22px 26px 26px;
}

.window-title {
  margin: 0;
  font-size: 36px;
  color: #6f6f6f;
  font-weight: 500;
  line-height: 1.1;
}

.window-subtitle {
  margin: 0 0 6px;
  color: #bbbbbb;
  font-size: 22px;
}

.window-year {
  font-size: 13px;
  color: #c0c0c0;
}

.folder-link {
  color: #d9d9d9;
  font-size: 60px;
  line-height: 1;
  text-align: center;
}

.folder-link span {
  display: block;
  font-size: 22px;
  margin-top: 4px;
}

.album-cover {
  width: 100%;
  height: auto;
  display: block;
}

.album-gallery {
  margin-top: 34px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.gallery-grid.single-col {
  grid-template-columns: 1fr;
}

.gallery-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gallery-grid.carousel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.gallery-grid.carousel-grid img {
  width: 100%;
  height: auto;
}

.gallery-grid.carousel-grid img:nth-child(1),
.gallery-grid.carousel-grid img:nth-child(2) {
  grid-column: span 1;
}

.gallery-grid.carousel-grid img:nth-child(3),
.gallery-grid.carousel-grid img:nth-child(4) {
  grid-column: span 2;
}

.gallery-grid.carousel3-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.gallery-grid.carousel3-grid img:nth-child(-n+8) {
  grid-column: span 3;
}

.gallery-grid.carousel3-grid img:nth-child(n+9) {
  grid-column: span 2;
}

.gallery-grid.middle-carousel3-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.gallery-grid.middle-carousel3-grid img {
  grid-column: span 3;
}

.gallery-grid.middle-carousel3-grid img:nth-child(5),
.gallery-grid.middle-carousel3-grid img:nth-child(6),
.gallery-grid.middle-carousel3-grid img:nth-child(7) {
  grid-column: span 2;
}

.gallery-grid.banner-pair-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.gallery-grid.banner-pair-grid img:nth-child(1),
.gallery-grid.banner-pair-grid img:nth-child(4),
.gallery-grid.banner-pair-grid img:nth-child(5) {
  grid-column: 1 / -1;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
  break-inside: avoid;
}

@media (max-width: 1300px) {
  .floating-chip { font-size: 24px; }
  .project-overlay span { font-size: 38px; }
}



/* ── Hamburger + Mobile Menu ─────────────────────────────────────────────── */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 10;
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #2a2520;
  border-radius: 2px;
  transition: opacity 0.15s;
}

.hamburger-btn:hover span { opacity: 0.5; }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: url('./assets/fundo.jpg') center/cover;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 20px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #2a2520;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-close svg { width: 18px; height: 18px; }
.mobile-menu-close:hover { opacity: 0.5; }

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.mobile-menu-nav a {
  font-family: 'Helvetica Now Text', Helvetica, Arial, sans-serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #2a2520;
  text-decoration: none;
  transition: opacity 0.15s;
}

.mobile-menu-nav a:hover { opacity: 0.5; }

/* ── Grain Canvas ───────────────────────────────────── */
.grain-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5000;
  opacity: 0.38;
  mix-blend-mode: overlay;
}

/* ── Page Transition Overlay ────────────────────────── */
.page-transition-overlay {
  position: fixed;
  inset: 0;
  background: #e7e7e7;
  z-index: 9999;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.38s ease;
}

.page-transition-overlay.out {
  opacity: 0;
}

/* ── Landing Page ───────────────────────────────────── */
.landing-page {
  min-height: 100vh;
  overflow: hidden;
}

.landing-main {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Textura de fundo — substituir src no HTML */
.landing-texture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  /* Fallback enquanto a imagem não chega: fundo com textura CSS */
  background-color: #ddd8cc;
}

/* Fallback de textura quando src está vazio */
.landing-texture[src=""] {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0.1'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E"),
    linear-gradient(135deg, #d8d3c8 0%, #ccc8bc 50%, #d2cec3 100%);
  background-size: 300px, cover;
  display: block;
  visibility: hidden; /* hide broken img icon */
}

/* Etiqueta arrastável */
.landing-label {
  position: absolute;
  cursor: pointer;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  cursor: grab;
  user-select: none;
  touch-action: none;
  /* opacity inicial controlada pelo JS (landing.js) */
}

.landing-label:active { cursor: grabbing; }

.landing-label img {
  display: block;
  max-width: min(1000px, 85vw);
  height: auto;
  pointer-events: none;
}

.landing-label img[src=""] { display: none; }

/* Fallback visual da etiqueta (enquanto imagem não chega) */
.landing-label-fallback {
  background: #f0ece3;
  border: 2px solid #b8b0a0;
  border-radius: 6px;
  padding: 28px 48px 24px;
  text-align: center;
  box-shadow:
    inset 0 0 0 6px #f0ece3,
    inset 0 0 0 8px #b8b0a0,
    0 4px 24px rgba(0,0,0,0.18);
  min-width: 320px;
  position: relative;
}

/* Borda pontilhada interna */
.landing-label-fallback::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px dashed #c8c0b0;
  border-radius: 3px;
  pointer-events: none;
}

.llf-name {
  margin: 0 0 12px;
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #2a2520;
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
}

.llf-role {
  margin: 0 0 10px;
  font-size: clamp(13px, 1.6vw, 16px);
  color: #6a6258;
  font-family: Georgia, serif;
  font-style: italic;
  letter-spacing: 0.04em;
}

.llf-origin {
  margin: 0;
  font-size: clamp(11px, 1.3vw, 13px);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #2a2520;
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
}

@keyframes label-drop {
  from { opacity: 0; transform: translate(-50%, calc(-50% - 20px)) scale(0.96); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ── Info pages (Sobre / Contato) ─────────────────────────────────────────── */
@keyframes info-enter {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.info-page-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 40px 24px;
}

.info-page-content {
  max-width: 560px;
  width: 100%;
  animation: info-enter 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.1s;
}

.info-page-name {
  margin: 0 0 6px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #2a2520;
  text-transform: uppercase;
  line-height: 1;
}

.info-page-role {
  margin: 0 0 36px;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: clamp(13px, 1.5vw, 16px);
  color: #8a8070;
  letter-spacing: 0.02em;
}

.info-page-bio {
  font-family: Georgia, serif;
  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 1.85;
  color: #4a4540;
  margin: 0;
}

.info-manifesto {
  font-family: 'IM Fell English', Georgia, serif;
  font-size: clamp(16px, 1.7vw, 22px);
  line-height: 1.75;
  color: #1a1a18;
  text-align: justify;
  text-justify: inter-word;
  margin: 0;
  max-width: 560px;
  letter-spacing: 0.01em;
}

.info-manifesto strong {
  font-weight: 700;
}

.info-manifesto u {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* Contato — lista com ícones */
.info-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.info-contact-list li {
  border-top: 1px solid rgba(42, 37, 32, 0.10);
}

.info-contact-list li:last-child {
  border-bottom: 1px solid rgba(42, 37, 32, 0.10);
}

.info-contact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  text-decoration: none;
  color: #888;
  font-family: 'Helvetica Now Text', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.info-contact-item:hover { color: #444; }

.info-contact-left {
  display: flex;
  align-items: center;
}

.info-contact-left svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.info-contact-value {
  font-weight: 400;
  font-size: 13px;
  color: #aaa;
  letter-spacing: 0.06em;
  text-transform: none;
  transition: color 0.2s;
}

.info-contact-item:hover .info-contact-value { color: #666; }

.info-icons-wrap { display: none; }

/* ── Nav: tipografia compartilhada ─────────────────────────────────────── */
.landing-corner-nav,
.corner-nav-top,
.projetos-header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: 'Helvetica Now Text', Helvetica, Arial, sans-serif;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 500;
  letter-spacing: 0.14em;
  mix-blend-mode: multiply;
  filter: url(#worn);
}

.landing-corner-nav a,
.landing-corner-nav button,
.corner-nav-top a,
.projetos-header-nav a {
  background: none;
  border: none;
  padding: 4px 0;
  color: #2a2520;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: inherit;
  font-weight: 500;
  font-family: inherit;
  transition: opacity 0.15s;
}

.landing-corner-nav a:hover,
.landing-corner-nav button:hover,
.corner-nav-top a:hover,
.projetos-header-nav a:hover { opacity: 0.5; }

.landing-corner-nav span,
.corner-nav-top span,
.projetos-header-nav span {
  color: #999;
  font-weight: 400;
  letter-spacing: 0;
  padding: 0 2px;
}

/* Nav canto inferior direito */
.landing-corner-nav {
  position: absolute;
  bottom: 5vh;
  right: 4vw;
  z-index: 20;
  animation: label-drop 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.5s;
}

/* Nav canto superior direito (sobre/info) */
.corner-nav-top {
  position: fixed;
  top: 5vh;
  right: 4vw;
  z-index: 50;
  animation: info-enter 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.2s;
}

/* Página de projetos com textura */
.projetos-page {
  min-height: 100vh;
  background: url('./assets/fundo.jpg') center/cover fixed;
}

.album-page {
  min-height: 100vh;
  background: url('./assets/fundo-dentro-work.jpg') center/cover fixed;
}

.projetos-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  background: url('./assets/fundo.jpg') center top / cover;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.projetos-header-side {
  flex: 1;
  display: flex;
  align-items: center;
}

.projetos-header-right {
  justify-content: flex-end;
}

.projetos-tag-link {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  line-height: 0;
  display: block;
}

.projetos-tag {
  height:370px;
  width: auto;
  display: block;
  user-select: none;
  padding-top: 3vh;
}

.projetos-header-nav {
  /* tipografia definida no bloco compartilhado acima */
}

.projetos-header-nav a {
  color: #2a2520;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  padding: 4px 0;
  transition: opacity 0.15s;
}

.projetos-header-nav a:hover { opacity: 0.5; }

.projetos-header-nav span {
  color: #999;
  font-weight: 400;
  letter-spacing: 0;
  padding: 0 2px;
}

.projetos-page .gallery-wrap {
  width: calc(100% - 80px);
  margin: 0 auto;
  padding-top: 158px;
  padding-bottom: 60px;
}

/* ── Album inner page header ────────────────────────────────────────────── */
.album-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 90px;
  overflow: visible;
  background: url('./assets/fundo-dentro-work.jpg') center top / cover;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

/* inner container aligns with .album-wrap width */
.album-header-inner {
  position: relative;
  width: 1000px;
  max-width: calc(100% - 30px);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.album-header-side {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 52;
  pointer-events: none;
}

.album-header-right {
  justify-content: flex-end;
  gap: 16px;
}

.album-header-title {
  pointer-events: auto;
  font-family: 'Helvetica Now Text', Helvetica, Arial, sans-serif;
  font-size: clamp(18px, 1.7vw, 20px);
  font-weight: 400;
  color: #3a3530;
  letter-spacing: 0.03em;
}

/* position: fixed centers relative to viewport, avoiding inner-container offset */
.album-tag-link {
  position: fixed;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  width: 220px;
  height: 65px;
  overflow: hidden;
  display: block;
  z-index: 51;
}

.album-tag-img {
  position: absolute;
  height: 800px;
  width: auto;
  left: -601px;
  top: -64px;
  display: block;
  user-select: none;
  pointer-events: none;
}

.album-header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: 'Helvetica Now Text', Helvetica, Arial, sans-serif;
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 500;
  letter-spacing: 0.14em;
  mix-blend-mode: multiply;
  filter: url(#worn);
  position: relative;
  z-index: 52;
  pointer-events: auto;
}

.album-header-nav a {
  color: #2a2520;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  padding: 4px 0;
  transition: opacity 0.15s;
}

.album-header-nav a:hover { opacity: 0.5; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(231, 231, 231, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.site-name {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  letter-spacing: 0.03em;
  user-select: none;
  font-family: Arial, Helvetica, sans-serif;
  white-space: pre;
  text-decoration: none;
}

.header-nav {
  display: flex;
  gap: 10px;
}

.nav-pill {
  background: #f1f1f1;
  color: #737373;
  border: 1px solid #d0d0d0;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 8px 20px;
  font-size: 14px;
  font-family: Arial, Helvetica, sans-serif;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
}

.nav-pill:hover {
  background: #111;
  color: #f5f5f5;
  border-color: #111;
  transform: scale(1.04);
}

/* ── Fullscreen Overlays ────────────────────────────── */
.fullscreen-overlay {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(231, 231, 231, 0.82);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.fullscreen-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.overlay-card {
  position: relative;
  background: #e8e8e8;
  border: 1px solid #cfcfcf;
  border-radius: 22px;
  box-shadow: 0 12px 60px rgba(0, 0, 0, 0.16);
  padding: 22px 34px 36px;
  width: 480px;
  max-width: calc(100% - 40px);
  transform: scale(0.93) translateY(12px);
  transition: transform 0.28s ease;
}

.fullscreen-overlay.is-open .overlay-card {
  transform: scale(1) translateY(0);
}

.overlay-card .traffic-lights {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.overlay-close {
  background: none;
  border: none;
  padding: 0;
  line-height: 0;
  font-size: 0;
  width: 11px;
  height: 11px;
}

.overlay-x {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: #aaa;
  transition: background 0.15s, color 0.15s;
}

.overlay-x svg {
  width: 14px;
  height: 14px;
}

.overlay-x:hover {
  background: rgba(0, 0, 0, 0.07);
  color: #333;
}

.overlay-heading {
  margin: 0 0 8px;
  font-size: 34px;
  color: #6f6f6f;
  font-weight: 500;
}

.overlay-sub {
  margin: 0 0 18px;
  color: #bbb;
  font-size: 24px;
}

.overlay-bio {
  color: #666;
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 10px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #6f6f6f;
  font-size: 22px;
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid #d4d4d4;
  transition: color 0.18s, padding-left 0.18s;
}

.contact-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  opacity: 0.6;
  transition: opacity 0.18s;
}

.contact-link:hover .contact-icon {
  opacity: 1;
}

.contact-link:last-child {
  border-bottom: none;
}

.contact-link:hover {
  color: #111;
  padding-left: 6px;
}

/* ── Sobre page ────────────────────────────────────────────────────────────── */
.sobre-text {
  position: absolute;
  left: 13%;
  top: 22%;
  width: clamp(300px, 54vw, 720px);
  z-index: 10;
  mix-blend-mode: multiply;
  filter: url(#worn-text);
}

.sobre-text .info-manifesto {
  max-width: none;
}

.sobre-tagline {
  position: absolute;
  bottom: 5vh;
  right: 4vw;
  width: 40vw;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  z-index: 10;
  font-family: 'IM Fell English', Georgia, serif;
  font-size: clamp(16px, 1.8vw, 24px);
  letter-spacing: 0.04em;
  color: #2a2520;
  white-space: nowrap;
  mix-blend-mode: multiply;
  filter: url(#worn);
}

@media (max-width: 768px) {

  /* Projetos: header compacto, nav some, hambúrguer aparece */
  .projetos-header { height: 86px; padding: 0 16px; }
  .projetos-tag { height: 250px; padding-top: 16px; }
  .projetos-header-nav { display: none; }
  .hamburger-btn { display: flex; }
  .mobile-menu { display: flex; }

  .projetos-page .gallery-wrap {
    width: calc(100% - 24px);
    padding-top: 110px;
    padding-bottom: 40px;
  }

  /* Grid: 2 colunas */
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .project-overlay span { font-size: 20px; }

  /* Landing: dvh corrige barra do browser mobile */
  .landing-main { height: 100dvh; }
  .landing-corner-nav { bottom: 3vh; left: 50%; right: auto; transform: translateX(-50%); font-size: 11px; letter-spacing: 0.1em; }
  .landing-label img { max-width: min(900px, 96vw); }

  /* Info pages: sem scroll no body */
  .bg-gray.landing-page { overflow: hidden; }
  .bg-gray .landing-main { height: 100dvh; min-height: unset; overflow: hidden; }
  .info-page-wrap { position: absolute; inset: 0; align-items: center; justify-content: center; padding: 24px 24px 80px; }
  .info-page-content { max-width: 100%; }
  .info-manifesto { font-size: 14px; max-width: 100%; }
  .info-contact-item { font-size: 13px; }

  /* Sobre: mantém layout absoluto como no web, adaptado para mobile */
  .sobre-text {
    position: absolute;
    left: 5%;
    top: 14%;
    width: 90%;
    padding: 0;
  }
  .sobre-tagline {
    position: absolute;
    bottom: 5vh;
    left: 5%;
    right: 5%;
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 0.8em;
    padding: 0;
    font-size: 13px;
    white-space: normal;
  }
  .corner-nav-top { top: 20px; right: 20px; font-size: 11px; }

  /* Sobre: mostra fone de ouvido no mobile (canto inferior esquerdo da imagem) */
  .sobre-page .landing-texture { object-position: left bottom; }

  /* Album */
  .album-header { height: 70px; }
  .album-header-inner { max-width: calc(100% - 24px); }
  .album-header-nav { display: none; }
  .album-tag-link { display: none; }
  .album-wrap { max-width: calc(100% - 20px); padding-top: 90px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid:not(.carousel-grid):not(.carousel3-grid):not(.single-col) .gallery-column { display: contents; }
  .gallery-grid:not(.carousel-grid):not(.carousel3-grid):not(.single-col) img { order: var(--gallery-order); }
  .window-title { font-size: 28px; }
  .window-subtitle { font-size: 16px; }
  .window-body { flex-direction: column; gap: 4px; }

  /* Overlays */
  .overlay-heading { font-size: 26px; }
  .overlay-sub { font-size: 18px; }
  .contact-link { font-size: 18px; }
}

/* Extra pequeno */
@media (max-width: 420px) {
  .projetos-header-nav { font-size: 9px; letter-spacing: 0.06em; }
}

