/* =========================================================
   Design tokens — dark + lime accent
   ========================================================= */
:root {
  /* Color */
  --bg: #0a0a0a;
  --bg-elev: #141414;
  --ink: #fafafa;
  --ink-muted: #8a8a8a;
  --line: rgba(250, 250, 250, 0.08);
  --line-2: rgba(250, 250, 250, 0.18);
  --accent: #c8ff00;       /* lime / neon green */
  --accent-ink: #0a0a0a;

  /* Type */
  --font-display: "Space Grotesk", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Scale — fluid */
  --fs-hero: clamp(3.5rem, 11vw + 1rem, 14rem);
  --fs-1:    clamp(2.25rem, 5vw + 1rem, 5.5rem);
  --fs-2:    clamp(1.75rem, 3vw + 0.5rem, 3rem);
  --fs-3:    clamp(1.25rem, 1.2vw + 1rem, 1.75rem);
  --fs-body: clamp(1rem, 0.3vw + 0.95rem, 1.0625rem);
  --fs-mono: 0.75rem;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 500ms;
  --dur-long: 900ms;

  /* Layout */
  --container: 2200px;
  --gutter: clamp(1.5rem, 4vw, 4rem);
}

/* =========================================================
   Reset-lite
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--fs-body);
  line-height: 1.45;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
em { font-style: italic; color: var(--accent); font-weight: 500; }
::selection { background: var(--accent); color: var(--accent-ink); }

.mono { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: 0.02em; }
.accent { color: var(--accent); }

/* =========================================================
   Page-load fade-in + custom cursor (fine-pointer only)
   ========================================================= */
body.is-loading { opacity: 0; }
body { opacity: 1; transition: opacity 600ms var(--ease-out); }

/* Cursor — só em pointer fino */
.cursor,
.cursor-thumb { display: none; }

@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, .interactive { cursor: none; }

  .cursor {
    display: block;
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
  }
  .cursor-dot,
  .cursor-ring {
    position: absolute;
    top: 0; left: 0;
    transform: translate3d(-50%, -50%, 0);
    will-change: transform;
  }
  .cursor-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--ink);
    transition: transform 120ms var(--ease-out), opacity 200ms var(--ease-out);
  }
  .cursor-ring {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(250,250,250,0.6);
    transition:
      width 300ms var(--ease-out),
      height 300ms var(--ease-out),
      border-color 300ms var(--ease-out),
      background 300ms var(--ease-out);
  }
  .cursor.is-hovering .cursor-ring {
    width: 64px; height: 64px;
    border-color: var(--accent);
    background: rgba(200,255,0,0.08);
  }
  .cursor.is-hovering .cursor-dot {
    transform: translate3d(-50%, -50%, 0) scale(0);
    opacity: 0;
  }

  /* Thumbnail que segue o cursor em hover de .work-row */
  .cursor-thumb {
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: 280px;
    height: 200px;
    pointer-events: none;
    z-index: 9998;
    border-radius: 6px;
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(0.9);
    transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out);
    overflow: hidden;
    will-change: transform, opacity;
  }
  .cursor-thumb.is-active { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1); }
  .cursor-thumb[data-preview="a"] { background: linear-gradient(135deg, #c8ff00, #4a6b00); }
  .cursor-thumb[data-preview="b"] { background: linear-gradient(135deg, #ffffff, #555); }
  .cursor-thumb[data-preview="c"] { background: linear-gradient(135deg, #222, #c8ff00 80%); }
  .cursor-thumb[data-preview="d"] { background: linear-gradient(135deg, #000, #fff); }
}

/* =========================================================
   Video de fundo (loop, muted)
   ========================================================= */
/* =========================================================
   Retrato do hero (dentro do .hero — respeita container + gutter)
   ========================================================= */
.hero-portrait {
  position: absolute;
  top: 0;
  right: 10%;            /* alinha com a borda interna do gutter do hero */
  bottom: 0;
  width: clamp(280px, 42vw, 580px);
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  /* fade gradual à esquerda + fade longo à direita (usa o espaço horizontal) + suaviza base e topo */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 40%, #000 62%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 40%, #000 62%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 70%, transparent 100%);
  mask-composite: intersect;
}
/* Fina linha vertical: âncora editorial que segura o lado esquerdo do retrato */
.hero-portrait__rule {
  position: absolute;
  top: 12%;
  bottom: 28%;
  left: 0;
  width: 1px;
  background: var(--line-2);
  z-index: 1;
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: contrast(0.92) brightness(0.7);
  opacity: 0.6;
  display: block;
}
@media (max-width: 900px) {
  .hero-portrait { width: 72vw; right: 0; }
  .hero-portrait img { opacity: 0.45; }
  .hero-portrait__rule { display: none; }
}

/* Mobile: retrato vira elemento atmosférico — amplo, muito transparente,
   fade forte do lado esquerdo (onde o texto mora) */
@media (max-width: 600px) {
  .hero-portrait {
    width: 100vw;
    right: -8%;
    -webkit-mask-image:
      linear-gradient(to right, transparent 0%, #000 55%, #000 88%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 6%, #000 52%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to right, transparent 0%, #000 55%, #000 88%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 6%, #000 52%, transparent 100%);
    mask-composite: intersect;
  }
  .hero-portrait img {
    opacity: 0.2;
    filter: contrast(1.0) brightness(0.8);
    object-position: 35% center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-portrait img { filter: none; }
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: fill;
  object-position: center;
  pointer-events: none;
  z-index: 1;
  opacity: 0.3;
  mix-blend-mode: hard-light;
}

.bg-video-card {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    object-fit: fill;
    object-position: center;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
    mix-blend-mode: hard-light;
}

/* Em prefers-reduced-motion, o video fica pausado (o script também cuida disso) */
@media (prefers-reduced-motion: reduce) {
  .bg-video { opacity: 0; }
  .bg-video-card { opacity: 0; }
}

/* =========================================================
   Noise overlay animado
   ========================================================= */
.noise {
  z-index: 2; /* acima de vídeo e retrato */
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: overlay;
  animation: noiseShift 8s steps(6) infinite;
}
@keyframes noiseShift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-2%, 1%); }
  40%  { transform: translate(1%, -2%); }
  60%  { transform: translate(-1%, 2%); }
  80%  { transform: translate(2%, -1%); }
  100% { transform: translate(0, 0); }
}

/* =========================================================
   Nav de canto + section indicator
   ========================================================= */
.corner-nav {
  position: fixed;
  top: clamp(1rem, 2vw, 2rem);
  left: clamp(1rem, 2vw, 2rem);
  right: clamp(1rem, 2vw, 2rem);
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.02em;
  pointer-events: none;
}
.corner-nav > *,
.corner-nav a { pointer-events: auto; }

.corner-nav__brand {
  text-transform: uppercase;
}
.corner-nav__brand .blink {
  display: inline-block;
  color: var(--accent);
  animation: blink 1.2s steps(2) infinite;
  margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }

/* --- Nav list: estado inicial = horizontal (topo) --- */
.corner-nav__list {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  text-transform: uppercase;
  list-style: none;
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    gap 0.38s var(--ease),
    padding 0.38s var(--ease),
    background 0.38s var(--ease),
    border-color 0.38s var(--ease),
    border-radius 0.38s var(--ease);
}

/* Cada item: número acima do label */
.corner-nav__list li { display: flex; }
.corner-nav__list a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15em;
  transition: color 250ms var(--ease);
}
.nav-idx {
  font-size: 0.65em;
  color: var(--ink-muted);
  line-height: 1;
  transition: color 250ms var(--ease);
}
.nav-label { line-height: 1.1; }

.corner-nav__list a:hover .nav-idx,
.corner-nav__list a.is-active .nav-idx { color: var(--accent); }
.corner-nav__list a:hover,
.corner-nav__list a.is-active { color: var(--accent); }

/* Dot do item ativo */
.corner-nav__list a.is-active::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-50%);
}

/* --- Estado scrollado: glass vertical --- */
.corner-nav.is-scrolled .corner-nav__list {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.9rem 1.1rem;
  background: rgba(10, 10, 10, 0.68);
  border-color: rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.section-indicator {
  position: fixed;
  bottom: clamp(1rem, 2vw, 2rem);
  left: clamp(1rem, 2vw, 2rem);
  z-index: 20;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  pointer-events: none;
}
.section-indicator__count { color: var(--ink); transition: color 250ms var(--ease); }

@media (max-width: 720px) {
  .corner-nav__list { gap: 1.2rem; font-size: 0.7rem; }
  .section-indicator { display: none; }
}

/* =========================================================
   Layout helpers
   ========================================================= */
main > section {
  padding-inline: var(--gutter);
  max-width: var(--container);
  margin-inline: auto;
  position: relative;
  z-index: 3;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: clamp(2rem, 5vw, 4rem);
  padding-top: clamp(4rem, 8vw, 8rem);
  border-top: 1px solid var(--line);
  padding-block-start: clamp(3rem, 6vw, 5rem);
  margin-top: clamp(4rem, 8vw, 8rem);
}
.section-head__num {
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.section-head__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-1);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 14ch;
}

/* =========================================================
   Hero — full screen
   ========================================================= */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(6rem, 10vw, 9rem) clamp(3rem, 5vw, 5rem);
  position: relative;
  overflow: hidden;          /* mantém o retrato contido nas bordas do section */
}
.hero__grid {
  position: relative;
  z-index: 2;                /* texto sempre acima do retrato */
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3rem);
}
.hero__tag {
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-hero);
  line-height: 0.88;
  letter-spacing: -0.045em;
  margin: 0;
  text-transform: uppercase;
}
.hero__line {
  display: block;
}
.hero__accent { color: var(--accent); font-weight: 700; }

.hero__foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-top: clamp(1rem, 3vw, 3rem);
}
.hero__sub {
  max-width: 60ch;
  font-size: var(--fs-3);
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
}
.hero__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
}
.hero__status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* =========================================================
   Location card (hero__location)
   ========================================================= */
.hero__location {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0.65rem 0.9rem;
  min-width: 240px;
  text-align: left;
}
.hero__location-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.hero__location-city {
  color: var(--ink);
  font-size: var(--fs-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
  white-space: nowrap;
}
.hero__location-info {
  color: var(--ink-muted);
  font-size: calc(var(--fs-mono) * 0.88);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  white-space: nowrap;
}
.hero__location-tz { color: var(--ink-muted); }
.hero__location-sep { opacity: 0.45; }
.hero__location-icon {
  flex-shrink: 0;
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
}
.hero__location-icon img {
  width: 100%;
  height: auto;
  max-height: 56px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* garante branco no dark bg */
}

.scroll-hint {
  position: absolute;
  bottom: clamp(1.5rem, 3vw, 3rem);
  left: clamp(1.5rem, 2vw, 2rem);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.scroll-hint__line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--ink-muted);
  position: relative;
  overflow: hidden;
}
.scroll-hint__line::after {
  content: "";
  position: absolute;
  left: -40px;
  top: 0;
  width: 40px;
  height: 1px;
  background: var(--accent);
  animation: slide 2.2s var(--ease) infinite;
}
@keyframes slide {
  0%   { transform: translateX(0); }
  100% { transform: translateX(80px); }
}

@media (max-width: 720px) {
  .hero__foot { grid-template-columns: 1fr; align-items: start; gap: 1.5rem; }
  .hero__meta { align-items: flex-start; }
  .scroll-hint { display: none; }
}

/* =========================================================
   Scroll cue — mobile (substitui o scroll-hint horizontal)
   ========================================================= */
.scroll-cue {
  display: none;               /* escondido em desktop */
  position: absolute;
  bottom: clamp(1.75rem, 4vh, 2.75rem);
  left: 50%;
  transform: translateX(-50%);
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  animation: scrollCueFadeIn 0.7s var(--ease-out) 1.4s forwards;
}
.scroll-cue__label {
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.58rem;
  opacity: 0.7;
}
.scroll-cue__track {
  width: 1.5px;
  height: 44px;
  background: var(--line-2);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.scroll-cue__dot {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: scrollDotDrop 2s var(--ease) 1.4s infinite;
}

@keyframes scrollCueFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes scrollDotDrop {
  0%   { top: -6px;  opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { top: 100%;  opacity: 0; }
}

/* Mostra em mobile/tablet */
@media (max-width: 720px) {
  .scroll-cue { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue {
    animation: none;
    opacity: 0.5;
  }
  .scroll-cue__dot { animation: none; top: 40%; }
}


/* =========================================================
   Select Work — 3 cards expansíveis
   ========================================================= */
.work-section { padding-bottom: clamp(4rem, 8vw, 8rem); }

/* ── Cabeçalho ──────────────────────────────────────────── */
.sw-head {
  padding-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
  margin-top: clamp(4rem, 8vw, 8rem);
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.sw-head__label {
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.75rem;
}
.sw-head__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 9vw + 1rem, 12rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  margin: 0 0 clamp(1.25rem, 2.5vw, 2rem);
}
.sw-head__tags {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Lista de cards ─────────────────────────────────────── */
.sw-list {
  list-style: none;
  margin: 0 0 clamp(3rem, 5vw, 5rem);
  padding: 0;
  display: flex;
  gap: clamp(0.5rem, 0.75vw, 0.875rem);
  height: clamp(898px, 56vh, 660px);
}

/* ── Card individual ────────────────────────────────────── */
.sw-card {
  /* width animado via Web Animations API no JS — não CSS transition */
  flex: 0 0 auto;
  min-width: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  /* filter e border-color ainda usam CSS transition */
  transition:
    filter       0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Desktop: grayscale padrão — classes aplicadas via JS no hover */
@media (hover: hover) {
  .sw-card {
    filter: grayscale(1) brightness(0.72);
    will-change: filter;
  }
  .sw-card.is-active {
    filter: grayscale(0) brightness(1);
    border-color: rgba(255,255,255,0.14);
  }
  .sw-card.is-dimmed {
    filter: grayscale(1) brightness(0.5);
  }
}

/* Inner: coluna flex, ocupa 100% da altura */
.sw-card__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--card-hue, var(--bg-elev));
  padding: clamp(0.75rem, 1.1vw, 1.1rem);
  gap: 0.7rem;
  color: var(--ink);
}

/* Header: nome + ano */
.sw-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  gap: 0.5rem;
}
.sw-card__name {
  font-size: clamp(1rem, 1.3vw, 1rem);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255,255,255,0.85);
}
.sw-card__year {
  font-size: var(--fs-mono);
  color: rgba(255,255,255,0.4);
  flex-shrink: 0;
}

/* Stage: ícone + área de mídia */
.sw-card__stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 0;
}
.sw-card__icon {
  height: 34px;
  border-radius: 7px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  font-size: 0.58rem;
  color: rgba(255,255,255,0.45);
  flex-shrink: 0;
  letter-spacing: 0.05em;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease);
}

/* No hover (is-active), o número fica na cor accent do gradiente do card */
@media (hover: hover) {
  .sw-card.is-active .sw-card__icon {
    color: var(--card-accent, rgba(255,255,255,0.85));
    background-color: color-mix(in srgb, var(--card-accent, #fff) 100%, transparent);
  }
}
.sw-card__media {
  flex: 1;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  border-radius: 10px;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

/* Logo da empresa — canto superior esquerdo do media */
.sw-card__logo {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 36px;
  height: 36px;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
}

/* Rodapé: título + tipo */
.sw-card__foot { flex-shrink: 0; }
.sw-card__proj {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(0.95rem, 1.3vw, 1.45rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sw-card__type {
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  font-style: italic;
  margin: 0;
  font-size: var(--fs-mono);
}

/* ── Tablet (≤ 900px): coluna única, sempre colorido ────── */
@media (max-width: 900px) {
  .sw-list {
    flex-direction: column;
    height: auto;
    gap: clamp(0.6rem, 2vw, 0.875rem);
  }
  .sw-card {
    flex: none;
    filter: grayscale(0) brightness(1) !important; /* sempre cor */
    min-height: clamp(260px, 48vw, 400px);
  }
  .sw-card__proj { white-space: normal; }

  /* Tags: permite quebra de linha em tablet médio */
  .sw-head__tags { flex-wrap: wrap; gap: 0.4rem 1rem; }
}

/* ── Mobile (≤ 600px) ───────────────────────────────────── */
@media (max-width: 600px) {
  .sw-head__title { font-size: clamp(2.75rem, 12vw, 4.5rem); }
  .sw-head__tags  { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
  .sw-card        { min-height: clamp(230px, 65vw, 320px); border-radius: 10px; }
}

/* =========================================================
   Archive (work list com hover preview)
   ========================================================= */
.archive-head {
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  margin-bottom: 1rem;
}

.work-list {
  display: flex;
  flex-direction: column;
}
.work-row {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.work-row:first-child { border-top: 1px solid var(--line); }

.work-row__link {
  display: grid;
  grid-template-columns: 80px 1fr auto 40px;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding-block: clamp(1.25rem, 2.5vw, 2rem);
  transition: color 400ms var(--ease), transform 500ms var(--ease-out);
  position: relative;
}
.work-row__link::after {
  /* Linha verde que "preenche" no hover — efeito cinematográfico */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 600ms var(--ease-out);
}
.work-row__link:hover::after { transform: scaleX(1); }
.work-row__link:hover { color: var(--accent); }
.work-row__link:hover .work-row__arrow { transform: translateX(8px) rotate(-12deg); color: var(--accent); }
.work-row__link:hover .work-row__name { transform: translateX(6px); }

.work-row__index {
  color: var(--ink-muted);
  text-transform: uppercase;
}
.work-row__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-2);
  letter-spacing: -0.02em;
  transition: transform 500ms var(--ease-out);
}
.work-row__meta {
  color: var(--ink-muted);
  text-transform: uppercase;
  justify-self: end;
}
.work-row__arrow {
  font-size: 1.25rem;
  color: var(--ink-muted);
  transition: transform 500ms var(--ease-out), color 400ms var(--ease);
  justify-self: end;
}

@media (max-width: 720px) {
  .work-row__link {
    grid-template-columns: 50px 1fr auto;
    gap: 1rem;
  }
  .work-row__arrow { display: none; }
  .work-row__meta { grid-column: 2 / 4; justify-self: start; margin-top: 0.25rem; }
  .work-row__link { padding-block: 1rem; }
}

/* =========================================================
   About — Bento Grid
   ========================================================= */
.about { padding-bottom: clamp(4rem, 8vw, 8rem); }

/* ── Grid principal ───────────────────────────────────── */
.bento {
  display: flex;
  gap: 10px;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  /* grid-template-columns: 1fr 1.5fr 1.2fr;
  grid-template-rows: 0.13fr 0.4fr 0.26fr 0.19fr;
  grid-template-areas:
    "phrase   portrait   exp"
    "bio      portrait   exp"
    "gallery  education  jams"
    "gallery  tools      jams"; */
}

.bento > div {
  width: 33.33%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Card base ────────────────────────────────────────── */
.bento-card {
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: clamp(1.1rem, 2vw, 1.5rem);
  overflow: hidden;
  position: relative;
}

.bento-label {
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  margin: 0 0 1rem;
}

/* ── Grid areas ───────────────────────────────────────── */
.bento-phrase   { grid-area: phrase;}
.bento-bio     { grid-area: bio; }
.bento-portrait{ grid-area: portrait; padding: 0; }
.bento-exp     { grid-area: exp; display: flex; flex-direction: column; }
.bento-gallery { grid-area: gallery; padding: 0; }
.bento-edu     { grid-area: education; }
.bento-jams    { grid-area: jams; }
.bento-tools   { grid-area: tools; }

/* ── Phrase card ─────────────────────────────────────────── */
.bento-phrase {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.bento-phrase__headline {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.2vw + 0.5rem, 1.15rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}
.bento-phrase__headline strong { color: var(--accent); font-weight: 700; }
.bento-phrase__body {
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  margin: 0;
  flex: 1;
}
.bento-phrase__body strong { color: rgba(255,255,255,0.85); }
.bento-phrase__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.bento-phrase__social { display: flex; gap: 0.4rem; }
.bento-phrase__icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55);
  transition: background 0.2s, color 0.2s;
}
.bento-phrase__icon:hover { background: rgba(255,255,255,0.14); color: #fff; }
.bento-phrase__resume {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.bento-phrase__resume:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(200,255,0,0.06);
}
/* ── BIO card ─────────────────────────────────────────── */
.bento-bio {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.bento-bio__headline {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.2vw + 0.5rem, 1.15rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}
.bento-bio__headline strong { color: var(--accent); font-weight: 700; }
.bento-bio__body {
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  margin: 0;
  flex: 1;
}
.bento-bio__body strong { color: rgba(255,255,255,0.85); }
.bento-bio__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.bento-bio__social { display: flex; gap: 0.4rem; }
.bento-bio__icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55);
  transition: background 0.2s, color 0.2s;
}
.bento-bio__icon:hover { background: rgba(255,255,255,0.14); color: #fff; }
.bento-bio__resume {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.bento-bio__resume:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(200,255,0,0.06);
}

/* ── PORTRAIT card ────────────────────────────────────── */
.bento-portrait__img {
  width: 100%; height: 33.33%;
  object-fit: cover;
  object-position: 55% 15%;
  display: block;
}

/* Chat overlay — aparece no hover */
.portrait-chat {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  pointer-events: none;
}
.portrait-chat__msg {
  align-self: flex-start;
  background: rgba(18, 18, 18, 0.82);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px 14px 14px 3px;
  padding: 0.42rem 0.8rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  line-height: 1.4;
  color: #fff;
  margin: 0;
  /* estado inicial: invisível e deslocado para baixo */
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
/* stagger: cada mensagem aparece com delay crescente no hover */
.bento-portrait:hover .portrait-chat__msg:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 80ms;  }
.bento-portrait:hover .portrait-chat__msg:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 500ms; }
.bento-portrait:hover .portrait-chat__msg:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 950ms; }
.bento-portrait:hover .portrait-chat__msg:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 1400ms; }
/* saída: sem delay — some imediatamente ao tirar o mouse */
.bento-portrait .portrait-chat__msg { transition-delay: 0ms; }

/* ── EXPERIENCE card ──────────────────────────────────── */
.bento-exp__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex: 1;
}
.bento-exp__item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.5rem;
  padding: 0.75rem 0;
}
.bento-exp__item:first-child { padding-top: 0; }
.bento-exp__item:last-child  { border-bottom: none; }
.bento-exp__period {
  font-size: 0.6rem;
  color: var(--ink-muted);
  padding-top: 0.15rem;
  white-space: nowrap;
}
.bento-exp__role {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.15rem;
}
.bento-exp__co {
  font-size: 0.62rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.bento-exp__co:hover { color: var(--accent); }

/* Client logo marquee */
.bento-exp__clients { margin-top: auto; padding-top: 1rem; }
.bento-exp__clients-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin: 0 0 0.6rem;
}
.bento-marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}
.bento-marquee__track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: bento-marquee 22s linear infinite;
}
.bento-marquee__track span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
}
@keyframes bento-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── GALLERY slider ───────────────────────────────────── */
.bento-slider {
  width: 100%; height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}
.bento-slider__track {
  display: flex;
  height: clamp(220px, 40vw, 581px);
  transition: transform 0.7s var(--ease-out);
}
.bento-slider__slide {
  flex: 0 0 100%;
  height: 100%;
  min-height: 220px;
  background-size: cover;
  background-position: center;
}
.bento-slider__dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}
.bento-slider__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  opacity: 0.5;
  cursor: pointer;
  border: none;
  padding: 0;
  flex-shrink: 0;
  transition: width 0.35s var(--ease-out), border-radius 0.35s var(--ease-out), opacity 0.35s var(--ease-out), background 0.35s;
  position: relative;
  overflow: hidden;
}

/* Estado ativo: pill retangular com progress bar */
.bento-slider__dot.is-active {
  width: 28px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.28);
  opacity: 1;
}

/* Barra de progresso que preenche o dot ativo */
.bento-slider__dot.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: inherit;
  transform-origin: left center;
  transform: scaleX(0);
  animation: dot-progress var(--slider-duration, 3500ms) linear forwards;
}

@keyframes dot-progress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ── EDUCATION card ───────────────────────────────────── */
.bento-edu__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0;
}
.bento-edu__item {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 0.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.bento-edu__item:first-child { padding-top: 0; }
.bento-edu__item:last-child  { border-bottom: none; padding-bottom: 0; }
.bento-edu__year {
  font-size: 0.58rem;
  color: var(--ink-muted);
  padding-top: 0.1rem;
}
.bento-edu__course {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.1rem;
}
.bento-edu__school {
  font-size: 0.6rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── JAMS card ────────────────────────────────────────── */
.bento-jams__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.bento-jams__head .bento-label { margin: 0; }
.bento-jams__list { display: flex; flex-direction: column; gap: 0.5rem; }
.bento-jam {
  display: grid;
  grid-template-columns: 36px 1fr 24px;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 6px;
}
.bento-jam:last-child { border-bottom: none; }
.bento-jam:hover { background: rgba(255,255,255,0.04); padding-inline: 0.5rem; margin-inline: -0.5rem; }
.bento-jam__art {
  width: 36px; height: 36px;
  border-radius: 6px;
  flex-shrink: 0;
}
.bento-jam__title {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bento-jam__artist {
  font-size: 0.6rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.bento-jam__play {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.3);
  transition: color 0.2s;
}
.bento-jam:hover .bento-jam__play { color: #1DB954; }

/* ── TOOL STACK card ──────────────────────────────────── */
.bento-tools__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 8px;
  margin-top: 0.25rem;
}
.bento-tool {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--tb, #1a1a1a);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s var(--ease-out), opacity 0.2s;
}
.bento-tool:hover { transform: scale(1.1); opacity: 0.9; }
.bento-tool__lbl {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
}

/* ── Responsive — tablet + mobile ──────────────────────── */
@media (max-width: 1100px) {
  /* "Achata" os wrappers de coluna: os cards viram filhos diretos do flex */
  .bento {
    flex-direction: column;
    align-items: stretch;
  }
  .bento > div {
    display: contents; /* remove o wrapper do fluxo sem alterar o HTML */
  }

  /* Ordem desejada: Bio → Portrait → Experience → My Background →
     Education → Photo Gallery → Favorite Jams → Tool Stack         */
  .bento-phrase  { order: 1; }
  .bento-portrait{ order: 2; }
  .bento-exp     { order: 3; }
  .bento-bio     { order: 4; }
  .bento-edu     { order: 5; }
  .bento-gallery { order: 6; }
  .bento-jams    { order: 7; }
  .bento-tools   { order: 8; }

  /* Portrait: altura fixa para que a imagem (height %) funcione */
  .bento-portrait { height: 380px; min-height: 0; }
  .bento-portrait__img { height: 50%; }

  .bento-gallery  { min-height: 220px; }
  .bento-tools__grid { grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); }

  /* Label: reduz levemente em tablet */
  .bento-label { font-size: 1rem; }
}

/* =========================================================
   Contact
   ========================================================= */
.contact { padding-bottom: clamp(3rem, 6vw, 5rem); }

.contact__big {
  padding-block: clamp(2rem, 5vw, 4rem);
}
.contact__email {
  display: inline-flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 5.5vw + 0.5rem, 9rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-transform: lowercase;
  transition: color 400ms var(--ease), transform 600ms var(--ease-out);
}
.contact__email:hover { color: var(--accent); }
.contact__email:hover .contact__arrow { transform: translate(10px, -10px) rotate(-12deg); }
.contact__arrow {
  font-size: 0.6em;
  color: var(--ink-muted);
  transition: transform 600ms var(--ease-out);
  display: inline-block;
}

.contact__socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  text-transform: uppercase;
  color: var(--ink-muted);
}
.contact__socials ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.contact__socials a { color: var(--ink); transition: color 300ms var(--ease); }
.contact__socials a:hover { color: var(--accent); }
.contact__note { margin: 0; line-height: 1.6; max-width: 40ch; }

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

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(2rem, 4vw, 3rem) var(--gutter);
  margin-top: clamp(3rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  color: var(--ink-muted);
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}
.site-footer > :nth-child(3) { text-align: right; }
.site-footer a { color: var(--ink); transition: color 300ms var(--ease); }
.site-footer a:hover { color: var(--accent); }
.site-footer__clock { text-align: center; }

@media (max-width: 720px) {
  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .site-footer > :nth-child(3) { text-align: center; }
}

/* =========================================================
   Social Dock — botões flutuantes (canto inferior esquerdo)
   ========================================================= */
.social-dock {
  position: fixed;
  bottom: clamp(1.25rem, 3vw, 2rem);
  left:   clamp(1.25rem, 3vw, 2rem);
  z-index: 90;
  display: flex;
  gap: 0.5rem;
  align-items: center;

  /* Glass — igual ao corner-nav scrollado */
  background: rgba(10, 10, 10, 0.68);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  padding: 0.45rem;

  /* Oculto por padrão — aparece ao sair da hero */
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity  0.45s var(--ease-out),
    transform 0.45s var(--ease-out);
}

.social-dock.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.social-dock.footer-hidden,
.onfly-page .social-dock.footer-hidden {
  transform: translateY(calc(100% + 2rem));
  opacity: 0;
  pointer-events: none;
}

/* Botão individual */
.social-dock__btn {
  width:  40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.62);
  transition:
    background 0.25s var(--ease),
    color      0.25s var(--ease),
    transform  0.3s  var(--ease-out);
  flex-shrink: 0;
}

.social-dock__btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: scale(1.12);
}

/* Stagger de entrada — cada botão aparece um pouco depois */
.social-dock.is-visible .social-dock__btn:nth-child(1) { transition-delay: 0ms;   }
.social-dock.is-visible .social-dock__btn:nth-child(2) { transition-delay: 55ms;  }
.social-dock.is-visible .social-dock__btn:nth-child(3) { transition-delay: 110ms; }
.social-dock.is-visible .social-dock__btn:nth-child(4) { transition-delay: 165ms; }

/* Mobile: botões ligeiramente menores */
@media (max-width: 600px) {
  .social-dock__btn { width: 36px; height: 36px; }
  .social-dock { padding: 0.35rem; gap: 0.35rem; }
}

/* =========================================================
   Reveal on scroll — cinematográfico
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity var(--dur-long) var(--ease-out),
    transform var(--dur-long) var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .noise { animation: none; }
  .scroll-hint__line::after,
  .scroll-cue__dot,
  .hero__status-dot,
  .corner-nav__brand .blink { animation: none; }
  body { cursor: auto; }
  .cursor, .cursor-thumb { display: none !important; }
}

/* =========================================================
   Responsividade — revisão completa
   desktop (≥1024px) · tablet (600–1023px) · mobile (<600px)
   ========================================================= */

/* ── Tablet grande: ≤ 1024px ─────────────────────────────── */
@media (max-width: 1024px) {
  /* Email: reduz para não estourar o container */
  .contact__email {
    font-size: clamp(2rem, 5vw + 0.5rem, 7rem);
    overflow-wrap: break-word;
  }
  .sw-card__inner{
    min-height: clamp(230px, 90vw, 430px);
  }
}

/* ── Tablet: ≤ 900px (augmenta breakpoints existentes) ───── */
@media (max-width: 900px) {
  /* Nav horizontal: gap menor */
  .corner-nav__list { gap: 1.25rem; }

  /* Location card: sem largura mínima fixa */
  .hero__location { min-width: 0; }
}

/* ── Mobile grande: ≤ 720px (augmenta breakpoints existentes) */
@media (max-width: 720px) {
  /* Hero meta: âncora à esquerda e ocupa largura disponível */
  .hero__meta { align-items: flex-start; width: 100%; gap:1rem; }
  .hero__location { min-width: fit-content; }

  /* Email: mantém grandioso mas sem overflow */
  .contact__email {
    font-size: clamp(1.75rem, 6.5vw, 3.5rem);
    flex-wrap: wrap;
    overflow-wrap: break-word;
    word-break: break-word;
    gap: 0.5rem;
    line-height: 1;
  }
  .contact__arrow { font-size: 0.55em; align-self: flex-start; margin-top: 0.1em; }
}

/* ── Mobile: < 600px ─────────────────────────────────────── */
@media (max-width: 600px) {
  /* Gutter compacto */
  :root { --gutter: clamp(1rem, 5vw, 1.5rem); }

  /* Nav: sempre glass vertical — horizontal não cabe em <600px */
  .corner-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.6rem 0.85rem;
    background: rgba(10, 10, 10, 0.7);
    border-color: rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    font-size: 0.65rem;
  }
  /* Box compacto também quando scrollado */
  .corner-nav.is-scrolled .corner-nav__list {
    padding: 0.6rem 0.85rem;
    gap: 0.45rem;
  }

  /* Hero title: fluid mais suave */
  .hero__title { font-size: clamp(2.75rem, 13vw, 4.5rem); }

  /* Hero sub: sem max-width (sem imagem tem toda a largura) */
  .hero__sub { max-width: none; font-size: var(--fs-body); line-height: 1.5; }

  /* Location card: compacto sem overflow */
  .hero__location { padding: 0.5rem 0.7rem; gap: 0.55rem; }
  .hero__location-city,
  .hero__location-info { white-space: normal; }
  .hero__location-icon { width: 22px; }
  .hero__location-icon img { max-height: 36px; }

  /* Bento: coluna única em mobile */
  .bento {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(130px, 50vw);
    gap: clamp(0.6rem, 2vw, 0.9rem);
  }
  .bento__cell--a,
  .bento__cell--b,
  .bento__cell--c,
  .bento__cell--d,
  .bento__cell--e { grid-column: span 1; grid-row: span 1; }

  /* Portrait: altura fixa menor para mobile */
  .bento-portrait { height: 300px; }
  .bento-portrait__img { height: 100%; }

  /* Label: compacto em mobile */
  .bento-label { font-size: 0.85rem; }

  /* Work row: remove index (economiza espaço), layout 2 colunas simples */
  .work-row__index { display: none; }
  .work-row__link {
    grid-template-columns: 1fr auto;
    gap: 0.6rem;
    align-items: start;
  }
  .work-row__name { font-size: clamp(1.25rem, 5vw, 1.75rem); }
  .work-row__meta { grid-column: 1 / 3; margin-top: 0.1rem; justify-self: start; }
  .work-row__arrow { display: none; }

  /* About facts: label ligeiramente mais curto */
  .about-facts > div { grid-template-columns: 4rem 1fr; gap: 0.75rem; }
  .about-text__lede { font-size: clamp(1.35rem, 4.5vw, 1.75rem); }

  /* Contact email: tamanho editorial mas sem quebrar letras */
  .contact__email {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    flex-wrap: wrap;
    gap: 0.4rem;
    word-break: break-word; /* break-word em vez de break-all */
    overflow-wrap: break-word;
  }
  .contact__arrow { font-size: 0.5em; }

  /* Contact socials: gap menor */
  .contact__socials { gap: clamp(1rem, 3vw, 2rem); padding-top: clamp(1.5rem, 4vw, 2rem); }

  /* Section head: tighten */
  .section-head {
    padding-block-start: clamp(2rem, 5vw, 3rem);
    margin-top: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  }

  /* Scroll hint: esconde (já estava, só confirma) */
  .scroll-hint { display: none; }
}

/* ── Mobile pequeno: ≤ 400px ─────────────────────────────── */
@media (max-width: 400px) {
  .corner-nav__brand { font-size: 0.6rem; }
  .corner-nav__list { font-size: 0.6rem; padding: 0.5rem 0.7rem; }

  .hero__title {
    font-size: clamp(2.4rem, 14vw, 3.25rem);
    letter-spacing: -0.03em;
  }
  .hero__foot { gap: 1.25rem; }

  .contact__email { font-size: clamp(1.25rem, 7vw, 1.75rem); }

  .bento { grid-auto-rows: minmax(110px, 55vw); }
  .bento__info h3 { font-size: clamp(1rem, 4vw, 1.35rem); }
  .about-text__lede { font-size: clamp(1.2rem, 5vw, 1.5rem); }
  .about-facts > div { grid-template-columns: 3.5rem 1fr; font-size: 0.7rem; }

  .section-head__title { font-size: clamp(1.75rem, 8vw, 2.5rem); }
}

/* =========================================================
   Language Switch — PT / EN
   ========================================================= */

/* Pill container */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 100px;
  padding: 3px;
  flex-shrink: 0;
}

/* Botão de bandeira */
.lang-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  transition:
    background .2s var(--ease),
    opacity    .2s var(--ease),
    transform  .25s var(--ease-out);
  opacity: .55;
  filter: grayscale(1);
}
.lang-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  pointer-events: none;
}
.lang-btn.is-active {
  background: rgba(255,255,255,.14);
  opacity: 1;
  filter: grayscale(0);
}
.lang-btn:hover {
  opacity: .85;
  filter: grayscale(0);
  transform: scale(1.12);
}
.lang-btn.is-active:hover {
  opacity: 1;
  transform: scale(1.06);
}

/* ── Posição na corner-nav ───────────────────────────────── */
/* Li extra na lista de nav */
.corner-nav__lang {
  display: flex;
  align-items: center;
  padding-left: 1.1rem;
  margin-left: 0rem;
  border-left: 1px solid rgba(255,255,255,.09);
}
/* Quando a nav vira coluna (scrolled) */
.corner-nav.is-scrolled .corner-nav__lang {
  padding-left: 0;
  padding-top: .5rem;
  margin-left: 0;
  margin-top: .1rem;
  border-left: none;
  border-top: 1px solid rgba(255,255,255,.07);
}
/* Mobile: lang switch vira item da coluna com separador no topo */
@media (max-width: 600px) {
  .corner-nav__lang {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,.07);
    padding-top: .5rem;
    margin-top: .1rem;
    width: 100%;
  }
}

/* ── Posição na pnav (onfly) ─────────────────────────────── */
.pnav__end {
  display: flex;
  align-items: center;
  gap: .65rem;
}

/* =========================================================
   ONFLY PROJECT PAGE — onfly.html
   Requer class="onfly-page" no <body> do onfly.html.
   Tokens e overrides de classes compartilhadas ficam
   escopados em .onfly-page para não afetar o index.html.
   ========================================================= */

/* Tokens específicos do Onfly (sobrescrevem o :root global
   apenas dentro do body.onfly-page) */
.onfly-page {
  transition: background-color 0.9s ease;
  --bg-elev:    #111111;
  --bg-card:    #161616;
  --line:       rgba(250,250,250,.07);
  --line-2:     rgba(250,250,250,.14);
  --brand:      #007BD4;
  --brand-dark: #012e55;
  --font-d:     "Space Grotesk", system-ui, sans-serif;
  --font-m:     "JetBrains Mono", ui-monospace, monospace;
  --g:          clamp(1.25rem, 3vw, 3rem);
  --max:        1140px;
}

/* ── Top Nav ─────────────────────────────────────────────── */
.pnav {
  position: fixed; inset: 0 0 auto 0; z-index: 300;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--g);
  height: 52px;
  background: rgba(10,10,10,.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.pnav__back {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-m); font-size: .68rem;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-muted); transition: color .2s;
}
.pnav__back svg { transition: transform .25s var(--ease-out); }
.pnav__back:hover { color: var(--ink); }
.pnav__back:hover svg { transform: translateX(-4px); }

.view-switch {
  display: flex; align-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line-2);
  border-radius: 100px; padding: 3px; gap: 2px;
}
.view-switch__btn {
  font-family: var(--font-m); font-size: .65rem;
  text-transform: uppercase; letter-spacing: .08em;
  padding: .32rem .85rem; border-radius: 100px;
  background: transparent; border: none; cursor: pointer;
  color: var(--ink-muted); transition: background .25s, color .25s;
}
.view-switch__btn.is-active {
  background: var(--accent); color: #0a0a0a; font-weight: 600;
}
.pnav__brand {
  font-family: var(--font-d); font-weight: 700;
  font-size: .9rem; letter-spacing: -.03em;
}
.pnav__brand em { color: var(--accent); font-style: normal; }

/* ── Layout wrappers ─────────────────────────────────────── */
.proj-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--g);
  padding-top: 52px;
}
.breakout {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* ── Overview ────────────────────────────────────────────── */
#overview {
  padding-top: clamp(3rem,8vw,6rem);
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 1rem;
}
.ov-logo { width: 64px; height: 64px; object-fit: contain; }
.ov-meta {
  font-family: var(--font-m); font-size: .72rem;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--ink-muted);
}
.ov-title {
  font-family: var(--font-d); font-weight: 700;
  font-size: clamp(2.2rem,6vw,4.5rem);
  letter-spacing: -.04em; line-height: 1.05;
  margin-bottom: .5rem;
}

.ov-title i{
  font-weight: 400;
}

.cover-wrap {
  position: relative; width: 100%;
  margin-top: 1.5rem;
  border-radius: 18px; overflow: hidden;
  height: 600px;
  box-shadow: none; /* preenchido via JS com cor extraída da imagem */
}
.cover-img {
  width: 100%; height: 140%;
  background-image: url('imagens/works/onfly_cover.png');
  background-size: cover;
  background-position: center center;
  position: absolute; inset: 0;
  transform: translateY(0);
  will-change: transform;
}

/* ── Meta Strip ──────────────────────────────────────────── */
.p-meta {
  display: grid; grid-template-columns: repeat(5,1fr);
  margin-top: clamp(2rem,5vw,4rem);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.p-meta__cell {
  padding: 1.35rem 1.5rem;
  border-right: 1px solid var(--line);
}
.p-meta__cell:last-child { border-right: none; }
.p-meta__lbl {
  font-family: var(--font-m); font-size: .58rem;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--ink-muted); margin-bottom: .5rem;
}
.p-meta__val { font-size: .82rem; line-height: 1.5; }
.p-meta__val small {
  display: block; font-family: var(--font-m);
  font-size: .6rem; color: var(--ink-muted); margin-top: .1rem;
}
.p-meta__link {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--font-m); font-size: .68rem; color: var(--accent);
  border: 1px solid rgba(200,255,0,.28); border-radius: 6px;
  padding: .38rem .7rem; margin-top: .4rem;
  transition: background .2s, border-color .2s;
}
.p-meta__link:hover { background: rgba(200,255,0,.07); border-color: var(--accent); }

/* ── Section comum ───────────────────────────────────────── */
.proj-section {
  padding: clamp(3.5rem,8vw,7rem) 0;
  border-top: 1px solid var(--line);
}
.sec-eyebrow {
  font-family: var(--font-m); font-size: .6rem;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--accent); margin-bottom: 1rem;
}
.sec-heading {
  font-family: var(--font-d); font-weight: 700;
  font-size: clamp(1.6rem,3vw,2.4rem);
  letter-spacing: -.035em; line-height: 1.1;
  margin-bottom: 1rem;
}
.sec-copy {
  font-size: clamp(.88rem,1.2vw,.98rem);
  line-height: 1.8; color: rgba(250,250,250,.68);
  max-width: 680px;
}
.sec-copy + .sec-copy { margin-top: 1em; }
.sec-copy a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.sec-2col {
  display: grid; grid-template-columns: 200px 1fr;
  gap: clamp(2rem,5vw,5rem); align-items: start;
}
.sec-2col__aside { position: sticky; top: 70px; }
.sec-2col__aside .sec-eyebrow { margin-bottom: .4rem; }
.sec-2col__aside .sec-heading { font-size: clamp(1rem,1.8vw,1.35rem); }

/* ── High-Level Goals ────────────────────────────────────── */
#goals { padding: 0; border-top: none; margin-top: clamp(3rem,7vw,6rem); }
.goals-wrap {
  position: relative; overflow: hidden;
  min-height: 340px;
  display: flex; align-items: center;
  isolation: isolate; /* força stacking context explícito — corrige mix-blend-mode em layers GPU */
}
.goals-sky {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* wrapper recebe o blend mode — Safari ignora mix-blend-mode em <video> direto */
.goals-video-wrap {
  position: absolute; inset: 0;
  z-index: 1;
  mix-blend-mode: multiply;
  opacity: .85;
}
.goals-video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.goals-overlay {
  position: absolute; inset: 0;
  background: rgba(10,10,10,.75);
  z-index: 2;
}
.goals-content {
  position: relative; z-index: 3;
  width: 100%; max-width: var(--max);
  margin: 0 auto; padding: clamp(3rem,6vw,5rem) var(--g);
  display: grid; grid-template-columns: 1fr 1.1fr 1.1fr;
  gap: clamp(1.5rem,4vw,4rem); align-items: center;
}
.goals-title {
  font-family: var(--font-d); font-weight: 500;
  font-size: clamp(1.4rem,2.8vw,2.2rem);
  letter-spacing: -.03em; line-height: 1.15; color: #fff;
}
.goals-card {
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 2rem 1.75rem;
}
.goals-card__num {
  font-family: var(--font-m); font-size: clamp(1.8rem,3vw,2.5rem);
  font-weight: 400; color: #fff; letter-spacing: -.03em;
  margin-bottom: .75rem; line-height: 1;
}
.goals-card__text {
  font-size: clamp(.82rem,1.2vw,.95rem);
  line-height: 1.65; color: rgba(255,255,255,.75);
}

/* ── Process ─────────────────────────────────────────────── */
.p-block { margin-top: 3rem; }
.p-block + .p-block { margin-top: 4rem; }
.p-block__media {
  border-radius: 14px; overflow: hidden;
  background: var(--bg-elev); border: 1px solid var(--line);
  margin-bottom: 1.35rem;
}
.p-block__ph {
  aspect-ratio: 16/9; display: flex;
  align-items: center; justify-content: center;
  font-family: var(--font-m); font-size: .65rem;
  color: var(--ink-muted); letter-spacing: .08em;
}
.p-block__caption {
  font-family: var(--font-m); font-size: .6rem;
  color: var(--ink-muted); margin-bottom: .5rem;
}
.p-block__title {
  font-family: var(--font-d); font-weight: 600;
  font-size: clamp(.95rem,1.6vw,1.2rem);
  letter-spacing: -.02em; margin-bottom: .6rem;
}
.p-block__text {
  font-size: .88rem; line-height: 1.72;
  color: rgba(250,250,250,.62);
}

/* ── Post-it hover no p-block__ph ───────────────────────── */
.p-block__ph {
  position: relative;
}

/* Imagem dentro do placeholder: 70% → 100% no hover */
.p-block__ph img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
  opacity: 0.7;
  transition: opacity 0.4s ease;
}
.p-block__ph:hover img {
  opacity: 1;
}

.p-block__ph[data-postit]::after {
  content: attr(data-postit);
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 136px;
  padding: .75rem .85rem;
  background: #f5e84a;
  color: #1c1a06;
  font-family: 'Caveat', cursive;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.35;
  border-radius: 2px;
  box-shadow: 2px 4px 14px rgba(0,0,0,.45), 0 1px 0 rgba(0,0,0,.12);
  /* ~35% visível no canto superior direito: translate 62% para cada eixo */
  transform: translate(62%, -62%) rotate(-8deg);
  transition: transform 0.48s cubic-bezier(0.34, 1.38, 0.64, 1);
  pointer-events: none;
  z-index: 4;
  will-change: transform;
}
.p-block__ph[data-postit]:hover::after {
  /* pousa dentro com leve rotação */
  transform: rotate(-6deg);
}

/* ── First Concept ───────────────────────────────────────── */
/* ── First Concept ───────────────────────────────────────── */
#concept {
  padding: clamp(3rem,8vw,6rem) 0;
  border-top: 1px solid var(--line);
}

/* cabeçalho 2 colunas: título | texto */
.concept-header {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(2rem,5vw,5rem);
  align-items: start;
  margin-bottom: clamp(2.5rem,5vw,4rem);
}
/* .concept-header__left {  título fica à esquerda  } */
.concept-title {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(2rem,4vw,3.2rem);
  letter-spacing: -.04em;
  line-height: 1.06;
  margin-top: .75rem;
}
.concept-desc {
  font-size: clamp(.88rem,1.2vw,1rem);
  line-height: 1.75;
  color: rgba(250,250,250,.65);
  padding-top: 2.4rem; /* alinha visualmente com o título */
}
.concept-desc strong {
  color: var(--ink);
  font-weight: 600;
}

/* concept card */
.concept-card {
  position: relative;
  background: linear-gradient(160deg, var(--brand-dark) 0%, #012040 60%, #011830 100%);
  border-radius: 20px;
  padding: clamp(1.5rem,3vw,2.5rem);
  border: 1px solid rgba(0,123,212,.25);
  overflow: visible; /* permite o post-it sair */
}

/* label "#1 Conceito de Aplicativo" */
.concept-card__label {
  text-align: center;
  font-size: clamp(.65rem,1vw,1rem);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(254, 255, 255, 0.8);
  margin-bottom: clamp(1rem,2vw,1.75rem);
  font-family: Caveat, cursive;
  font-weight: bold;
}

/* post-it no canto superior direito */
.concept-card__postit {
  position: absolute;
  top: -18px;
  right: clamp(1.5rem,5vw,3rem);
  width: clamp(130px,14vw,180px);
  padding: .75rem 1rem;
  background: #f5e84a;
  color: #1c1a06;
  font-family: 'Caveat', cursive;
  font-size: clamp(.9rem,1.2vw,1.1rem);
  font-weight: 500;
  line-height: 1.35;
  border-radius: 2px;
  box-shadow: 2px 6px 18px rgba(0,0,0,.45);
  transform: rotate(3deg);
  z-index: 5;
}

/* área do mockup/vídeo dentro do card */
.concept-card__media {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,.3);
}

/* responsivo */
@media (max-width: 680px) {
  .concept-header {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .concept-desc { padding-top: 0; }
}

/* ── Solution ────────────────────────────────────────────── */
#solution { padding: clamp(3.5rem,8vw,7rem) 0; border-top: 1px solid var(--line); }
.sol-headline {
  font-family: var(--font-d); font-weight: 700;
  font-size: clamp(2.2rem,5vw,4rem);
  letter-spacing: -.04em; line-height: 1.05;
  margin-bottom: 1rem;
  text-align: center;
}

.sol-copy {
  font-size: clamp(.88rem,1.2vw,.98rem);
  line-height: 1.8; color: rgba(250,250,250,.68);
  text-align: center; margin: 0 auto;
}

.sol-video {
  margin-top: 2.5rem; border-radius: 16px; overflow: hidden;
  background: #050505;
  box-shadow: 0 4px 24px rgba(0,0,0,.45);
}
.sol-video .p-block__ph { aspect-ratio: 16/9; }

.sol-sideby {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem,4vw,4rem); align-items: start;
  margin-top: clamp(3rem,6vw,5rem);
}
.sol-sideby__title {
  font-family: var(--font-d); font-weight: 600;
  font-size: clamp(1.1rem,2vw,1.5rem);
  letter-spacing: -.025em; line-height: 1.2;
}
.sol-sideby__text {
  font-size: .9rem; line-height: 1.75;
  color: rgba(250,250,250,.65);
}

.sol-bento {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  grid-template-rows: 260px 260px;
  gap: 8px; margin-top: 1.5rem; border-radius: 14px;
}
.sol-bento--rev { grid-template-columns: 1fr 1.55fr; }
.sol-bento__cell {
  background: var(--bg-elev);
  border-radius: 10px; overflow: hidden;
  position: relative; cursor: pointer;
  transition: transform .45s var(--ease-out);
}
.sol-bento__cell--large { grid-row: span 2; border-radius: 10px; }
.sol-bento__cell:hover { transform: scale(1.02); z-index: 2; }
.sol-bento__cell img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s var(--ease-out);
}
.sol-bento__cell:hover img { transform: scale(1.06); }
.sol-bento__ph {
  width: 100%; height: 100%; display: flex;
  align-items: center; justify-content: center;
  font-family: var(--font-m); font-size: .65rem;
  color: var(--ink-muted);
  background: linear-gradient(135deg, var(--bg-elev), var(--bg-card));
}

.sol-bento__cell:hover::after { opacity: 1; }

.sol-carousel {
  position: relative;
  margin-top: clamp(3rem,6vw,5rem);
  overflow: hidden;
  cursor: grab;
}
.sol-carousel.is-dragging { cursor: grabbing; }
.sol-carousel.is-dragging .sol-carousel__track { transition: none !important; }
.sol-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 1rem;
  --slider-duration: 4000ms;
}
.sol-carousel__track {
  display: flex; gap: 16px;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  user-select: none;
}
.sol-carousel__item {
  width: clamp(240px, 38vw, 480px);
  height: clamp(210px, 28vw, 320px);
  flex-shrink: 0;
  border-radius: 14px; overflow: hidden;
  background: var(--bg-elev); border: 1px solid var(--line);
  transition: transform .5s cubic-bezier(0.4,0,0.2,1),
              opacity  .5s cubic-bezier(0.4,0,0.2,1);
  opacity: 0.42;
  transform: scale(0.91);
}
.sol-carousel__item.is-active { opacity: 1; transform: scale(1); }
.sol-carousel__item .sol-bento__ph { height: 100%; }

/* ── Setas de navegação (glassmorphism) ──────────────────── */
.sol-carousel__arrow {
  position: absolute; top: 50%; z-index: 10;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease), transform .2s var(--ease-out), box-shadow .2s;
  box-shadow: 0 2px 16px rgba(0,0,0,.28);
}
.sol-carousel__arrow--prev { left: 1.25rem;  transform: translateY(-50%); }
.sol-carousel__arrow--next { right: 1.25rem; transform: translateY(-50%); }
.sol-carousel__arrow--prev:hover { background: rgba(255,255,255,.20); transform: translateY(-50%) scale(1.1); }
.sol-carousel__arrow--next:hover { background: rgba(255,255,255,.20); transform: translateY(-50%) scale(1.1); }
.sol-carousel__arrow--prev:active { transform: translateY(-50%) scale(0.94); }
.sol-carousel__arrow--next:active { transform: translateY(-50%) scale(0.94); }

/* ── Impact ──────────────────────────────────────────────── */
.p-stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  margin-top: 2rem;
}
.p-stat { background: var(--bg-card); padding: 2.5rem 2rem; }
.p-stat__icon {
  width: 28px; height: 28px;
  color: var(--accent);
  opacity: .55;
  display: block;
  margin-bottom: 1rem;
}
.p-stat__num {
  font-family: var(--font-d); font-weight: 700;
  font-size: clamp(2rem,4vw,3rem); letter-spacing: -.04em;
  color: var(--accent); line-height: 1; margin-bottom: .5rem;
}
.p-stat__lbl {
  font-family: var(--font-m); font-size: .65rem;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-muted); line-height: 1.45;
}

/* ── Key Learnings ───────────────────────────────────────── */
.p-learnings {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  margin-top: 2rem;
}
.p-learning { background: var(--bg-card); padding: 2rem 1.75rem; }
.p-learning__icon {
  width: 24px; height: 24px;
  color: var(--accent);
  opacity: .5;
  display: block;
  margin-bottom: .85rem;
}
.p-learning__h {
  font-family: var(--font-d); font-weight: 600;
  font-size: .95rem; letter-spacing: -.015em; margin-bottom: .65rem;
}
.p-learning__t {
  font-size: .84rem; line-height: 1.65;
  color: rgba(250,250,250,.58);
}

/* ── Next Project ────────────────────────────────────────── */
#next {
  padding: clamp(4rem,10vw,9rem) 0 0;
  border-top: 1px solid var(--line);
}
.next-inner {
  display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 1.25rem;
  padding-bottom: clamp(3rem,6vw,5rem);
}
.next-lbl {
  font-family: var(--font-m); font-size: .6rem;
  text-transform: uppercase; letter-spacing: .22em;
  color: var(--ink-muted);
}
.next-title {
  font-family: var(--font-d); font-weight: 700;
  font-size: clamp(2rem,5vw,4rem);
  letter-spacing: -.04em; line-height: 1.05;
  max-width: 600px;
}
.next-cta {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-d); font-weight: 500; font-size: .9rem;
  padding: .85rem 2rem; border-radius: 100px;
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.25);
  margin-top: .5rem; position: relative; overflow: hidden;
  transition: color .3s;
  background: transparent;
  text-decoration: none;
  animation: shimmer-border 2.4s ease-in-out infinite;
}
.next-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    transparent 0%, rgba(255,255,255,.12) 40%,
    rgba(255,255,255,.18) 50%, rgba(255,255,255,.12) 60%,
    transparent 100%);
  transform: translateX(-100%);
  animation: shimmer-sweep 2.4s ease-in-out infinite;
}
.next-cta:hover { background: rgba(255,255,255,.07); }
@keyframes shimmer-border {
  0%,100% { border-color: rgba(255,255,255,.2); box-shadow: none; }
  50%      { border-color: rgba(255,255,255,.65); box-shadow: 0 0 18px 2px rgba(255,255,255,.08); }
}
@keyframes shimmer-sweep {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}
.next-home {
  font-family: var(--font-m); font-size: .7rem;
  color: var(--ink-muted); text-decoration: underline;
  text-underline-offset: 3px; transition: color .2s;
}
.next-home:hover { color: var(--ink); }
.next-preview {
  width: 100%; max-width: 680px; margin: 0 auto;
  height: 300px;
  border-radius: 18px 18px 0 0; overflow: hidden;
  background: #1a1a2e; border: 1px solid var(--line);
  border-bottom: none;
  box-shadow: 0 -20px 60px rgba(0,0,0,.5);
}
.next-preview img { width: 100%; display: block; margin-top:-20%}
.next-preview__ph {
  aspect-ratio: 16/10;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-m); font-size: .65rem;
  color: var(--ink-muted); background: var(--bg-elev);
}

/* ── Floating Project Index ───────────────────────────────── */
.proj-idx {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 200;
  background: rgba(12,12,12,.75);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--line-2);
  border-radius: 14px; padding: 1.1rem 1.25rem;
  min-width: 168px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              opacity  0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.proj-idx.footer-hidden {
  transform: translateY(calc(100% + 2rem));
  opacity: 0;
  pointer-events: none;
}
.proj-idx__lbl {
  font-family: var(--font-m); font-size: .52rem;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--ink-muted); margin-bottom: .85rem;
}
.proj-idx__list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.proj-idx__list a {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-d); font-size: .76rem;
  color: var(--ink-muted); border-radius: 6px;
  padding: .28rem .4rem;
  transition: color .25s, text-decoration-color .25s;
}
.proj-idx__list a::before {
  content: ''; width: 5px; height: 5px; flex-shrink: 0;
  border-radius: 50%; background: currentColor; opacity: .3;
  transition: opacity .25s, background .25s;
}
.proj-idx__list a.is-active { color: var(--accent); }
.proj-idx__list a.is-active::before { opacity: 1; background: var(--accent); }
.proj-idx__list a.is-seen {
  color: rgba(250,250,250,.28);
  text-decoration: line-through;
  text-decoration-color: rgba(250,250,250,.28);
}
.proj-idx__list a.is-seen::before { opacity: .2; }
.proj-idx__list a.is-active.is-seen {
  color: var(--accent);
  text-decoration: none;
}

/* ── View Modes ──────────────────────────────────────────── */
.full-only { display: block; }
body.view-short .full-only { display: none; }

/* ── Footer (override para onfly — layout flex) ──────────── */
.onfly-page .site-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem var(--g);
  border-top: 1px solid var(--line);
  font-family: var(--font-m); font-size: .7rem;
  color: var(--ink-muted);
  background: var(--bg);
  max-width: none;
  margin-inline: 0;
  margin-top: 0;
  grid-template-columns: unset;
}
.onfly-page .site-footer a { transition: color .2s; }
.onfly-page .site-footer a:hover { color: var(--ink); }

/* ── Social Dock (onfly — sempre visível, layout vertical) ── */
/* ── Marca d'água Onfly (aparece só quando BG é azul) ───────── */
.onfly-watermark {
  position: fixed;
  top: 0;
  left: 0;
  width: 562px;
  height: auto;
  opacity: 0;
  pointer-events: none;
  filter: brightness(0);
  z-index: 0;
  transition: opacity 0.9s ease;
  transform: translate(-18%, -18%);
}
.onfly-watermark.is-visible {
  opacity: 0.05;
}
/* Todo conteúdo da página fica acima da watermark */
.onfly-page .proj-wrap,
.onfly-page .pnav,
.onfly-page .site-footer,
.onfly-page .bg-video {
  z-index: 1;
}

/* ══════════════════════════════════════════════════════════
   MÉTRICAS DE DESIGN — overrides específicos da página
══════════════════════════════════════════════════════════ */

/* Grid de 5 colunas para os 5 pontos de impacto */
.metricas-page .p-stats--5 {
  grid-template-columns: repeat(5, 1fr);
}

/* p-stat__num como palavra (não número) — fonte menor, sem counter */
.metricas-page .p-stats--5 .p-stat__num {
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: .6rem;
}

/* Cor brand Trinus */
.metricas-page {
  --brand:      #1D4ED8;
  --brand-dark: #0f1a2a;
}

@media (max-width: 860px) {
  .metricas-page .p-stats--5 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 560px) {
  .metricas-page .p-stats--5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ══════════════════════════════════════════════════════════
   IBCAIXA — overrides específicos da página
══════════════════════════════════════════════════════════ */
.ibcaixa-page {
  --brand:      #00438A;
  --brand-dark: #001e3c;
  transition: background-color 0.9s ease;
}

/* Na onfly o dock fica sempre visível (não depende do scroll da hero) */
.onfly-page .social-dock {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  z-index: 200;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVO — ONFLY.HTML
   Breakpoints: tablet ≤ 860px · mobile ≤ 560px · xs ≤ 380px
══════════════════════════════════════════════════════════ */

/* ── TABLET (≤ 860px) ────────────────────────────────────── */
@media (max-width: 860px) {
  /* Layouts de 2 colunas → 1 coluna */
  .sec-2col { grid-template-columns: 1fr; }
  .sec-2col__aside { position: static; }

  /* Goals */
  .goals-content { grid-template-columns: 1fr; gap: 1.5rem; }

  /* Meta strip: 5 colunas → 3 */
  .p-meta { grid-template-columns: repeat(3, 1fr); }
  .p-meta__cell:nth-child(4),
  .p-meta__cell:nth-child(5) { border-top: 1px solid var(--line); }

  /* Stats: 3 colunas OK em tablet */
  .p-stats { grid-template-columns: repeat(3, 1fr); }

  /* Solution */
  .sol-sideby { grid-template-columns: 1fr; gap: 1rem; }
  .sol-bento,
  .sol-bento--rev { grid-template-columns: 1fr; grid-template-rows: auto; }
  .sol-bento__cell--large { grid-row: auto; }

  /* Concept */
  .concept-header { grid-template-columns: 1fr; gap: 1.25rem; }
  .concept-desc { padding-top: 0; }
  .concept-card__postit { width: clamp(120px, 28vw, 160px); font-size: .9rem; }

  /* Learnings */
  .p-learnings { grid-template-columns: 1fr; }

  /* Proj index oculto em tablet */
  .proj-idx { display: none; }

  /* Watermark: reduz para não vazar */
  .onfly-watermark { width: 380px; }
}

/* ── MOBILE (≤ 560px) ────────────────────────────────────── */
@media (max-width: 560px) {
  /* Meta strip: 2 colunas */
  .p-meta { grid-template-columns: 1fr 1fr; }
  .p-meta__cell:nth-child(5) { grid-column: span 2; border-right: none; }

  /* Stats: coluna única */
  .p-stats { grid-template-columns: 1fr; }
  .p-stat { padding: 1.5rem 1.25rem; }
  .p-stat__num { font-size: clamp(2.4rem, 12vw, 3.2rem); }

  /* Cover */
  .cover-wrap { height: 260px; }

  /* Overview title */
  .ov-title { font-size: clamp(2.2rem, 10vw, 3.5rem); }

  /* Concept card */
  .concept-card { padding: 1.25rem 1rem; }
  .concept-card__postit {
    position: static;           /* sai do canto, entra no fluxo */
    transform: rotate(-2deg);
    margin: 0 auto 1rem auto;
    width: fit-content;
  }

  /* Solution headline */
  .sol-headline { font-size: clamp(1.8rem, 8vw, 2.4rem); }

  /* Sol bento gap menor */
  .sol-bento, .sol-bento--rev { gap: .75rem; }

  /* Nav */
  .pnav { padding: 0 clamp(0.75rem, 4vw, 1.25rem); gap: 0.5rem; }
  .pnav__brand { display: none; }
  .view-switch__btn { padding: .28rem .55rem; font-size: .72rem; }
  .pnav__end { gap: .35rem; }

  /* Social dock */
  .onfly-page .social-dock { bottom: 1rem; left: 1rem; }

  /* Watermark */
  .onfly-watermark { width: 280px; }

  /* Process blocks */
  .p-block__title { font-size: clamp(.9rem, 4vw, 1.1rem); }

  /* Goals section */
  .goals-title { font-size: clamp(2rem, 9vw, 3rem); }
  .goals-card { padding: 1.25rem; }

  /* Next section */
  .next-inner { padding: 2.5rem 1.25rem; }
  .next-title { font-size: clamp(1.6rem, 8vw, 2.4rem); }
}

/* ── XS / muito pequeno (≤ 380px) ───────────────────────── */
@media (max-width: 380px) {
  .p-meta { grid-template-columns: 1fr; }
  .p-meta__cell:nth-child(5) { grid-column: 1; }
  .p-meta__cell { border-right: none; border-bottom: 1px solid var(--line); }

  /* Esconde lang-switch para poupar espaço */
  .lang-switch { display: none; }

  .onfly-watermark { width: 200px; }
}
