/* ==========================================================================
   Fabiart Theme — Main Stylesheet, Responsive & Micro-Interactions
   ========================================================================== */

:root {
  --ink: #171319;
  --cream: #f8f2e8;
  --pink: #ff4fa0;
  --blue: #2667ff;
  --yellow: #ffd52f;
  --purple: #a76cff;
  --spring-ease: cubic-bezier(0.34, 1.56, 0.64, 1);
  --smooth-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Animations & Keyframes
   -------------------------------------------------------------------------- */
@keyframes stickerFloatOne {
  0%, 100% {
    transform: translateY(0) rotate(10deg);
  }
  50% {
    transform: translateY(-9px) rotate(14deg);
  }
}

@keyframes stickerFloatTwo {
  0%, 100% {
    transform: translateY(0) rotate(-12deg) scale(1);
  }
  50% {
    transform: translateY(-7px) rotate(-6deg) scale(1.06);
  }
}

@keyframes scribbleWave {
  0%, 100% {
    transform: rotate(-20deg) scale(1);
  }
  50% {
    transform: rotate(-15deg) scale(1.08) translateY(-4px);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 79, 160, 0.7);
  }
  50% {
    transform: scale(1.25);
    box-shadow: 0 0 0 7px rgba(255, 79, 160, 0);
  }
}

@keyframes bounceHint {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(9px);
  }
  60% {
    transform: translateY(4px);
  }
}

@keyframes stickerPop {
  0% { transform: scale(1); }
  35% { transform: scale(1.25) rotate(-8deg); }
  65% { transform: scale(0.92) rotate(6deg); }
  100% { transform: scale(1); }
}

@keyframes slideNavDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* Scroll Entrance Reveals */
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--smooth-ease), transform 0.65s var(--smooth-ease);
  will-change: opacity, transform;
}

.reveal-item.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(23, 19, 25, 0.18);
  position: absolute;
  width: 100%;
  z-index: 10;
  top: 0;
  left: 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, height 0.25s ease;
}

.nav.nav-scrolled {
  position: fixed;
  height: 74px;
  background: rgba(248, 242, 232, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(23, 19, 25, 0.14);
  box-shadow: 0 4px 18px rgba(23, 19, 25, 0.06);
  animation: slideNavDown 0.35s ease forwards;
}

.brand {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  display: inline-flex;
  align-items: center;
  transition: transform 0.25s var(--spring-ease);
}

.brand:hover {
  transform: scale(1.04) rotate(-1deg);
}

.brand img {
  display: inline-block;
  vertical-align: middle;
  max-height: 42px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links a:not(.contact-pill) {
  position: relative;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-links a:not(.contact-pill):hover {
  opacity: 0.65;
  transform: translateY(-1px);
}

.contact-pill {
  border: 2px solid var(--ink);
  border-radius: 99px;
  padding: 0.8rem 1.2rem;
  box-shadow: 3px 3px 0 var(--ink);
  background: var(--yellow);
  white-space: nowrap;
  transition: transform 0.25s var(--spring-ease), box-shadow 0.25s var(--spring-ease), background-color 0.2s ease;
  user-select: none;
}

.contact-pill:hover {
  transform: translate(-3px, -3px) rotate(-1deg);
  box-shadow: 6px 6px 0 var(--ink);
  background: #ffe45e;
  opacity: 1 !important;
}

.contact-pill:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  padding: 140px 5vw 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pink);
  display: inline-block;
  animation: pulseGlow 2.5s ease-in-out infinite;
}

.hero h1 {
  margin: 3vh 0;
  font-size: clamp(3.4rem, 11.5vw, 10.5rem);
  line-height: 0.78;
  letter-spacing: -0.085em;
  font-weight: 900;
  text-transform: uppercase;
  max-width: 95%;
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero h1 em,
.section-head h2 i,
.about h2 em,
footer h2 em {
  font-family: Georgia, serif;
  font-weight: 400;
  text-transform: none;
  color: var(--pink);
}

.hero h1 em {
  display: inline-block;
  transform: rotate(-4deg);
  text-decoration: underline;
  text-decoration-thickness: 5px;
  transition: transform 0.3s var(--spring-ease), color 0.3s ease;
  cursor: pointer;
}

.hero h1 em:hover {
  transform: rotate(-1deg) scale(1.06);
  color: #ff2589;
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 2vh;
  gap: 20px;
}

.hero-bottom p {
  max-width: 440px;
  font-size: 1.1rem;
  line-height: 1.55;
  margin: 0;
}

.round-link {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: white;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 1.8rem;
  box-shadow: 4px 4px 0 var(--ink);
  flex-shrink: 0;
  animation: bounceHint 2.8s ease-in-out infinite;
  transition: transform 0.25s var(--spring-ease), box-shadow 0.25s var(--spring-ease), background-color 0.2s ease;
}

.round-link:hover {
  animation-play-state: paused;
  transform: translate(-3px, -3px) scale(1.08);
  box-shadow: 6px 6px 0 var(--ink);
  background: var(--pink);
}

.round-link:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink);
}

.sticker {
  position: absolute;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 900;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  user-select: none;
  cursor: pointer;
  transform-origin: center center;
  transition: box-shadow 0.25s ease;
}

.sticker-pop-active {
  animation: stickerPop 0.5s var(--spring-ease) !important;
}

.sticker-one {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--yellow);
  right: 7%;
  top: 22%;
  animation: stickerFloatOne 5s ease-in-out infinite;
  font-size: 0.85rem;
  transition: transform 0.35s var(--spring-ease), box-shadow 0.35s ease;
}

.sticker-one:hover {
  animation-play-state: paused;
  transform: translateY(-8px) scale(1.1) rotate(16deg);
  box-shadow: 7px 7px 0 var(--ink);
}

.sticker-two {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: var(--purple);
  color: white;
  left: 62%;
  bottom: 11%;
  animation: stickerFloatTwo 4.5s ease-in-out infinite 0.4s;
  font-size: 2.4rem;
  transition: transform 0.35s var(--spring-ease), box-shadow 0.35s ease;
}

.sticker-two:hover {
  animation-play-state: paused;
  transform: translateY(-8px) scale(1.16) rotate(10deg);
  box-shadow: 7px 7px 0 var(--ink);
}

.scribble {
  position: absolute;
  color: var(--blue);
  font-size: 4rem;
  right: 22%;
  top: 18%;
  pointer-events: none;
  user-select: none;
  animation: scribbleWave 6s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   Projects Section
   -------------------------------------------------------------------------- */
.projects {
  background: var(--ink);
  color: var(--cream);
  padding: 110px 5vw;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 70px;
  gap: 24px;
}

.section-head p {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 800;
  margin: 0;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.section-head h2 i {
  color: var(--yellow);
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px 32px;
}

.project-card {
  display: block;
  transition: transform 0.4s var(--spring-ease);
}

.project-card:hover {
  transform: translateY(-8px);
}

.project-card:nth-child(even) {
  margin-top: 110px;
}

.project-image {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.35s ease;
}

.project-card:hover .project-image {
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

.project-image:before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 2px dashed rgba(23, 19, 25, 0.42);
  border-radius: 50%;
  transform: rotate(-13deg);
  transition: transform 0.5s ease;
}

.project-card:hover .project-image:before {
  transform: rotate(0deg) scale(1.05);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s var(--smooth-ease), filter 0.4s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.045);
  filter: contrast(104%);
}

.project-image span {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
  color: rgba(23, 19, 25, 0.65);
  z-index: 1;
}

.project-image b {
  position: absolute;
  top: 20px;
  right: 22px;
  font-family: Georgia, serif;
  font-size: 2rem;
  color: var(--ink);
  transition: transform 0.35s var(--spring-ease);
}

.project-card:hover .project-image b {
  transform: scale(1.18) rotate(-6deg);
}

.project-linea {
  background: #06182f;
  padding: 0;
}

.project-linea:before {
  display: none;
}

.project-linea:after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 79, 160, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 1;
}

.project-card:hover .project-linea:after {
  opacity: 1;
}

.project-linea b {
  color: white;
  background: #0078bd;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.2rem;
  z-index: 2;
  transition: transform 0.35s var(--spring-ease), background-color 0.3s ease;
}

.project-card:hover .project-linea b {
  transform: scale(1.12) rotate(10deg);
  background-color: var(--pink);
}

.project-open {
  position: absolute !important;
  left: 20px;
  bottom: 18px;
  color: #fff !important;
  background: rgba(23, 19, 25, 0.92);
  border-radius: 99px;
  padding: 10px 15px;
  font-size: 0.65rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase;
  font-weight: 900;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.3s var(--spring-ease);
  z-index: 2;
}

.project-card:hover .project-open {
  opacity: 1;
  transform: translateY(0);
}

.project-pink { background: var(--pink); }
.project-blue { background: var(--blue); }
.project-yellow { background: var(--yellow); }
.project-purple { background: var(--purple); }

.project-info {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-top: 18px;
  flex-wrap: wrap;
}

.project-info h3 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  transition: color 0.25s ease;
}

.project-card:hover .project-info h3 {
  color: var(--yellow);
}

.project-info p {
  margin: 0;
  color: #aaa3a8;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --------------------------------------------------------------------------
   Shop Section
   -------------------------------------------------------------------------- */
.shop {
  padding: 120px 5vw;
  background: var(--cream);
}

.shop-head {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 7vw;
  align-items: flex-end;
  margin-bottom: 55px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 800;
  font-size: 0.72rem;
  margin: 0 0 22px;
}

.shop h2 {
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.86;
  letter-spacing: -0.07em;
  margin: 0;
}

.shop h2 em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: var(--blue);
}

.shop-intro {
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 520px;
  margin: 0;
}

.shop-note {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 18px 22px;
  margin-bottom: 45px;
  transition: transform 0.25s var(--spring-ease), box-shadow 0.25s ease;
}

.shop-note:hover {
  transform: translateY(-2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.shop-note > span {
  font-size: 1.8rem;
  animation: bounceHint 2.4s ease-in-out infinite;
  display: inline-block;
}

.shop-note p {
  margin: 0;
  line-height: 1.45;
}

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

.pack-card {
  min-height: 475px;
  border: 2px solid var(--ink);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.35s var(--spring-ease), box-shadow 0.35s var(--spring-ease);
}

.pack-card:hover {
  transform: translate(-6px, -6px);
  box-shadow: 10px 10px 0 var(--ink);
}

.pack-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  min-height: 27px;
}

.pack-tag, .best-tag {
  border: 1.5px solid var(--ink);
  background: var(--cream);
  border-radius: 99px;
  padding: 6px 10px;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform 0.2s ease;
}

.best-tag {
  background: var(--ink);
  color: white;
}

.pack-card:hover .pack-tag {
  transform: scale(1.05);
}

.pack-icon {
  width: 88px;
  height: 88px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.57);
  font-size: 2.7rem;
  margin: 34px 0 28px;
  transform: rotate(-7deg);
  transition: transform 0.4s var(--spring-ease), background-color 0.3s ease;
}

.pack-card:hover .pack-icon {
  transform: rotate(14deg) scale(1.12);
  background-color: rgba(255, 255, 255, 0.88);
}

.pack-card h3 {
  font-size: 1.7rem;
  letter-spacing: -0.045em;
  margin: 0 0 12px;
}

.pack-card > p {
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 20px;
}

.pack-items {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
  margin-top: auto;
  padding: 16px 0;
  border-top: 1.5px solid rgba(23, 19, 25, 0.33);
}

.pack-button {
  border: 0;
  width: 100%;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--ink);
  color: white;
  padding: 15px 17px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background-color 0.25s ease;
}

.pack-button:hover,
.pack-card:hover .pack-button {
  background-color: #000;
}

.pack-button span {
  font-size: 1.15rem;
  display: inline-block;
  transition: transform 0.25s var(--spring-ease);
}

.pack-button:hover span,
.pack-card:hover .pack-button span {
  transform: translate(4px, -2px);
}

.pack-dengue { background: #ffda2e; }
.pack-vaccine { background: #6ee7c4; }
.pack-school { background: #ff7cae; }
.pack-traffic { background: #ff9c45; }
.pack-october { background: #d795ff; }
.pack-custom { background: #78a5ff; }

.shop-footer {
  margin-top: 70px;
  border-top: 2px solid var(--ink);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.shop-footer p {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
}

.shop-footer a {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 5px;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.shop-footer a:hover {
  color: var(--blue);
  border-color: var(--blue);
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Shop Modal
   -------------------------------------------------------------------------- */
.static-modal[hidden] {
  display: none;
}

.static-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 16px;
  animation: fadeInModal 0.25s ease;
}

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

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(23, 19, 25, 0.78);
  cursor: pointer;
}

.static-modal .pack-dialog {
  position: relative;
  z-index: 1;
  background: var(--cream);
  width: min(960px, calc(100vw - 32px));
  max-width: 960px !important;
  max-height: 90vh;
  overflow: auto;
  border: 2px solid var(--ink) !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: 10px 10px 0 var(--ink) !important;
  color: var(--ink) !important;
  animation: popDialog 0.3s var(--spring-ease);
}

@keyframes popDialog {
  from { transform: scale(0.94) translateY(12px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.static-modal.pack-dengue .pack-dialog { background: #ffda2e; }
.static-modal.pack-vaccine .pack-dialog { background: #6ee7c4; }
.static-modal.pack-school .pack-dialog { background: #ff7cae; }
.static-modal.pack-traffic .pack-dialog { background: #ff9c45; }
.static-modal.pack-october .pack-dialog { background: #d795ff; }
.static-modal.pack-custom .pack-dialog { background: #78a5ff; }

.static-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 4;
  width: 40px;
  height: 40px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.25s var(--spring-ease), background-color 0.2s ease;
}

.static-close:hover {
  transform: rotate(90deg) scale(1.1);
  background: var(--yellow);
}

.dialog-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 610px;
}

.video-preview {
  min-height: 100%;
  background: var(--ink);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.video-preview.has-media {
  padding: 0;
  background: #0d0e11;
}

.video-preview:after {
  content: "ÁREA PREPARADA PARA RECEBER SEU VÍDEO";
  position: absolute;
  bottom: 22px;
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  opacity: 0.58;
}

.video-preview.has-media:after {
  display: none !important;
}

.pack-media-video,
.pack-media-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-preview.is-photo .pack-media-photo {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.photo-wrapper,
.video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  overflow: hidden;
}

.photo-wrapper img,
.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

/* Camada transparente que sobrepõe a imagem para interceptar clique direito / salvar imagem */
.media-protection-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
  cursor: default;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Padrão diagonal de Marca D'água sutil repetida */
.media-watermark-pattern {
  position: absolute;
  inset: -60%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  pointer-events: none;
  z-index: 2;
  transform: rotate(-25deg);
  opacity: 0.15;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.media-watermark-pattern span {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 0.26em;
  color: #ffffff;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  user-select: none;
}

/* Badge flutuante de Marca D'água exclusiva */
.media-watermark-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  pointer-events: none;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(17, 17, 17, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.media-watermark-badge span {
  color: var(--yellow);
}

/* Oculta botão nativo de download em navegadores baseados em WebKit/Chromium */
video::-internal-media-controls-download-button {
  display: none !important;
}

video::-webkit-media-controls-enclosure {
  overflow: hidden;
}

.video-overlay-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.35);
  border: none;
  cursor: pointer;
  transition: opacity 0.25s ease, background-color 0.2s ease;
  z-index: 3;
}

.video-overlay-play:hover {
  background: rgba(0, 0, 0, 0.5);
}

.video-overlay-play .play-icon {
  margin-bottom: 0;
  color: #fff;
}

.video-overlay-play.is-playing {
  opacity: 0;
  pointer-events: none;
}

/* Visualização Aprimorada para Formato Horizontal / Paisagem */
.pack-dialog.is-horizontal {
  width: min(980px, calc(100vw - 32px));
  max-width: 980px !important;
}

.pack-dialog.is-horizontal .dialog-layout {
  display: flex;
  flex-direction: column;
  min-height: auto;
}

.pack-dialog.is-horizontal .video-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 450px;
  min-height: 280px;
  border-bottom: 2px solid var(--ink);
}

.pack-dialog.is-horizontal .video-preview .pack-media-photo,
.pack-dialog.is-horizontal .video-preview .pack-media-video,
.pack-dialog.is-horizontal .video-wrapper video {
  object-fit: cover;
  max-height: 450px;
}

.pack-dialog.is-horizontal .dialog-copy {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  padding: 34px 38px 30px;
  align-items: start;
}

.pack-dialog.is-horizontal .dialog-copy-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.pack-dialog.is-horizontal .dialog-copy-side {
  display: flex;
  flex-direction: column;
}

.pack-dialog.is-horizontal .included {
  margin-top: 0;
}

@media (max-width: 820px) {
  .pack-dialog.is-horizontal .dialog-copy {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 20px;
  }
  .pack-dialog.is-horizontal .video-preview {
    max-height: 260px;
    min-height: 200px;
  }
}

.play-icon {
  width: 88px;
  height: 88px;
  border: 2px solid white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding-left: 6px;
  font-size: 1.8rem;
  margin-bottom: 24px;
  transition: transform 0.3s var(--spring-ease), background-color 0.3s ease;
  cursor: pointer;
}

.play-icon:hover {
  transform: scale(1.12);
  background-color: var(--pink);
  border-color: var(--pink);
}

.video-preview strong {
  font-size: 1.15rem;
}

.video-preview small {
  margin-top: 8px;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.dialog-copy {
  padding: 46px 38px 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.dialog-title {
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: clamp(2rem, 4vw, 3.7rem) !important;
  line-height: 0.9 !important;
  letter-spacing: -0.06em !important;
  margin: 24px 0 16px;
}

.dialog-description {
  color: var(--ink) !important;
  font-size: 1rem !important;
  line-height: 1.55 !important;
}

.included {
  width: 100%;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 20px 0;
  margin: 25px 0 18px;
}

.included p {
  margin: 0 0 4px;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}

.included > strong {
  font-size: 1rem;
}

.included ul {
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
  font-size: 0.82rem;
  line-height: 1.8;
}

.included li:before {
  content: "✓";
  font-weight: 900;
  margin-right: 8px;
}

.version-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  gap: 8px;
  margin-bottom: 20px;
}

.version-choice > span {
  background: rgba(255, 255, 255, 0.5);
  border: 1.5px solid var(--ink);
  padding: 12px;
  transition: transform 0.2s var(--spring-ease), background-color 0.2s ease;
  cursor: pointer;
}

.version-choice > span:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.85);
}

.version-choice b,
.version-choice small {
  display: block;
}

.version-choice b {
  font-size: 0.78rem;
}

.version-choice small {
  font-size: 0.67rem;
  line-height: 1.35;
  margin-top: 4px;
}

.dialog-cta {
  margin-top: auto;
  width: 100%;
  background: var(--ink);
  color: white;
  padding: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.72rem;
  transition: background-color 0.2s ease, transform 0.25s var(--spring-ease);
}

.dialog-cta:hover {
  background-color: var(--blue);
  transform: translateY(-2px);
}

.dialog-cta span {
  transition: transform 0.25s var(--spring-ease);
  display: inline-block;
}

.dialog-cta:hover span {
  transform: translate(4px, -3px);
}

.modal-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   About Section
   -------------------------------------------------------------------------- */
.about {
  padding: 130px 5vw;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5vw;
}

.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.about-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.about-label span {
  background: var(--yellow);
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  margin-left: 0.5rem;
  border: 1.5px solid var(--ink);
  transition: transform 0.4s var(--spring-ease), background-color 0.25s ease;
  cursor: pointer;
}

.about-label span:hover {
  transform: rotate(360deg) scale(1.25);
  background: var(--pink);
  color: white;
}

.about-photo {
  width: min(100%, 250px);
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  overflow: hidden;
  background: var(--yellow);
  transition: transform 0.4s var(--spring-ease), box-shadow 0.4s var(--spring-ease);
}

.about-photo:hover {
  transform: scale(1.03) rotate(-2deg);
  box-shadow: 8px 8px 0 var(--ink);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about h2 {
  margin: 0;
  font-size: clamp(2.8rem, 6.5vw, 6.3rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.about-copy > p {
  max-width: 720px;
  font-size: 1.25rem;
  line-height: 1.6;
  margin: 45px 0 35px;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills span {
  padding: 0.7rem 1.1rem;
  border: 1.5px solid var(--ink);
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  font-weight: 800;
  transition: transform 0.25s var(--spring-ease), background-color 0.2s ease, color 0.2s ease, box-shadow 0.25s ease;
  cursor: pointer;
  user-select: none;
}

.skills span:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: 4px 4px 0 var(--ink);
}

.skills span:nth-child(1):hover {
  background: var(--pink);
  color: white;
  transform: translateY(-4px) rotate(-2deg);
}

.skills span:nth-child(2):hover {
  background: var(--yellow);
  color: var(--ink);
  transform: translateY(-4px) rotate(2deg);
}

.skills span:nth-child(3):hover {
  background: var(--blue);
  color: white;
  transform: translateY(-4px) rotate(-2deg);
}

.skills span:nth-child(4):hover {
  background: var(--purple);
  color: white;
  transform: translateY(-4px) rotate(2deg);
}

.skills span:nth-child(5):hover {
  background: #6ee7c4;
  color: var(--ink);
  transform: translateY(-4px) rotate(-1deg);
}

/* --------------------------------------------------------------------------
   Footer Section
   -------------------------------------------------------------------------- */
footer {
  background: var(--blue);
  color: white;
  padding: 110px 5vw 35px;
}

footer > p {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  font-weight: 800;
  margin: 0;
}

footer h2 {
  margin: 25px 0 50px;
  font-size: clamp(3.2rem, 10vw, 9rem);
  line-height: 0.82;
  letter-spacing: -0.075em;
  text-transform: uppercase;
  word-break: break-word;
}

/* "a-con-te-cer." Syllable-by-syllable entrance */
.syllable-word {
  display: inline-block;
  white-space: nowrap;
  color: var(--yellow);
}

.syllable {
  display: inline-block;
  opacity: 0;
  transform: translateY(48px) rotate(-12deg) scale(0.6);
  transition: opacity 0.5s var(--smooth-ease), transform 0.65s var(--spring-ease), color 0.25s ease;
  will-change: transform, opacity;
  cursor: pointer;
  user-select: none;
}

.syllable:hover {
  transform: translateY(-10px) scale(1.18) rotate(4deg) !important;
  color: #fff !important;
  text-shadow: 0 4px 18px rgba(255, 213, 47, 0.7);
}

.syllable-1:hover { transform: translateY(-10px) scale(1.2) rotate(-8deg) !important; }
.syllable-2:hover { transform: translateY(-10px) scale(1.2) rotate(8deg) !important; }
.syllable-3:hover { transform: translateY(-10px) scale(1.2) rotate(-6deg) !important; }
.syllable-4:hover { transform: translateY(-10px) scale(1.2) rotate(8deg) !important; }

.syllable-dot {
  color: var(--pink) !important;
  display: inline-block;
}

.syllable-dot:hover {
  transform: translateY(-10px) scale(1.35) rotate(18deg) !important;
  color: var(--yellow) !important;
}

/* Staggered Syllable Reveal */
.is-animated .syllable-1 {
  opacity: 1;
  transform: translateY(0) rotate(0deg) scale(1);
  transition-delay: 0.12s;
}

.is-animated .syllable-2 {
  opacity: 1;
  transform: translateY(0) rotate(0deg) scale(1);
  transition-delay: 0.32s;
}

.is-animated .syllable-3 {
  opacity: 1;
  transform: translateY(0) rotate(0deg) scale(1);
  transition-delay: 0.52s;
}

.is-animated .syllable-4 {
  opacity: 1;
  transform: translateY(0) rotate(0deg) scale(1);
  transition-delay: 0.72s;
}

.is-animated .syllable-dot {
  opacity: 1;
  transform: translateY(0) rotate(0deg) scale(1);
  transition-delay: 0.92s;
}

footer > a {
  display: inline-block;
  border-bottom: 2px solid white;
  font-size: clamp(1.15rem, 2.5vw, 2rem);
  padding-bottom: 0.4rem;
  word-break: break-word;
  overflow-wrap: break-word;
  transition: transform 0.2s var(--spring-ease), color 0.2s ease;
}

footer > a:hover {
  transform: translateX(4px);
  color: var(--yellow);
}

.footer-row {
  margin-top: 110px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.67rem;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-socials {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-socials a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease, transform 0.2s var(--spring-ease), color 0.2s ease;
}

.footer-socials a:hover {
  opacity: 1;
  color: var(--yellow);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Case Study Page (single-projeto.php)
   -------------------------------------------------------------------------- */
.case-page {
  background: var(--cream);
  color: var(--ink);
}

.case-nav {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(23, 19, 25, 0.18);
  background: var(--cream);
  width: 100%;
}

.case-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.linea-hero {
  min-height: 800px;
  background: #06182f;
  color: #fff;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 6vw;
  padding: 105px 7vw 90px;
  position: relative;
  overflow: hidden;
}

.linea-hero-copy,
.linea-cover {
  position: relative;
  z-index: 2;
}

.case-kicker,
.case-index {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 900;
  margin: 0 0 28px;
  color: #18a9e1;
}

.linea-hero h1 {
  font-size: clamp(3.2rem, 8vw, 8.2rem);
  line-height: 0.82;
  letter-spacing: -0.07em;
  margin: 0 0 38px;
  word-break: break-word;
}

.case-lead {
  font-size: 1.18rem;
  line-height: 1.55;
  max-width: 570px;
}

.case-facts {
  background: #fff;
  color: #06182f;
  border-radius: 28px;
  padding: 25px 30px;
  margin: 42px 0 0;
  max-width: 590px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.case-facts div {
  display: grid;
  grid-template-columns: 115px 1fr;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px solid #f0f0f0;
}

.case-facts div:last-child {
  border-bottom: none;
}

.case-facts dt {
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.case-facts dd {
  margin: 0;
  font-size: 0.88rem;
}

.linea-cover {
  justify-self: center;
  width: min(100%, 440px);
  padding: 18px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.46);
  transform: rotate(2deg);
  transition: transform 0.5s var(--spring-ease), box-shadow 0.5s ease;
}

.linea-cover:hover {
  transform: rotate(0deg) scale(1.025);
  box-shadow: 0 32px 75px rgba(0, 0, 0, 0.55);
}

.linea-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.linea-orbit {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: var(--yellow);
  right: -85px;
  top: -95px;
  pointer-events: none;
}

.linea-orbit:before {
  content: "";
  position: absolute;
  width: 360px;
  height: 170px;
  border: 43px solid var(--pink);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(28deg);
  left: -84px;
  top: 55px;
}

.linea-orbit span {
  position: absolute;
  width: 48px;
  height: 48px;
  background: #0078bd;
  border-radius: 50%;
  left: 80px;
  top: 145px;
}

.case-intro {
  padding: 125px 7vw;
  background: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
}

.case-intro h2,
.case-gallery h2,
.case-cases h2,
.case-result h2 {
  font-size: clamp(2.6rem, 6vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  margin: 0;
}

.case-body {
  font-size: 1.18rem;
  line-height: 1.68;
  padding-top: 52px;
}

.case-body p {
  margin: 0 0 28px;
}

.pink { color: var(--pink); }
.yellow { color: var(--yellow); }

.case-pill {
  display: inline-block;
  margin-top: 46px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 99px;
  padding: 15px 22px;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  transition: transform 0.25s var(--spring-ease), box-shadow 0.25s ease;
}

.case-pill:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 4px 4px 0 var(--ink);
}

.case-strategy {
  padding: 110px 7vw 125px;
  background: var(--ink);
  color: #fff;
}

.strategy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.strategy-card {
  border-radius: 36px;
  padding: 48px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--spring-ease), box-shadow 0.35s ease;
}

.strategy-card:hover {
  transform: translateY(-6px);
  box-shadow: 8px 8px 0 var(--ink);
}

.strategy-card > p {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 900;
  margin: 0;
}

.strategy-card h2 {
  font-size: clamp(1.8rem, 3.7vw, 4rem);
  letter-spacing: -0.05em;
  line-height: 0.98;
  margin: 28px 0;
}

.strategy-card span {
  font-size: 1rem;
  line-height: 1.55;
  margin-top: auto;
}

.challenge {
  background: var(--pink);
  color: var(--ink);
}

.solution {
  background: #fff;
  color: #06182f;
}

.solution > p {
  color: #0078bd;
}

.case-gallery {
  padding: 125px 7vw 150px;
  position: relative;
  overflow: hidden;
}

.gallery-intro {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #647286;
  max-width: 850px;
  margin: 30px 0 65px;
}

.pages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7vw;
}

.pages-grid figure {
  margin: 0;
  background: #fff;
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 25px 55px rgba(6, 24, 47, 0.15);
  transition: transform 0.4s var(--spring-ease), box-shadow 0.4s ease;
}

.pages-grid figure:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 35px 70px rgba(6, 24, 47, 0.22);
}

.pages-grid img {
  width: 100%;
  height: auto;
  display: block;
}

.case-gallery:after {
  content: "";
  position: absolute;
  width: 300px;
  height: 160px;
  border: 36px solid var(--purple);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  left: -85px;
  bottom: -42px;
  transform: rotate(-20deg);
  pointer-events: none;
}

.case-cases {
  background: #0078bd;
  color: #fff;
  padding: 115px 7vw;
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 8vw;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.case-cases > div:first-child,
.case-cases figure {
  position: relative;
  z-index: 2;
}

.case-cases h2 {
  font-size: clamp(2.6rem, 5.5vw, 5.7rem);
}

.case-cases > div > p:last-child {
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 650px;
  margin-top: 35px;
}

.case-cases figure {
  background: #fff;
  padding: 18px;
  border-radius: 25px;
  margin: 0;
  box-shadow: 0 25px 55px rgba(6, 24, 47, 0.37);
  transition: transform 0.4s var(--spring-ease);
}

.case-cases figure:hover {
  transform: scale(1.02) rotate(1deg);
}

.case-cases img {
  width: 100%;
  display: block;
}

.fabi-sun {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--yellow);
  left: -100px;
  bottom: -110px;
  pointer-events: none;
}

.fabi-sun:before {
  content: "";
  position: absolute;
  width: 260px;
  height: 120px;
  border: 36px solid var(--pink);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  left: 10px;
  top: 20px;
  transform: rotate(-18deg);
}

.case-result {
  background: var(--ink);
  color: #fff;
  padding: 105px 7vw;
  display: flex;
  justify-content: space-between;
  gap: 50px;
  align-items: center;
}

.case-result h2 {
  max-width: 1000px;
  font-size: clamp(2.6rem, 5.7vw, 6rem);
}

.case-result > a {
  width: 90px;
  height: 90px;
  flex: 0 0 90px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pink);
  color: var(--ink);
  font-size: 2.2rem;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--yellow);
  transition: transform 0.3s var(--spring-ease), box-shadow 0.3s ease;
}

.case-result > a:hover {
  transform: translate(-4px, -4px) rotate(-8deg);
  box-shadow: 8px 8px 0 var(--yellow);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablets / Medium screens (<= 1050px) */
@media (max-width: 1050px) {
  .pack-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small Tablets / Large Mobile (<= 850px) */
@media (max-width: 850px) {
  .project-linea {
    padding: 6% 18%;
  }

  .linea-hero {
    grid-template-columns: 1fr;
    padding: 105px 5vw 75px;
    min-height: auto;
  }

  .linea-cover {
    width: min(80%, 390px);
    margin-top: 25px;
  }

  .linea-orbit {
    width: 250px;
    height: 250px;
    right: -110px;
  }

  .case-intro {
    grid-template-columns: 1fr;
    padding: 90px 5vw;
    gap: 36px;
  }

  .case-body {
    padding-top: 0;
  }

  .strategy-grid,
  .pages-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .case-strategy,
  .case-gallery {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .strategy-card {
    min-height: 300px;
    padding: 35px 28px;
  }

  .case-cases {
    grid-template-columns: 1fr;
    padding: 90px 5vw;
    gap: 36px;
  }

  .case-cases figure {
    width: min(85%, 440px);
    justify-self: center;
  }

  .case-result {
    padding: 80px 5vw;
    align-items: flex-end;
  }

  .case-nav {
    height: 72px;
  }

  .case-nav-links > a:first-child {
    display: none;
  }

  .about-sidebar {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }

  .about-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
  }
}

/* Standard Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  .nav {
    height: 72px;
  }

  .nav.nav-scrolled {
    height: 66px;
  }

  .nav-links > a:not(.contact-pill) {
    display: none;
  }

  .contact-pill {
    padding: 0.65rem 0.9rem;
    font-size: 0.76rem;
  }

  .hero {
    min-height: calc(100svh - 72px);
    min-height: calc(100dvh - 72px);
    padding: 95px 5vw 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
  }

  .hero-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    margin-bottom: 6px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 10.5vw, 3.6rem);
    line-height: 0.88;
    letter-spacing: -0.04em;
    max-width: 100%;
    margin: 16px 0;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
  }

  .hero h1 em {
    display: inline-block;
    transform: rotate(-3deg);
    text-decoration-thickness: 4px;
  }

  .hero-bottom {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    position: relative;
    z-index: 2;
  }

  .hero-bottom p {
    max-width: 72%;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
  }

  .round-link {
    width: 54px;
    height: 54px;
    font-size: 1.5rem;
    flex-shrink: 0;
    position: relative;
    z-index: 3;
  }

  .sticker-one {
    width: 76px;
    height: 76px;
    font-size: 0.56rem;
    right: 3%;
    top: 11%;
    z-index: 1;
  }

  .sticker-two {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    right: 5%;
    top: 48%;
    left: auto;
    bottom: auto;
    z-index: 1;
  }

  .scribble {
    display: none;
  }

  .projects {
    padding: 75px 5vw;
  }

  .section-head {
    display: block;
  }

  .section-head h2 {
    margin-top: 20px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .project-card:nth-child(even) {
    margin-top: 0;
  }

  .project-info {
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
  }

  .project-open {
    opacity: 1;
    transform: translateY(0);
    padding: 8px 12px;
  }

  .shop {
    padding: 85px 5vw;
  }

  .shop-head {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 35px;
  }

  .shop-note {
    align-items: flex-start;
    padding: 16px;
  }

  .pack-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pack-card {
    min-height: auto;
  }

  .shop-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .pack-dialog {
    max-height: 92vh;
  }

  .dialog-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .video-preview {
    min-height: 240px;
    padding: 24px 16px;
  }

  .video-preview.has-media {
    padding: 0;
  }

  .video-preview:after {
    bottom: 12px;
  }

  .dialog-copy {
    padding: 28px 20px 22px;
  }

  .dialog-title {
    font-size: 2.3rem !important;
  }

  .version-choice {
    grid-template-columns: 1fr;
  }

  .about {
    grid-template-columns: 1fr;
    padding: 85px 5vw;
    gap: 35px;
  }

  .about-copy > p {
    font-size: 1.05rem;
    margin-top: 30px;
  }

  footer {
    padding: 85px 5vw 35px;
  }

  footer h2 {
    font-size: clamp(2.8rem, 12vw, 5.5rem);
  }

  .footer-row {
    gap: 20px;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 70px;
  }

  .case-result {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }
}

/* Small Smart Phones (<= 480px) */
@media (max-width: 480px) {
  .nav, .case-nav {
    padding: 0 4vw;
  }

  .hero {
    padding: 85px 4vw 30px;
  }

  .hero h1 {
    font-size: clamp(2rem, 9.8vw, 3.1rem);
    line-height: 0.9;
    letter-spacing: -0.035em;
  }

  .hero-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .hero-bottom p {
    max-width: 70%;
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .round-link {
    width: 48px;
    height: 48px;
    font-size: 1.35rem;
  }

  .sticker-one {
    width: 64px;
    height: 64px;
    font-size: 0.48rem;
    top: 9%;
    right: 2%;
  }

  .sticker-two {
    width: 42px;
    height: 42px;
    font-size: 1.25rem;
    top: 50%;
    right: 3%;
  }

  .about-sidebar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .about-photo {
    width: 100px;
    height: 100px;
  }

  .case-facts {
    padding: 18px 20px;
    border-radius: 20px;
  }

  .case-facts div {
    grid-template-columns: 95px 1fr;
    gap: 12px;
  }

  .strategy-card {
    padding: 28px 20px;
    border-radius: 24px;
  }

  .strategy-card h2 {
    font-size: clamp(1.6rem, 6.5vw, 2.4rem);
  }

  .pages-grid figure {
    padding: 14px;
    border-radius: 20px;
  }

  .case-result > a {
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    font-size: 1.8rem;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
