/* Lucas Bianchin — portfólio
   Identidade adaptada do site de referência em exemplos/. */

@font-face {
  font-family: "Highway Motel Sans";
  src: url("../fonts/HighwayMotelSans-Regular.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #161616;
  --cream: #F7F6F0;
  --card: #FEFAE7;
  --lime: #C8FF2E;
  --lime-hover: #b5ee1d;
  --red: #F8330B;
  --rust: #cf2b09;
  --crimson: #a52207;
  --wine: #7c1a06;
  --burgundy: #580D14;
  --deep: #3a0802;
  --white: #fff;
  --muted: #4B4548;
  --line: rgba(22, 22, 22, 0.12);
  --display: "Highway Motel Sans", "Arial Black", Impact, sans-serif;
  --body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --shadow: 2.5px 2.5px 0 var(--ink);
  --shadow-hover: 4px 4px 0 var(--ink);
  --card-shadow: 0 16px 36px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 28px 50px rgba(0, 0, 0, 0.16), 0 8px 16px rgba(0, 0, 0, 0.08);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

figure, ul, ol, dl { margin: 0; }

button, a { font: inherit; }

a { color: inherit; text-decoration: none; }

button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  padding: 8px 14px;
  background: var(--lime);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-weight: 800;
}

.skip:focus { top: 16px; }

.wrap {
  width: min(1140px, calc(100% - 32px));
  margin-inline: auto;
}

.center { text-align: center; }

.swatch-ink { background: var(--ink); }
.swatch-lime { background: var(--lime); }
.swatch-cream { background: var(--card); }
.swatch-rust { background: var(--rust); }
.swatch-crimson { background: var(--crimson); }
.swatch-wine { background: var(--wine); }
.swatch-burgundy { background: var(--burgundy); }
.swatch-deep { background: var(--deep); }

/* Hero ------------------------------------------------------------------- */

.hero {
  padding: 72px 0 48px;
  overflow: clip;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge {
  margin: 0 0 28px;
}

.hero-badge span {
  display: inline-flex;
  background: var(--ink);
  color: var(--lime);
  border: 1.5px solid var(--white);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s var(--bounce);
}

.hero-badge span:hover { transform: rotate(0deg) scale(1.03); }

.logo-bob {
  margin-bottom: 18px;
  animation: bob 3.5s ease-in-out infinite;
  transform-origin: center bottom;
}

.brand-mark {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(22, 22, 22, 0.12));
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-4deg); }
}

.hero-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero-title span { display: block; }

.hero-lead {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.areas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 760px;
  margin: 18px 0 0;
  padding: 0;
}

.areas a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 0.92rem;
  font-weight: 650;
  font-weight: 600;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.areas a:nth-child(3),
.areas a:nth-child(6) { background: var(--lime); }

.areas a:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hover);
  background: var(--lime);
}

.hero-cta { margin: 28px 0 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 16px 10px 20px;
  background: var(--lime);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: transform 0.35s var(--bounce), box-shadow 0.35s var(--bounce), background 0.2s ease;
}

.btn:hover {
  background: var(--lime-hover);
  transform: translate(-2px, -2px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn:hover .arrow { transform: translateX(3px); }

.arrow {
  width: 22px;
  height: 22px;
  flex: none;
  transition: transform 0.35s var(--bounce);
}

/* Card fan --------------------------------------------------------------- */

.hero-cards {
  width: 100%;
  margin-top: 18px;
  padding: 24px 0 36px;
  perspective: 1200px;
}

.cards-deck {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
}

.deck-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 168px;
  min-height: 258px;
  flex: none;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transform-origin: center 80%;
  transition: transform 0.35s var(--bounce), box-shadow 0.35s var(--bounce);
}

.deck-card[data-card="1"] { transform: rotate(-6deg) translateY(12px); z-index: 1; }
.deck-card[data-card="2"] { transform: rotate(-3deg) translateY(0); z-index: 2; }
.deck-card[data-card="3"] { transform: rotate(0deg) translateY(-8px); z-index: 3; }
.deck-card[data-card="4"] { transform: rotate(2deg) translateY(-6px); z-index: 4; }
.deck-card[data-card="5"] { transform: rotate(5deg) translateY(4px); z-index: 5; }
.deck-card[data-card="6"] { transform: rotate(8deg) translateY(18px); z-index: 6; }

.deck-card:hover {
  transform: translateY(-24px) rotate(0deg) scale(1.06);
  box-shadow: var(--card-shadow-hover);
  z-index: 8;
}

.card-media {
  display: grid;
  place-items: center;
  height: 168px;
}

.card-word {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}

.swatch-lime .card-word,
.swatch-cream .card-word { color: var(--ink); }

.swatch-ink .card-word { color: var(--lime); }

.card-caption {
  position: relative;
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 78px;
  padding: 14px 12px 12px;
  font-size: 0.75rem;
  font-weight: 650;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.card-caption::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 0;
  right: 0;
  height: 8px;
  background-repeat: repeat-x;
  background-size: 14px 8px;
}

.tag-light .card-caption { background: var(--white); color: var(--ink); }
.tag-light .card-caption::before {
  background-image: radial-gradient(circle at 7px 8px, var(--white) 7px, transparent 0);
}

.tag-dark .card-caption { background: var(--burgundy); color: var(--white); }
.tag-dark .card-caption::before {
  background-image: radial-gradient(circle at 7px 8px, var(--burgundy) 7px, transparent 0);
}

/* Sections --------------------------------------------------------------- */

.section { padding: 88px 0 96px; }

.section-dots {
  background-image: radial-gradient(rgba(22, 22, 22, 0.14) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
}

.squiggle {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.squiggle svg {
  width: 100%;
  min-width: 880px;
  height: 24px;
}

.kicker {
  display: flex;
  justify-content: center;
  margin: 0 0 18px;
}

.kicker,
.contact .kicker {
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section .kicker,
.contact .kicker {
  display: flex;
}

.kicker {
  width: fit-content;
  margin-inline: auto;
  padding: 4px 16px;
  background: var(--lime);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
  transition: transform 0.35s var(--bounce);
}

.kicker:hover { transform: rotate(0deg) scale(1.04); }

.section-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.15rem, 5.2vw, 4.3rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}

.section-title-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.section-title-light { color: var(--card); }

.stamp {
  display: inline-block;
  padding: 0 14px 2px;
  background: var(--lime);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3.5px 3.5px 0 var(--ink);
  transform: rotate(-2.5deg);
  line-height: 1.05;
  transition: transform 0.35s var(--bounce), box-shadow 0.35s var(--bounce);
}

.stamp:hover {
  transform: rotate(0deg) scale(1.04);
  box-shadow: 5px 5px 0 var(--ink);
}

.section-lead {
  max-width: 38rem;
  margin: 22px auto 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.35;
}

.section-lead-light { color: var(--card); }

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Tools ------------------------------------------------------------------ */

.tools,
.social-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.tools li,
.social-logos li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 108px;
  font-size: 0.78rem;
  font-weight: 700;
}

.social-logos li { width: 140px; font-size: 0.92rem; }

.tools img,
.social-logos img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(3px 3px 0 var(--ink));
  transition: transform 0.35s var(--bounce);
}

.social-logos img { width: 112px; height: 112px; }

@media (hover: hover) {
  .tools li:hover img,
  .social-logos li:hover img {
    transform: translate(-2px, -4px) rotate(-3deg);
  }
}

/* Frames ----------------------------------------------------------------- */

.frame {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  text-align: left;
  transition: transform 0.35s var(--bounce), box-shadow 0.35s ease;
}

@media (hover: hover) {
  .frame:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
  }
}

.frame-media {
  display: grid;
  place-items: center;
  width: 100%;
}

.frame-mark {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.frame figcaption,
.browser-screen p,
.phone-screen p {
  margin: 0;
  padding: 12px 14px 14px;
  font-size: 0.92rem;
  font-weight: 700;
}

.browser-screen p,
.phone-screen p {
  padding: 0;
  color: var(--card);
  font-family: var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ratio-wide { aspect-ratio: 16 / 9; }
.ratio-post { aspect-ratio: 4 / 5; }
.ratio-story { aspect-ratio: 9 / 16; }
.ratio-banner { aspect-ratio: 16 / 7; }
.ratio-card { aspect-ratio: 3 / 2; }
.ratio-folder { aspect-ratio: 3 / 4; }
.ratio-logo { aspect-ratio: 1 / 1; }
.ratio-photo { aspect-ratio: 4 / 5; }

.gallery-3,
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.social-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.story-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.story-row .frame:first-child { grid-column: 2; }
.story-row .frame:last-child { grid-column: 3; }

.bento,
.mosaic {
  display: grid;
  gap: 16px;
  margin-top: 36px;
  justify-items: stretch;
}

.bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.mosaic-a { grid-area: a; }
.mosaic-b { grid-area: b; }
.mosaic-c { grid-area: c; }
.mosaic-d { grid-area: d; }

/* Video poster ----------------------------------------------------------- */

.video-slot { margin: 36px auto 0; }

.video-frame {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--ink);
  border-radius: 24px;
  box-shadow: var(--card-shadow), 6px 6px 0 var(--ink);
  background:
    radial-gradient(circle at 18% 20%, rgba(200, 255, 46, 0.18), transparent 28%),
    radial-gradient(circle at 84% 78%, rgba(248, 51, 11, 0.45), transparent 34%),
    var(--ink);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.video-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(254, 250, 231, 0.2) 1.3px, transparent 1.3px);
  background-size: 22px 22px;
  mask-image: linear-gradient(#000 20%, transparent 85%);
  pointer-events: none;
}

.video-frame img {
  position: relative;
  width: min(120px, 18vw);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.video-kicker,
.video-name { position: relative; margin: 0; }

.video-kicker {
  padding: 4px 12px;
  background: var(--lime);
  color: var(--ink);
  border: 1.5px solid var(--card);
  border-radius: 999px;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.video-name {
  color: var(--card);
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.video-slot figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

@media (hover: hover) {
  .video-frame:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover), 8px 8px 0 var(--ink);
  }
}

/* Feature panel / tabs --------------------------------------------------- */

.feature-panel,
.panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: center;
  margin-top: 36px;
  padding: 36px;
  border: 2.5px solid var(--ink);
  border-radius: 28px;
  box-shadow: var(--card-shadow), 6px 6px 0 var(--ink);
  text-align: left;
  color: var(--white);
}

.feature-copy .section-lead,
.panel .section-lead {
  margin: 0;
  color: var(--white);
}

.feature-copy .tools,
.panel .tools { justify-content: flex-start; }

.panel h3,
.info-card h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.tabs {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  max-width: 1140px;
  margin: 36px 0 -2px;
  padding-left: 28px;
}

.tab {
  min-height: 52px;
  padding: 0 22px;
  background: rgba(22, 22, 22, 0.08);
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.tab:hover { background: rgba(22, 22, 22, 0.16); }

.tab.is-active[data-tab="web"] { background: var(--rust); color: var(--white); }
.tab.is-active[data-tab="seo"] { background: var(--wine); color: var(--white); }

.tab-stage { text-align: left; }

.js .panel { display: none; }
.js .panel.is-active { display: grid; }

.panel.is-active { animation: rise 0.35s var(--ease); }

@keyframes rise {
  from { opacity: 0.55; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.browser {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 6px 6px 0 rgba(22, 22, 22, 0.35);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: var(--white);
  border-bottom: 2px solid var(--ink);
}

.dot {
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
}

.dot:nth-child(2) { background: var(--red); }
.dot:nth-child(3) { background: var(--ink); }

.browser-url {
  flex: 1;
  height: 22px;
  margin-left: 8px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
}

.browser-screen {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  min-height: 240px;
  aspect-ratio: 16 / 10;
  padding: 24px;
  text-align: center;
}

.window { height: 100%; }
.window .browser-screen { flex: 1; aspect-ratio: auto; min-height: 320px; }

.devices {
  display: grid;
  grid-template-columns: 200px 200px minmax(0, 1fr);
  gap: 18px;
  margin-top: 36px;
  align-items: end;
}

.phone {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 14px 12px 16px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 36px;
  box-shadow: 5px 5px 0 var(--ink);
}

.phone-notch {
  width: 72px;
  height: 8px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: var(--ink);
}

.phone-screen {
  display: grid;
  flex: 1;
  place-items: center;
  align-content: center;
  gap: 12px;
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  background: var(--ink);
  text-align: center;
}

/* Experience and contact ------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 980px;
  margin: 40px auto 0;
  text-align: left;
}

.info-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 36px 32px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 24px;
  box-shadow: var(--card-shadow);
  transition: transform 0.35s var(--bounce), box-shadow 0.35s ease;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 500;
}

.info-card-featured {
  background: var(--burgundy);
  color: var(--white);
  box-shadow: 6px 6px 0 var(--ink), 0 16px 36px rgba(88, 13, 20, 0.28);
}

.info-card-featured p { color: var(--card); }

@media (hover: hover) {
  .info-card:hover { transform: translateY(-8px); box-shadow: var(--card-shadow-hover); }
  .info-card-featured:hover { box-shadow: 8px 8px 0 var(--ink), 0 20px 40px rgba(88, 13, 20, 0.35); }
}

.slots,
.channels {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.slots li,
.channels div {
  padding: 14px 0;
  border-top: 1.5px solid var(--line);
  font-weight: 700;
}

.info-card-featured .slots li { border-top-color: rgba(255, 255, 255, 0.22); }

.info-card .btn { margin-top: 26px; align-self: flex-start; }

.channels div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.channels dt { font-weight: 800; }
.channels dd {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.15rem;
}

.contact {
  padding: 96px 0 108px;
  background:
    radial-gradient(circle at 12% 18%, rgba(200, 255, 46, 0.08), transparent 24%),
    radial-gradient(circle at 88% 80%, rgba(248, 51, 11, 0.22), transparent 28%),
    var(--ink);
}

.contact-brand {
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
}

.contact-brand img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin-bottom: 12px;
}

/* Footer ----------------------------------------------------------------- */

.site-footer {
  padding: 36px 0 42px;
  background: var(--cream);
  border-top: 2px solid var(--ink);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.footer-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  transition: transform 0.35s var(--bounce);
}

.footer-brand a:hover img { transform: rotate(-6deg) scale(1.06); }

.footer-brand p { margin: 0; font-weight: 800; }

.footer-note,
.copyright {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.copyright { margin: 18px 0 0; }

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  background: var(--white);
  border: 1.8px solid var(--ink);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--ink);
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.to-top:hover {
  background: var(--lime);
  transform: translate(-1px, -1px);
  box-shadow: 3.5px 3.5px 0 var(--ink);
}

/* Responsive ------------------------------------------------------------- */

@media (min-width: 981px) {
  .bento {
    grid-template-columns: 0.9fr 0.72fr 1.2fr;
    grid-template-rows: 1.2fr 1fr auto;
    grid-template-areas:
      "post story banner"
      "card story folder"
      "logo logo logo";
    min-height: 720px;
  }

  .bento [data-slot="design-post"] { grid-area: post; }
  .bento [data-slot="design-story"] { grid-area: story; }
  .bento [data-slot="design-banner"] { grid-area: banner; }
  .bento [data-slot="design-cartao"] { grid-area: card; }
  .bento [data-slot="design-folder"] { grid-area: folder; }
  .bento [data-slot="design-logotipo"] { grid-area: logo; }

  .mosaic {
    grid-template-columns: 1.25fr 0.9fr 1fr;
    grid-template-areas:
      "a b c"
      "a d c";
    min-height: 640px;
  }

  .bento .frame,
  .mosaic .frame { height: 100%; }

  .bento .frame-media,
  .mosaic .frame-media {
    flex: 1;
    aspect-ratio: auto;
    min-height: 0;
  }

  .bento [data-slot="design-logotipo"] .frame-media {
    flex: none;
    height: 168px;
    aspect-ratio: auto;
  }
}

@media (max-width: 980px) {
  .feature-panel,
  .panel,
  .split,
  .devices {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }

  .bento,
  .mosaic,
  .gallery-3,
  .social-grid,
  .story-row {
    display: flex;
    flex-wrap: wrap;
    grid-template-areas: none;
    min-height: 0;
  }

  .bento > .frame,
  .mosaic > .frame,
  .gallery-3 > .frame,
  .social-grid > .frame,
  .story-row > .frame {
    grid-area: auto;
    height: auto;
    width: calc(50% - 8px);
    flex: 0 0 calc(50% - 8px);
  }

  .devices { grid-template-columns: 1fr 1fr; }
  .window { grid-column: 1 / -1; }
  .window .browser-screen { min-height: 220px; aspect-ratio: 16 / 10; }

  .deck-card { width: 142px; min-height: 228px; }
  .card-media { height: 142px; }
}

@media (max-width: 768px) {
  .hero { padding: 48px 0 20px; }
  .hero-title { font-size: clamp(2.7rem, 16vw, 4.2rem); }
  .section { padding: 64px 0 72px; }
  .contact { padding: 72px 0 80px; }

  .hero-cards {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    perspective: none;
    padding-bottom: 20px;
    scrollbar-width: none;
    cursor: grab;
  }

  .hero-cards::-webkit-scrollbar { display: none; }
  .hero-cards.is-dragging { scroll-snap-type: none; cursor: grabbing; }

  .cards-deck {
    justify-content: flex-start;
    width: max-content;
    padding: 12px max(16px, calc((100vw - 32px - min(72vw, 280px)) / 2)) 8px;
    gap: 14px;
  }

  .deck-card,
  .deck-card:hover {
    width: min(72vw, 280px);
    min-height: 0;
    transform: none;
    scroll-snap-align: center;
  }

  .card-media { height: auto; aspect-ratio: 1; }
  .card-caption { min-height: 72px; font-size: 0.95rem; }

  .feature-panel,
  .panel { padding: 24px 18px 22px; border-radius: 20px; }

  .tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 28px 0 12px;
    padding: 0;
  }

  .tab {
    min-height: 52px;
    padding: 10px 8px;
    border-bottom: 2px solid var(--ink);
    border-radius: 12px;
    font-size: 0.92rem;
    line-height: 1.15;
  }

  .btn { width: 100%; }
  .info-card .btn,
  .hero-cta .btn { width: auto; max-width: 100%; }

  .hero-cta .btn { width: 100%; }

  .tools { gap: 14px 12px; }
  .tools li { width: 88px; }
  .tools img,
  .social-logos img { width: 68px; height: 68px; }
  .social-logos li { width: 108px; }

  .story-row .frame:first-child,
  .story-row .frame:last-child { grid-column: auto; }

  .ratio-story { aspect-ratio: 3 / 4; }

  .footer-inner { align-items: flex-start; flex-direction: column; }
  .video-frame { border-radius: 16px; }
}

@media (max-width: 520px) {
  .wrap { width: min(1140px, calc(100% - 28px)); }
  .gallery-3 > .frame {
    width: 100%;
    flex-basis: 100%;
  }
  .areas a { font-size: 0.86rem; }
  .info-card { padding: 26px 20px; }
  .channels div { align-items: flex-start; flex-direction: column; gap: 2px; }
}

/* Conteúdo, galeria e diálogos ------------------------------------------ */

.note {
  max-width: 42rem;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 500;
}

.feature-copy .note,
.panel .note {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.92);
  text-align: left;
}

.feature-copy .section-lead + .note { margin-top: 16px; }

.inset {
  min-width: 0;
  padding: 22px 22px 8px;
  background: var(--cream);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: 4px 4px 0 rgba(22, 22, 22, 0.28);
}

.inset h3 { color: var(--ink); }

.skills {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.skills li {
  padding: 11px 0;
  border-top: 1.5px solid var(--line);
  font-weight: 650;
}

.tools-span { grid-column: 1 / -1; }
.tools-span li { width: 128px; }

.tool-text {
  justify-content: center;
  min-height: 108px;
  padding: 10px 8px;
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  box-shadow: 3px 3px 0 var(--ink);
}

.browser-url:not(:empty) {
  display: flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.site-links a {
  color: var(--white);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.metodo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.metodo li {
  padding: 8px 14px;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.text-link {
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-link:hover { color: var(--red); }

.filtros {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 32px 0 18px;
}

.filtro {
  min-height: 44px;
  padding: 0 14px;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.filtro.is-active {
  background: var(--lime);
  box-shadow: 2px 2px 0 var(--ink);
}

.galeria {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  width: 100%;
  margin-top: 8px;
}

.galeria[hidden] { display: none; }

.peca {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  text-align: left;
  transition: transform 0.35s var(--bounce), box-shadow 0.35s ease;
}

.peca.is-banner { flex: 1 1 100%; }
.peca.is-cartao { flex: 1 1 280px; max-width: 380px; }
.peca.is-folder { flex: 1 1 340px; max-width: 520px; }
.peca.is-post { flex: 0 1 260px; max-width: 280px; }
.peca.is-story { flex: 0 1 200px; max-width: 220px; }
.peca.is-logos,
.peca.is-catalogo { flex: 0 1 220px; max-width: 260px; }

.peca img,
.peca video {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  background: var(--white);
}

@media (hover: hover) {
  .peca:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
  }
}

.peca-nome,
.pdf-arquivo {
  margin: 0;
  padding: 12px 14px 14px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}

h3.peca-nome,
.peca-nome {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.pdf-arquivo {
  padding-top: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
}

.pdf-folha {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  margin: 12px 12px 0;
  background: var(--cream);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
}

.pdf-acoes {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0 12px 14px;
}

.pdf-acoes a {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px;
  background: var(--lime);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.pdf-acoes a:last-child { background: var(--white); }

.projetos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 28px;
  text-align: left;
}

.projeto {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 14px;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
}

.projeto-media {
  display: grid;
  place-items: center;
  height: 148px;
  border-radius: 12px;
}

.projeto-media img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.projeto h3 {
  margin: 14px 0 8px;
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.projeto p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.projeto button {
  align-self: flex-start;
  min-height: 44px;
  margin-top: 16px;
  padding: 0 16px;
  background: var(--lime);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--ink);
  font-weight: 800;
}

.social-logos a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.reels-titulo {
  margin: 52px 0 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.reels { margin-top: 18px; }

.reel-frame {
  width: min(100%, 400px);
  height: min(78vh, 720px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
}

.reel-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--white);
}

.reel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.reel-nav button,
.visor-bar button,
.visor-stage button {
  min-height: 44px;
  padding: 0 16px;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-weight: 800;
}

.reel-nav p,
.reel-link { margin: 10px 0 0; font-weight: 700; }

.reel-link a { text-decoration: underline; text-underline-offset: 3px; }

.channels a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.channels a:hover { color: var(--red); }

.visor,
.ficha {
  width: min(1040px, calc(100% - 24px));
  max-height: min(920px, calc(100% - 24px));
  margin: auto;
  padding: 0;
  color: var(--ink);
  background: var(--cream);
  border: 2.5px solid var(--ink);
  border-radius: 20px;
  box-shadow: 8px 8px 0 var(--ink);
}

.ficha { width: min(640px, calc(100% - 24px)); }

.visor::backdrop,
.ficha::backdrop { background: rgba(22, 22, 22, 0.72); }

.visor-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 14px 14px 0;
}

.visor-bar p,
.visor-bar h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.1;
  text-align: left;
  text-transform: uppercase;
}

.visor-stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 12px;
}

.visor-stage img {
  max-width: 100%;
  max-height: 74vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.ficha-corpo { padding: 8px 22px 22px; text-align: left; }

.ficha-corpo p { margin: 0; }

.ficha-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.ficha-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  background: var(--lime);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-weight: 800;
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 22px;
}

@media (max-width: 720px) {
  .peca.is-post,
  .peca.is-story,
  .peca.is-logos,
  .peca.is-catalogo,
  .peca.is-cartao,
  .peca.is-folder {
    flex: 1 1 calc(50% - 8px);
    max-width: calc(50% - 8px);
  }

  .peca.is-banner {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .visor-stage {
    grid-template-columns: 1fr 1fr;
  }

  .visor-stage img { grid-column: 1 / -1; }
  .tools li { width: auto; min-width: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
