@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap");

:root {
  --font: "Montserrat", system-ui, sans-serif;
  --color-bg: #0a0706;
  --color-bg-soft: #1c1512;
  --color-border: #3c2f2a;
  --color-fg: #ffffff;
  --color-fg-dim: rgba(255, 255, 255, 0.68);
  --color-fg-faint: rgba(255, 255, 255, 0.45);
  --color-accent: #ff2233;
  --color-accent-2: #ff7a3d;
  --color-accent-dark: #a10f16;
  --color-accent-soft: rgba(255, 34, 51, 0.16);
  --color-accent-glow: rgba(255, 34, 51, 0.45);
  --color-charcoal: #484b4c;
  --radius: 0.75rem;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

section {
  scroll-margin-top: 5rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 7, 6, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

@media (max-width: 767px) {
  .site-header {
    display: none;
  }
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 6rem;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }

  .header-inner .logo {
    grid-column: 1;
    justify-self: start;
  }

  .header-inner .nav {
    grid-column: 2;
    justify-self: center;
  }
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}

.logo img {
  height: 6.5rem;
  width: auto;
}

.nav {
  display: none;
  gap: 2.25rem;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.nav a {
  position: relative;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  color: var(--color-fg-dim);
  transition: color 0.2s ease;
}

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

.nav a[aria-current="page"] {
  color: var(--color-accent);
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.65rem;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
  box-shadow: 0 0 10px var(--color-accent-glow);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-bg);
  padding: 6rem 1.5rem;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--color-bg);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000000;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero.is-revealed .hero-media::after {
  opacity: 0.55;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-media-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 30% 15%,
      rgba(255, 34, 51, 0.28),
      transparent 55%
    ),
    radial-gradient(circle at 78% 65%, rgba(255, 122, 61, 0.16), transparent 60%),
    linear-gradient(
      90deg,
      rgba(10, 7, 6, 0.92) 0%,
      rgba(10, 7, 6, 0.6) 42%,
      rgba(10, 7, 6, 0.3) 72%,
      rgba(10, 7, 6, 0.6) 100%
    );
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero-inner {
    justify-content: flex-start;
  }
}

.hero-content {
  max-width: 34rem;
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  pointer-events: none;
}

.hero.is-revealed .hero-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (min-width: 1024px) {
  .hero-content {
    text-align: left;
    transform: translateX(-18px);
  }

  .hero.is-revealed .hero-content {
    transform: translateX(0);
  }
}

.eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-fg-dim);
}

.eyebrow--accent {
  color: var(--color-accent);
}

.hero-title {
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-size: 2.1rem;
  color: var(--color-fg);
  margin: 0;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-subtitle {
  margin: 1.75rem auto 0;
  max-width: 32rem;
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  color: var(--color-fg-dim);
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.125rem;
  }
}

@media (min-width: 1024px) {
  .hero-subtitle {
    margin-left: 0;
    margin-right: 0;
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.75rem;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  color: #ffffff;
  padding: 1rem 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(255, 34, 51, 0.28);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(255, 34, 51, 0.45);
  transform: translateY(-2px);
}

.btn-primary .arrow {
  transition: transform 0.2s ease;
}

.btn-primary:hover .arrow {
  transform: translateX(3px);
}

/* ---------- Services ---------- */

.services {
  padding: 6.5rem 1.5rem;
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
}

.services-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

@media (min-width: 768px) {
  .services-inner {
    flex-direction: row;
    align-items: flex-start;
  }
}

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

@media (min-width: 768px) {
  .services-heading {
    flex: 0 0 30%;
    text-align: left;
    position: sticky;
    top: 6rem;
  }
}

.services-title {
  margin: 0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: 2.25rem;
  color: var(--color-fg);
}

.services-list {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.service-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.service-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.service-icon {
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 4rem;
  height: 4rem;
  padding: 0.7rem;
  border-radius: 50%;
  background: var(--color-accent-soft);
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-copy h3 {
  margin: 0 0 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.125rem;
  color: var(--color-fg);
}

.service-copy p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-fg-dim);
  max-width: 32rem;
}

/* ---------- Services (home) ---------- */

.services-home {
  padding: 6.5rem 1.5rem;
  background: #000000;
  text-align: center;
}

.services-home-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.services-home-title {
  margin: 0.75rem 0 0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: 2.25rem;
  color: var(--color-fg);
}

.services-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
}

.service-card-icon {
  display: block;
  width: 7rem;
  height: 7rem;
}

.service-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.9;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.service-card:hover .service-card-icon img {
  opacity: 1;
  filter: drop-shadow(0 0 14px rgba(255, 34, 51, 0.55));
  transform: scale(1.06);
}

.service-card-title {
  margin: 1.75rem 0 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.9375rem;
  color: var(--color-accent);
}

.service-card-text {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.75;
  color: var(--color-fg);
  max-width: 20rem;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  color: #ffffff;
  padding: 0.85rem 1.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(255, 34, 51, 0.28);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.service-card-link:hover {
  box-shadow: 0 12px 32px rgba(255, 34, 51, 0.45);
  transform: translateY(-2px);
}

.service-card-link .arrow {
  transition: transform 0.2s ease;
}

.service-card-link:hover .arrow {
  transform: translateX(3px);
}

/* ---------- Before / after ---------- */

.transform {
  padding: 6.5rem 1.5rem;
  border-top: 1px solid var(--color-border);
}

.transform-header {
  max-width: 40rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.ba-slider {
  position: relative;
  max-width: 40rem;
  margin: 0 auto;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.ba-photo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-fg-faint);
}

.ba-photo--after {
  background: linear-gradient(135deg, var(--color-bg-soft), #0d0806);
}

.ba-photo--before {
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(135deg, #0d0806, var(--color-bg-soft));
}

.ba-clip {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--color-accent);
  pointer-events: none;
}

.ba-handle-grip {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  box-shadow: 0 4px 20px rgba(255, 34, 51, 0.4);
}

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

.transform-note {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-fg-faint);
}

/* ---------- Tradition / 3D section ---------- */

.tradition {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
  overflow: hidden;
}

.tradition-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(rgba(10, 7, 6, 0.8), rgba(10, 7, 6, 0.8)),
    url("./images/tradicao-bg.jpg") center / cover no-repeat;
}

.tradition::before {
  z-index: 1;
}

.tradition-scene,
.tradition-text {
  z-index: 1;
}

.section-first {
  border-top: none;
}

@media (min-width: 768px) {
  .tradition {
    flex-direction: row;
  }
}

.tradition-scene {
  position: relative;
  width: 100%;
  height: 50vh;
}

@media (min-width: 768px) {
  .tradition-scene {
    width: 50%;
    height: 100vh;
  }
}

.tradition-scene canvas {
  display: block;
}

.tradition-text {
  position: relative;
  width: 100%;
  padding: 3rem 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .tradition-text {
    width: 50%;
    padding: 3rem 4.5rem;
    text-align: left;
  }
}

.tradition-title {
  margin: 0 0 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-size: 2rem;
  color: var(--color-fg);
}

@media (min-width: 768px) {
  .tradition-title {
    font-size: 2.75rem;
  }
}

.tradition-body {
  margin: 0 auto;
  max-width: 28rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-fg-dim);
}

.tradition-body + .tradition-body {
  margin-top: 1.25rem;
}

@media (min-width: 768px) {
  .tradition-body {
    margin: 0;
  }
}

/* ---------- Professionals ---------- */

.professionals {
  background: var(--color-bg);
  padding: 6.5rem 1.5rem;
  border-top: 1px solid var(--color-border);
}

.professionals-header {
  max-width: 64rem;
  margin: 0 auto 4rem;
  text-align: center;
}

.professionals-title {
  margin: 0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: 2rem;
  color: var(--color-fg);
}

@media (min-width: 768px) {
  .professionals-title {
    font-size: 2.75rem;
  }
}

.professionals-list {
  max-width: 68rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.professional-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .professional-row {
    flex-direction: row;
    gap: 3.5rem;
  }

  .professional-row--reverse {
    flex-direction: row-reverse;
  }
}

.professional-photo {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.professional-row:hover .professional-photo {
  border-color: var(--color-accent);
  box-shadow: 0 16px 40px rgba(255, 34, 51, 0.18);
}

@media (min-width: 768px) {
  .professional-photo {
    flex: 0 0 45%;
  }
}

.professional-photo img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  transition: filter 0.5s ease, transform 0.5s ease;
}

.professional-row:hover .professional-photo img {
  filter: saturate(1.2) contrast(1.08);
  transform: scale(1.03);
}

.professional-details {
  width: 100%;
  text-align: center;
}

@media (min-width: 768px) {
  .professional-details {
    flex: 1 1 auto;
    text-align: left;
  }
}

.professional-name {
  margin: 0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 1.75rem;
  color: var(--color-fg);
}

.professional-role {
  margin: 0.5rem 0 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
}

.professional-bio p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-fg-dim);
}

.professional-bio p:last-child {
  margin-bottom: 0;
}

.professionals-footer {
  margin-top: 4rem;
  text-align: center;
}

.professionals-footer a {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-fg-dim);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.professionals-footer a:hover {
  color: var(--color-accent);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
  padding: 3.5rem 1.5rem;
  text-align: center;
}

.footer-inner {
  max-width: 40rem;
  margin: 0 auto;
}

.footer-brand {
  display: inline-block;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-fg);
  text-decoration: none;
}

.footer-tagline {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-fg-dim);
}

.site-footer .btn-primary {
  margin-top: 2.25rem;
}

.footer-nav {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--color-fg-dim);
  transition: color 0.2s ease;
}

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

.footer-copy {
  margin: 2rem 0 0;
  font-size: 0.7rem;
  color: var(--color-fg-faint);
}

/* ---------- Home teasers ---------- */

.teaser {
  padding: 6.5rem 1.5rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.teaser-inner {
  max-width: 40rem;
  margin: 0 auto;
}

.teaser-inner .tradition-body {
  margin: 1.5rem auto 0;
}

.teaser-link {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  text-decoration: none;
}

.teaser-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.gallery-teaser-grid {
  margin: 3rem auto 0;
  max-width: var(--container);
  column-count: 1;
  column-gap: 1rem;
}

@media (min-width: 640px) {
  .gallery-teaser-grid {
    column-count: 2;
  }
}

@media (min-width: 1024px) {
  .gallery-teaser-grid {
    column-count: 3;
  }
}

/* ---------- Contact page ---------- */

.contact-hero {
  padding: 8rem 1.5rem 5rem;
  text-align: center;
}

.contact-title {
  margin: 0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: 2.5rem;
  color: var(--color-fg);
}

@media (min-width: 768px) {
  .contact-title {
    font-size: 3.25rem;
  }
}

.contact-lead {
  margin: 1.5rem auto 0;
  max-width: 32rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-fg-dim);
}

.contact-info {
  margin: 4rem auto 0;
  max-width: 40rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  text-align: left;
}

.contact-info h3 {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
}

.contact-info p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-fg-dim);
  line-height: 1.6;
}

/* ---------- Gallery ---------- */

.gallery {
  padding: 6.5rem 1.5rem;
  border-top: 1px solid var(--color-border);
}

.gallery-header {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.gallery-title {
  margin: 0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: 2.25rem;
  color: var(--color-fg);
}

.gallery-subtitle {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-fg-dim);
}

.gallery-filters {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0.75rem;
  max-width: var(--container);
  margin: 0 auto 2.5rem;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.gallery-filters::-webkit-scrollbar {
  height: 4px;
}

.gallery-filters::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

.filter-btn {
  flex: 0 0 auto;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-fg-dim);
  padding: 0.55rem 1.1rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease,
    background-color 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-fg);
}

.filter-btn.is-active {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(255, 34, 51, 0.3);
}

.gallery-grid {
  max-width: var(--container);
  margin: 0 auto;
  column-count: 1;
  column-gap: 1rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    column-count: 2;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    column-count: 3;
  }
}

.gallery-item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  border-color: var(--color-accent);
  box-shadow: 0 16px 36px rgba(255, 34, 51, 0.2);
}

.gallery-item[hidden] {
  display: none;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-tag {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  background: rgba(30, 8, 8, 0.72);
  color: var(--color-fg);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.gallery-empty {
  text-align: center;
  margin: 2rem 0 0;
  font-size: 0.875rem;
  color: var(--color-fg-faint);
}

/* ---------- History page ---------- */

.history-hero {
  max-width: 44rem;
  margin: 0 auto;
  padding: 8rem 1.5rem 3rem;
  text-align: center;
}

.history-hero .contact-title {
  font-size: 2.25rem;
}

@media (min-width: 768px) {
  .history-hero .contact-title {
    font-size: 3rem;
  }
}

.history-intro {
  max-width: 40rem;
  margin: 1.5rem auto 0;
}

.history-intro p {
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-fg-dim);
}

.history-intro p:last-child {
  margin-bottom: 0;
}

.timeline {
  max-width: 44rem;
  margin: 1rem auto 5rem;
  padding: 0 1.5rem;
}

.timeline-item {
  position: relative;
  padding: 0 0 3.5rem 3rem;
  border-left: 2px solid var(--color-border);
}

.timeline-item:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.timeline-dot {
  position: absolute;
  left: -0.8125rem;
  top: 0.1rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px solid var(--color-accent);
  box-shadow: 0 0 16px var(--color-accent-glow);
}

.timeline-dot::after {
  content: "";
  position: absolute;
  inset: 0.3125rem;
  border-radius: 50%;
  background: var(--color-accent);
}

.timeline-year {
  display: block;
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.timeline-item h2 {
  margin: 0 0 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 1.375rem;
  color: var(--color-fg);
}

.timeline-item p {
  margin: 0 0 1.1rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--color-fg-dim);
}

.timeline-item p:last-child {
  margin-bottom: 0;
}

.history-statement {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
  text-align: center;
}

.history-statement p {
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-fg-dim);
}

.history-statement p:last-child {
  margin-bottom: 0;
}

.history-worldline {
  margin: 0 0 2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.75rem;
  color: var(--color-fg);
}

@media (min-width: 768px) {
  .history-worldline {
    font-size: 2.25rem;
  }
}

.history-quote {
  max-width: 34rem;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
  text-align: center;
  font-size: 1.375rem;
  line-height: 1.5;
  font-weight: 600;
  font-style: italic;
  color: var(--color-fg);
}

@media (min-width: 768px) {
  .history-quote {
    font-size: 1.625rem;
  }
}

.history-cta {
  text-align: center;
  padding: 0 1.5rem 6.5rem;
}

/* ---------- Section accent dividers ---------- */

.services,
.transform,
.tradition,
.professionals,
.gallery,
.teaser {
  position: relative;
}

.services::before,
.transform::before,
.tradition::before,
.professionals::before,
.gallery::before,
.teaser::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 6rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.section-first::before {
  display: none;
}

.site-footer {
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 6rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

/* ---------- Mobile tab bar ---------- */

@media (min-width: 768px) {
  .mobile-tabbar,
  .mobile-more-sheet {
    display: none !important;
  }
}

@media (max-width: 767px) {
  body {
    padding-bottom: 4.5rem;
  }
}

.mobile-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  background: rgba(10, 7, 6, 0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-border);
}

.mobile-tab {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.6rem 0.25rem 0.55rem;
  background: none;
  border: none;
  color: var(--color-fg-faint);
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
}

.mobile-tab-icon {
  width: 1.4rem;
  height: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-tab-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.mobile-tab-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.55;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.mobile-tab-label {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mobile-tab[aria-current="page"],
.mobile-tab.is-active {
  color: var(--color-accent);
}

.mobile-tab[aria-current="page"] .mobile-tab-icon img,
.mobile-tab.is-active .mobile-tab-icon img {
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(255, 34, 51, 0.65));
}

.mobile-more-sheet {
  position: fixed;
  inset: 0;
  z-index: 15;
}

.mobile-more-sheet[hidden] {
  display: none;
}

.mobile-more-backdrop {
  position: absolute;
  inset: 0;
  bottom: 4.5rem;
  background: rgba(0, 0, 0, 0.6);
}

.mobile-more-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4.5rem;
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
  border-radius: 1.25rem 1.25rem 0 0;
  padding: 0.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.mobile-more-handle {
  width: 2.5rem;
  height: 0.25rem;
  margin: 0.25rem auto 1.25rem;
  border-radius: 999px;
  background: var(--color-border);
}

.mobile-more-panel a {
  padding: 0.9rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-fg);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
}

.mobile-more-panel a:last-of-type {
  border-bottom: none;
}

.mobile-more-panel a[aria-current="page"] {
  color: var(--color-accent);
}

/* ---------- WhatsApp floating button ---------- */

.whatsapp-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 18;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.whatsapp-fab svg {
  width: 1.85rem;
  height: 1.85rem;
  fill: #ffffff;
}

@media (max-width: 767px) {
  .whatsapp-fab {
    right: 1rem;
    bottom: calc(4.5rem + 1rem);
    width: 3.25rem;
    height: 3.25rem;
  }

  .whatsapp-fab svg {
    width: 1.7rem;
    height: 1.7rem;
  }
}

/* ---------- Home gallery popup ---------- */

.gallery-teaser-grid .gallery-item {
  cursor: pointer;
}

.gallery-teaser-grid .gallery-item:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.gallery-popup {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.gallery-popup[hidden] {
  display: none;
}

.gallery-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}

.gallery-popup-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 56rem;
  max-height: 85vh;
  overflow-y: auto;
  background: #000000;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.gallery-popup-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: #000000;
  padding: 0.25rem 0 1rem;
}

.gallery-popup-header h3 {
  margin: 0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: 1.5rem;
  color: var(--color-accent);
  text-align: center;
}

.gallery-popup-close {
  position: absolute;
  top: 0.25rem;
  right: 0;
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: transparent;
  color: var(--color-fg);
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.gallery-popup-close:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.gallery-lightbox {
  max-width: 34rem;
}

.gallery-lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 12rem;
}

.gallery-lightbox-image {
  min-width: 0;
  max-width: 100%;
  max-height: 65vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  display: block;
  margin: 0 auto;
}

.gallery-lightbox-nav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border: none;
  background: none;
  color: var(--color-fg);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.gallery-lightbox-nav svg {
  width: 1.75rem;
  height: 1.75rem;
}

.gallery-lightbox-nav:hover {
  color: var(--color-accent);
  transform: scale(1.1);
}

@media (max-width: 639px) {
  .gallery-lightbox-nav {
    color: var(--color-accent);
    padding: 0.15rem;
  }

  .gallery-lightbox-stage {
    gap: 0.1rem;
  }

  .gallery-lightbox-nav svg {
    width: 1.5rem;
    height: 1.5rem;
  }
}

.gallery-lightbox-counter {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-fg-faint);
}

.gallery-popup-cta {
  display: flex;
  margin: 1.5rem auto 0;
  width: max-content;
}
