/* ===========================================================
   TRENON LAB — 044Grid-inspired brutalist system
=============================================================== */
:root {
  --bg:           #141416;
  --bg-elevated:  #1c1c20;
  --bg-card:      #222226;
  --line:         rgba(255, 255, 255, 0.16);
  --line-strong:  rgba(255, 255, 255, 0.32);
  --text:         #f5f5f3;
  --muted:        #9c9c9f;
  --muted-2:      #6e6e72;
  --accent:       #b24bf3;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, monospace;

  --container:    1320px;
  --header-h:     72px;

  --mx: 50%;
  --my: 50%;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -20%, rgba(255, 255, 255, 0.04), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- section tags ---------- */
.section-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 28px;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(20, 20, 22, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

.headquarters {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hq-tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--muted-2);
}

.nav {
  display: flex;
  gap: 36px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav a {
  transition: color 0.2s ease;
}

.nav a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--text);
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

@media (max-width: 900px) {
  .headquarters { display: none; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav.open { max-height: 280px; }
  .nav a {
    padding: 18px 32px;
    border-top: 1px solid var(--line);
  }
  .nav-toggle { display: flex; }
}

/* ---------- hero ---------- */
.hero {
  padding-top: var(--header-h);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
}

.hero-marquee {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 14px 0;
}

.marquee-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  will-change: transform;
}

.marquee-track.marquee-run {
  animation: marquee-loop var(--marquee-duration, 40s) linear infinite;
}

@keyframes marquee-loop {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.marquee-group {
  display: flex;
  flex-shrink: 0;
  gap: 48px;
  align-items: center;
  padding-right: 48px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.marquee-group span {
  white-space: nowrap;
  position: relative;
}

.marquee-group span + span::before {
  content: "◆";
  position: absolute;
  left: -24px;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 8px;
  line-height: 1;
  color: var(--muted-2);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-marquee { overflow-x: auto; }
  .marquee-track.marquee-run { animation: none; }
  .marquee-track { flex-wrap: wrap; width: 100%; justify-content: center; gap: 16px; }
  .marquee-group { flex-wrap: wrap; justify-content: center; padding-right: 0; }
}

.hero-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-h) - 49px);
  padding: 32px;
}

/* Giant animated logo — scales down on scroll via JS */
.hero-logo-stage {
  position: relative;
  width: min(720px, 92vw);
  aspect-ratio: 400.23 / 374.16;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  transform-origin: center center;
}

.hero-logo-svg {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero-logo-svg [fill="#e2e2e2"] {
  fill: var(--text);
}

/* Lágrimas — caem direto, sem pausa no topo */
.hero-logo-svg .logo-drip {
  transform-box: fill-box;
  transform-origin: 50% 0%;
  animation: dripFall 2.8s ease-in infinite;
  will-change: transform, opacity;
}

.hero-logo-svg .logo-drip--left   { animation-delay: -0.35s; }
.hero-logo-svg .logo-drip--center { animation-delay: -1.25s; }
.hero-logo-svg .logo-drip--right  { animation-delay: -2.15s; }

@keyframes dripFall {
  0%   { opacity: 1; transform: translateY(0); }
  82%  { opacity: 0.25; transform: translateY(56px); }
  92%  { opacity: 0; transform: translateY(68px); }
  93%, 100% { opacity: 0; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo-svg .logo-drip { animation: none; opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .hero-logo-stage { width: min(520px, 88vw); }
}

/* ---------- stats ---------- */
.stats {
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 40px 28px;
  border-right: 1px solid var(--line);
}

.stat-item:last-child { border-right: none; }

.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 12px;
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-dec {
  font-size: 0.45em;
  color: var(--muted);
  font-family: var(--font-mono);
  margin-left: 2px;
}

.stat-desc {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 24ch;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
}

@media (max-width: 520px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--line); }
  .stat-item:last-child { border-bottom: none; }
}

/* ---------- philosophy ---------- */
.philosophy {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
}

.philosophy-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  max-width: 18ch;
  margin: 0 0 56px;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 680px;
  margin-left: auto;
}

.philosophy-card {
  border: 1px solid var(--line);
  padding: 36px;
  background: var(--bg-elevated);
}

.card-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 20px;
}

.philosophy-card h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.45;
  margin: 0 0 28px;
  color: var(--text);
}

.link-explore {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.link-explore:hover { color: var(--text); }

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 56px;
}

/* ---------- services ---------- */
.services {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.services-head {
  text-align: center;
}

.services-head .section-title {
  margin-left: auto;
  margin-right: auto;
}

.services-track-wrap {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
  display: flex;
  justify-content: center;
}

.services-track-wrap::-webkit-scrollbar { display: none; }

.services-track {
  display: flex;
  gap: 0;
  width: max-content;
  justify-content: center;
}

.service-card {
  flex: 0 0 min(340px, 85vw);
  padding: 36px 32px;
  border: 1px solid var(--line);
  border-right: none;
  background: var(--bg);
  transition: background 0.2s ease;
  text-align: center;
}

.service-card:last-child { border-right: 1px solid var(--line); }

.service-card:hover { background: var(--bg-elevated); }

.srv-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  margin-bottom: 24px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 36px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  line-height: 1;
}

.service-card p {
  margin: 0 auto;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 28ch;
}

/* ---------- works ---------- */
.works {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
}

.works-heading {
  margin-bottom: 48px;
}

.works-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 48px;
  border: 1px solid var(--line);
  width: fit-content;
}

.works-tab {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.works-tab:not(:last-child) {
  border-right: 1px solid var(--line);
}

.works-tab.active,
.works-tab:hover {
  background: var(--text);
  color: var(--bg);
}

.works-list.hidden { display: none; }

.work-item {
  border-top: 1px solid var(--line);
}

.work-item:last-child {
  border-bottom: 1px solid var(--line);
}

.work-card {
  display: grid;
  grid-template-columns: 140px 1fr 200px auto;
  gap: 32px;
  align-items: center;
  padding: 36px 0;
  width: 100%;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: default;
  transition: background 0.2s ease;
}

.work-card--toggle {
  cursor: pointer;
  position: relative;
}

.work-card--toggle:hover { background: rgba(255, 255, 255, 0.02); }

.work-card.locked {
  opacity: 0.55;
  grid-template-columns: 140px 1fr 200px;
  cursor: default;
}

.work-card.locked:hover { background: transparent; }

.work-item.is-open .work-card--toggle {
  background: rgba(255, 255, 255, 0.03);
}

.work-expand {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--muted);
  line-height: 1;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.work-item.is-open .work-expand {
  transform: rotate(45deg);
}

.work-panel {
  overflow: hidden;
}

.work-panel-inner {
  background: #f5f5f3;
  color: #141416;
  padding: 0 40px;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.45s ease, padding 0.45s ease, opacity 0.3s ease;
}

.work-item.is-open .work-panel-inner {
  padding: 48px 40px;
  max-height: 1200px;
  opacity: 1;
}

.work-panel-tagline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(18px, 2.5vw, 24px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 20px;
}

.work-panel-lead {
  font-size: 16px;
  line-height: 1.55;
  color: #3a3a3e;
  margin: 0 0 20px;
  max-width: 68ch;
}

.work-panel-about {
  font-size: 15px;
  line-height: 1.6;
  color: #525256;
  margin: 0 0 28px;
  max-width: 72ch;
}

.work-panel-features {
  margin: 0 0 32px;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.work-panel-features li {
  font-size: 14.5px;
  line-height: 1.45;
  color: #3a3a3e;
}

.work-panel-inner .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 28px;
  background: #141416;
  color: #f5f5f3;
  border: 1px solid #141416;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-dark:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #141416;
}

.btn-dark[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.btn-dark-outline {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 28px;
  background: transparent;
  color: #141416;
  border: 1px solid rgba(20, 20, 22, 0.35);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-dark-outline:hover {
  background: #141416;
  color: #f5f5f3;
}

.work-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-num,
.case-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-num { color: var(--muted-2); }
.case-cat { color: var(--muted); }

.work-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 12px;
  line-height: 0.95;
}

.work-body p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 48ch;
}

.work-thumb {
  aspect-ratio: 16/10;
  border: 1px solid var(--line);
  overflow: hidden;
}

.thumb-grad {
  width: 100%;
  height: 100%;
}

.thumb-grad.g1 {
  background: linear-gradient(135deg, #1a0a2e 0%, #b24bf3 50%, #ef4d9e 100%);
}
.thumb-grad.g2 {
  background: linear-gradient(135deg, #0a0a0c 0%, #2a2a2e 100%);
}
.thumb-grad.g3 {
  background: linear-gradient(135deg, #0a0a0c 0%, #1a1a1e 100%);
}

.all-works {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 16px 24px;
  transition: background 0.2s ease, color 0.2s ease;
}

.all-works:hover {
  background: var(--text);
  color: var(--bg);
}

@media (max-width: 900px) {
  .services-track-wrap { justify-content: flex-start; }
  .services-track { padding: 0 32px; }
  .work-card,
  .work-card.locked {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .work-expand {
    position: absolute;
    top: 36px;
    right: 0;
  }
  .work-card--toggle { padding-right: 36px; }
  .work-thumb { max-width: 280px; }
  .work-panel-inner,
  .work-item.is-open .work-panel-inner {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* ---------- testimonials ---------- */
.testimonials {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
}

.split-title {
  margin-bottom: 20px;
}

.section-lead {
  font-size: 15px;
  color: var(--muted);
  max-width: 42ch;
  margin: 0 0 56px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}

.testimonial-card {
  margin: 0;
  padding: 36px 28px;
  border-right: 1px solid var(--line);
}

.testimonial-card:last-child { border-right: none; }

.testimonial-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 28px;
}

.testimonial-card footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testimonial-card cite {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.testimonial-card footer span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}

@media (max-width: 900px) {
  .testimonial-grid { grid-template-columns: 1fr; }
  .testimonial-card {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .testimonial-card:last-child { border-bottom: none; }
}

/* ---------- FAQ ---------- */
.faq-section {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 24px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0;
  padding: 0 0 24px;
  font-size: 14px;
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.55;
}

.faq-item p a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 18px 32px;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.btn-primary[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-outline {
  background: transparent;
  color: var(--text);
}

.btn-outline:hover {
  background: var(--text);
  color: var(--bg);
}

/* ---------- footer ---------- */
.site-footer {
  padding: 80px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line);
}

.footer-cta-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0;
}

.footer-cta-title em {
  font-style: italic;
  font-weight: 700;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--text); }

.newsletter-form {
  display: flex;
  border: 1px solid var(--line);
}

.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text);
  min-width: 0;
}

.newsletter-form input::placeholder { color: var(--muted-2); }

.newsletter-form button {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--text);
  color: var(--bg);
  border: none;
  padding: 14px 20px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.newsletter-form button:hover { background: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  transition: color 0.2s ease;
}

.footer-legal a:hover { color: var(--text); }

.footer-copy {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; gap: 48px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .footer-cols { grid-template-columns: 1fr; }
}

/* ---------- legal / contact pages ---------- */
.legal {
  padding: calc(var(--header-h) + 64px) 0 100px;
}

.legal .container { max-width: 820px; }

.legal .section-tag { margin-bottom: 16px; }

.legal h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 8vw, 80px);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin: 0 0 8px;
}

.legal .updated {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 40px;
}

.legal h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 40px 0 12px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.legal h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 24px 0 10px;
  line-height: 1.2;
  color: var(--text);
}

.legal code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border: 1px solid var(--line);
}

.legal p, .legal li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.legal ul,
.legal ol { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--text); }

.callout {
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  background: var(--bg-elevated);
  padding: 20px 24px;
  font-size: 14px;
  color: var(--muted);
  margin: 24px 0;
}

.contact-card {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 520px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.contact-row:last-child { border-bottom: none; padding-bottom: 0; }
.contact-row:first-child { padding-top: 0; }

.contact-row .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  min-width: 100px;
}

.contact-row a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- cursor lantern (ilumina — não escurece) ---------- */
.cursor-lantern {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.35s ease;
}

body.cursor-light-on .cursor-lantern {
  opacity: 1;
}

/* Feixe amplo — segue com suavização via JS */
.cursor-lantern__beam {
  position: fixed;
  left: calc(var(--mx) - 240px);
  top: calc(var(--my) - 240px);
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(
    circle closest-side,
    rgba(255, 252, 245, 0.14) 0%,
    rgba(255, 252, 245, 0.06) 28%,
    rgba(178, 75, 243, 0.035) 48%,
    transparent 72%
  );
  filter: blur(8px);
  will-change: left, top;
}

/* Hotspot mais intenso no centro */
.cursor-lantern__core {
  position: fixed;
  left: calc(var(--mx) - 100px);
  top: calc(var(--my) - 100px);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 252, 245, 0.05) 40%,
    transparent 72%
  );
  mix-blend-mode: soft-light;
  will-change: left, top;
}

/* Anel suave de borda da lanterna */
.cursor-lantern__ring {
  position: fixed;
  left: calc(var(--mx) - 130px);
  top: calc(var(--my) - 130px);
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(255, 252, 245, 0.06);
  background: radial-gradient(
    circle,
    transparent 58%,
    rgba(255, 252, 245, 0.025) 78%,
    transparent 100%
  );
  will-change: left, top;
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-lantern { display: none; }
}
