/* ============================================
   KDUI Portfolio
   ============================================ */

:root {
  /* Colors — light */
  --bg:         #f8f7f5;
  --surface:    #ffffff;
  --surface-2:  #f2f1ef;
  --red:        #d83b38;
  --red-hover:  #b8302d;
  --red-dark:   #3a2121;
  --ink:        #0e0e0e;
  --ink-muted:  #666666;
  --ink-faint:  #aaaaaa;
  --border:     #e4e3e1;
  --border-sub: #ededeb;

  /* Fonts */
  --font-display: 'Josefin Sans', sans-serif;
  --font-zy:      'Domine', Georgia, serif;
  --font-body:    'Poppins', sans-serif;
  --font-serif:   'Domine', Georgia, serif;
  --font-hand:    'Caveat', cursive;

  /* Layout */
  --nav-h: 84px;
  --max-w: 1200px;

  /* Easing */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* === CURSOR NONE — só em dispositivos com mouse === */
@media (pointer: fine) {
  *, *::before, *::after { cursor: none; }
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; font: inherit; }
img { display: block; max-width: 100%; }

/* === BODY === */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

/* Seleção estilo marcador */
::selection {
  background: rgba(216,59,56,0.18);
  color: var(--ink);
  text-shadow: none;
}
::-moz-selection {
  background: rgba(216,59,56,0.18);
  color: var(--ink);
}

/* === PAPER CANVAS (bg texture) === */
#paperTexture {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* === NAV === */
@keyframes navDropIn {
  0%   { opacity: 0; transform: translateY(-18px); }
  100% { opacity: 1; transform: translateY(0); }
}

nav.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 200;
  background: rgba(248, 247, 245, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  animation: navDropIn 0.6s cubic-bezier(0.16,1,0.3,1) both;
}

nav.topnav .nav-k-logo,
nav.topnav .nav-links li {
  opacity: 0;
  animation: navDropIn 0.5s cubic-bezier(0.16,1,0.3,1) both;
}
nav.topnav .nav-k-logo { animation-delay: 0.12s; }
nav.topnav .nav-links li:nth-child(1) { animation-delay: 0.18s; }
nav.topnav .nav-links li:nth-child(2) { animation-delay: 0.22s; }
nav.topnav .nav-links li:nth-child(3) { animation-delay: 0.26s; }

nav.topnav .nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo — esquerda */
nav.topnav .nav-k-logo {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex-shrink: 0;
}
nav.topnav .nav-logo-img {
  height: 44px;
  width: auto;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

/* Links — direita — texto simples, só o Contact é botão */
nav.topnav .nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

nav.topnav .nav-links a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.2s ease;
}
nav.topnav .nav-links a:hover { color: var(--ink); }
nav.topnav .nav-links a.active { color: var(--ink); font-weight: 600; }

/* Contact — único botão preenchido do nav */
nav.topnav .nav-links a.nav-cta {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  border-radius: 99px;
  padding: 0.65rem 1.5rem;
}
nav.topnav .nav-links a.nav-cta:hover { background: var(--red); color: #fff; }

/* Hamburger — só aparece no mobile */
nav.topnav .nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
}
nav.topnav .nav-toggle span {
  display: block;
  width: 15px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-spring), opacity 0.2s ease;
}
nav.topnav .nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
nav.topnav .nav-toggle.open span:nth-child(2) { opacity: 0; }
nav.topnav .nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* === MAIN === */
main {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-h);
  min-height: 100vh;
}


/* === CONTAINER === */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2.5rem; }

/* === APPLE-STYLE SURFACE CARDS === */
.card-surface {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.card-surface:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 12px 32px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

/* === WORK CARD (grid item — reels aspect ratio, estilo post social) === */
/* Compartilhado entre a home (Our Works) e /work — ver templates/_macros.html */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.work-card {
  display: block;
  transition: transform 0.25s var(--ease-spring);
}
.work-card:focus-visible {
  transform: translateY(-4px);
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.work-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
  border-radius: 14px;
  overflow: hidden;
}

.work-card-thumb-bg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.35s ease-in-out, filter 0.35s ease-in-out;
}
.work-card-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.work-card:focus-visible .work-card-thumb-bg {
  transform: scale(1.04);
  filter: grayscale(1);
}
@media (hover: hover) and (pointer: fine) {
  /* Efeito só faz sentido com mouse de verdade — em touch, :hover fica "preso"
     depois do primeiro toque e nunca desfaz, deixando a foto travada em P&B. */
  .work-card:hover {
    transform: translateY(-4px);
  }
  .work-card:hover .work-card-thumb-bg {
    transform: scale(1.04);
    filter: grayscale(1);
  }
}

/* Overlay estilo "post" — identifica o cliente sem inventar depoimento.
   Sombra reta de cima pra baixo (sem blur), pra dar contraste ao avatar/nome. */
.work-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, transparent 45%);
  z-index: 1;
  pointer-events: none;
}
.work-card-social {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  z-index: 2;
}
.work-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  background: var(--surface-2);
}
.work-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.work-card-client {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
  min-width: 0;
}
.work-card-client span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.work-card-verified {
  flex-shrink: 0;
  color: #fff;
}
.work-card-caption {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.75);
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}
@media (max-width: 560px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.7rem 1.75rem;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background: transparent;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-spring);
}
.btn:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow:
    0 0 8px rgba(216,59,56,0.55),
    0 0 24px rgba(216,59,56,0.3),
    0 0 48px rgba(216,59,56,0.12),
    0 4px 16px rgba(216,59,56,0.2);
}

/* Link de destaque com ícone — ex: "Prefer WhatsApp?" abaixo de um botão principal */
.whatsapp-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--red);
  transition: color 0.2s ease, transform 0.2s ease;
}
.whatsapp-cta-link:hover { color: var(--red-hover); transform: translateY(-1px); }
.whatsapp-cta-link svg { flex-shrink: 0; }

/* Inativo — ex: Showreel até o reel existir */
.btn-disabled {
  border-color: var(--border);
  color: var(--ink-faint);
  cursor: default;
  pointer-events: none;
}

/* Pill solid — CTA style (fundo escuro, cantos redondos) */
.btn-dark {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  border-radius: 99px;
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  border: none;
  transition: background 0.2s ease;
}
.btn-dark:hover { background: var(--red); color: #fff; }

/* === TYPOGRAPHY === */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
}

.label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

strong.red { color: var(--red); }

/* === DIVIDER === */
.divider { border: none; border-top: 1px solid var(--border); }

/* === FORM === */
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
.form-group { margin-bottom: 1.75rem; }

.form-group label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(216,59,56,0.08);
}
.form-group textarea { min-height: 110px; resize: none; }

/* === SOCIAL LINKS === */
.social-links { display: flex; gap: 0.85rem; align-items: center; }

.social-links a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--ink-muted);
  background: var(--surface);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.25s var(--ease-spring), box-shadow 0.2s ease;
}
.social-links a:hover {
  color: var(--red);
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(216,59,56,0.15);
}

/* ── Drop a line / CTA dark section ── */
.drop-section {
  background: #0e0e0e;
  padding: 5rem 0;
}
.drop-section .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}
.drop-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--red);
  max-width: 600px;
}
.drop-btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--red);
  border: 1.5px solid var(--red);
  border-radius: 99px;
  padding: 0.85rem 2.25rem;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.drop-btn:hover {
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 16px rgba(216,59,56,0.45), 0 0 40px rgba(216,59,56,0.2);
}

/* ── Footer ── */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 3.5rem 0 2rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  padding-bottom: 2.5rem;
}
.footer-brand { max-width: 280px; }
.footer-logo-link { display: inline-block; }
.footer-logo-img {
  height: 32px;
  width: auto;
  display: block;
}
.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-top: 0.6rem;
}
.footer-brand-contact {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1.1rem;
}
.footer-brand-phone {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  width: fit-content;
  transition: color 0.2s ease;
}
.footer-brand-phone:hover { color: var(--ink-faint); }
.footer-brand-email {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 2px;
}
.footer-brand-email-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  flex-shrink: 0;
}
.footer-brand-email::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--ink);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.footer-brand-email:hover::after {
  transform: scaleX(0);
}
.footer-col-title {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.9rem;
}
.footer-links, .footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a, .footer-social a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--ink-muted);
  width: fit-content;
  transition: color 0.2s ease;
}
.footer-links a:hover, .footer-social a:hover { color: var(--red); }

/* Quick Links / Resources — bolinha vermelha aparece e empurra o texto, com bounce */
.footer-links a {
  position: relative;
  display: inline-block;
  transition: color 0.2s ease, transform 0.4s var(--ease-spring);
}
.footer-links a::before {
  content: '';
  position: absolute;
  left: -13px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  transform: translate(-6px, -50%) scale(0);
  opacity: 0;
  transition: transform 0.4s var(--ease-spring), opacity 0.25s ease;
}
.footer-links a:hover {
  transform: translateX(10px);
}
.footer-links a:hover::before {
  transform: translate(0, -50%) scale(1);
  opacity: 1;
}
.footer-link-disabled {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--ink-faint);
  width: fit-content;
  cursor: default;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--ink-muted);
  transition: color 0.2s ease;
}
.footer-contact-item svg { flex-shrink: 0; margin-top: 0.15rem; color: var(--ink-faint); }
a.footer-contact-item:hover { color: var(--red); }

/* Contact us — seta desliza na diagonal + muda de cor no hover */
.footer-arrow {
  display: inline-flex;
  margin-top: 0.15rem;
  color: var(--ink-faint);
  transition: color 0.2s ease, transform 0.25s var(--ease-spring);
}
a.footer-contact-item:hover .footer-arrow {
  color: var(--red);
  transform: translate(3px, -3px);
}
.footer-bottom {
  border-top: 1px solid var(--border-sub);
  padding-top: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.footer-copy {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--ink-faint);
}

/* ── Back to top ── */
.back-to-top {
  position: fixed;
  right: 1.75rem;
  bottom: 1.75rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--red); }

/* === WORK MODAL (lightbox de projeto — sem navegar pra outra URL) === */
.work-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.work-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.work-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14,14,14,0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.work-modal-dialog {
  position: relative;
  display: flex;
  background: var(--surface);
  border-radius: 20px;
  max-width: 760px;
  width: 100%;
  max-height: 88vh;
  overflow: hidden;
  z-index: 1;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s var(--ease-spring);
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}
.work-modal.open .work-modal-dialog {
  transform: translateY(0) scale(1);
}

/* Dots flutuantes no canto — decorativos, exceto o vermelho, que fecha o modal */
.work-modal-dots {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.work-modal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  padding: 0;
  flex-shrink: 0;
}
.dot-close { background: #ff5f57; cursor: pointer; transition: filter 0.2s ease; }
.dot-close:hover { filter: brightness(0.88); }
.dot-mid { background: #febc2e; }
.dot-end { background: #28c840; }

.work-modal-media {
  position: relative;
  width: 280px;
  flex-shrink: 0;
  aspect-ratio: 9/16;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #161414;
}
.work-modal-media-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.03em;
}
.work-modal-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.work-modal-body {
  flex: 1;
  min-width: 0;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}
.work-modal-body .btn-dark { align-self: flex-start; }
.work-modal-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.work-modal-title-year {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--ink-faint);
  margin-left: 0.4rem;
}
.work-modal-text {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--ink-muted);
  margin-bottom: 1.75rem;
}
body.modal-open { overflow: hidden; }

/* ============================================
   RESPONSIVE — Mobile first
   ============================================ */

@media (max-width: 768px) {

  /* Nav — pills viram menu sanduíche */
  nav.topnav .nav-logo-img { height: 34px; }
  nav.topnav .nav-toggle { display: flex; }

  nav.topnav .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.25s ease;
  }
  nav.topnav .nav-links.open {
    max-height: 260px;
    opacity: 1;
  }
  nav.topnav .nav-links li { width: 100%; }
  nav.topnav .nav-links a {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    padding: 1rem;
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  nav.topnav .nav-links li:last-child a { border-bottom: none; }
  nav.topnav .nav-links a.nav-cta {
    background: transparent;
    color: var(--ink);
  }
  nav.topnav .nav-links a.nav-cta:hover {
    background: transparent;
    color: var(--red);
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .form-row-2 { grid-template-columns: 1fr; }

  /* Buttons */
  .btn { font-size: 0.68rem; padding: 0.65rem 1.25rem; }

  /* Container */
  .container { padding: 0 1.25rem; }

  /* Footer */
  .site-footer { padding: 2.5rem 0 1.5rem; }
  .footer-top { flex-direction: column; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.75rem; }

  /* Cards */
  .card-surface { border-radius: 6px; }

  /* 404 */
  .btn.enter { width: auto; }

  /* Sections padding */
  section[style*="padding: 5rem"] { padding: 3rem 1.25rem 2rem !important; }
  section[style*="padding: 4rem"] { padding: 3rem 1.25rem !important; }

  /* Loader */
  #loader-word { font-size: 3rem; }

  /* Disable cursor ring on touch */
  #cursor-dot, #cursor-ring { display: none !important; }

  /* Work modal — empilha em vez de lado a lado */
  .work-modal { padding: 1rem; }
  .work-modal-dialog { flex-direction: column; max-height: 92vh; overflow-y: auto; }
  .work-modal-media { width: 100%; aspect-ratio: 16/10; }
  .work-modal-body { padding: 1.75rem; }
}

@media (max-width: 480px) {
  .home-hero > div:last-of-type { padding: 4.5rem 1.25rem 2.5rem !important; }
  .contact-grid { padding: 2rem 1.25rem !important; }
}
