/* =========================================================
   GABRIEL MAGNI, SISTEMA DE DESIGN
   Editorial / comercial. Cobalt como assinatura, uso moderado.
   ========================================================= */

/* ---------- Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, blockquote, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
input, textarea { font: inherit; }

/* ---------- Tokens de tema ---------- */
:root {
  --cobalt: #0047FF;
  --ice: #F1F5F9;
  --silver: #D9D9D9;
  --graphite: #6B7280;
  --midnight: #121212;

  --bg: var(--ice);
  --surface: #FFFFFF;
  --surface-2: #E7ECF1;
  --text: var(--midnight);
  --text-muted: var(--graphite);
  --border: #CBD2D9;
  --border-soft: #DDE3E9;
  --accent: var(--cobalt);
  --accent-text: #FFFFFF;
  --placeholder-bg: #E4E9EF;
  --placeholder-text: var(--graphite);

  --card-bg: var(--ice);
  --card-border: var(--silver);
  --card-desc: var(--text-muted);

  --font-display: 'Bricolage Grotesque', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --container-max: 1360px;
  --gutter: clamp(20px, 4vw, 64px);
  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-pill: 999px;

  --nav-h: 76px;
  --nav-h-compact: 60px;

  --ease: cubic-bezier(.16,.8,.28,1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="dark"] {
  --bg: var(--midnight);
  --surface: #191919;
  --surface-2: #1F2023;
  --text: var(--ice);
  --text-muted: #9AA1AC;
  --border: #2C2D30;
  --border-soft: #232427;
  --accent: var(--cobalt);
  --accent-text: #FFFFFF;
  --placeholder-bg: #1F2023;
  --placeholder-text: #7C838E;
  --card-bg: var(--midnight);
  --card-border: var(--graphite);
  --card-desc: var(--silver);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--midnight);
    --surface: #191919;
    --surface-2: #1F2023;
    --text: var(--ice);
    --text-muted: #9AA1AC;
    --border: #2C2D30;
    --border-soft: #232427;
    --accent: var(--cobalt);
    --accent-text: #FFFFFF;
    --placeholder-bg: #1F2023;
    --placeholder-text: #7C838E;
    --card-bg: var(--midnight);
    --card-border: var(--graphite);
    --card-desc: var(--silver);
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}

html { scroll-padding-top: 84px; }

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

em { font-style: italic; }
.accent-italic { font-style: italic; color: var(--accent); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Tipografia editorial ---------- */
h1, h2, h3, .font-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
}
.section-title em { color: var(--accent); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section-head__link {
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
  padding-bottom: .3rem;
  border-bottom: 1px solid var(--text);
  transition: color .2s, border-color .2s;
}
.section-head__link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Placeholders provisórios ---------- */
.placeholder-box {
  position: relative;
  background:
    repeating-linear-gradient(135deg, var(--placeholder-bg), var(--placeholder-bg) 10px, transparent 10px, transparent 20px),
    var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  overflow: hidden;
}
.placeholder-box__tag {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--placeholder-text);
  background: var(--bg);
  padding: .4em .7em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
[data-placeholder-label] { position: relative; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .95em 1.6em;
  font-size: .92rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--accent); color: var(--accent-text); }
.btn--primary:hover { background: #0038CC; }
.btn--outline { border-color: var(--text); color: var(--text); }
.btn--outline:hover { background: var(--text); color: var(--bg); }
.btn--sm { padding: .65em 1.6em; font-size: .82rem; }
.btn--sm.btn-interactive { min-width: 172px; }
.btn--lg { padding: 1.1em 2em; font-size: 1rem; }

/* ---------- Botão interativo: ponto que cresce + texto/seta que trocam no hover ---------- */
.btn-interactive {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-interactive__label {
  position: relative;
  z-index: 2;
  display: inline-block;
  transform: translateX(14px);
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
}
.btn-interactive__reveal {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  color: var(--ice);
  opacity: 0;
  transform: translateX(48px);
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
}
.btn-interactive__dot {
  position: absolute;
  left: 20px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 8px;
  background: var(--cobalt);
  opacity: 1;
  transform: translateY(-50%) scale(1);
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  z-index: 1;
}
.btn-interactive:focus-visible .btn-interactive__label { transform: translateX(48px); opacity: 0; }
.btn-interactive:focus-visible .btn-interactive__reveal { transform: translateX(-4px); opacity: 1; }
.btn-interactive:focus-visible .btn-interactive__dot { left: 0; top: 0; width: 100%; height: 100%; transform: translateY(0) scale(1.8); }
@media (hover: hover) and (pointer: fine) {
  .btn-interactive:hover .btn-interactive__label { transform: translateX(48px); opacity: 0; }
  .btn-interactive:hover .btn-interactive__reveal { transform: translateX(-4px); opacity: 1; }
  .btn-interactive:hover .btn-interactive__dot { left: 0; top: 0; width: 100%; height: 100%; transform: translateY(0) scale(1.8); }
}

/* ---------- Foco visível (global) ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* =========================================================
   1. NAVEGAÇÃO
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
  transition: background-color .3s var(--ease);
}
.nav.is-compact { background: color-mix(in srgb, var(--bg) 96%, transparent); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 18px;
}
/* Compactação ao sair da hero: tamanho muda de estado (sem transição de padding,
   que causaria reflow); só a opacidade do fundo é animada, via transform/opacity. */
.nav.is-compact .nav__inner { padding-block: 10px; }

.nav__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -.01em;
}
.nav__links {
  display: flex;
  gap: 2.1rem;
  font-size: .9rem;
  font-weight: 500;
}
.nav__links a {
  position: relative;
  color: var(--text-muted);
  transition: color .2s;
  padding-block: .3rem;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav__actions { display: flex; align-items: center; gap: 1.1rem; }

.theme-toggle { padding: 10px; margin: -10px; }
.theme-toggle__track {
  display: block;
  width: 42px;
  height: 24px;
  border-radius: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  position: relative;
  transition: background-color .2s;
}
.theme-toggle__thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform .25s var(--ease);
}
:root[data-theme="dark"] .theme-toggle__thumb { transform: translateX(18px); }

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}
.nav__burger span { display: block; height: 1px; width: 20px; background: var(--text); transition: transform .25s var(--ease), opacity .25s var(--ease); }
.nav.is-open .nav__burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .nav__burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* =========================================================
   2. HERO
   ========================================================= */
/* Palco da hero: trilha alta que segura a hero fixa enquanto o texto troca */
.hero-stage { position: relative; }

.hero {
  display: flex;
  align-items: center;
  min-height: calc(100dvh - var(--nav-h));
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

@media (min-width: 1025px) {
  .hero-stage { height: 230vh; }
  .hero {
    position: sticky;
    top: var(--nav-h);
    height: calc(100dvh - var(--nav-h));
    min-height: 0;
    overflow: hidden;
    padding-block: clamp(1.5rem, 3vw, 2.25rem);
  }
  .hero__canvas { height: 100%; min-height: 0; }
}

/* Bloco único: fotografia como fundo, texto por cima — nada de card solto no light mode */
.hero__canvas {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: min(680px, calc(100dvh - var(--nav-h) - clamp(5rem, 12vw, 8rem)));
  border-radius: var(--radius-md);
  background: var(--midnight);
  color: var(--ice);
  box-shadow: 0 1px 2px rgba(18, 18, 18, .06), 0 32px 64px -32px rgba(18, 18, 18, .5);
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 30%;
}
@media (min-width: 1025px) {
  /* A foto é 2.2:1 com o retrato à direita; ancorar o corte perto da direita
     mantém o Gabriel inteiro no box em qualquer proporção de tela */
  .hero__bg { object-position: 86% 30%; }
}

/* Véu de leitura sutil: a foto horizontal já nasce com a esquerda escura */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(6, 9, 16, .45) 0%, rgba(6, 9, 16, .2) 45%, transparent 70%),
    linear-gradient(to top, rgba(6, 9, 16, .5) 0%, transparent 30%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 46rem;
  padding: clamp(2rem, 5vw, 4rem);
}

.hero__layers { display: grid; align-items: center; }
.hero__layer { grid-area: 1 / 1; }
.hero__layer--about { opacity: 0; visibility: hidden; transform: translateY(32px); }

/* Sem trava (mobile/tablet ou motion reduzido): texto fora do box,
   foto quadrada como bloco próprio entre a hero e o sobre */
.hero-stage--static .hero__canvas {
  display: flex;
  flex-direction: column;
  background: none;
  box-shadow: none;
  overflow: visible;
  border-radius: 0;
  min-height: 0;
  color: var(--text);
}
.hero-stage--static .hero__canvas picture {
  order: 2;
  margin-block: clamp(2rem, 6vw, 3rem);
}
.hero-stage--static .hero__bg {
  position: static;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  object-position: 50% 30%;
}
.hero-stage--static .hero__scrim { display: none; }
.hero-stage--static .hero__inner { display: contents; }
.hero-stage--static .hero__layer--intro { order: 1; }
.hero-stage--static .hero__layer--about {
  order: 3;
  opacity: 1;
  visibility: visible;
  transform: none;
}
.hero-stage--static .hero__title,
.hero-stage--static .hero__about-title { color: var(--text); }
.hero-stage--static .hero__support,
.hero-stage--static .hero__about-support { color: var(--text-muted); }
.hero-stage--static .hero__eyebrow { color: var(--cobalt); opacity: 1; }
.hero-stage--static .hero__title em,
.hero-stage--static .hero__title-accent,
.hero-stage--static .hero__about-title em { color: var(--cobalt); }

.hero__eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ice);
  opacity: .75;
  margin-bottom: 1rem;
}
.hero__about-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -.01em;
  color: var(--ice);
}
.hero__about-title em { font-style: normal; color: var(--cobalt-bright, #4d7cfe); }
.hero__about-support {
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
  max-width: 52ch;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(241, 245, 249, .78);
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.08;
  color: var(--ice);
}
.hero__title em,
.hero__title-accent { color: var(--cobalt-bright, #4d7cfe); }

.hero__rotator { margin-top: clamp(1.5rem, 3vw, 2rem); }
.hero__rotator-viewport {
  position: relative;
  display: inline-block;
  overflow: hidden;
  background: var(--cobalt);
  color: var(--ice);
  border-radius: var(--radius-md);
  padding: .6em 1.15em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.25;
}
.hero__rotator-text { white-space: nowrap; }
.hero__rotator-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  background: currentColor;
  animation: rotator-blink 1s step-end infinite;
}
@keyframes rotator-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero__rotator-cursor { display: none; }
}

.hero__support {
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
  max-width: 42ch;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(241, 245, 249, .78);
}

/* Entrada: bloco > título > slot > texto de apoio (~1s no total) */
.hero__canvas.reveal-content { transition-delay: 0s; }
.hero__title.reveal-title { transition-delay: .1s; }
.hero__rotator.reveal-content { transition-delay: .22s; }
.hero__support.reveal-content { transition-delay: .36s; }

/* =========================================================
   3. FAIXA DE CREDIBILIDADE
   ========================================================= */
.credibility {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: var(--surface);
}
.credibility__inner {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.credibility__divider {
  width: 1px;
  height: 48px;
  background: var(--border-soft);
  flex: none;
  transform: scaleY(0);
  transform-origin: center;
  transition: transform .6s var(--ease-out);
}
.credibility__divider.is-visible { transform: scaleY(1); }

.credibility__item { display: flex; flex-direction: column; flex: 1 1 0; }
.credibility__number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1;
  color: var(--accent);
  transition: transform .25s var(--ease-out);
}
.credibility__label {
  margin-top: .5rem;
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.3;
}
@media (hover: hover) and (pointer: fine) {
  .credibility__item:hover .credibility__number { transform: translateY(-2px); }
}

/* =========================================================
   4. PROJETOS SELECIONADOS
   ========================================================= */
.work { padding-block: clamp(4rem, 8vw, 7rem); }

.work__featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  width: 100%;
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.work__featured-image {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 8;
  border-radius: var(--radius-md);
  background: var(--surface-2);
}
.work__featured-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.work__featured:hover .work__featured-image img,
.work__featured:focus-visible .work__featured-image img { transform: scale(1.035); }
.work__featured-info {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.work__featured-text { display: block; }
.work__index {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-muted);
  font-size: 1rem;
}
.work__featured-info h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.work__featured-info p { color: var(--text-muted); font-size: .9rem; margin-top: .25rem; }
.work__arrow {
  display: block;
  font-size: 1.4rem;
  color: var(--text-muted);
  transition: transform .25s var(--ease), color .25s var(--ease);
}
.work__featured:hover .work__arrow, .work__card:hover .work__arrow { transform: translate(4px,-4px); color: var(--accent); }

.work__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}
.work__card {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  grid-column: span 2;
}
.work__card--wide { grid-column: span 4; }
.work__card--half { grid-column: span 3; }
.work__card-image {
  display: block;
  position: relative;
  overflow: hidden;
  height: 280px;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  background: var(--surface-2);
}
.work__card--wide .work__card-image { height: 280px; }
.work__card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  transition: transform .6s var(--ease-out);
}
.work__card:hover .work__card-image img,
.work__card:focus-visible .work__card-image img { transform: scale(1.035); }
[data-project="spartans"] .work__card-image img,
[data-project="bufo"] .work__card-image img,
[data-project="betgreen"] .work__card-image img,
[data-project="betsul"] .work__card-image img,
[data-project="megaposta"] .work__card-image img,
[data-project="lanistar"] .work__card-image img,
[data-project="vtx"] .work__card-image img { object-position: 50% 50%; }
.work__card-info { display: flex; align-items: baseline; gap: .8rem; }
.work__card-text { display: block; }
.work__card-info h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.work__card-info p { color: var(--text-muted); font-size: .82rem; }

/* =========================================================
   5. SERVIÇOS
   ========================================================= */
.services { padding-block: clamp(4rem, 8vw, 7rem); background: var(--surface); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }

.services__heading {
  color: var(--text);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.service-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1rem;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--cobalt);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .4s var(--ease-out);
}
/* Especificidade reforçada (.service-card.reveal-stagger) para não perder para a transição genérica do stagger */
.service-card.reveal-stagger {
  transition: opacity .6s var(--ease),
              transform .4s var(--ease-out),
              border-color .4s var(--ease-out);
}
.service-card h3 {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  font-size: clamp(1.35rem, 1.6vw, 1.6rem);
  line-height: 1.15;
  transition: color .4s var(--ease-out), transform .35s var(--ease-out);
}
.service-card p {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  color: var(--card-desc);
  font-size: .96rem;
  line-height: 1.55;
  max-width: 42ch;
  transition: color .4s var(--ease-out);
}

.service-card:focus-within::before { transform: scaleY(1); }
.service-card:focus-within h3, .service-card:focus-within p { color: var(--ice); }
.service-card:focus-within h3 { transform: translateY(-4px); }

@media (hover: hover) and (pointer: fine) {
  .service-card:hover::before { transform: scaleY(1); }
  .service-card:hover h3, .service-card:hover p { color: var(--ice); }
  .service-card:hover h3 { transform: translateY(-4px); }
}

.service-card--primary { grid-column: span 7; }
.service-card--primary p { max-width: 38ch; }

.service-card--brand { grid-column: span 5; }
.service-card--ui { grid-column: span 4; }
.service-card--graphic { grid-column: span 4; }
.service-card--campaign { grid-column: span 4; }

.service-card.reveal-stagger:nth-child(1) { transition-delay: 0ms; }
.service-card.reveal-stagger:nth-child(2) { transition-delay: 80ms; }
.service-card.reveal-stagger:nth-child(3) { transition-delay: 160ms; }
.service-card.reveal-stagger:nth-child(4) { transition-delay: 240ms; }
.service-card.reveal-stagger:nth-child(5) { transition-delay: 320ms; }

/* =========================================================
   7. PROCESSO DE TRABALHO
   ========================================================= */
.process { padding-block: clamp(4rem, 8vw, 7rem); }

.process__heading {
  max-width: 40rem;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

/* Trava de rolagem: no desktop, a seção prende na tela enquanto a barra avança.
   No mobile essa trava é desativada (ver bloco responsivo). */
.process__scroll-track { position: relative; height: 200vh; }
.process__sticky {
  position: sticky;
  top: var(--nav-h);
  padding-block: 1.5rem;
}

.process__timeline { position: relative; width: 100%; }

/* Trilho: linha estática em Silver/Graphite + progresso real em Cobalt por cima */
.process__rail {
  position: absolute;
  top: 7px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--border-soft);
  overflow: hidden;
  z-index: 0;
}
.process__rail-progress {
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--cobalt);
}
.process__rail-progress.no-js-fallback { transform: scaleX(1); }

/* prefers-reduced-motion: sem trava, sem barra progressiva, tudo já revelado */
.process--static .process__scroll-track { height: auto; }
.process--static .process__sticky { position: static; min-height: 0; display: block; }

.process__steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: clamp(1rem, 3vw, 2rem);
}

.process__dot {
  display: block;
  width: 14px;
  height: 14px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
  margin-bottom: 1.75rem;
  transition: background-color .4s var(--ease-out), border-color .4s var(--ease-out);
}

.process__number {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.process__step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 1.7vw, 1.4rem);
  color: var(--text-muted);
  margin-bottom: .6rem;
  transition: color .4s var(--ease-out);
}
.process__step p {
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.6;
  max-width: 26ch;
  min-height: 4.8em;
}

.process__step-image {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 1.25rem;
  aspect-ratio: 4 / 3;
  min-height: 0;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  filter: grayscale(1);
  opacity: .55;
  transition: filter .5s var(--ease-out), opacity .5s var(--ease-out);
}
.process__step-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ativo: alcançado pelo progresso da rolagem (desktop) ou por entrar na tela (mobile) */
.process__step.is-reached .process__dot { background: var(--cobalt); border-color: var(--cobalt); }
.process__step.is-reached h3 { color: var(--text); }

/* Em evidência: só a etapa atual do progresso mostra a imagem em cor */
.process__step.is-current .process__step-image { filter: grayscale(0); opacity: 1; }

.process__step.reveal-stagger:nth-child(1) { transition-delay: 0ms; }
.process__step.reveal-stagger:nth-child(2) { transition-delay: 80ms; }
.process__step.reveal-stagger:nth-child(3) { transition-delay: 160ms; }
.process__step.reveal-stagger:nth-child(4) { transition-delay: 240ms; }

/* =========================================================
   9. SOBRE
   ========================================================= */
.about { padding-block: clamp(4rem, 8vw, 7rem); }

/* --- Pilares, índice editorial --- */
.about__bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--border-soft);
}

.about__cell {
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.25rem, 2.5vw, 2rem) 0 clamp(1.25rem, 2.5vw, 2rem);
  border-left: 1px solid var(--border-soft);
}
.about__cell:first-child { padding-left: 0; border-left: none; }

.about__cell-number {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.about__cell h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  font-size: 1.15rem;
  margin-bottom: .5rem;
  transition: color .3s var(--ease-out);
}
.about__cell p {
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.6;
  max-width: 32ch;
}

@media (hover: hover) and (pointer: fine) {
  .about__cell:hover h3 { color: var(--cobalt); }
}

/* =========================================================
   10. CHAMADA FINAL
   ========================================================= */
.final-cta { background: var(--surface); border-top: 1px solid var(--border-soft); padding-block: clamp(4.5rem, 9vw, 8rem); }
.final-cta__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}
.final-cta__main { max-width: 34rem; }
.final-cta__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  letter-spacing: -.02em;
  color: var(--text);
}
.final-cta__title em { color: var(--cobalt); }
.final-cta__text {
  margin-top: 1.25rem;
  max-width: 42ch;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.final-cta__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }

/* =========================================================
   11. RODAPÉ
   ========================================================= */
.footer { padding-top: clamp(3.5rem, 6vw, 5.5rem); background: var(--bg); }
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: clamp(3rem, 5vw, 4rem);
  border-bottom: 1px solid var(--border-soft);
}
.footer__col { display: flex; flex-direction: column; gap: .85rem; }
.footer__col--brand p { color: var(--text-muted); font-size: .88rem; max-width: 28ch; margin-top: .5rem; }
.footer__col h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: .3rem; font-weight: 600; }
.footer__col a { font-size: .92rem; color: var(--text); transition: color .2s; width: fit-content; }
.footer__col a:hover { color: var(--accent); }
.nav__logo--footer { font-size: 1.3rem; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.75rem;
  font-size: .82rem;
  color: var(--text-muted);
}
.footer__top { font-size: .82rem; color: var(--text-muted); transition: color .2s; }
.footer__top:hover { color: var(--accent); }

/* =========================================================
   SISTEMA DE MOVIMENTO (3 variações + reduced motion)
   ========================================================= */

/* Reveal de conteúdo: opacidade + até 16px, ~600ms */
.reveal-content, .reveal-stagger {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.reveal-content.is-visible, .reveal-stagger.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reveal lateral: usado só na fotografia do hero/sobre */
.reveal-lateral {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.reveal-lateral.is-visible { opacity: 1; transform: translateX(0); }

/* Reveal de título: leve máscara tipográfica, 24px, 650 a 800ms.
   line-height do inner é levemente maior que o padrão (1.05) porque
   overflow:hidden corta qualquer parte do glifo que exceda a caixa. */
.reveal-title { overflow: hidden; padding: .2em .12em .32em .04em; margin: -.2em -.12em 0 -.04em; }
.reveal-title__inner {
  display: block;
  line-height: 1.18;
  transform: translateY(24px);
  opacity: 0;
  transition: transform .75s var(--ease-out), opacity .75s var(--ease-out);
}
.reveal-title.is-visible .reveal-title__inner { transform: translateY(0); opacity: 1; }

/* Crescimento dos divisores da faixa de credibilidade */
.reveal-grow { transition: transform .6s var(--ease-out); }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
  .nav.is-open .nav__links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border-soft);
    flex-direction: column;
    padding: 1.5rem var(--gutter) 2rem;
    gap: 1.25rem;
  }
  .nav__links a { min-height: 44px; display: flex; align-items: center; }
  .nav__actions .btn--sm { display: none; }
  .hero { min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__content { max-width: none; }
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .work__card { grid-column: span 1; }
  .work__card--wide,
  .work__card--half { grid-column: span 2; }
  /* Trava de rolagem só no desktop: aqui a seção volta ao fluxo normal */
  .process__scroll-track { height: auto; }
  .process__sticky { position: static; min-height: 0; display: block; }
  .process__steps { grid-template-columns: 1fr; row-gap: 2.5rem; }
  .process__step { position: relative; padding-right: 0; padding-left: 2rem; }
  .process__rail { top: 0; left: 7px; width: 2px; height: 100%; }
  .process__rail-progress { transform: scaleY(1); transform-origin: top; }
  .process__dot { position: absolute; top: 3px; left: 0; margin-bottom: 0; }
  .footer__inner { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { grid-column: span 1; grid-row: auto; }
  .service-card--primary { grid-column: span 2; }
  .final-cta__inner { grid-template-columns: 1fr; align-items: start; gap: 2.5rem; }
  .final-cta__main { max-width: none; }
}

@media (max-width: 720px) {
  .hero { padding-block: 2.5rem; }
  .credibility__inner { flex-direction: column; align-items: flex-start; gap: 1.75rem; }
  .credibility__divider { display: none; }
  .work__grid { grid-template-columns: 1fr; }
  .work__card--wide,
  .work__card--half { grid-column: span 1; }
  .work__featured-info { grid-template-columns: auto 1fr; row-gap: .5rem; }
  .work__arrow { display: none; }
  .services__grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .service-card--primary { grid-column: span 1; }
  .process__steps { row-gap: 2rem; }
  .about__bento { grid-template-columns: 1fr; border-top: none; }
  .about__cell { padding: 1.5rem 0; border-left: none; border-top: 1px solid var(--border-soft); }
  .about__cell:first-child { padding-top: 0; border-top: none; }
  .footer__inner { grid-template-columns: 1fr; }
  .final-cta__actions { width: 100%; }
  .final-cta__actions .btn { width: 100%; }
}

/* =========================================================
   MODAL: DETALHE DO PROJETO
   ========================================================= */
body.modal-open { overflow: hidden; }

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1rem, 4vw, 4rem) clamp(1rem, 4vw, 2rem);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease-out), visibility 0s linear .35s;
}
.project-modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .35s var(--ease-out), visibility 0s linear 0s;
}
.project-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 18, 18, .6);
  backdrop-filter: blur(6px);
}
.project-modal__panel {
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: min(920px, 100%);
  margin-block: auto;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: 0 30px 80px -20px rgba(18, 18, 18, .5);
  transform: translateY(24px) scale(.98);
  opacity: 0;
  transition: transform .4s var(--ease-out), opacity .4s var(--ease-out);
  max-height: calc(100vh - clamp(2rem, 8vw, 8rem));
  display: flex;
}
.project-modal.is-open .project-modal__panel { transform: translateY(0) scale(1); opacity: 1; }

.project-modal__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .3s var(--ease-out);
}
.project-modal__close:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .project-modal__close:hover { background: var(--cobalt); border-color: var(--cobalt); color: var(--ice); transform: rotate(90deg); }
}

.project-modal__scroll {
  overflow-y: auto;
  width: 100%;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: inherit;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.project-modal__scroll::-webkit-scrollbar { width: 10px; }
.project-modal__scroll::-webkit-scrollbar-track { background: transparent; margin-block: var(--radius-md); }
.project-modal__scroll::-webkit-scrollbar-thumb {
  background-color: var(--border);
  border-radius: var(--radius-pill);
  border: 2px solid var(--surface);
  background-clip: padding-box;
}
@media (hover: hover) and (pointer: fine) {
  .project-modal__scroll::-webkit-scrollbar-thumb:hover { background-color: var(--graphite); }
}
.project-modal__header { padding-right: 2.5rem; margin-bottom: clamp(2rem, 4vw, 2.5rem); }
.project-modal__header h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -.01em;
  color: var(--text);
}
.project-modal__category {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .85rem;
  color: var(--cobalt);
  margin-top: .5rem;
}
.project-modal__description {
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: .98rem;
  line-height: 1.6;
  max-width: 60ch;
  margin-top: .85rem;
}

.project-modal__sections { display: flex; flex-direction: column; gap: clamp(2.5rem, 5vw, 3.5rem); }
.project-modal__section h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--text); }
.project-modal__section > p { color: var(--text-muted); font-size: .92rem; line-height: 1.55; max-width: 60ch; margin-top: .5rem; margin-bottom: 1.75rem; }
.project-modal__group-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: -.01em;
  color: var(--text);
  margin-top: 2.25rem;
  margin-bottom: 1rem;
}
.project-modal__group-title:first-child { margin-top: 0; }
.project-modal__group-desc {
  color: var(--text-muted);
  font-size: .85rem;
  line-height: 1.6;
  max-width: 60ch;
  margin-top: .15rem;
  margin-bottom: 1.5rem;
}

.project-modal__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.project-modal__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: var(--surface-2);
  cursor: zoom-in;
  transition: border-color .25s var(--ease);
}
.project-modal__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  transition: transform .5s var(--ease-out);
}
.project-modal__thumb:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .project-modal__thumb:hover { border-color: var(--cobalt); }
  .project-modal__thumb:hover img { transform: scale(1.05); }
}

.project-modal__badge {
  position: absolute;
  top: .6rem;
  right: .6rem;
  z-index: 1;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(18, 18, 18, .55);
  backdrop-filter: blur(4px);
  color: var(--ice);
}
.project-modal__badge svg { width: 13px; height: 13px; }

/* Grade estilo Instagram: quadrada, densa, sem bordas soltas */
.project-modal__gallery--instagram {
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.project-modal__gallery--instagram .project-modal__thumb {
  aspect-ratio: 1 / 1;
  border-radius: 0;
  border: none;
}
.project-modal__gallery--instagram .project-modal__thumb img { object-position: 50% 20%; }

/* Feed 4:5: mesma grade, mas sem cortar artes que já nascem verticais */
.project-modal__gallery--feed {
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.project-modal__gallery--feed .project-modal__thumb {
  aspect-ratio: 4 / 5;
  border-radius: 0;
  border: none;
}
.project-modal__gallery--feed .project-modal__thumb img { object-position: 50% 20%; }

/* Filmstrip: telas verticais lado a lado, sem cortar nada */
.project-modal__gallery--filmstrip {
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 3px;
}
.project-modal__gallery--filmstrip .project-modal__thumb {
  aspect-ratio: 9 / 16;
  border-radius: 0;
  border: none;
  cursor: zoom-in;
}
.project-modal__gallery--filmstrip .project-modal__thumb img {
  object-fit: contain;
  object-position: center;
}

/* Banners de site: bem largos, um por linha, proporção real (1200x300) */
.project-modal__gallery--banners {
  grid-template-columns: 1fr;
  gap: .85rem;
}
.project-modal__gallery--banners .project-modal__thumb {
  aspect-ratio: 4 / 1;
  cursor: zoom-in;
}
.project-modal__gallery--banners .project-modal__thumb img {
  object-fit: cover;
  object-position: center;
}

/* Banners de confronto: proporção varia por rodada, então a arte inteira precisa caber sem corte */
.project-modal__gallery--banners-fit {
  grid-template-columns: 1fr;
  gap: .85rem;
}
.project-modal__gallery--banners-fit .project-modal__thumb {
  aspect-ratio: 7 / 3;
  cursor: zoom-in;
}
.project-modal__gallery--banners-fit .project-modal__thumb img {
  object-fit: contain;
  object-position: center;
}

/* Stories: formato 9:16 real, sem virar quadrado */
.project-modal__gallery--stories {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .6rem;
}
.project-modal__gallery--stories .project-modal__thumb {
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-sm);
}
.project-modal__gallery--stories .project-modal__thumb img {
  object-fit: cover;
  object-position: 50% 20%;
}

/* Key visuals: peças largas de destaque, uma por linha */
.project-modal__gallery--kv {
  grid-template-columns: 1fr;
  gap: 1rem;
}
.project-modal__gallery--kv .project-modal__thumb {
  aspect-ratio: 16 / 9;
  cursor: zoom-in;
}
.project-modal__gallery--kv .project-modal__thumb img {
  object-fit: cover;
  object-position: center;
}

@media (max-width: 720px) {
  .project-modal { padding: 0; align-items: stretch; }
  .project-modal__panel { width: 100%; max-height: 100vh; border-radius: 0; }
  .project-modal__gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
  .project-modal__gallery--instagram { grid-template-columns: repeat(3, 1fr); gap: 2px; }
  .project-modal__gallery--feed { grid-template-columns: repeat(3, 1fr); gap: 2px; }
  .project-modal__gallery--filmstrip { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: .5rem; }
  .project-modal__gallery--stories { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}

/* =========================================================
   LIGHTBOX DE IMAGEM
   ========================================================= */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(18, 18, 18, .92);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease-out), visibility 0s linear .3s;
}
.image-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .3s var(--ease-out), visibility 0s linear 0s;
}
.image-lightbox__stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.image-lightbox__stage::-webkit-scrollbar { display: none; }
.image-lightbox__track { display: flex; height: 100%; }
.image-lightbox__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: clamp(1rem, 4vw, 3rem);
}
.image-lightbox__slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6);
  cursor: zoom-in;
  transition: transform .3s var(--ease-out);
}
.image-lightbox__slide img.is-zoomed {
  cursor: zoom-out;
  touch-action: none;
}

.image-lightbox__close,
.image-lightbox__nav {
  position: absolute;
  z-index: 2;
  border-radius: 50%;
  border: 1px solid rgba(241, 245, 249, .3);
  background: rgba(255, 255, 255, .08);
  color: var(--ice);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.image-lightbox__close {
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  width: 44px;
  height: 44px;
}
.image-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 1.4rem;
}
.image-lightbox__nav--prev { left: clamp(.5rem, 3vw, 2rem); }
.image-lightbox__nav--next { right: clamp(.5rem, 3vw, 2rem); }
.image-lightbox__nav[hidden] { display: none; }
.image-lightbox__close:focus-visible,
.image-lightbox__nav:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .image-lightbox__close:hover,
  .image-lightbox__nav:hover { background: var(--cobalt); border-color: var(--cobalt); }
}

.image-lightbox__counter {
  position: absolute;
  bottom: clamp(1rem, 3vw, 1.75rem);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  color: rgba(241, 245, 249, .75);
  background: rgba(255, 255, 255, .08);
  padding: .4em .9em;
  border-radius: var(--radius-pill);
}
.image-lightbox__counter:empty { display: none; }
.image-lightbox__hint {
  position: absolute;
  bottom: clamp(1rem, 3vw, 1.75rem);
  right: clamp(1rem, 3vw, 2rem);
  font-family: var(--font-body);
  font-size: .78rem;
  color: rgba(241, 245, 249, .5);
}
@media (max-width: 720px) {
  .image-lightbox__nav { width: 40px; height: 40px; }
  .image-lightbox__hint { display: none; }
}
