/* Automatconn — estilos globais e desktop
   Referência visual: Figma Site Automaticonn */

:root {
  --navy-950: #050b2b;
  --navy-900: #050c25;
  --navy-850: #07102f;
  --navy-800: #08133d;
  --navy-700: #09153a;
  --navy-header-from: #0b284a;
  --navy-header-to: #1b5fb0;
  --cyan-400: #3bc1ff;
  --cyan-300: #00c8ff;
  --cyan-200: #00e5ff;
  --cyan-deep: #237499;
  --blue-500: #007bff;
  --gold: #d6a84f;
  --white: #ffffff;
  --mist: #f3f6f8;
  --gray-100: #e8eef5;
  --gray-400: #aab6c8;
  --gray-500: #858383;
  --text: #050c25;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 23px;
  --shadow-card: 0 18px 40px rgba(5, 12, 37, 0.18);
  --shadow-glow: 0 4px 25px rgba(59, 193, 255, 0.35);
  --header-h: 72px;
  --max: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

h1, h2, h3, h4 {
  font-family: Montserrat, Inter, sans-serif;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0; }

.container {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--cyan-400);
  color: var(--navy-900);
  padding: 8px 12px;
  z-index: 100;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 3px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: linear-gradient(90deg, var(--navy-header-from), var(--navy-header-to));
  transition: height 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-compact {
  height: 60px;
  background: linear-gradient(90deg, rgba(11, 40, 74, 0.88), rgba(27, 95, 176, 0.88));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(5, 11, 43, 0.28);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: block;
  width: 168px;
  height: 52px;
  overflow: hidden;
  flex-shrink: 0;
}

.logo img {
  width: 168px;
  height: 168px;
  object-fit: cover;
  object-position: center 46%;
  margin-top: -58px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav ul {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
}

.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--cyan-400);
  box-shadow: 0 0 8px var(--cyan-400);
  transition: width 0.3s var(--ease);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  width: 100%;
}

.site-nav a.is-active {
  color: var(--cyan-400);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  position: relative;
  transition: 0.25s var(--ease);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-size: 0.86rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}

.btn-cta,
.btn-primary {
  background: linear-gradient(180deg, var(--cyan-400) 0%, var(--cyan-deep) 100%);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(35, 116, 153, 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(59, 193, 255, 0.55);
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 10px 22px rgba(59, 193, 255, 0.32);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-950);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 28s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.62) 42%, rgba(2, 14, 29, 0.12) 100%),
    radial-gradient(ellipse at 70% 40%, rgba(59, 193, 255, 0.12), transparent 55%);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 120px rgba(5, 11, 43, 0.55);
  pointer-events: none;
}

.hero-particles,
.hero-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-lines span {
  position: absolute;
  border: 1px solid rgba(59, 193, 255, 0.12);
  border-radius: 50%;
}

.hero-lines span:nth-child(1) { width: 220px; height: 220px; right: 8%; top: 18%; }
.hero-lines span:nth-child(2) { width: 8px; height: 8px; right: 22%; top: 28%; background: var(--cyan-400); box-shadow: 0 0 12px var(--cyan-400); border: 0; }
.hero-lines span:nth-child(3) { width: 4px; height: 4px; right: 16%; bottom: 30%; background: var(--cyan-200); box-shadow: 0 0 10px var(--cyan-200); border: 0; }

.hero-content {
  position: relative;
  z-index: 2;
  padding: 88px 0 110px;
  max-width: 560px;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-weight: 500;
  opacity: 0.95;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 800;
  margin: 10px 0 12px;
}

.hero-kicker {
  color: var(--cyan-400);
  font-weight: 500;
  font-size: 1.05rem;
}

.hero-lead {
  margin-top: 14px;
  max-width: 38ch;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 500;
}

.hero-stat svg {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.hero-stat + .hero-stat {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  padding-left: 18px;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: fadeup 0.9s var(--ease) forwards;
}

.reveal-delay-1 { animation-delay: 0.12s; }
.reveal-delay-2 { animation-delay: 0.24s; }
.reveal-delay-3 { animation-delay: 0.36s; }
.reveal-delay-4 { animation-delay: 0.48s; }

.js-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes fadeup {
  to { opacity: 1; transform: none; }
}

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

@keyframes glowpulse {
  0%, 100% { box-shadow: 0 0 0 rgba(59, 193, 255, 0.15); }
  50% { box-shadow: 0 0 24px rgba(59, 193, 255, 0.28); }
}

/* Services */
.section {
  padding: 88px 0;
}

.section-light {
  background: var(--mist);
}

.section-dark {
  background: var(--navy-900);
  color: var(--white);
}

.section-label {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy-950);
  margin-bottom: 8px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 42px;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--navy-900);
  border: 2px solid var(--cyan-400);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
  border-color: #9adfff;
}

.service-card .thumb {
  height: 178px;
  overflow: hidden;
  border-bottom: 1px solid rgba(59, 193, 255, 0.35);
}

.service-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.service-card:hover .thumb img {
  transform: scale(1.08);
}

.service-card .body {
  padding: 18px 18px 22px;
}

.service-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.86);
}

.icon-inline {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

/* About strip */
.about-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 42px 48px;
  background: rgba(5, 12, 37, 0.96);
}

.gold-label {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
}

.about-panel h2 {
  font-size: 1.7rem;
  font-weight: 800;
  margin: 10px 0 14px;
}

.gold-line {
  width: 87px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 16px;
}

.about-panel p {
  font-size: 0.98rem;
  max-width: 48ch;
}

.about-visual {
  display: grid;
  place-items: center;
}

.logo-orb {
  width: min(374px, 100%);
  aspect-ratio: 374 / 225;
  border-radius: 80px;
  overflow: hidden;
  box-shadow: 0 8px 46px rgba(0, 0, 0, 0.35), 0 0 40px rgba(59, 193, 255, 0.18);
  animation: glowpulse 6s ease-in-out infinite;
}

.logo-orb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mockup-row {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 28px;
  align-items: center;
  margin-top: 72px;
}

.mockup-row img {
  width: 100%;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
}

.mockup-row h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial {
  background: var(--white);
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 22px 20px 18px;
  box-shadow: 0 10px 30px rgba(5, 12, 37, 0.06);
}

.testimonial-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  flex: 0 0 50px;
}

.testimonial h3 {
  font-size: 1rem;
  font-weight: 700;
}

.testimonial p {
  font-size: 0.88rem;
  color: #222;
}

.stars {
  display: flex;
  gap: 4px;
  margin-top: 16px;
  color: #f5b942;
}

.stars svg {
  width: 18px;
  height: 18px;
}

/* Inner pages */
.page-hero {
  min-height: 52vh;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9adfff;
}

.page-hero .hero-kicker {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  font-size: 1.1rem;
}

.text-blocks {
  display: grid;
  gap: 28px;
  max-width: 935px;
  margin: 0 auto;
}

.text-block {
  border: 1px solid var(--gold);
  padding: 36px 48px;
  background: rgba(5, 12, 37, 0.4);
}

.text-block p {
  font-size: 1.15rem;
  text-align: center;
}

.comfort-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}

.comfort-card {
  border: 1px solid rgba(59, 193, 255, 0.35);
  padding: 28px;
  border-radius: 12px;
  background: rgba(9, 21, 58, 0.55);
}

.representa {
  position: relative;
  min-height: 380px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.representa img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.representa-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.82), rgba(0,0,0,0.55), rgba(0,0,0,0.75));
}

.representa-copy {
  position: relative;
  z-index: 1;
  padding: 48px 24px;
}

.representa h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 18px;
}

.representa p {
  font-size: clamp(1.1rem, 2.4vw, 1.9rem);
  font-weight: 500;
}

/* Solutions grid */
.solutions-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 40px;
}

.solution-card {
  background: var(--navy-900);
  border: 1px solid var(--cyan-400);
  border-radius: 26px;
  min-height: 314px;
  width: min(294px, 100%);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow-glow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 32px rgba(59, 193, 255, 0.45);
}

.solution-card svg {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
}

.solution-card h3 {
  color: var(--cyan-400);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.solution-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 600;
}

.solution-card li + li {
  margin-top: 10px;
}

.differencial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.differencial h2 {
  text-align: center;
  grid-column: 1 / -1;
  font-size: clamp(1.7rem, 3.5vw, 2.8rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.diff-copy p {
  margin-bottom: 16px;
  font-weight: 700;
  color: var(--navy-900);
}

.diff-copy .brand-line {
  color: var(--cyan-400);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
}

.avoid-box {
  background: #d9d9d9;
  border: 1px solid var(--cyan-400);
  padding: 14px 16px;
  font-size: 0.92rem;
  margin: 12px 0 18px;
}

.logo-round {
  width: min(420px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  margin-inline: auto;
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.25), 0 0 40px rgba(59, 193, 255, 0.2);
}

.logo-round img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gallery */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  position: relative;
  background: var(--navy-900);
  border: 2px solid rgba(214, 168, 79, 0.25);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  color: var(--white);
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

.project-card:hover {
  border-color: var(--cyan-400);
  box-shadow: 0 0 24px rgba(59, 193, 255, 0.25);
  transform: translateY(-4px);
}

.project-card .thumb {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.project-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.project-card:hover .thumb img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 12, 37, 0.55);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-card .meta {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.category {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

.project-card h3 {
  font-size: 1rem;
}

.project-card p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
}

.project-card .btn {
  margin-top: auto;
  align-self: flex-start;
  opacity: 0.85;
}

.project-card:hover .btn {
  opacity: 1;
}

/* Contact */
#contato {
  scroll-margin-top: 80px;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form .full {
  grid-column: 1 / -1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-500);
}

.field input,
.field select,
.field textarea {
  border: 1px solid rgba(153, 153, 153, 0.75);
  padding: 10px 12px;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--text);
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.radio-row {
  display: flex;
  gap: 18px;
  align-items: center;
  min-height: 41px;
}

.radio-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--gray-500);
  font-size: 0.95rem;
}

.contact-form .btn {
  grid-column: 1 / -1;
  width: 100%;
  padding: 12px;
  border-radius: 16px;
}

.form-error,
.form-success {
  grid-column: 1 / -1;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-error { color: #b42318; }
.form-success {
  color: #067647;
  background: #ecfdf3;
  padding: 12px;
  border: 1px solid #abefc6;
}

.contact-aside {
  border-left: 1px solid var(--navy-900);
  padding-left: 28px;
}

.contact-aside p {
  font-weight: 700;
  margin: 8px 0;
}

.contact-aside p:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.phone-numbers {
  display: block;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 45;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  box-shadow: 0 8px 22px rgba(5, 12, 37, 0.28);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 28px rgba(5, 12, 37, 0.35);
}

.whatsapp-float svg {
  width: 27px;
  height: 27px;
}

@media (max-width: 480px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.socials a {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--navy-900);
}

.socials svg {
  width: 24px;
  height: 24px;
}

/* Footer */
.site-footer {
  background: var(--navy-800);
  color: var(--white);
  padding: 48px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr 0.9fr;
  gap: 28px;
}

.footer-brand .logo {
  margin-bottom: 8px;
}

.footer-brand p,
.footer-grid a,
.footer-grid li {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

.footer-grid h3 {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--cyan-400);
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li + li {
  margin-top: 8px;
}

.footer-grid a:hover {
  color: var(--cyan-400);
}

.copyright {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 0.82rem;
  color: var(--gray-400);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 11, 43, 0.92);
  display: none;
  place-items: center;
  z-index: 80;
  padding: 24px;
}

.lightbox.is-open {
  display: grid;
  animation: fadeup 0.35s var(--ease);
}

.lightbox img {
  max-width: min(760px, calc(100vw - 96px));
  max-height: 68vh;
  object-fit: contain;
  border: 1px solid rgba(59, 193, 255, 0.45);
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.lightbox-ui {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lightbox-ui button {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
}

.lightbox-close {
  top: max(24px, calc(50% - 38vh));
  right: max(24px, calc(50% - 410px));
  transform: none;
  background: var(--cyan-400) !important;
  color: var(--navy-900) !important;
  font-size: 1.5rem !important;
  font-weight: 700;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-caption {
  position: absolute;
  bottom: 7%;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-weight: 600;
}

@media (max-width: 576px) {
  .lightbox {
    padding: 16px;
  }

  .lightbox img {
    max-width: calc(100vw - 48px);
    max-height: 62vh;
  }

  .lightbox-close {
    top: 24px;
    right: 24px;
  }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .hero-media img {
    transform: none !important;
  }

  .reveal,
  .js-reveal {
    opacity: 1;
    transform: none;
  }
}
