@font-face {
  font-family: "Starduster";
  src: url("assets/fonts/starduster.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-primary: #05080d;
  --bg-secondary: #08101a;
  --glass-border: rgba(255, 255, 255, 0.1);
  --accent-blue: #58b7ef;
  --accent-orange: #ff7a18;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --content-width: min(1180px, calc(100% - 2.8rem));
  --section-gap: 2rem;
  --footer-url-inset: 16px;
  --panel-radius: 28px;
  --panel-padding: 2.1rem;
  --shot-surface: linear-gradient(165deg, rgba(18, 29, 44, 0.9), rgba(8, 14, 23, 0.9));
  --shot-border: rgba(125, 176, 214, 0.28);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Manrope", sans-serif;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 88% 12%, rgba(88, 183, 239, 0.2), transparent 36%),
    radial-gradient(circle at 12% 86%, rgba(255, 122, 24, 0.16), transparent 30%),
    linear-gradient(180deg, var(--bg-secondary), var(--bg-primary) 20%, var(--bg-primary));
  overflow-x: clip;
}

.page-glow {
  position: fixed;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(70px);
  z-index: -1;
  pointer-events: none;
}

.page-glow-a {
  top: -12vw;
  left: -8vw;
  background: rgba(88, 183, 239, 0.14);
}

.page-glow-b {
  bottom: -15vw;
  right: -10vw;
  background: rgba(255, 122, 24, 0.14);
}

.brand-pack {
  color: #ffffff;
}

.brand-ui {
  color: var(--accent-orange);
}

.section {
  width: var(--content-width);
  margin: 0 auto;
  padding: 0;
  position: relative;
}

main > .section {
  margin-top: var(--section-gap);
}

.hero-cover {
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(100deg, rgba(2, 5, 12, 0.9) 28%, rgba(2, 5, 12, 0.44) 58%, rgba(2, 5, 12, 0.24) 100%),
    url("assets/img/background.png") center / cover no-repeat;
}

.hero-content {
  min-height: inherit;
  width: min(1320px, calc(100% - 2.4rem));
  margin: 0 auto;
  padding: clamp(1.2rem, 3vw, 2.6rem) 0;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 1rem;
}

.hero-logo {
  margin: 0 0 1rem;
  font-family: "Good Times Rg", "Sora", sans-serif;
  font-size: clamp(2.8rem, 9vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
}

.eyebrow {
  margin: 0;
  color: var(--accent-blue);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: "Sora", sans-serif;
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4.8vw, 4.1rem);
  margin-top: 0.6rem;
  max-width: 14ch;
}

.lede {
  margin-top: 1rem;
  color: var(--text-secondary);
  max-width: 56ch;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-stack {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 420px;
}

.hero-video-frame {
  width: min(100%, 620px);
  --frame-radius: 10px;
  --bezel: 11px;
  cursor: zoom-in;
}

.hero-video-frame .device-screen {
  aspect-ratio: 16 / 10;
  border-radius: calc(var(--frame-radius) - 4px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #06090f;
}

.hero-video-frame .device-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 14px 20px rgba(0, 0, 0, 0.45),
    inset 0 -10px 16px rgba(0, 0, 0, 0.34),
    inset 10px 0 12px rgba(0, 0, 0, 0.24),
    inset -10px 0 12px rgba(0, 0, 0, 0.24);
  pointer-events: none;
  z-index: 2;
}

.hero-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.hero-play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(68px, 8vw, 94px);
  height: clamp(68px, 8vw, 94px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(4, 10, 17, 0.74);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.hero-play-button:hover {
  transform: translate(-50%, -50%) scale(1.05);
  background: rgba(9, 19, 30, 0.86);
  border-color: rgba(136, 194, 236, 0.65);
}

.hero-play-icon {
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid #ffffff;
  margin-left: 5px;
}

.hero-video-frame.is-playing .hero-play-button {
  opacity: 0;
  pointer-events: none;
}

.button {
  text-decoration: none;
  color: var(--text-primary);
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  padding: 0.68rem 1.12rem;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background: transparent;
  font-family: inherit;
  font-size: 0.95rem;
}

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

.button.primary {
  background: linear-gradient(120deg, var(--accent-orange), #ff9340);
  border-color: rgba(255, 122, 24, 0.6);
  color: #130802;
  box-shadow: 0 8px 24px rgba(255, 122, 24, 0.32);
}

.button.ghost.strong {
  background: rgba(4, 9, 17, 0.66);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.button.ghost:hover {
  border-color: rgba(88, 183, 239, 0.55);
  box-shadow: 0 8px 26px rgba(88, 183, 239, 0.22);
}

.card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(6px);
}

.section-header {
  margin-bottom: 1.4rem;
}

.section-header h2,
.audience h2,
.footer h2 {
  margin-top: 0.4rem;
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
}

.icon-grid,
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.icon-card,
.pillar {
  padding: 1.3rem;
}

.icon-card p,
.pillar p {
  margin: 0.65rem 0 0;
  line-height: 1.6;
  color: var(--text-secondary);
}

.icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  border: 1px solid rgba(88, 183, 239, 0.55);
  background: linear-gradient(140deg, rgba(88, 183, 239, 0.2), rgba(255, 122, 24, 0.18));
}

.icon-card h3 {
  margin-top: 0.8rem;
}

.audience-section {
  padding: var(--panel-padding);
  border: 1px solid rgba(88, 183, 239, 0.22);
  border-radius: var(--panel-radius);
  background:
    radial-gradient(circle at 10% 20%, rgba(88, 183, 239, 0.11), transparent 32%),
    linear-gradient(140deg, rgba(6, 15, 27, 0.9), rgba(5, 10, 17, 0.65));
}

.audience-section h2 {
  max-width: 16ch;
}

.audience-section .icon-card {
  background: linear-gradient(165deg, rgba(7, 22, 37, 0.94), rgba(5, 11, 18, 0.76));
  border-color: rgba(88, 183, 239, 0.2);
}

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

.feature-section {
  padding: var(--panel-padding);
  border-radius: var(--panel-radius);
  border: 1px solid rgba(255, 122, 24, 0.2);
  background:
    radial-gradient(circle at 90% 16%, rgba(255, 122, 24, 0.12), transparent 30%),
    linear-gradient(155deg, rgba(20, 13, 8, 0.72), rgba(7, 9, 15, 0.76));
}

.feature-section .section-header h2 {
  max-width: 15ch;
}

.feature-section .feature-card {
  border-color: rgba(255, 122, 24, 0.22);
  background: linear-gradient(168deg, rgba(28, 17, 10, 0.45), rgba(10, 12, 18, 0.66));
}

.feature-card {
  overflow: hidden;
  padding-bottom: 1rem;
}

.feature-card .device-frame {
  margin: 0.9rem 0.9rem 0;
}

.feature-shot {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.feature-shot .device-frame {
  transition: transform 180ms ease;
}

.feature-shot:hover .device-frame {
  transform: translateY(-2px);
}

.feature-card h3 {
  margin: 1rem 1rem 0;
}

.feature-card p {
  margin: 0.65rem 1rem 0;
  color: var(--text-secondary);
  line-height: 1.5;
}

.feature-shot-more {
  margin: 0.9rem 0.9rem 0;
  min-height: 220px;
  border-radius: 12px;
  border: 1px solid var(--shot-border);
  background: rgba(5, 10, 17, 0.92);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 18px rgba(88, 183, 239, 0.08);
  display: grid;
  place-items: center;
}

.feature-shot-more-link {
  text-decoration: none;
  cursor: pointer;
}

.feature-shot-more span {
  font-family: "Sora", sans-serif;
  font-size: clamp(2.2rem, 4.3vw, 3.2rem);
  letter-spacing: 0.28em;
  color: rgba(88, 183, 239, 0.9);
  transform: translateX(0.14em);
}

.gallery-section {
  padding: 0;
}

.gallery-shell {
  padding: var(--panel-padding);
  border-radius: var(--panel-radius);
  border: 1px solid rgba(88, 183, 239, 0.24);
  background:
    radial-gradient(circle at 5% 10%, rgba(88, 183, 239, 0.13), transparent 30%),
    linear-gradient(165deg, rgba(5, 13, 22, 0.88), rgba(4, 9, 16, 0.9));
}

.gallery-section .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gallery-rail {
  margin-top: 1.2rem;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.35rem 0.15rem 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(88, 183, 239, 0.6) rgba(8, 16, 26, 0.4);
  scroll-snap-type: x proximity;
}

.gallery-rail::-webkit-scrollbar {
  height: 10px;
}

.gallery-rail::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(8, 16, 26, 0.5);
}

.gallery-rail::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(88, 183, 239, 0.62);
}

.gallery-item {
  flex: 0 0 min(360px, 76vw);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  scroll-snap-align: start;
}

.gallery-item:hover .device-frame {
  transform: translateY(-2px);
}

.device-frame {
  --frame-radius: 14px;
  --bezel: 12px;
  position: relative;
  background: linear-gradient(160deg, #0a0f16 4%, #2f3a49 42%, #090d14 98%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--frame-radius);
  padding: var(--bezel);
  box-shadow: 0 15px 34px rgba(0, 0, 0, 0.45);
}

.device-frame::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
}

.device-frame::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 50px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.device-screen {
  position: relative;
  border-radius: calc(var(--frame-radius) - 8px);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: radial-gradient(circle at center, rgba(88, 183, 239, 0.16), rgba(8, 16, 26, 0.95));
}

.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.device-frame.compact {
  --frame-radius: 10px;
  --bezel: 9px;
}

.built-on-pack-header {
  margin: 0;
  padding-top: 0;
}

.engineering-section,
.built-section {
  padding: var(--panel-padding);
  border-radius: var(--panel-radius);
}

.nemo-section {
  padding: 0;
}

.nemo-shell {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 1.2rem;
  border-radius: var(--panel-radius);
  border: 1px solid rgba(88, 183, 239, 0.26);
  background:
    radial-gradient(circle at 6% 8%, rgba(88, 183, 239, 0.4), transparent 24%),
    linear-gradient(180deg, rgba(4, 11, 18, 0.95), rgba(1, 5, 10, 0.98));
  padding: var(--panel-padding);
  overflow: hidden;
}

.nemo-copy h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.nemo-copy p {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.02rem;
}

.nemo-link {
  margin-top: 1.6rem;
  display: inline-block;
  color: var(--accent-blue);
  font-size: clamp(1.15rem, 2.4vw, 2rem);
  font-weight: 700;
  text-decoration: none;
}

.nemo-link:hover {
  text-decoration: underline;
}

.pack-link {
  margin-top: 1.2rem;
  display: inline-block;
  color: var(--accent-orange);
  font-size: clamp(1.15rem, 2.4vw, 2rem);
  font-weight: 700;
  text-decoration: none;
}

.pack-link:hover {
  text-decoration: underline;
}

.nemo-visuals {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.nemo-shot {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
  line-height: 0;
}

.nemo-shot .device-frame {
  width: 100%;
}

.nemo-shot .device-screen {
  aspect-ratio: auto;
}

.nemo-shot:hover .device-frame {
  transform: translateY(-2px);
}

.engineering-section {
  border: 1px solid rgba(88, 183, 239, 0.24);
  background:
    radial-gradient(circle at 88% 10%, rgba(88, 183, 239, 0.15), transparent 30%),
    linear-gradient(165deg, rgba(7, 14, 24, 0.86), rgba(3, 8, 14, 0.88));
}

.engineering-layout {
  margin-top: 1.3rem;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.35rem 0.15rem 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(88, 183, 239, 0.6) rgba(8, 16, 26, 0.4);
  scroll-snap-type: x proximity;
}

.engineering-layout::-webkit-scrollbar {
  height: 10px;
}

.engineering-layout::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(8, 16, 26, 0.5);
}

.engineering-layout::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(88, 183, 239, 0.62);
}

.engineering-shot {
  flex: 0 0 min(360px, 76vw);
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: zoom-in;
  scroll-snap-align: start;
}

.engineering-shot:hover .device-frame {
  transform: translateY(-2px);
}

.built-section {
  border: 1px solid rgba(255, 122, 24, 0.26);
  background:
    radial-gradient(circle at 12% 90%, rgba(255, 122, 24, 0.13), transparent 36%),
    linear-gradient(175deg, rgba(17, 11, 8, 0.8), rgba(5, 9, 15, 0.87));
  padding-bottom: calc(var(--panel-padding) + 64px);
}

.built-section .pillars {
  margin-top: 1.5rem;
}

.built-section .pillar {
  border-color: rgba(255, 122, 24, 0.22);
  background: linear-gradient(170deg, rgba(33, 19, 11, 0.48), rgba(7, 10, 16, 0.65));
}

.built-section .pillar-icon {
  width: 56px;
  height: 56px;
  font-size: 1.45rem;
  border-color: rgba(88, 183, 239, 0.62);
  background: linear-gradient(140deg, rgba(88, 183, 239, 0.12), rgba(255, 122, 24, 0.08));
  color: var(--accent-blue);
}

.built-section .pillar h3 {
  margin-top: 0.95rem;
}

.pack-section-logo {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: clamp(60px, 8vw, 110px);
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

.footer {
  text-align: left;
  border-top: 1px solid rgba(88, 183, 239, 0.26);
  padding-top: var(--panel-padding);
  margin-top: var(--section-gap);
  margin-bottom: var(--section-gap);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(88, 183, 239, 0.32), transparent 44%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.92) 58%, rgba(53, 89, 111, 0.92));
}

.footer-shell {
  width: min(920px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 1.3rem 0 2.9rem;
  min-height: 320px;
}

.footer-brand {
  font-family: "Good Times Rg", "Sora", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  letter-spacing: 0.04em;
  line-height: 1;
}

.footer-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.65rem;
}

.footer-block h3 {
  margin: 0;
  font-size: clamp(0.88rem, 1.6vw, 1rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  font-family: "Sora", sans-serif;
}

.footer-block h4 {
  margin: 0;
  font-size: clamp(0.88rem, 1.6vw, 1rem);
  letter-spacing: 0.08em;
  font-weight: 800;
  font-family: "Sora", sans-serif;
}

.footer-block p {
  margin: 0.55rem 0 0;
  color: var(--text-secondary);
  font-size: clamp(0.98rem, 1.45vw, 1.12rem);
  line-height: 1.5;
}

.footer-block a {
  color: var(--text-secondary);
}

.social-row {
  margin-top: 0.95rem;
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.social-link {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.6rem;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(88, 183, 239, 0.7);
  background: rgba(88, 183, 239, 0.16);
}

.footer-end {
  position: absolute;
  right: 16px;
  bottom: 16px;
}

.footer-end a {
  color: var(--accent-orange);
  text-decoration: none;
  font-family: "Starduster", "Good Times Rg", "Sora", sans-serif;
  font-size: clamp(1.15rem, 2.2vw, 2rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.gallery-item .device-frame,
.engineering-shot .device-frame,
.nemo-shot .device-frame {
  transition: transform 180ms ease;
}

/* Keep iPad hardware only for hero. Everywhere else, show clean image panels. */
.feature-shot .device-frame,
.gallery-item .device-frame,
.engineering-shot .device-frame,
.nemo-shot .device-frame {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

.feature-shot .device-frame::before,
.feature-shot .device-frame::after,
.gallery-item .device-frame::before,
.gallery-item .device-frame::after,
.engineering-shot .device-frame::before,
.engineering-shot .device-frame::after,
.nemo-shot .device-frame::before,
.nemo-shot .device-frame::after {
  display: none;
}

.feature-shot .device-screen,
.gallery-item .device-screen,
.engineering-shot .device-screen,
.nemo-shot .device-screen {
  aspect-ratio: auto;
  border-radius: 12px;
  border: 1px solid var(--shot-border);
  background: rgba(5, 10, 17, 0.92);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 18px rgba(88, 183, 239, 0.08);
}

.feature-shot .device-screen img,
.gallery-item .device-screen img,
.engineering-shot .device-screen img,
.nemo-shot .device-screen img {
  height: auto;
  object-fit: contain;
  filter: saturate(1.04) contrast(1.05) brightness(1.03);
}

.feature-shot:hover .device-frame,
.gallery-item:hover .device-frame,
.engineering-shot:hover .device-frame,
.nemo-shot:hover .device-frame {
  box-shadow: none;
}

.feature-shot:hover .device-screen,
.gallery-item:hover .device-screen,
.engineering-shot:hover .device-screen,
.nemo-shot:hover .device-screen {
  border-color: rgba(136, 194, 236, 0.5);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 22px rgba(88, 183, 239, 0.16);
}

.lightbox {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  width: fit-content;
  max-width: 92vw;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  overflow: visible;
  position: relative;
}

.lightbox[open] {
  position: fixed;
  inset: 0;
  margin: auto;
}

.lightbox:focus-visible {
  outline: none;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox img {
  width: auto;
  height: auto;
  max-width: 92vw;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--shot-border);
  background: rgba(5, 10, 17, 0.92);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 18px rgba(88, 183, 239, 0.08);
}

.lightbox img[hidden],
.lightbox-video-shell[hidden] {
  display: none;
}

.lightbox-video-shell {
  width: 100%;
  display: flex;
  justify-content: center;
}

.lightbox-video-frame {
  width: min(92vw, 1100px);
  --frame-radius: 16px;
  --bezel: 12px;
  background: linear-gradient(160deg, #04070c 4%, #202938 42%, #03050a 98%);
}

.lightbox-video-frame .device-screen {
  aspect-ratio: 16 / 10;
  background: #000;
}

.lightbox-video {
  width: 100%;
  max-height: 80vh;
  display: block;
  object-fit: contain;
  background: #000;
}

.lightbox-close {
  position: fixed;
  right: 18px;
  top: 18px;
  width: auto;
  height: auto;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  padding: 0.2rem 0.45rem;
  color: #ffffff;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.lightbox-close:hover {
  color: rgba(136, 194, 236, 0.95);
}

.lightbox-close:focus,
.lightbox-close:focus-visible,
.lightbox-close:active {
  outline: none;
  box-shadow: none;
  border: 0 !important;
  background: transparent !important;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  height: var(--lightbox-nav-height, 40vh);
  width: clamp(72px, 16vw, 180px);
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1;
  padding: 0;
  cursor: pointer;
  z-index: 4;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  display: inline-flex;
  align-items: center;
}

.lightbox-nav-prev {
  left: 16px;
  justify-content: flex-start;
  padding-left: 0.35rem;
}

.lightbox-nav-next {
  right: 16px;
  justify-content: flex-end;
  padding-right: 0.35rem;
}

.lightbox-nav:hover {
  color: rgba(136, 194, 236, 0.95);
}

.lightbox-nav.is-edge {
  color: transparent;
}

.lightbox-nav[hidden] {
  display: none;
}

/* Keep native timeline controls, but remove centered native play overlays on mobile/webkit. */
.hero-video::-webkit-media-controls-overlay-play-button,
.hero-video::-webkit-media-controls-start-playback-button,
.lightbox-video::-webkit-media-controls-overlay-play-button,
.lightbox-video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

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

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

@media (max-width: 1024px) {
  .hero-content,
  .feature-grid,
  .icon-grid,
  .pillars,
  .engineering-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nemo-shell {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .nemo-visuals {
    margin-top: 0.8rem;
  }

  .footer-shell {
    width: min(920px, calc(100% - 2rem));
  }

  .hero-content {
    min-height: 100svh;
    align-items: start;
  }

  .hero-stack {
    min-height: 340px;
    justify-content: center;
  }
}

@media (max-width: 760px) {
  :root {
    --section-gap: 1.4rem;
    --footer-url-inset: 0;
    --panel-padding: 1.2rem;
    --panel-radius: 20px;
  }

  .audience-section,
  .feature-section,
  .engineering-section,
  .built-section,
  .gallery-shell,
  .nemo-shell {
    padding: var(--panel-padding);
    border-radius: var(--panel-radius);
  }

  .hero-content,
  .feature-grid,
  .icon-grid,
  .pillars,
  .engineering-layout {
    grid-template-columns: 1fr;
  }

  .nemo-visuals {
    grid-template-columns: 1fr;
    margin-top: 0.9rem;
  }

  .hero-cover {
    min-height: 100svh;
  }

  .hero-content {
    gap: 1.6rem;
    min-height: 100svh;
    width: min(1320px, calc(100% - 1.4rem));
  }

  .hero-stack {
    min-height: 270px;
    justify-content: center;
  }

  .hero-video-frame {
    width: min(100%, 92vw);
  }

  .gallery-section .section-header {
    display: block;
  }

  .gallery-section .section-header::after {
    display: block;
    margin-top: 0.8rem;
  }

  .gallery-item {
    flex-basis: min(320px, 82vw);
  }

  .social-link {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }

  .footer-shell {
    min-height: 0;
    padding-bottom: 1.3rem;
  }

  .footer-end {
    position: static;
    margin-top: 1.4rem;
  }
}
