:root {
  --bg: #f7f7f3;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --surface-dark: #09111f;
  --text: #0f1728;
  --muted: #5a6476;
  --border: rgba(15, 23, 40, 0.08);
  --navy: #09172b;
  --navy-soft: #10213a;
  --gold: #c8a45b;
  --gold-soft: rgba(200, 164, 91, 0.16);
  --shadow: 0 24px 80px rgba(7, 16, 30, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
  --header-height: 84px;
  --transition: 220ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(200, 164, 91, 0.16), transparent 30%),
    linear-gradient(180deg, #fcfcfa 0%, #f4f3ef 100%);
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  overflow-x: clip;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 6.5rem 0;
  scroll-margin-top: calc(var(--header-height) + 18px);
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(9, 23, 43, 0.02), rgba(9, 23, 43, 0.06)),
    rgba(255, 255, 255, 0.52);
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(247, 247, 243, 0.72);
  border-bottom: 1px solid rgba(15, 23, 40, 0.06);
}

.navbar {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: var(--text);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 40, 0.08);
  border: 1px solid rgba(15, 23, 40, 0.08);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.brand-mark-large {
  width: 72px;
  height: 72px;
  border-radius: 22px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-text strong,
.footer-brand strong {
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-menu a {
  position: relative;
  font-size: 0.96rem;
  color: var(--muted);
  transition: color var(--transition);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold), transparent);
  transition: transform var(--transition);
}

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

.nav-menu a:hover::after,
.nav-menu a.active::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(9, 23, 43, 0.08);
  background: rgba(255, 255, 255, 0.8);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.25rem;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--text);
  margin: 6px 0;
  border-radius: 999px;
  transition: transform var(--transition), opacity var(--transition);
}

.hero {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  padding-top: 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.glow {
  position: absolute;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.55;
}

.glow-one {
  top: 4%;
  right: -8%;
  background: radial-gradient(circle, rgba(200, 164, 91, 0.32), transparent 65%);
  animation: drift 9s ease-in-out infinite;
}

.glow-two {
  bottom: -8%;
  left: -10%;
  background: radial-gradient(circle, rgba(9, 23, 43, 0.14), transparent 65%);
  animation: drift 12s ease-in-out infinite reverse;
}

.grid-pattern {
  position: absolute;
  inset: 10% 5% auto auto;
  width: 38vw;
  height: 34vw;
  min-width: 260px;
  min-height: 260px;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(9, 23, 43, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 23, 43, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 78%);
}

.hero-content,
.robot-layout,
.cta-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 2.75rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

h1,
h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  max-width: 15ch;
}

h3 {
  margin: 0 0 0.7rem;
  font-size: 1.22rem;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.hero-copy p {
  margin-top: 1.4rem;
  max-width: 60ch;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 2.4rem;
}

.logo-panel {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  margin-bottom: 1.4rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 40, 0.08);
  box-shadow: 0 18px 38px rgba(15, 23, 40, 0.08);
}

.logo-panel-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: var(--text);
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 40, 0.08);
  box-shadow: 0 10px 24px rgba(15, 23, 40, 0.08);
  overflow: hidden;
}

.logo-panel-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-panel-text {
  display: grid;
  gap: 0.2rem;
}

.logo-panel-text strong {
  font-size: 1rem;
}

.logo-panel-text span {
  color: var(--muted);
  font-size: 0.92rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background-color var(--transition),
    border-color var(--transition);
}

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

.button-primary {
  color: #fffaf0;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  box-shadow: 0 16px 36px rgba(9, 23, 43, 0.22);
}

.button-primary:hover {
  box-shadow: 0 20px 42px rgba(9, 23, 43, 0.28);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(9, 23, 43, 0.1);
}

.button-secondary:hover {
  background: #ffffff;
}

.button-block {
  width: 100%;
}

.hero-metrics,
.contact-cards,
.robot-highlights {
  display: grid;
  gap: 1rem;
}

.hero-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-metrics article,
.contact-card,
.robot-highlights div {
  padding: 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 40, 0.06);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 18px 40px rgba(15, 23, 40, 0.06);
}

.hero-metrics strong,
.contact-card strong,
.robot-highlights strong {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}

.contact-icon {
  width: 1.15rem;
  height: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex: 0 0 auto;
  vertical-align: middle;
  transform: translateY(-1px);
}

.contact-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-metrics span,
.contact-card span,
.robot-highlights span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.visual-card,
.about-card,
.robot-panel,
.program-card,
.feature-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.visual-card {
  padding: 2rem;
}

.visual-card h2 {
  margin-top: 0.8rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  max-width: 20ch;
}

.visual-card p {
  margin-top: 1rem;
  max-width: 46ch;
}

.visual-chip,
.program-level,
.screen-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #86672e;
  font-weight: 700;
  font-size: 0.8rem;
}

.board-showcase {
  position: relative;
  min-height: 360px;
  margin-top: 2rem;
  border-radius: 24px;
  border: 1px solid rgba(9, 23, 43, 0.08);
  overflow: hidden;
  background: #0d1627;
}

.board-showcase img,
.screen-placeholder img,
.brand-showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.split-layout,
.faq-layout {
  display: grid;
  gap: 2.2rem;
}

.section-heading {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-heading.center {
  place-items: center;
  text-align: center;
}

.section-heading.center h2,
.section-heading.center p {
  text-align: center;
}

.about-grid,
.feature-grid,
.program-grid,
.gallery-grid {
  display: grid;
  gap: 1.4rem;
}

.about-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-card,
.feature-card,
.program-card {
  padding: 2rem;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.feature-card:hover,
.program-card:hover,
.contact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 164, 91, 0.28);
  box-shadow: 0 24px 54px rgba(9, 23, 43, 0.1);
}

.feature-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, rgba(9, 23, 43, 0.95), rgba(20, 39, 66, 0.92));
  color: #fff7e4;
  font-weight: 800;
}

.robot-section {
  background:
    linear-gradient(135deg, rgba(9, 23, 43, 0.98), rgba(8, 14, 24, 0.98)),
    #09111f;
}

.robot-section .eyebrow,
.robot-section h2,
.robot-section h3,
.robot-section strong {
  color: #fff9ea;
}

.robot-section p,
.robot-section span {
  color: rgba(245, 245, 245, 0.78);
}

.robot-panel {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  padding: 1.6rem;
}

.robot-screen {
  border-radius: 24px;
  padding: 1.2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.screen-placeholder {
  position: relative;
  min-height: 320px;
  margin-top: 1rem;
  border-radius: 20px;
  overflow: hidden;
}

.board-showcase::after,
.screen-placeholder::after,
.brand-showcase-image::after,
.lightbox-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(6, 12, 21, 0.7) 100%);
}

.board-showcase figcaption,
.screen-placeholder figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  margin: 0;
  padding: 0.95rem 1.1rem;
  border-radius: 18px;
  max-width: min(88%, 34rem);
  color: #fff8ea;
  font-weight: 600;
  text-align: left;
  line-height: 1.5;
  background: rgba(7, 16, 30, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.robot-highlights {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.robot-highlights div {
  background:
    linear-gradient(135deg, rgba(200, 164, 91, 0.3), rgba(151, 112, 37, 0.18)),
    rgba(255, 245, 224, 0.08);
  border: 1px solid rgba(220, 186, 110, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 230, 0.16),
    0 18px 34px rgba(0, 0, 0, 0.18);
}

.robot-highlights strong {
  color: #fff4d8;
}

.robot-highlights span {
  color: rgba(255, 244, 216, 0.82);
}

.program-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 220px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 40, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(9, 23, 43, 0.18), rgba(19, 39, 66, 0.2)),
    var(--bg-image);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 16, 30, 0.05), rgba(7, 16, 30, 0.72));
}

.gallery-item:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 54px rgba(9, 23, 43, 0.16);
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-overlay {
  position: absolute;
  inset: auto 1.2rem 1.2rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  color: #fffdf7;
  text-align: left;
  background: rgba(9, 23, 43, 0.64);
  backdrop-filter: blur(8px);
}

.gallery-overlay strong {
  display: block;
  margin-bottom: 0.2rem;
}

.gallery-overlay small {
  color: rgba(255, 255, 255, 0.72);
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(15, 23, 40, 0.08);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.3rem 1.5rem;
  border: 0;
  background: transparent;
  text-align: left;
  font-weight: 700;
  color: var(--text);
  position: relative;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--gold);
  transition: transform var(--transition);
}

.faq-item.active .faq-question::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 260ms ease;
}

.faq-answer p {
  padding: 0 1.5rem 1.4rem;
}

.cta-section {
  padding-bottom: 5rem;
}

.contact-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2rem;
}

.contact-card {
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.brand-showcase-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.brand-showcase-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.5rem 1rem;
}

.brand-showcase-head p {
  margin-top: 0.35rem;
}

.brand-showcase-image {
  position: relative;
  min-height: 300px;
}

.brand-showcase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem;
}

.footer {
  padding: 2rem 0;
  background: #08111f;
  color: rgba(255, 255, 255, 0.74);
}

.footer-layout {
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 1.5rem;
  align-items: center;
}

.footer-brand p {
  margin-top: 0.4rem;
  color: rgba(255, 255, 255, 0.62);
}

.footer-meta {
  display: grid;
  justify-items: end;
  gap: 0.85rem;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: min(100%, 320px);
  padding: 0.95rem 1.05rem;
  border-radius: 22px;
  color: #fff9ea;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
  transition:
    background-color var(--transition),
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.footer-social:hover {
  background:
    linear-gradient(135deg, rgba(200, 164, 91, 0.16), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.07);
  border-color: rgba(200, 164, 91, 0.28);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
  transform: translateY(-3px);
}

.footer-social-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f2c76b;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex: 0 0 auto;
}

.footer-social-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.footer-social-text {
  display: grid;
  gap: 0.12rem;
}

.footer-social-text strong {
  color: #fff9ea;
  font-size: 0.95rem;
  line-height: 1.3;
}

.footer-social-text small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
}

.footer-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  text-align: right;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(4, 9, 17, 0.78);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  z-index: 100;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  width: min(100%, 860px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  padding: 1rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
}

.lightbox-visual {
  position: relative;
  min-height: 360px;
  border-radius: 22px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}

.lightbox-text {
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: 1rem;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(9, 23, 43, 0.1);
  font-size: 1.6rem;
  line-height: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal-delay {
  transition-delay: 120ms;
}

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

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, 20px, 0) scale(1.04);
  }
}

@media (max-width: 1080px) {
  .hero-content,
  .robot-layout,
  .cta-layout,
  .feature-grid,
  .program-grid,
  .footer-layout {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-metrics,
  .about-grid,
  .contact-cards,
  .robot-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-meta {
    justify-items: start;
  }

  .footer-copy {
    text-align: left;
  }

  .section-heading h2,
  .hero h1,
  .visual-card h2 {
    max-width: none;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 74px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 0.7rem);
    right: 1rem;
    left: 1rem;
    display: grid;
    gap: 0.9rem;
    padding: 1.1rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 23, 40, 0.08);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity var(--transition), transform var(--transition);
  }

  .nav-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero {
    padding-top: 2.6rem;
  }

  .section {
    padding: 5rem 0;
  }

  .lightbox-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 1.25rem), var(--container));
  }

  .hero-metrics,
  .about-grid,
  .contact-cards,
  .robot-highlights,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item.wide,
  .gallery-item.tall {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-grid {
    grid-auto-rows: 210px;
  }

  .board-showcase {
    min-height: 290px;
  }

  .board-showcase figcaption,
  .screen-placeholder figcaption {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    max-width: none;
    padding: 0.85rem 0.95rem;
    font-size: 0.92rem;
  }

  .brand-showcase-actions,
  .visual-card,
  .about-card,
  .feature-card,
  .program-card {
    padding: 1.4rem;
  }

  .brand-showcase-head {
    align-items: flex-start;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .lightbox {
    padding: 0.9rem;
  }

  .lightbox-visual {
    min-height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
