
/* ==========================================================
   BRENNO FLORENCIO — MOBILE LAYOUT
   Loaded only at <= 860px. Desktop styles.css stays untouched.
   ========================================================== */

:root { --mobile-pad: 18px; }
html, body { max-width: 100%; overflow-x: clip; }
body { min-width: 0; }
.page-noise { opacity: .42; }
.cursor { display: none !important; }

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  height: 68px;
  padding: 10px var(--mobile-pad);
  grid-template-columns: minmax(0,1fr) auto;
  background: rgba(239,235,225,.94);
  backdrop-filter: blur(18px);
}
.brand { gap: 9px; min-width: 0; }
.brand-mark { width: 40px; height: 40px; font-size: 15px; flex: 0 0 40px; }
.brand-copy { min-width: 0; }
.brand-copy b { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-copy small { display: none; }
.header-actions { gap: 7px; }
.lang-switch { height: 32px; padding: 0 8px; gap: 5px; font-size: 8px; }
.menu-btn { width: 36px; height: 36px; }
.menu-btn span { left: 7px; width: 23px; }
.nav {
  inset: 68px 0 auto 0;
  z-index: 79;
  padding: 26px var(--mobile-pad) 30px;
  gap: 6px;
  background: rgba(239,235,225,.98);
  border-bottom: 1px solid var(--ink);
  box-shadow: 0 18px 50px rgba(0,0,0,.12);
}
.nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: 18px;
  border-bottom: 1px solid var(--line);
}

/* Never hide content behind reveal effects on phones */
.reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

/* Hero */
.hero { min-height: auto; overflow: hidden; }
#heroCanvas { display: none; }
.hero-grid {
  display: block;
  min-height: 0;
  padding: 48px var(--mobile-pad) 18px;
}
.hero-copy { max-width: none; }
.kicker {
  margin: 0 0 18px;
  font-size: 8px;
  line-height: 1.35;
  letter-spacing: .1em;
}
.hero h1 {
  width: 100%;
  max-width: 100%;
  margin: 0 0 22px;
  font-size: clamp(47px, 13.5vw, 61px);
  line-height: .82;
  letter-spacing: -.07em;
}
.hero h1 > span,
.hero h1 > em { max-width: 100%; }
.hero h1 em {
  display: inline-block;
  white-space: nowrap;
  font-size: .92em;
}
.hero-title .motion-word {
  font-size: .96em;
  padding-right: .03em;
  letter-spacing: -.045em;
}
.hero-title .motion-word::before { transform: translateX(8px); filter: blur(5px); opacity: .45; }
.hero-title .motion-word::after { transform: translateX(16px); filter: blur(9px); opacity: .22; }
.hero-text {
  max-width: 34rem;
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}
.hero-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 22px;
}
.hero-cta-row .btn {
  min-width: 0;
  min-height: 48px;
  padding: 0 13px;
  gap: 8px;
  font-size: 8px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 0;
  margin-top: 27px;
  padding-top: 16px;
}
.hero-stats div {
  min-width: 0;
  padding-right: 10px;
  border-right: 1px solid var(--line);
}
.hero-stats div:last-child { border-right: 0; padding-left: 10px; padding-right: 0; }
.hero-stats div:nth-child(2) { padding-left: 10px; }
.hero-stats strong { font-size: 17px; }
.hero-stats span { font-size: 6.5px; line-height: 1.3; }

/* Mobile: remove the decorative hero video fan entirely.
   The catalog is the real place to watch work, so the first screen stays fast and focused. */
.hero-stack { display: none !important; }
.hero-sticker, .hero-orbit, .hero-play { display: none !important; }
.hero-grid { padding-bottom: 34px; }
.hero-tape { height: 34px; font-size: 8px; }

/* About */
.about {
  display: block;
  padding: 62px var(--mobile-pad) 66px;
}
.about-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 0 18px;
  margin: 0 0 26px;
  border-right: 0;
  border-bottom: 1px solid var(--line);
}
.about-label span { margin: 0; }
.about-main { padding: 0; }
.about-main h2 { font-size: clamp(34px, 10vw, 44px); line-height: .98; margin: 0 0 26px; }
.about-copy { grid-template-columns: 1fr; gap: 14px; }
.about-copy p { font-size: 11px; }
.about-cards { grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 30px; }
.about-cards article { min-height: 118px; padding: 13px; }
.about-cards article strong { font-size: 14px; line-height: 1.05; }
.about-cards article span { font-size: 8px; }

/* Clients */
.clients { padding: 54px 0 52px; }
.clients-heading {
  display: block;
  padding: 0 var(--mobile-pad) 32px;
}
.clients-heading > span { display: block; margin-bottom: 18px; font-size: 9px; }
.clients-heading h2 {
  max-width: 520px;
  font-size: clamp(37px, 11vw, 49px);
  line-height: .93;
}
.client-track { height: 70px; gap: 34px; }
.client-track span { font-size: 21px; }
.creator-line {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px 14px;
  padding: 28px var(--mobile-pad) 0;
  font-size: 8px;
  line-height: 1.3;
}
.creator-line b { grid-column: 1 / -1; }
.creator-line span { min-width: 0; }

/* Work catalog */
.work { padding: 68px var(--mobile-pad) 82px; }
.work-head { margin-bottom: 34px; }
.work-head h2 {
  margin: 0;
  font-size: clamp(43px, 12.8vw, 54px);
  line-height: .82;
  letter-spacing: -.07em;
}
.catalog-shell { display: block; min-height: 0; border-top: 1px solid var(--ink); }
.filters {
  position: sticky;
  top: 68px;
  z-index: 25;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 0;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(239,235,225,.96);
  backdrop-filter: blur(14px);
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  width: auto;
  min-width: max-content;
  min-height: 36px;
  padding: 0 11px;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 8px;
}
.filter.active { background: var(--ink); color: white; padding: 0 12px; }
.filter b { font-size: 7px; }
.catalog-stage { padding: 0; }
.catalog-toolbar { height: 54px; font-size: 8px; }
.shuffle { font-size: 8px; }
.drive-sync-state { margin-left: 5px; transform: scale(.9); transform-origin: left center; }
.project-grid {
  grid-template-columns: 1fr;
  gap: 11px;
  padding-top: 14px;
}
.project-card,
.project-card:nth-child(5n+1),
.project-card:nth-child(7n+2) {
  min-height: 0;
  height: auto;
  aspect-ratio: 5 / 4;
}
.project-card.is-portrait { aspect-ratio: 4 / 4.6; }
.project-top { left: 10px; right: 10px; top: 10px; }
.project-bottom { left: 12px; right: 12px; bottom: 12px; }
.project-bottom h3 { font-size: 21px; line-height: .95; max-width: 260px; }
.project-bottom small { font-size: 7px; }
.project-chip { padding: 5px 6px; font-size: 6.5px; }
.project-num { width: 26px; height: 26px; }
.play-pill { flex-basis: 42px; height: 42px; }

/* Manifesto */
.manifesto-strip { height: 38px; font-size: 8px; }
.manifesto-inner { padding: 54px var(--mobile-pad); gap: 26px; }
.manifesto blockquote { font-size: clamp(37px, 10vw, 47px); line-height: .92; }
.manifesto-doodle { width: 112px; height: 112px; }

/* Resume */
.resume { padding: 62px var(--mobile-pad) 68px; }
.resume-card { display: block; min-height: 0; box-shadow: 6px 6px 0 var(--ink); }
.resume-paper { padding: 36px 22px; }
.resume-paper h2 { font-size: clamp(46px, 13vw, 58px); margin: 24px 0 20px; }
.resume-paper p { font-size: 11px; }
.resume-visual { display: none; }
.resume-paper .btn { width: 100%; }

/* Contact */
.contact { padding: 70px var(--mobile-pad) 54px; }
.contact-top { display: block; }
.contact-top .section-no { display: block; margin-bottom: 20px; }
.contact-top h2 { font-size: clamp(48px, 13vw, 61px); line-height: .8; }
.contact-bottom { display: block; margin-top: 44px; padding-top: 22px; }
.contact-mail { display: block; font-size: 17px; overflow-wrap: anywhere; }
.socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  margin-top: 28px;
  justify-content: stretch;
}
.socials a { min-height: 36px; display: flex; align-items: center; }
.instagram-link { grid-column: 1 / -1; justify-content: center; }
footer { min-height: 92px; padding: 22px var(--mobile-pad); gap: 8px; }

/* Video modal */
.project-modal {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
}
.modal-shell { border: 0; grid-template-rows: minmax(0, 56dvh) auto; }
.modal-player { min-height: 0; }
.modal-close { width: 42px; height: 42px; top: 10px; right: 10px; }
.modal-info { display: block; padding: 18px var(--mobile-pad) 20px; overflow-y: auto; }
.modal-info h2 { font-size: 31px; margin: 7px 0 10px; }
.modal-info p { font-size: 9px; line-height: 1.5; }
.modal-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
.modal-actions .btn { width: 100%; }
.modal-nav { width: 100%; justify-content: space-between; }

@media (max-width: 430px) {
  :root { --mobile-pad: 15px; }
  .topbar { padding-left: 14px; padding-right: 12px; }
  .brand-copy b { font-size: 10px; }
  .hero-grid { padding-top: 40px; }
  .hero h1 { font-size: clamp(45px, 13.1vw, 54px); }
  .hero h1 em { font-size: .87em; }
  .hero-title .motion-word { font-size: .91em; }
  .hero-cta-row { grid-template-columns: 1fr; }
  .hero-cta-row .btn { width: 100%; }
  .hero-stack { height: 276px; --stack-scale: .50; }
  .about-cards { grid-template-columns: 1fr 1fr; }
  .clients-heading h2 { font-size: clamp(35px, 10.5vw, 44px); }
  .work-head h2 { font-size: clamp(42px, 12vw, 50px); }
  .project-card.is-portrait { aspect-ratio: 4 / 4.8; }
}

@media (max-width: 360px) {
  .brand-copy { display: none; }
  .hero h1 { font-size: 43px; }
  .hero-stats strong { font-size: 15px; }
  .hero-stats span { font-size: 6px; }
  .about-cards { grid-template-columns: 1fr; }
  .creator-line { grid-template-columns: 1fr; }
  .socials { grid-template-columns: 1fr; }
}

/* ==========================================================
   MOBILE POLISH 2 — texture, marquee and non-emoji icons
   ========================================================== */

/* The desktop grain is screen-fixed. On mobile that made the texture feel
   stuck to the glass and much too strong. Make it part of the page instead. */
body { position: relative; }
.page-noise {
  position: absolute !important;
  inset: 0 0 auto 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  opacity: .065 !important;
  background-repeat: repeat !important;
  background-size: 320px auto !important;
  mix-blend-mode: multiply;
}
.page-noise::after {
  opacity: .12 !important;
  background-size: 620px auto !important;
  background-repeat: repeat !important;
}

/* The paper texture inside light sections was also too visible on Retina. */
.hero,
.work {
  background-size: 1050px auto !important;
  background-color: var(--paper2) !important;
  background-blend-mode: soft-light;
}

/* Keep the client log moving on phones, even when iOS reports reduced motion.
   User explicitly wants this strip animated. */
.client-marquee {
  overflow: hidden !important;
  touch-action: pan-y;
}
.client-track {
  width: max-content !important;
  min-width: max-content !important;
  flex-wrap: nowrap !important;
  animation: mobileClientMarquee 22s linear infinite !important;
  will-change: transform;
  transform: translate3d(0,0,0);
}
@keyframes mobileClientMarquee {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-50%,0,0); }
}

/* iOS sometimes renders these Unicode symbols as colorful emoji.
   Hide the characters on mobile and draw interface icons with CSS instead. */
.play-pill {
  font-size: 0 !important;
  color: #fff;
}
.play-pill::before,
.hero-play b::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
  margin-left: 2px;
}
.hero-play b {
  display: grid;
  place-items: center;
  font-size: 0 !important;
  color: var(--ink);
}

.hero-cta-row .btn b {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  font-size: 0 !important;
}
/* Down-right arrow for “Ver o catálogo” */
.hero-cta-row .btn-dark b::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  right: 3px;
  bottom: 3px;
  border-right: 2px solid var(--acid);
  border-bottom: 2px solid var(--acid);
}
.hero-cta-row .btn-dark b::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 2px;
  background: var(--acid);
  transform: rotate(45deg);
  right: 4px;
  bottom: 7px;
  transform-origin: right center;
}
/* Simple four-point mark for “Me surpreenda” */
.hero-cta-row .btn-paper b::before,
.hero-cta-row .btn-paper b::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--ink);
  transform: translate(-50%,-50%);
}
.hero-cta-row .btn-paper b::before { width: 14px; height: 2px; }
.hero-cta-row .btn-paper b::after { width: 2px; height: 14px; }

/* Same treatment for shuffle's trailing sparkle. */
.shuffle { font-size: 0 !important; display: inline-flex; align-items: center; gap: 8px; }
.shuffle span { font-size: 8px !important; }
.shuffle::after {
  content: "+";
  font: 900 13px/1 Arial, Helvetica, sans-serif;
  transform: rotate(45deg);
  display: inline-block;
}
