/* =========================================================
   OFFSET — estilos globais e componentes
   ========================================================= */

/* Fontes locais opcionais: se não existirem, entram as fontes de fallback. */
@font-face {
  font-family: "OFFSET-Texto";
  src: url("assets/fonts/texto.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "OFFSET-Titulo";
  src: url("assets/fonts/texto.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "OFFSET-Impacto";
  src: url("assets/fonts/impacto.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "OFFSET-Detalhe";
  src: url("assets/fonts/detalhe.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "OFFSET-Rodape";
  src: url("assets/fonts/detalhe.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --orange: #ff4b18;
  --orange-dark: #8f2a0d;
  --black: #050505;
  --surface: #0a0a0a;
  --white: #f8f6f2;
  --muted: #8a8581;
  --page-pad: clamp(1.25rem, 5.2vw, 4.75rem);
  --content-width: 1400px;
  --ease: 220ms ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
  background: var(--black);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--black);
  color: var(--white);
  font-family: "OFFSET-Texto", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

img,
video {
  display: block;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

.section-shell {
  padding-right: var(--page-pad);
  padding-left: var(--page-pad);
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  font-family: "OFFSET-Detalhe", Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.section-kicker i {
  display: block;
  flex: 1;
  min-width: 2rem;
  height: 0.75rem;
  background: linear-gradient(
    to bottom,
    transparent 0 45%,
    var(--orange) 45% 60%,
    transparent 60%
  );
  opacity: 0.55;
}

/* =========================================================
   ABERTURA COM ANIMAÇÃO AO ROLAR
   ========================================================= */

.offset-intro {
  position: relative;
  height: 280vh;
  background: var(--black);
}

.intro-stage {
  position: sticky;
  top: 0;
  display: grid;
  width: 100%;
  height: 100svh;
  min-height: 420px;
  place-items: center;
  overflow: hidden;
  background: var(--black);
}

.intro-logo,
.intro-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5%;
  will-change: opacity, transform;
}

.intro-logo {
  opacity: 1;
  visibility: visible;
  filter: blur(0);
}

.intro-logo img {
  width: min(72vw, 250px);
  max-height: 55vh;
  object-fit: contain;
}

.intro-title {
  visibility: hidden;
  opacity: 0;
  transform: translateY(2rem);
}

.intro-title h1 {
  margin: 0;
  color: var(--white);
  font-family: "OFFSET-Impacto", Impact, sans-serif;
  font-size: clamp(2.5rem, 4vw, 5rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: 0.02em;
  text-align: center;
}

.intro-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  color: var(--white);
  font-family: "OFFSET-Detalhe", Arial, sans-serif;
  font-size: 0.625rem;
  letter-spacing: 0.20em;
  transform: translateX(-50%);
}

.intro-scroll {
  opacity: 1;
  transition: opacity 650ms ease, visibility 650ms ease;
}

.intro-scroll.is-hidden {
  opacity: 0;
  visibility: hidden;
}

/* =========================================================
   SOBRE A OFFSET
   ========================================================= */

.about {
  display: block;
  min-height: 0;
  padding-top: clamp(3rem, 7vw, 6rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 30%);
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.about-copy {
  position: relative;
  z-index: 1;
  max-width: 850px;
}

.about p {
  max-width: 760px;
  margin: 1.5rem 0 0;
  font-size: clamp(0.78rem, 1.15vw, 0.95rem);
  font-weight: 500;
  line-height: 1.7;
  text-transform: uppercase;
}

.about p + p {
  margin-top: 1rem;
}

.about p strong {
  color: var(--orange);
  text-decoration: underline;
}

.this-is {
  margin: clamp(3rem, 8vw, 6.5rem) 0 0;
  color: var(--white);
  font-family: "OFFSET-Impacto", Impact, sans-serif;
  font-size: clamp(3rem, 9vw, 1.5rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: 0.02em;
}

/* =========================================================
   VIDEOCLIPES
   ========================================================= */

.portfolio {
  padding-top: 1rem;
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.portfolio-heading,
.photo-heading,
.video-heading {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  margin: 1rem 0 1.25rem;
}

.portfolio-heading h2,
.photo-heading h2,
.video-heading h2 {
  margin: 0;
  color: var(--orange);
  font-family: "OFFSET-Impacto", Impact, sans-serif;
  font-size: clamp(2.5rem, 9vw, 1.5rem);
  font-weight: 900;
  font-style: italic;
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-align: right;
}

.portfolio-heading p {
  display: none;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.5rem, 1.2vw, 1rem);
}

.video-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 150px;
  aspect-ratio: 1.65 / 1;
  place-items: center;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #171717;
  color: var(--white);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  isolation: isolate;
}

.video-card::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--card-image, linear-gradient(135deg, #2a2a2a, #101010)) center / cover no-repeat;
  content: "";
  opacity: 0.82;
  filter: grayscale(100%);
  transition: transform 350ms ease, opacity 250ms ease, filter 250ms ease;
}

.video-card:hover::before,
.video-card:focus-visible::before {
  transform: scale(1.045);
  opacity: 1;
  filter: grayscale(0%);
}

.play-icon {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  padding-left: 0rem;
  border: 0.5px solid currentColor;
  border-radius: 50%;
  background: rgb(255 255 255 / 25%);
  color: var(--white);
}

.play-icon svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.video-name {
  position: absolute;
  right: 0.9rem;
  bottom: 0.8rem;
  left: 0.9rem;
  font-family: "OFFSET-Titulo", Arial, sans-serif;
  font-size: clamp(0.7rem, 1.1vw, 0.9rem);
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgb(0 0 0 / 90%);
}

.portfolio-footer {
  display: flex;
  justify-content: center;
  padding-top: 2.5rem;
}

.more-link,
.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.85rem 1.15rem;
  background: var(--orange-dark);
  border-radius: 10px;
  color: var(--white);
  font-family: "OFFSET-Titulo", Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: background var(--ease), transform var(--ease);
}

.more-link:hover,
.contact-link:hover {
  background: var(--orange);
  transform: translateY(-2px);
}

/* =========================================================
   FOTOGRAFIAS
   ========================================================= */

.photo-portfolio,
.political-videos,
.after-videos {
  width: 100%;
  padding: clamp(3.5rem, 8vw, 7rem) var(--page-pad);
  overflow: hidden;
  background: var(--black);
}

.section-heading,
.photo-catalog,
.video-catalog,
.photo-hint,
.video-hint {
  width: 100%;
  max-width: var(--content-width);
  margin-right: auto;
  margin-left: auto;
}

.photo-heading {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.photo-catalog,
.video-catalog {
  position: relative;
  display: flex;
  align-items: center;
}

.photo-track,
.video-track {
  display: flex;
  width: 100%;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.25rem 0 0.75rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}

.photo-track::-webkit-scrollbar,
.video-track::-webkit-scrollbar {
  display: none;
}

.gif-track img:not([src]) {
  opacity: 0;
}

.photo-item {
  flex: 0 0 calc((100% - 2.25rem) / 4);
  min-width: 170px;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: #171717;
  scroll-snap-align: start;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 350ms ease;
}

.photo-item:hover img {
  transform: scale(1.025);
}

.photo-arrow,
.video-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  padding: 0 0 0.2rem;
  border: 1px solid #555;
  border-radius: 0.35rem;
  background: rgb(5 5 5 / 92%);
  color: var(--white);
  font-family: Arial, sans-serif;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.photo-arrow:hover,
.video-arrow:hover {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--black);
}

.photo-prev,
.video-prev {
  left: -1rem;
}

.photo-next,
.video-next {
  right: -1rem;
}

.photo-hint,
.video-hint {
  margin-top: 0.75rem;
  margin-bottom: 0;
  color: #666;
  font-family: "OFFSET-Detalhe", Arial, sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
}

/* =========================================================
   GIFS — CONTEÚDOS POLÍTICOS
   ========================================================= */

.video-heading {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.video-track {
  gap: 1rem;
}

.political-video-item {
  flex: 0 0 calc((100% - 3rem) / 4);
  min-width: 0;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border: 1px solid #242424;
  background: #111;
  scroll-snap-align: start;
  transition: border-color var(--ease);
}

.political-video-item:hover {
  border-color: var(--orange);
}

.political-video-item img,
.after-video-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #080808;
}

.political-footer {
  display: flex;
  justify-content: center;
  padding-top: 2.5rem;
}

/* =========================================================
   GIFS — AFTERMOVIES
   ========================================================= */

.video-heading2 {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.video-track2 {
  gap: 1rem;
}

.after-video-item {
  flex: 0 0 calc((100% - 1rem) / 4);
  min-width: 0;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border: 1px solid #242424;
  background: #111;
  scroll-snap-align: start;
  transition: border-color var(--ease);
}

.after-video-item:hover {
  border-color: var(--orange);
}


.after-footer {
  display: flex;
  justify-content: center;
  padding-top: 2.5rem;
}

/* =========================================================
   CONTATO
   ========================================================= */

.contact {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 10rem;
  padding-top: 5rem;
  padding-bottom: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid #242424;
}

.contact h2 {
  margin: 1.75rem 0 0;
  font-family: "OFFSET-Impacto", Impact, sans-serif;
  font-size: clamp(2.5rem, 9vw, 1.5rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.contact-link {
  flex-shrink: 0;
}

/* =========================================================
   RODAPÉ
   ========================================================= */

.footer {
  width: 100%;
  padding: 2.8rem var(--page-pad) 1.25rem;
  border-top: 1px solid #242424;
  background: var(--surface);
}

.footer-container,
.footer-bottom {
  width: 100%;
  max-width: var(--content-width);
  margin-right: auto;
  margin-left: auto;
}

.footer-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
}

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

.footer-brand {
  display: inline-block;
  width: clamp(150px, 18vw, 230px);
  transition: opacity var(--ease);
}

.footer-brand:hover {
  opacity: 0.7;
}

.footer-brand img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.social-button {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 0.5rem;
  background: #141414;
  color: var(--white);
  transition: background var(--ease), color var(--ease), transform var(--ease);
}

.social-button:hover {
  background: var(--orange);
  color: var(--white);
  transform: translateY(-2px);
}

.social-button svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-button .icon-fill {
  fill: currentColor;
  stroke: none;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0rem;
  padding-top: 1.5rem;
}

.footer-contact {
  color: #999;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--ease);
}

.footer-contact:hover {
  color: var(--white);
}

.footer-bottom {
  margin-top: 2.5rem;
}

.footer-bottom p {
  margin: 0;
  color: #666;
  font-family: "OFFSET-Rodape", Arial, sans-serif;
  font-size: 0.625rem;
  line-height: 1.6;
  letter-spacing: 0.1em;
  text-align: center;
}

/* =========================================================
   RESPONSIVIDADE
   ========================================================= */

@media (min-width: 1500px) {
  .section-shell {
    padding-right: max(var(--page-pad), calc((100vw - var(--content-width)) / 2));
    padding-left: max(var(--page-pad), calc((100vw - var(--content-width)) / 2));
  }
}

@media (max-width: 1024px) {
  .photo-item {
    flex-basis: calc((100% - 1.5rem) / 3);
  }

  .political-video-item {
    flex-basis: calc((100% - 2rem) / 3);
  }

  .photo-portfolio,
  .political-videos,
  .after-videos { 
    padding-right: 6%;
    padding-left: 6%;
  }
}

@media (max-width: 650px) {
  :root {
    --page-pad: 6%;
  }

  .offset-intro {
    height: 230vh;
  }

  .intro-logo img {
    width: min(72vw, 180px);
    max-height: 45vh;
  }

  .intro-title h1 {
    font-size: clamp(2rem, 17vw, 1rem);
  }

  .intro-scroll {
    bottom: 1.1rem;
    font-size: 0.55rem;
  }

  .about-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .about-photo-frame {
    width: min(72%, 300px);
    max-width: 100%;
    justify-self: center;
  }

  .about {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
  }

  .about p {
    margin-top: 1.25rem;
    font-size: 0.5rem;
    line-height: 1.65;
  }

  .this-is {
    margin-top: 3rem;
    font-size: clamp(1rem, 13vw, 2rem);
  }

  .portfolio {
    padding-top: 1rem;
    padding-bottom: 4rem;
  }

  .portfolio-heading h2,
  .photo-heading h2,
  .video-heading h2 {
    font-size: clamp(1.5rem, 9vw, 1rem);
  }

  .video-grid {
    gap: 0.5rem;
  }

  .video-card {
    min-height: 115px;
    aspect-ratio: 1.1 / 1;
  }

  .play-icon {
    width: 2.25rem;
    height: 2.25rem;
  }

  .video-name {
    right: 0.5rem;
    bottom: 0.5rem;
    left: 0.5rem;
    font-size: 0.45rem;
  }

  .photo-portfolio,
  .political-videos,
  .after-videos { 
    padding: 3.5rem var(--page-pad);
  }

  .photo-item {
    flex-basis: 72%;
    min-width: 0;
  }

  .political-video-item,
  .after-video-item {
    flex-basis: 74%;
  }

  .photo-track,
  .video-track {
    gap: 0.75rem;
  }

  .photo-arrow,
  .video-arrow {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1.6rem;
  }

  .photo-prev,
  .video-prev {
    left: -0.65rem;
  }

  .photo-next,
  .video-next {
    right: -0.65rem;
  }

  .contact {
    display: block;
    padding-top: 1.5rem;
    padding-bottom: 3rem;
  }

  .contact h2 {
    font-size: clamp(1.5rem, 12vw, 1rem);
  }

  .contact-link {
    margin-top: 1.75rem;
  }

  .footer {
    padding-top: 2.25rem;
  }

  .footer-container {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-brand {
    width: 150px;
  }

  .footer-right {
    align-items: flex-start;
    padding-top: 0;
  }

  .footer-bottom {
    margin-top: 2rem;
  }

  .footer-bottom p {
    font-size: 0.55rem;
    text-align: left;
  }
}

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

  .video-card {
    aspect-ratio: 1.5 / 1;
  }

  .section-kicker {
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
