/* ============================================================
   PORTFOLIO — Design System
   Inspirado na linguagem visual minimalista do Porta Template
   (recriação própria: tokens, layout e animações originais)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* color */
  --bg: #000000;
  --text: #e6e6e6;
  --text-dim: rgba(230, 230, 230, 0.45);
  --text-faint: rgba(230, 230, 230, 0.25);
  --line: rgba(230, 230, 230, 0.14);
  --surface: #0d0d0d;
  --surface-2: #161616;
  --invert-bg: #e6e6e6;
  --invert-text: #000000;

  /* type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --fs-xs: 12px;
  --fs-sm: clamp(14px, 1.2vw, 16px);
  --fs-md: clamp(18px, 1.6vw, 20px);
  --fs-lg: clamp(22px, 2.2vw, 28px);
  --fs-xl: clamp(28px, 3.4vw, 42px);
  --fs-2xl: clamp(40px, 6vw, 75px);
  --fs-display: clamp(56px, 13.5vw, 208px);

  /* space */
  --sp-1: 10px;
  --sp-2: 20px;
  --sp-3: 40px;
  --sp-4: 60px;
  --sp-5: 120px;
  --sp-6: 160px;
  --gutter: clamp(16px, 3vw, 40px);

  /* motion */
  --dur-fast: 0.2s;
  --dur: 0.4s;
  --dur-slow: 0.8s;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);

  /* radius */
  --radius-sm: 2px;
  --radius: 8px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul {
  list-style: none;
}

::selection {
  background: var(--text);
  color: var(--bg);
}

/* Focus visible — nunca esconder */
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--sp-5);
}

.section--tight {
  padding-block: var(--sp-4);
}

/* labels "( ... )" */
.tag {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.tag::before {
  content: "( ";
  color: var(--text-faint);
}

.tag::after {
  content: " )";
  color: var(--text-faint);
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.display {
  font-size: var(--fs-display);
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

.h-xl {
  font-size: var(--fs-2xl);
}

.h-lg {
  font-size: var(--fs-xl);
  letter-spacing: -0.02em;
}

.h-md {
  font-size: var(--fs-lg);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.body-lg {
  font-size: var(--fs-md);
  line-height: 1.45;
  color: var(--text);
}

.muted {
  color: var(--text-dim);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-2) var(--gutter);
  mix-blend-mode: difference;
  transition: transform var(--dur) var(--ease);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.logo {
  font-size: var(--fs-md);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: var(--sp-3);
}

.nav-links a {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  padding-block: 4px;
}

/* underline reveal */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Mobile menu overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s var(--ease-expo);
  visibility: hidden;
}

.menu-overlay.is-open {
  clip-path: inset(0 0 0% 0);
  visibility: visible;
}

.menu-overlay a {
  font-size: var(--fs-2xl);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1.15;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.menu-overlay.is-open a {
  opacity: 1;
  transform: none;
}

.menu-overlay.is-open a:nth-child(1) { transition-delay: 0.1s; }
.menu-overlay.is-open a:nth-child(2) { transition-delay: 0.18s; }
.menu-overlay.is-open a:nth-child(3) { transition-delay: 0.26s; }
.menu-overlay.is-open a:nth-child(4) { transition-delay: 0.34s; }

@media (max-width: 800px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
}

/* ---------- Hero (compacto: nome no topo, cards à vista) ---------- */
.hero {
  padding: calc(64px + var(--sp-3)) var(--gutter) 0;
}

.hero .display {
  font-size: clamp(44px, 9.2vw, 170px);
  white-space: nowrap;
  margin-bottom: var(--sp-2);
}

/* seção de destaque logo abaixo do hero */
.section-featured {
  padding-block: var(--sp-3) var(--sp-5);
}

.hero-sub {
  max-width: 36ch;
  font-size: var(--fs-md);
  color: var(--text-dim);
}

.hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  .hero .display { white-space: normal; }
}

/* ---------- Link com parênteses ( CTA ) ---------- */
.link-cta {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.link-cta .paren {
  color: var(--text-faint);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}

.link-cta:hover .paren { color: var(--text); }
.link-cta:hover .paren--l { transform: translateX(-4px); }
.link-cta:hover .paren--r { transform: translateX(4px); }

/* ---------- Text reveal (linha a linha) ---------- */
.reveal-line {
  display: block;
  overflow: hidden;
}

.reveal-line > .reveal-inner {
  display: block;
  transform: translateY(115%);
  transition: transform var(--dur-slow) var(--ease-expo);
}

.is-inview .reveal-line > .reveal-inner {
  transform: translateY(0);
}

.is-inview .reveal-line:nth-child(2) > .reveal-inner { transition-delay: 0.08s; }
.is-inview .reveal-line:nth-child(3) > .reveal-inner { transition-delay: 0.16s; }
.is-inview .reveal-line:nth-child(4) > .reveal-inner { transition-delay: 0.24s; }

/* fade-up genérico */
[data-fade] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  transition-delay: var(--fade-delay, 0s);
}

[data-fade].is-inview {
  opacity: 1;
  transform: none;
}

/* ---------- Cards de projeto ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sp-1);
  align-items: start;
}

.card {
  display: block;
  grid-column: span 4;
}

@media (max-width: 800px) {
  .card { grid-column: span 12; }
}

.card-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 3 / 4;
  background: var(--surface);
}

.card-media--wide { aspect-ratio: 16 / 10; }

.card-media .ph,
.card-media img,
.card-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.9s var(--ease-expo), opacity var(--dur) var(--ease);
}

/* troca de projeto em destaque (rotação) */
.card-meta {
  transition: opacity var(--dur) var(--ease);
}

.card.is-swapping .card-media img,
.card.is-swapping .card-meta {
  opacity: 0;
}

.card:hover .card-media .ph,
.card:hover .card-media img,
.card:hover .card-media video,
.card:focus-visible .card-media .ph {
  transform: scale(1.06);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: var(--sp-1);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.card-title {
  color: var(--text);
  font-size: var(--fs-sm);
}

/* placeholders visuais (substituir por imagens reais) */
.ph { display: grid; place-items: center; }
.ph span {
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.ph--1 { background: linear-gradient(160deg, #0e2b2b, #06090c 70%); }
.ph--2 { background: linear-gradient(160deg, #2b0e12, #0c0606 70%); }
.ph--3 { background: linear-gradient(160deg, #2b0e26, #0a060c 70%); }
.ph--4 { background: linear-gradient(160deg, #16102b, #06070c 70%); }
.ph--5 { background: linear-gradient(160deg, #1c1c1f, #050505 70%); }
.ph--6 { background: linear-gradient(160deg, #0e2b16, #060c08 70%); }
.ph--7 { background: linear-gradient(160deg, #0e1a2b, #060a0c 70%); }
.ph--8 { background: linear-gradient(160deg, #2b220e, #0c0a06 70%); }
.ph--9 { background: linear-gradient(160deg, #2b160e, #0c0806 70%); }

/* ---------- Statement / About intro ---------- */
.statement {
  max-width: 24ch;
}

.statement-wrap {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: var(--sp-3);
  align-items: start;
}

@media (max-width: 800px) {
  .statement-wrap { grid-template-columns: 1fr; }
}

/* ---------- Services (hover roll) ---------- */
.services {
  border-top: 1px solid var(--line);
}

.svc {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  cursor: default;
}

.svc-num {
  font-size: var(--fs-xs);
  color: var(--text-dim);
  min-width: 3ch;
}

.svc-name {
  font-size: var(--fs-2xl);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
  overflow: hidden;
  height: 1em;
}

.svc-name .roll {
  display: block;
  transition: transform var(--dur) var(--ease-expo);
}

.svc:hover .svc-name .roll {
  transform: translateY(-100%);
}

.svc-name .roll span {
  display: block;
  height: 1em;
}

.svc-name .roll span:last-child {
  color: var(--text-dim);
}

/* ---------- Stats / contadores ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-2);
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
}

.stat {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--sp-3) var(--sp-2) var(--sp-2) 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  min-height: 260px;
}

.stat:last-child { border-right: 0; }

.stat-value {
  font-size: var(--fs-2xl);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-top: auto;
}

.stat-label {
  font-size: var(--fs-sm);
  color: var(--text-dim);
  max-width: 28ch;
}

/* ---------- FAQ accordion ---------- */
.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) 0;
  text-align: left;
  font-size: var(--fs-lg);
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color var(--dur) var(--ease);
}

.faq-q:hover { color: var(--text-dim); }

.faq-icon {
  flex: none;
  width: 14px;
  height: 14px;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur) var(--ease);
}

.faq-icon::after { transform: rotate(90deg); }

.faq-item.is-open .faq-icon::after { transform: rotate(0deg); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur) var(--ease);
}

.faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
}

.faq-a-inner {
  overflow: hidden;
  color: var(--text-dim);
  max-width: 60ch;
}

.faq-a-inner p {
  padding-bottom: var(--sp-2);
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: var(--sp-1);
  display: flex;
}

.marquee-track {
  display: flex;
  flex: none;
  gap: var(--sp-1);
  padding-right: var(--sp-1);
  animation: marquee 30s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  to { transform: translateX(-100%); }
}

.marquee-item {
  flex: none;
  width: clamp(200px, 24vw, 340px);
}

.marquee .card-media { aspect-ratio: 4 / 5; }

/* ---------- Filtros (Projects) ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  padding-block: var(--sp-3);
}

.filter-btn {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
  transition: all var(--dur-fast) var(--ease);
}

.filter-btn:hover {
  border-color: var(--text-dim);
  color: var(--text);
}

.filter-btn.is-active {
  background: var(--invert-bg);
  color: var(--invert-text);
  border-color: var(--invert-bg);
}

/* ---------- Page hero (páginas internas) ---------- */
.page-hero {
  padding: calc(var(--sp-5) + var(--sp-3)) var(--gutter) var(--sp-3);
}

.page-hero .display { margin-bottom: var(--sp-2); }

.page-hero-sub {
  max-width: 44ch;
  color: var(--text-dim);
  font-size: var(--fs-md);
}

/* ---------- Team (carrossel horizontal) ---------- */
.team-scroll {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--sp-2);
  scrollbar-width: none;
  cursor: grab;
}

.team-scroll::-webkit-scrollbar { display: none; }

.team-scroll.is-dragging { cursor: grabbing; }

.team-card {
  flex: none;
  width: clamp(240px, 28vw, 360px);
  scroll-snap-align: start;
}

.team-card .card-media { aspect-ratio: 3 / 4; }

.team-name {
  padding-top: var(--sp-1);
  font-size: var(--fs-sm);
}

.team-role {
  font-size: var(--fs-xs);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Project detail ---------- */
.project-hero {
  padding: calc(var(--sp-5) + var(--sp-3)) var(--gutter) var(--sp-3);
}

.back-link {
  display: inline-block;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: var(--sp-3);
  transition: color var(--dur-fast) var(--ease);
}

.back-link:hover { color: var(--text); }

.project-cover {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  position: relative;
  background: var(--surface);
}

.project-cover .ph,
.project-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meta-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--sp-3);
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--line);
}

.meta-table dt {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: var(--sp-1);
}

.meta-table dd {
  font-size: var(--fs-md);
  font-weight: 500;
}

.prose {
  max-width: 64ch;
}

.prose h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-2);
}

.prose p {
  color: var(--text-dim);
  margin-bottom: var(--sp-3);
}

.gallery {
  columns: 4;
  column-gap: var(--sp-1);
}

.gallery > * {
  position: relative;
  margin-bottom: var(--sp-1);
  break-inside: avoid;
}

@media (max-width: 1100px) { .gallery { columns: 3; } }
@media (max-width: 760px) { .gallery { columns: 2; } }

.gallery .card-media { aspect-ratio: auto; position: static; }
.gallery .ph {
  position: static;
  width: 100%;
  border-radius: var(--radius-sm);
}
.gallery .ph--tall { aspect-ratio: 3 / 4; }
.gallery .ph--square { aspect-ratio: 1; }
.gallery .ph--wide { aspect-ratio: 16 / 10; }

/* ---------- Form (Contacts) ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--sp-5);
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
}

.field {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding-block: var(--sp-2);
  transition: border-color var(--dur) var(--ease);
}

.field:focus-within { border-color: var(--text); }

.field label {
  display: block;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: var(--sp-1);
}

.field input,
.field textarea {
  width: 100%;
  background: none;
  border: 0;
  color: var(--text);
  font: inherit;
  font-size: var(--fs-md);
  resize: vertical;
}

.field input:focus,
.field textarea:focus { outline: none; }

.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  margin-top: var(--sp-3);
  padding: 16px 32px;
  border-radius: 999px;
  background: var(--invert-bg);
  color: var(--invert-text);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}

.btn:hover { transform: scale(1.04); }
.btn:active { transform: scale(0.98); }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  font-size: var(--fs-md);
}

.contact-info .muted { font-size: var(--fs-sm); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: var(--sp-5);
  padding: var(--sp-4) var(--gutter) var(--sp-2);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-3);
  flex-wrap: wrap;
  padding-bottom: var(--sp-4);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.footer-col a {
  font-size: var(--fs-sm);
  color: var(--text-dim);
  transition: color var(--dur-fast) var(--ease);
  width: fit-content;
}

.footer-col a:hover { color: var(--text); }

.footer-col .col-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: var(--sp-1);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  padding-top: var(--sp-2);
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  color: var(--text-dim);
}

.to-top {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  transition: color var(--dur-fast) var(--ease);
}

.to-top:hover { color: var(--text); }

.footer-brand {
  font-size: clamp(36px, 8.8vw, 150px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--text);
  user-select: none;
  padding-top: var(--sp-3);
}

/* ---------- Seletor de idioma (fixo, canto inferior esquerdo) ---------- */
.lang-switch {
  position: fixed;
  left: var(--sp-2);
  bottom: var(--sp-2);
  z-index: 110;
  display: flex;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  padding: 4px;
}

.lang-switch button {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--text-dim);
  transition: all var(--dur-fast) var(--ease);
}

.lang-switch button:hover { color: var(--text); }

.lang-switch button.is-active {
  background: var(--invert-bg);
  color: var(--invert-text);
}

/* ---------- Page transition ---------- */
.page-fade {
  animation: pageIn 0.6s var(--ease) both;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

body.is-leaving .page-fade {
  animation: pageOut 0.3s var(--ease) both;
}

@keyframes pageOut {
  to { opacity: 0; transform: translateY(-10px); }
}

/* gallery real images */
.gallery img { width:100%; height:auto; display:block; border-radius: var(--radius-sm); }

/* ---------- Landing pages (live previews) ---------- */
.lp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); margin-top: var(--sp-3); }
@media (max-width: 800px) { .lp-grid { grid-template-columns: 1fr; } }
.lp-card { display: block; text-decoration: none; color: inherit; }
.lp-frame { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.lp-card:hover .lp-frame { border-color: var(--text); transform: translateY(-4px); }
.lp-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.lp-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; }
.lp-url { margin-left: 8px; font-size: var(--fs-xs); color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-viewport { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.lp-viewport iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: top left; pointer-events: none; }
.lp-meta { display: flex; justify-content: space-between; align-items: baseline; padding-top: var(--sp-2); }
.lp-title { font-size: 1rem; font-weight: 500; }
.lp-open { font-size: var(--fs-xs); color: var(--text-dim); text-transform: uppercase; letter-spacing: .04em; transition: color var(--dur) var(--ease); }
.lp-card:hover .lp-open { color: var(--text); }

/* ---------- Expertise: projetos por categoria ---------- */
.svc-name a { color: inherit; text-decoration: none; }
.svc-projects { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; align-content: center; gap: 4px 14px; max-width: 48%; }
.svc-projects a { font-size: var(--fs-xs); letter-spacing: .04em; text-transform: uppercase; color: var(--text-dim); text-decoration: none; transition: color var(--dur) var(--ease); }
.svc-projects a:hover { color: var(--text); }
@media (max-width: 760px) {
  .svc { flex-wrap: wrap; }
  .svc-projects { max-width: 100%; flex-basis: 100%; margin-left: 0; justify-content: flex-start; padding-left: calc(3ch + var(--sp-3)); padding-top: var(--sp-1); }
}

/* número provisório no canto da imagem da galeria */
.gal-num { position: absolute; top: 6px; left: 6px; z-index: 2; font-size: 11px; line-height: 1; font-weight: 600; color: #fff; background: rgba(0,0,0,.6); padding: 3px 6px; border-radius: 4px; pointer-events: none; }

/* ---------- Galeria: hover + clique (lightbox) ---------- */
.gallery > div { overflow: hidden; border-radius: var(--radius-sm); cursor: zoom-in; }
.gallery img { transition: transform .55s var(--ease); }
.gallery > div:hover img { transform: scale(1.06); }

/* ---------- Lightbox / gallery view ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--sp-2); padding: var(--sp-4) var(--sp-2) var(--sp-2);
  background: rgba(8,8,8,.95);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lb-stage { flex: 1 1 auto; min-height: 0; width: 100%; margin: 0; display: flex; align-items: center; justify-content: center; }
.lb-img { max-width: min(1200px, 92vw); max-height: 74vh; width: auto; height: auto; object-fit: contain; border-radius: var(--radius-sm); }
.lb-close { position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; font-size: 30px; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; opacity: .8; }
.lb-close:hover { opacity: 1; }
.lb-nav { position: absolute; top: 46%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 32px; line-height: 1; color: #fff; background: rgba(255,255,255,.08); border: 0; border-radius: 50%; cursor: pointer; transition: background .2s; }
.lb-nav:hover { background: rgba(255,255,255,.22); }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; max-width: 94vw; padding: 6px 2px; flex: 0 0 auto; }
.lb-thumb { flex: 0 0 auto; width: 74px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 5px; overflow: hidden; background: none; cursor: pointer; opacity: .5; transition: opacity .2s, border-color .2s; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-thumb:hover { opacity: .85; }
.lb-thumb.is-active { opacity: 1; border-color: #fff; }
@media (max-width: 640px) { .lb-nav { width: 40px; height: 40px; font-size: 26px; } .lb-img { max-height: 66vh; } }

/* Expertise: nomes mais longos em uma linha */
.svc-name { font-size: clamp(1.1rem, 4.2vw, 2.1rem); white-space: nowrap; }
/* Preview flutuante em hover (foto de dentro do projeto) */
.svc-preview { position: fixed; top: 0; left: 0; width: 210px; max-width: 30vw; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.92); transition: opacity .18s var(--ease), transform .18s var(--ease); z-index: 150; box-shadow: 0 12px 34px rgba(0,0,0,.4); }
.svc-preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (max-width: 760px) { .svc-preview { display: none; } }

/* Expertise: thumbnails dos projetos aparecem ao passar o mouse na categoria */
.svc-thumbs { display: flex; gap: 8px; margin-left: auto; align-items: center; opacity: 0; transform: translateY(16px); transition: opacity .32s var(--ease), transform .32s var(--ease); pointer-events: none; }
.svc:hover .svc-thumbs { opacity: 1; transform: translateY(0); pointer-events: auto; }
.svc-thumbs a { display: block; width: 92px; height: 66px; border-radius: 5px; overflow: hidden; flex: none; }
.svc-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.svc-thumbs a:hover img { transform: scale(1.08); }
@media (hover: none) { .svc-thumbs { opacity: 1; transform: none; pointer-events: auto; } }
@media (max-width: 820px) { .svc-thumbs a { width: 64px; height: 48px; } }

/* ---------- Fonte de títulos: GD Sherpa ---------- */
@font-face {
  font-family: "GD Sherpa";
  src: url("/assets/fonts/GDSherpa-Regular.woff2") format("woff2"),
       url("/assets/fonts/GDSherpa-Regular.woff") format("woff"),
       url("/assets/fonts/GDSherpa-Regular.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
:root { --font-display: "GD Sherpa", var(--font-sans); }
.display, .h-xl, .h-lg, .statement, .svc-name, .card-title, .lp-title,
.footer-brand, .logo, .prose h3 {
  font-family: var(--font-display);
}

/* Nome sempre em minúsculo (mais bonito na GD Sherpa) */
.hero .display { text-transform: none; }
.footer-brand { text-transform: none; }
