/* ═══════════════════════════════════════════════════════
   Gabriel Pereira dos Santos — Portfolio
   ═══════════════════════════════════════════════════════ */

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

:root {
  --bg:       #080808;
  --surface:  #111111;
  --border:   rgba(255, 255, 255, 0.07);
  --border-m: rgba(255, 255, 255, 0.14);
  --text:     #f0f0f0;
  --muted:    #505050;
  --muted-lg: #8a8a8a;
  --accent:   #f97316;

  --font:  'Space Grotesk', sans-serif;
  --nav-h: 64px;
  --max-w: 1120px;
  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none;
}

/* Cursor glow that follows the mouse — very subtle orange tint */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 998;
  background: radial-gradient(
    480px circle at var(--cx, 50%) var(--cy, 50%),
    rgba(249, 115, 22, 0.055),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.6s;
}
body.cursor-active::after { opacity: 1; }

::-webkit-scrollbar { width: 2px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 2px; }


/* ═══════════════════════════════════════════════════════
   CUSTOM CURSOR
   ═══════════════════════════════════════════════════════ */

.cursor {
  position: fixed;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease),
              height 0.35s var(--ease),
              border-color 0.3s,
              opacity 0.3s;
  mix-blend-mode: difference;
  will-change: left, top;
}
.cursor.hover {
  width: 52px;
  height: 52px;
  border-color: rgba(255, 255, 255, 0.65);
}
.cursor.hidden { opacity: 0; }

.cursor-dot {
  position: fixed;
  width: 4px;
  height: 4px;
  background: var(--text);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  will-change: left, top;
}


/* ═══════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background 0.5s var(--ease), border-color 0.5s;
}
.navbar.scrolled {
  background: rgba(8, 8, 8, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-color: var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.nav-logo {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  justify-self: start;
  transition: opacity 0.3s;
}
.nav-logo:hover { opacity: 0.45; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
}

.nav-link {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted-lg);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: color 0.3s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width 0.35s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.nav-sep {
  color: var(--muted);
  font-size: 14px;
  user-select: none;
}

.nav-clock {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  justify-self: end;
  font-variant-numeric: tabular-nums;
}


/* ═══════════════════════════════════════════════════════
   HERO — fixed; sections slide over it on scroll
   ═══════════════════════════════════════════════════════ */

.hero {
  position: fixed;
  inset: 0;
  height: 100vh;
  z-index: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  will-change: transform;
}

/* Spacer that creates document scroll space for the fixed hero */
.hero-spacer { height: 100vh; }

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.042;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* Orange glow orbs — very subtle */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
}

.glow-orb--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.18) 0%, transparent 70%);
  top: -12%;
  left: -8%;
  animation: glowDrift 20s ease-in-out infinite;
}

.glow-orb--2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.13) 0%, transparent 70%);
  bottom: 5%;
  right: -4%;
  animation: glowDrift 26s ease-in-out infinite reverse;
}

.glow-orb--3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
  top: 55%;
  left: 55%;
  animation: glowDrift 16s ease-in-out infinite 6s;
}

@keyframes glowDrift {
  0%   { transform: translate(0,    0)    scale(1); }
  25%  { transform: translate(28px, -36px) scale(1.06); }
  55%  { transform: translate(-18px, 22px) scale(0.96); }
  80%  { transform: translate(22px,  30px) scale(1.03); }
  100% { transform: translate(0,    0)    scale(1); }
}

/* Hero centered content */
.hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 48px) 40px 48px;
  gap: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 0;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted-lg);
  transition: border-color 0.4s, background 0.4s;
}
.hero-badge:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(249, 115, 22, 0.25);
}

/* Orange pulse dot */
.badge-pulse {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulseDot 2.4s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.55); }
  50%       { box-shadow: 0 0 0 5px rgba(249, 115, 22, 0); }
}

/* Hero headline — single line */
.hero-h1 {
  font-size: clamp(52px, 8vw, 112px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--text);
  white-space: nowrap;
}

.hero-role {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted-lg);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 10px;
}

.btn-primary {
  padding: 13px 28px;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  border-radius: 0;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: opacity 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.08);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--border-m);
  color: var(--muted-lg);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  border-radius: 0;
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text);
  transform: translateY(-3px);
}
.btn-outline svg { transition: transform 0.3s var(--ease); }
.btn-outline:hover svg { transform: translateX(3px); }


/* ═══════════════════════════════════════════════════════
   MARQUEE BAR (inside hero, at bottom)
   ═══════════════════════════════════════════════════════ */

.marquee-bar {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 16px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 100px, black calc(100% - 100px), transparent);
  mask-image: linear-gradient(to right, transparent, black 100px, black calc(100% - 100px), transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee-track span {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.3s;
}
.marquee-track span:hover { color: var(--muted-lg); }

.m-sep {
  color: rgba(255, 255, 255, 0.12) !important;
  font-size: 14px;
  letter-spacing: 0 !important;
}

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


/* ═══════════════════════════════════════════════════════
   SECTIONS — slide over the fixed hero
   ═══════════════════════════════════════════════════════ */

.section {
  position: relative;
  z-index: 10;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

/* Top edge gradient to blend with what's below */
.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-m), transparent);
  pointer-events: none;
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 108px 40px;
}

/* Work section uses a wider container so cards feel larger */
#work .section-inner {
  max-width: 1440px;
}

/* Section header — horizontal slide reveal */
.section-header {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 56px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.section-num {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.1em;
  padding-bottom: 4px;
  transition: color 0.3s;
}

.section-title {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--text);
}


/* ═══════════════════════════════════════════════════════
   WORK
   ═══════════════════════════════════════════════════════ */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
}

/* Images inside work thumbs fill the card */
.work-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.work-thumb {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
  transition: transform 0.5s var(--ease),
              border-color 0.4s,
              box-shadow 0.5s var(--ease);
}

.work-thumb--1 { background: #111; }
.work-thumb--2 { background: #0f0f0f; }
.work-thumb--3 { background: #0d0d0d; }

.work-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.work-card:hover .work-thumb {
  transform: translateY(-8px);
  border-color: rgba(249, 115, 22, 0.22);
  box-shadow: 0 24px 48px rgba(249, 115, 22, 0.06),
              0 8px 16px rgba(0, 0, 0, 0.4);
}

.work-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.35s;
}
.work-card:hover .work-thumb-overlay { opacity: 1; }

.work-play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding-left: 3px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0;
  color: var(--text);
  transition: transform 0.35s var(--ease), background 0.3s;
}
.work-card:hover .work-play-icon {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.15);
}

.work-meta { display: flex; flex-direction: column; gap: 5px; }

.work-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.work-card:hover .work-tag { color: var(--accent); }

.work-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  transition: color 0.3s;
}

.work-role {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.01em;
  line-height: 1.4;
  margin: 0;
}


/* ═══════════════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════════════ */

.services-list { display: flex; flex-direction: column; }

.service-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.4s var(--ease), border-color 0.35s;
  overflow: hidden;
}
.service-item:hover {
  padding-left: 10px;
  border-color: rgba(249, 115, 22, 0.18);
}

/* Orange left accent line */
.service-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s var(--ease);
}
.service-item:hover::before { transform: scaleY(1); }

.service-num {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  width: 22px;
  transition: color 0.3s;
}
.service-item:hover .service-num { color: var(--accent); }

.service-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.service-name {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.025em;
  transition: color 0.3s;
}

.service-desc {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.65;
  max-width: 480px;
  transition: color 0.35s;
}
.service-item:hover .service-desc { color: var(--muted-lg); }

.service-arrow {
  opacity: 0;
  color: var(--accent);
  flex-shrink: 0;
  transform: translateX(-8px);
  transition: opacity 0.35s, transform 0.4s var(--ease);
}
.service-item:hover .service-arrow {
  opacity: 1;
  transform: translateX(0);
}


/* ═══════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════ */

.about-cols {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: start;
}

.about-text-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-text {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.78;
  color: var(--muted-lg);
  letter-spacing: -0.01em;
}
.about-text--muted { color: var(--muted); }

.tools-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.tools-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-tag {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-lg);
  transition: border-color 0.3s, color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.tool-tag:hover {
  border-color: rgba(249, 115, 22, 0.3);
  color: var(--text);
  background: rgba(249, 115, 22, 0.05);
  transform: translateY(-2px);
}

/* Photo placeholder */
.about-photo-col { align-self: stretch; }

.photo-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 440px;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.4s, box-shadow 0.4s;
}

.about-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.photo-placeholder:hover {
  border-color: rgba(249, 115, 22, 0.2);
  box-shadow: 0 0 40px rgba(249, 115, 22, 0.04);
}

.photo-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
}

.photo-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.photo-label svg { opacity: 0.45; }


/* ═══════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════ */

.contact-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  max-width: 680px;
}

.contact-title {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 0.96;
  color: var(--text);
}

.contact-em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  transition: opacity 0.3s;
}

.contact-sub {
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  margin-top: -8px;
}

.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: transparent;
  border: 1px solid var(--border-m);
  color: var(--muted-lg);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.contact-cta:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text);
  transform: translateY(-3px);
}

.contact-socials {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: -4px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}
.social-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.35s var(--ease);
}
.social-link:hover { color: var(--text); }
.social-link:hover::after { width: 100%; }


/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════
   REEL VIDEO MODAL
   ═══════════════════════════════════════════════════════ */

.reel-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.reel-modal.is-open {
  opacity: 1;
  pointer-events: all;
}
.reel-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.reel-modal-inner {
  position: relative;
  z-index: 1;
  width: min(360px, 80vw);
  aspect-ratio: 9 / 16;
  max-height: 88vh;
}
.reel-modal-video {
  width: 100%;
  height: 100%;
  background: #000;
}
.reel-modal-video iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.reel-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, color 0.25s;
}
.reel-modal-close:hover {
  background: rgba(249, 115, 22, 0.2);
  color: var(--accent);
  border-color: rgba(249, 115, 22, 0.4);
}


/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */

.footer {
  position: relative;
  z-index: 10;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.015em;
}

.footer-copy { font-size: 12px; color: var(--muted); }

/* ── Navbar WhatsApp CTA ── */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border-m);
  background: transparent;
  color: var(--muted-lg);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.3s, color 0.3s;
  flex-shrink: 0;
}
.nav-cta:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text);
}

/* Mobile-only nav CTA — hidden on desktop */
.nav-cta-m { display: none; }

/* ── Sticky back button (work pages) ── */
.work-back-sticky {
  position: fixed;
  top: calc(var(--nav-h) + 14px);
  left: 32px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(8, 8, 8, 0.88);
  border: 1px solid var(--border-m);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted-lg);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-10px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), color 0.3s;
}
.work-back-sticky.is-visible {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}
.work-back-sticky:hover { color: var(--text); }
.work-back-sticky svg { flex-shrink: 0; transition: transform 0.3s var(--ease); }
.work-back-sticky:hover svg { transform: translateX(-3px); }

/* ── Gallery end CTA ── */
.gallery-cta {
  display: flex;
  justify-content: center;
  padding-top: 56px;
  margin-top: 56px;
  border-top: 1px solid var(--border);
}

/* Work "load more" button area */
.work-more {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}
.work-card--hidden { display: none; }

/* work-card as <a> element */
a.work-card {
  text-decoration: none;
  color: inherit;
  display: flex;
}


/* ═══════════════════════════════════════════════════════
   PAGE TRANSITIONS
   ═══════════════════════════════════════════════════════ */

/* Entry animation — work pages only */
/* Work page entry — dark overlay fades out (cursor stays above at z-index 9999) */
.work-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9998;
  pointer-events: none;
  animation: overlayOut 0.85s var(--ease) forwards;
}

@keyframes overlayOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* Exit animation — all pages */
body.page-exit {
  pointer-events: none;
  animation: pageExit 0.52s var(--ease) forwards;
}

@keyframes pageExit {
  to {
    opacity: 0;
    transform: scale(0.975);
  }
}

/* Hide marquee ticker on work detail pages */
.work-page .marquee-bar { display: none; }


/* ═══════════════════════════════════════════════════════
   WORK PAGE HERO
   ═══════════════════════════════════════════════════════ */

/* Work page hero content — bottom-aligned */
.wh-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--nav-h) + 32px) 120px 56px;
  max-width: none;
  width: 100%;
  gap: 20px;
}

/* Back button */
.back-link {
  position: absolute;
  top: calc(var(--nav-h) + 28px);
  left: 120px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted-lg);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.3s, gap 0.35s var(--ease);
}
.back-link:hover {
  color: var(--text);
  gap: 4px;
}
.back-link svg { transition: transform 0.3s var(--ease); flex-shrink: 0; }
.back-link:hover svg { transform: translateX(-3px); }

/* Project identity block */
.wh-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wh-category {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wh-title {
  font-size: clamp(36px, 5vw, 66px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
  color: var(--text);
}

.wh-tagline {
  font-size: 15px;
  font-weight: 400;
  color: var(--muted-lg);
  max-width: 440px;
  line-height: 1.7;
}

/* Tag pills */
.wh-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wh-tag {
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted-lg);
}

/* ── Floating project info card (bottom-right of hero) ── */
.wh-info-card {
  position: absolute;
  bottom: 56px;
  right: 120px;
  width: 300px;
  background: rgba(8, 8, 8, 0.72);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 2;
}

.wh-info-card-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wh-info-card-desc {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted-lg);
  line-height: 1.65;
}

.wh-info-card .pi-row {
  padding: 9px 0;
  font-size: 12px;
}

.wh-info-card .pi-label {
  font-size: 10px;
  letter-spacing: 0.08em;
}

/* ── Highlighted contact button in work-page navbar ── */
.nav-contact-btn {
  padding: 5px 14px !important;
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.28);
  color: var(--accent) !important;
  font-size: 11px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.3s, border-color 0.3s !important;
}
.nav-contact-btn:hover {
  background: rgba(249, 115, 22, 0.16) !important;
  border-color: rgba(249, 115, 22, 0.5) !important;
  opacity: 1 !important;
}


/* ═══════════════════════════════════════════════════════
   PROJECT MAIN CONTENT
   ═══════════════════════════════════════════════════════ */

/* Full-width hero banner */
.project-banner {
  width: 100%;
  margin-bottom: 64px;
}

/* Banner image inside the hero — atmospheric backdrop */
.wh-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
  opacity: 0.28;
  /* Darken towards bottom and left so text stays legible */
  -webkit-mask-image:
    linear-gradient(to bottom, black 40%, rgba(0,0,0,0.2) 100%),
    linear-gradient(to right, rgba(0,0,0,0.55) 0%, black 45%);
  mask-image:
    linear-gradient(to bottom, black 40%, rgba(0,0,0,0.2) 100%),
    linear-gradient(to right, rgba(0,0,0,0.55) 0%, black 45%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}

.project-banner-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.project-banner-inner img,
.project-banner-inner video,
.project-banner-inner iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

.project-banner-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.project-banner-label svg { opacity: 0.4; }

/* Description + Info two-column */
.project-details {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: start;
}

.project-desc {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pd-title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--text);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.pd-body {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.78;
  color: var(--muted-lg);
  letter-spacing: -0.01em;
}
.pd-body--muted { color: var(--muted); }

/* Info sidebar */
.project-info {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
}

.pi-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.pi-row:last-child { border-bottom: none; }

.pi-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.pi-val {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}


/* ═══════════════════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════════════════ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.gallery-item { border-radius: 0; overflow: hidden; }

.gallery-item--wide {
  grid-column: span 2;
}

.gallery-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.45s var(--ease);
}
.gallery-item--wide .gallery-placeholder { aspect-ratio: 16 / 9; }

.gallery-placeholder:hover {
  border-color: var(--border-m);
  transform: translateY(-4px);
}

.gallery-placeholder--alt  { background: #0f0f0f; }
.gallery-placeholder--alt2 { background: #0d0d0d; }

.gallery-placeholder-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  opacity: 0.35;
}

.gallery-placeholder img,
.gallery-placeholder video,
.gallery-placeholder iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}


/* ═══════════════════════════════════════════════════════
   YOUTUBE SHORTS GRID
   ═══════════════════════════════════════════════════════ */

.shorts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.shorts-item {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background: #0a0a0a;
  transition: border-color 0.4s, transform 0.45s var(--ease);
}

.shorts-item:hover {
  border-color: rgba(249, 115, 22, 0.22);
  transform: translateY(-6px);
}

/* Dark overlay — makes iframe blend with page aesthetic */
.shorts-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  pointer-events: none;
  transition: opacity 0.35s;
  z-index: 1;
}
.shorts-item:hover::after { opacity: 0; }

.shorts-item iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Full-width horizontal (16:9) video grid */
.longform-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.longform-item {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background: #0a0a0a;
  transition: border-color 0.4s, transform 0.45s var(--ease);
}

.longform-item:hover {
  border-color: rgba(249, 115, 22, 0.22);
  transform: translateY(-4px);
}

.longform-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
  pointer-events: none;
  transition: opacity 0.35s;
  z-index: 1;
}
.longform-item:hover::after { opacity: 0; }

.longform-item iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}


/* ═══════════════════════════════════════════════════════
   INSTAGRAM-LIKE CAROUSEL
   ═══════════════════════════════════════════════════════ */

.carousel-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.carousel {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  user-select: none;
}

.carousel-track {
  display: flex;
  height: 100%;
  will-change: transform;
  transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.carousel-slide--video { background: #000; }

.carousel-slide--video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Prev / Next arrows */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 34px;
  height: 34px;
  background: rgba(8, 8, 8, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.carousel-btn:hover {
  background: rgba(249, 115, 22, 0.18);
  border-color: rgba(249, 115, 22, 0.4);
  color: var(--accent);
}
.carousel-btn--prev { left: 10px; }
.carousel-btn--next { right: 10px; }

/* Dot indicators */
.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 10;
}
.carousel-dot {
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.3);
  transition: background 0.25s, width 0.25s;
  cursor: pointer;
  flex-shrink: 0;
}
.carousel-dot.active {
  background: #fff;
  width: 14px;
}

/* Slide counter badge */
.carousel-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 3px 8px;
  letter-spacing: 0.05em;
}

.carousel.is-dragging .carousel-track { transition: none; }

/* Static single-image card (same 4:5 cell, no JS) */
.static-card {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.static-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ═══════════════════════════════════════════════════════
   REEL / VITRINE FILMSTRIP  (part of #work section)
   ═══════════════════════════════════════════════════════ */

/* Reduce #work section-inner bottom padding so the strip
   feels continuous with the project grid above it */
#work .section-inner { padding-bottom: 52px; }

/* Arrow nav — sits in the section header, pushed right */
/* Viewport wrapper — hosts the overlay nav */
.reel-viewport {
  position: relative;
}

.reel-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 66vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 10;
}

.reel-viewport:hover .reel-nav {
  opacity: 1;
}

.reel-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 8, 8, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
  flex-shrink: 0;
  pointer-events: all;
}

.reel-btn:hover {
  border-color: rgba(249, 115, 22, 0.45);
  color: var(--accent);
  background: rgba(249, 115, 22, 0.12);
}

/* The visible window — fades edges left/right */
.reel-strip-wrap {
  overflow: hidden;
  width: 100%;
  padding-bottom: 100px;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 100px,
    black calc(100% - 100px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 100px,
    black calc(100% - 100px),
    transparent 100%
  );
}

/* The scrolling track — JS-driven via RAF, no CSS animation */
.reel-strip {
  display: flex;
  gap: 4px;
  width: max-content;
  will-change: transform;
}

/* Individual card */
.reel-item {
  flex-shrink: 0;
  height: 66vh;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

/* Placeholder background for items without a real image */
.reel-item--ph {
  background: #0d0d0d;
}

.reel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.75s var(--ease), filter 0.45s;
  filter: brightness(0.82) saturate(0.85);
}

/* Permanent bottom-fade on each card */
.reel-item::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.10) 44%,
    transparent 68%
  );
  pointer-events: none;
}

/* Text overlay — hidden, slides up on hover */
.reel-item-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 15px;
  opacity: 0;
  transition: opacity 0.32s;
  pointer-events: none;
}

.reel-item:hover .reel-item-overlay { opacity: 1; }

.reel-item:hover img {
  transform: scale(1.06);
  filter: brightness(0.62) saturate(1.1);
}

.reel-item-tag {
  font-size: 9px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.reel-item-label {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

/* Circular play icon — scales in on hover */
.reel-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.78);
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.82);
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s, transform 0.35s var(--ease);
  pointer-events: none;
}

.reel-item:hover .reel-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Placeholder icon for items without real images */
.reel-item--ph .reel-ph-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.06);
}

@media (max-width: 768px) {
  .reel-item { height: 52vh; }
  .reel-strip-wrap {
    -webkit-mask-image: linear-gradient(
      to right, transparent 0%, black 40px,
      black calc(100% - 40px), transparent 100%
    );
    mask-image: linear-gradient(
      to right, transparent 0%, black 40px,
      black calc(100% - 40px), transparent 100%
    );
  }
  .reel-nav { display: none; } /* arrows hidden on touch */
}


/* ═══════════════════════════════════════════════════════
   REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════ */

/* Vertical fade-up (default) */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Horizontal slide-in — section headers */
[data-reveal="slide-x"] {
  opacity: 0;
  transform: translateX(-22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal="slide-x"].revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays */
[data-reveal-delay="80"]  { transition-delay:  80ms; }
[data-reveal-delay="120"] { transition-delay: 120ms; }
[data-reveal-delay="160"] { transition-delay: 160ms; }
[data-reveal-delay="240"] { transition-delay: 240ms; }
[data-reveal-delay="320"] { transition-delay: 320ms; }
[data-reveal-delay="360"] { transition-delay: 360ms; }


/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */

@media (max-width: 960px) {
  .about-cols {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .photo-placeholder { min-height: 300px; }
  .work-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .hero-h1 {
    font-size: clamp(42px, 14vw, 80px);
    white-space: normal;
    text-align: center;
  }
  .hero-content { padding-inline: 24px; }
}

@media (max-width: 640px) {
  /* ── Navbar: logo | Contato-btn | BRT ── */
  .nav-inner { padding: 0 20px; grid-template-columns: auto 1fr auto; gap: 12px; }
  .nav-links { display: none; }
  .nav-cta-m {
    display: inline-flex;
    justify-self: center;
    font-size: 11px;
    padding: 6px 10px;
    gap: 6px;
  }
  .nav-clock { justify-self: end; }

  /* ── Sections ── */
  .section-inner { padding: 80px 24px; }
  .footer-inner { padding: 0 24px; }

  /* ── Work grid: 2 columns ── */
  .work-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .work-title { font-size: 13px; }
  .work-role  { font-size: 11px; }

  /* ── Hero actions ── */
  .hero-actions { flex-direction: column; align-items: center; width: 100%; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }

  /* ── No custom cursor on touch ── */
  body { cursor: auto; }
  .cursor, .cursor-dot { display: none; }
  body::after { display: none; }

  /* ── About: photo on top, text below ── */
  .about-photo-col { order: -1; }
  .photo-placeholder { min-height: 300px; }
  .about-photo { object-position: center 25%; }

  /* ── Work pages: shorts 2-col ── */
  .shorts-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  /* ── Work pages: back link mobile position ── */
  .back-link { left: 24px; }

  /* ── Work-more button: full width ── */
  .work-load-more { width: 100%; }

  /* ── Work page hero — mobile layout ── */
  .wh-content {
    /* max(128px, safe-area+96px) lifts content above iOS browser chrome */
    padding: calc(var(--nav-h) + 16px) 24px max(128px, calc(env(safe-area-inset-bottom, 0px) + 96px));
    gap: 8px;
    justify-content: flex-end;   /* text in lower third, below the face */
  }
  .wh-title { white-space: normal; font-size: clamp(22px, 7.5vw, 40px); }
  .wh-category { font-size: 10px; }
  .wh-tagline { font-size: 12.5px; max-width: 100%; }
  /* Tags cluttered on mobile — hidden to keep text block compact */
  .wh-tags { display: none; }
  /* Hide floating info card — overlaps content on mobile */
  .wh-info-card { display: none; }
  /* Sticky back button closer to edge */
  .work-back-sticky { left: 16px; }
  /* Gallery CTA full-width on mobile */
  .gallery-cta .btn-outline { width: 100%; justify-content: center; }

  /* ── Work pages mobile nav: Logo | Contato (right), no BRT ── */
  .work-page .nav-inner { grid-template-columns: 1fr auto; }
  .work-page .nav-clock { display: none; }
  .work-page .nav-cta-m {
    display: inline-flex;
    justify-self: end;
    font-size: 11px;
    padding: 6px 10px;
    gap: 6px;
  }
}

/* ── Touch / mobile performance — reduce GPU layer pressure ── */
@media (pointer: coarse) {
  /* Hero: only opacity animates on mobile, no filter or transform */
  .hero { will-change: opacity; }
  /* Glow orbs: blur(90px) + continuous animation = heavy GPU cost on mobile */
  .glow-orb { display: none; }
  /* Noise overlay: SVG filter is extra paint work on mobile */
  .noise { display: none; }
}
