:root {
  --ocean-950: #050b11;
  --ocean-900: #08121b;
  --ocean-850: #0b1722;
  --ocean-800: #101e2a;
  --steel-100: #edf2f5;
  --steel-300: #b3c0c8;
  --steel-500: #71818c;
  --brass: #d6b25e;
  --brass-bright: #ebca77;
  --signal: #52d68a;
  --signal-soft: rgba(82, 214, 138, 0.13);
  --blue: #2d68ad;
  --blue-dark: #17436f;
  --red: var(--brass);
  --bg: var(--ocean-900);
  --panel: var(--ocean-850);
  --panel-dark: var(--ocean-950);
  --panel-strong: var(--ocean-950);
  --line: rgba(190, 211, 225, 0.12);
  --text: var(--steel-100);
  --muted: var(--steel-300);
  --shadow: 0 18px 52px rgba(0, 0, 0, 0.26);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

::selection {
  color: var(--ocean-950);
  background: var(--brass);
}

html {
  scrollbar-color: var(--brass) var(--ocean-950);
}

body {
  overflow-x: hidden;
  background: var(--ocean-900);
  color: var(--text);
  font-family: Aptos, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(118, 154, 179, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118, 154, 179, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

body::after {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  width: var(--scroll-progress, 0%);
  height: 2px;
  content: "";
  background: var(--brass-bright);
  box-shadow: 0 0 14px rgba(235, 202, 119, 0.5);
}

:focus-visible {
  outline: 2px solid var(--brass-bright);
  outline-offset: 4px;
}

.site-header {
  min-height: 74px;
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 11, 17, 0.88);
  backdrop-filter: blur(18px) saturate(1.2);
  transition: min-height 240ms ease, background 240ms ease;
}

.site-header.is-compact {
  min-height: 62px;
  background: rgba(5, 11, 17, 0.96);
}

.site-brand {
  left: clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  width: auto;
  height: 46px;
  gap: 12px;
}

.site-brand img {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.45));
  transition: transform 400ms var(--ease-out);
}

.site-brand::after {
  max-width: 118px;
  content: "BATALHAO\A TONELERO";
  white-space: pre;
  color: var(--steel-100);
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: 0.69rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.14em;
}

.site-brand:hover img {
  transform: rotate(-4deg) scale(1.06);
}

.site-nav {
  gap: clamp(18px, 2.5vw, 36px);
}

.site-nav a {
  position: relative;
  padding: 27px 0 24px;
  color: var(--steel-300);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  transition: color 180ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 19px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 280ms var(--ease-out);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--steel-100);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.enrollment-pill {
  position: absolute;
  right: clamp(20px, 4vw, 64px);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid rgba(82, 214, 138, 0.25);
  background: var(--signal-soft);
  color: #baf4d0;
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.enrollment-pill span,
.open-tag span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 5px rgba(82, 214, 138, 0.1);
  animation: signal-pulse 2.4s ease-out infinite;
}

.enrollment-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(82, 214, 138, 0.5);
  background: rgba(82, 214, 138, 0.18);
}

.content-section {
  width: min(1180px, calc(100% - 48px));
  padding: clamp(48px, 7vw, 88px) 0;
}

.section-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brass);
  font-weight: 700;
  letter-spacing: 0.16em;
}

.section-tag:not(.open-tag)::before {
  width: 28px;
  height: 1px;
  content: "";
  background: currentColor;
}

.open-tag {
  color: #9cebb9;
}

.hero-section {
  min-height: calc(100vh - 74px);
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-section::after {
  position: absolute;
  right: clamp(24px, 5vw, 72px);
  bottom: 42px;
  z-index: 2;
  content: "23°00'S  /  43°23'W";
  color: rgba(237, 242, 245, 0.62);
  font-family: Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  writing-mode: vertical-rl;
}

.hero-image {
  height: calc(100vh - 74px);
  min-height: 620px;
  animation: hero-arrive 1.8s var(--ease-out) both;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(5, 11, 17, 0.95) 0%, rgba(5, 11, 17, 0.62) 46%, rgba(5, 11, 17, 0.2) 75%), linear-gradient(0deg, rgba(5, 11, 17, 0.74), transparent 55%);
}

.hero-copy {
  padding-bottom: clamp(56px, 9vh, 110px);
}

.hero-copy h1 {
  max-width: 11ch;
  margin-bottom: 20px;
  font-size: clamp(3.2rem, 6vw, 4.8rem);
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-copy p:last-of-type {
  max-width: 58ch;
  color: #d6e0e6;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
}

.text-link {
  color: var(--steel-100);
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: 0.77rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.text-link span {
  display: inline-block;
  margin-left: 6px;
  color: var(--brass);
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateX(5px);
}

.action-button {
  min-height: 44px;
  border-radius: 2px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.action-button:hover {
  transform: translateY(-3px);
}

.action-button-primary {
  border: 1px solid var(--brass) !important;
  background: var(--brass) !important;
  color: var(--ocean-950) !important;
  box-shadow: 0 10px 28px rgba(214, 178, 94, 0.16);
}

.action-button-primary:hover {
  background: var(--brass-bright) !important;
  box-shadow: 0 14px 34px rgba(214, 178, 94, 0.24);
}

.action-button-secondary {
  border: 1px solid var(--line) !important;
  background: transparent !important;
  color: var(--steel-100) !important;
}

.action-button-secondary:hover {
  border-color: rgba(237, 242, 245, 0.32) !important;
  background: rgba(237, 242, 245, 0.05) !important;
}

.intro-logo,
.about-logo,
.feature-card,
.info-card,
.detail-card,
.join-form,
.mini-gallery figure,
.support-gallery figure,
.faq-item,
.slider,
.video-card,
.form-side img {
  border-color: var(--line);
  background: rgba(11, 23, 34, 0.92);
  box-shadow: var(--shadow);
}

.feature-card,
.info-card,
.detail-card,
.faq-item,
.mini-gallery figure,
.support-gallery figure,
.form-side img,
.video-card {
  transition: transform 420ms var(--ease-out), border-color 240ms ease, background 240ms ease;
}

.feature-card:hover,
.info-card:hover,
.detail-card:hover,
.mini-gallery figure:hover,
.support-gallery figure:hover,
.form-side img:hover,
.video-card:hover {
  transform: translateY(-7px);
  border-color: rgba(214, 178, 94, 0.34);
  background: rgba(16, 30, 42, 0.96);
}

.mini-gallery figure,
.support-gallery figure,
.slider,
.form-side img,
.feature-card > img,
.wide-banner {
  overflow: hidden;
}

.mini-gallery img,
.support-gallery img,
.feature-card > img,
.form-side img,
.slide img {
  filter: saturate(0.72) contrast(1.06);
  transition: transform 800ms var(--ease-out), filter 500ms ease;
}

.mini-gallery figure:hover img,
.support-gallery figure:hover img,
.feature-card:hover > img,
.slide.is-active img {
  filter: saturate(0.94) contrast(1.04);
  transform: scale(1.035);
}

.intro-copy h2,
.section-title,
.mission-quote {
  color: var(--brass);
}

.intro-copy h2,
.about-copy h1,
.page-title,
.text-block h1 {
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.info-list li::marker {
  color: var(--brass);
}

.schedule-list li,
.badge-image,
.wide-badge {
  border-color: var(--line);
  background: var(--ocean-950);
}

.schedule-list li,
.faq-question {
  border-left-color: var(--brass);
}

.faq-question:hover {
  background: rgba(214, 178, 94, 0.04);
}

.faq-toggle {
  color: var(--brass);
  transition: transform 260ms var(--ease-out);
}

.faq-item.is-open .faq-toggle {
  transform: rotate(45deg);
}

.slider {
  border-radius: 2px;
}

.slide.is-active {
  animation: slide-reveal 600ms var(--ease-out) both;
}

.slider-arrow {
  border-color: var(--line);
  background: rgba(5, 11, 17, 0.88);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.slider-arrow:hover {
  color: var(--ocean-950);
  background: var(--brass);
}

.slider-arrow-left:hover {
  transform: translateY(-50%) translateX(-3px);
}

.slider-arrow-right:hover {
  transform: translateY(-50%) translateX(3px);
}

.slider-counter {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: rgba(5, 11, 17, 0.82);
  color: var(--steel-100);
  font-family: Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.join-form {
  position: relative;
  gap: 20px;
  padding: clamp(24px, 4vw, 42px);
  border-top: 2px solid var(--brass);
}

.join-form::before {
  position: absolute;
  top: 16px;
  right: 18px;
  content: "TRIAGEM  /  01";
  color: var(--steel-500);
  font-family: Consolas, monospace;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
}

.join-form label > span,
.radio-group legend {
  color: var(--steel-300);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.join-form input[type="text"],
.join-form input[type="url"],
.join-form textarea {
  min-height: 48px;
  border-color: var(--line);
  border-radius: 2px;
  background: var(--ocean-950);
  color: var(--text);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.join-form input:hover,
.join-form textarea:hover {
  border-color: rgba(190, 211, 225, 0.25);
}

.join-form input:focus,
.join-form textarea:focus {
  border-color: var(--brass);
  background: #07111a;
  box-shadow: 0 0 0 3px rgba(214, 178, 94, 0.12);
}

.join-form button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.join-form button.is-loading::after {
  width: 13px;
  height: 13px;
  margin-left: 10px;
  border: 2px solid rgba(5, 11, 17, 0.32);
  border-top-color: var(--ocean-950);
  border-radius: 50%;
  content: "";
  animation: button-spin 700ms linear infinite;
}

.form-notice {
  padding: 0;
  transition: padding 180ms ease, background 180ms ease;
}

.form-notice:not(:empty) {
  padding: 12px 14px;
  border-left: 2px solid currentColor;
  background: rgba(255, 255, 255, 0.035);
}

.form-notice.is-success {
  color: #9cebb9;
}

.reveal-ready {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 720ms var(--ease-out), transform 720ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

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

@keyframes signal-pulse {
  0%, 55% { box-shadow: 0 0 0 0 rgba(82, 214, 138, 0.32); }
  100% { box-shadow: 0 0 0 9px rgba(82, 214, 138, 0); }
}

@keyframes hero-arrive {
  from { opacity: 0; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slide-reveal {
  from { opacity: 0; transform: scale(0.985); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes button-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1080px) {
  .site-header {
    justify-content: flex-end;
  }

  .enrollment-pill {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 68px;
    padding: 0 16px;
  }

  .site-brand {
    left: 16px;
  }

  .site-brand::after {
    display: none;
  }

  .site-nav {
    display: flex;
    gap: 15px;
  }

  .site-nav a {
    padding: 25px 0 22px;
    font-size: 0.66rem;
    letter-spacing: 0.07em;
  }

  .site-nav a::after {
    bottom: 17px;
  }

  .hero-section,
  .hero-image {
    min-height: 680px;
    height: calc(100svh - 68px);
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(5, 11, 17, 0.96) 0%, rgba(5, 11, 17, 0.5) 67%, rgba(5, 11, 17, 0.18) 100%);
  }

  .hero-copy h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .hero-actions .action-button {
    width: fit-content;
  }

  .hero-section::after {
    display: none;
  }

  .content-section {
    width: min(100% - 28px, 1180px);
    padding: 50px 0;
  }

  .intro-grid,
  .about-grid,
  .info-layout,
  .detail-grid,
  .form-grid,
  .requirements-grid,
  .cards-grid,
  .mini-gallery,
  .support-gallery,
  .video-grid,
  .wide-content {
    grid-template-columns: 1fr;
  }
}

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

  .reveal-ready {
    opacity: 1;
    transform: none;
  }
}
