:root {
  --ink: #07111c;
  --ink-65: rgba(7, 17, 28, 0.65);
  --ink-42: rgba(7, 17, 28, 0.42);
  --ink-08: rgba(7, 17, 28, 0.08);
  --paper: #fff;
  --soft: #f2f6f9;
  --blue: #09a8f7;
  --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Arial Nova", Arial, sans-serif;
  --font-display: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.lightbox-open { overflow: hidden; }

a { color: inherit; }
button { font: inherit; }

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  transform: translate(-50%, -180%);
}

.skip-link:focus { transform: translate(-50%, 0); }

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 0 clamp(20px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid rgba(7, 17, 28, 0.08);
}

.topbar-start {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.2vw, 46px);
  min-width: 0;
}

.topbar-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.topbar-mark img {
  width: 40px;
  height: 36px;
  object-fit: contain;
}

.topbar-mark span {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: clamp(26px, 3vw, 44px);
  padding-left: clamp(28px, 3.2vw, 48px);
}

/* No pills, no rules: the spacing carries the grouping and a hairline
   carries the state. */
.topbar-links > a {
  position: relative;
  padding: 3px 0;
  color: rgba(7, 17, 28, 0.55);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.008em;
  text-decoration: none;
  transition: color 0.22s ease;
}

.topbar-links > a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.55);
  transform-origin: left center;
  transition: opacity 0.22s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.topbar-links > a:hover {
  color: var(--ink);
}

.topbar-links > a:hover::after {
  opacity: 0.3;
  transform: scaleX(1);
}

.topbar-links > a[aria-current="page"] {
  color: var(--ink);
}

.topbar-links > a[aria-current="page"]::after {
  opacity: 0.8;
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .topbar-links > a::after {
    transition: none;
  }
}

.topbar-wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.topbar-locale {
  color: var(--ink-42);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
}

@media (max-width: 760px) {
  .topbar-links {
    display: none;
  }
}

/* Hero film — the centerpiece */

.hero-film {
  padding: 84px clamp(16px, 4vw, 56px) 0;
  text-align: center;
}

.hero-film-frame {
  position: relative;
  height: min(50svh, 540px);
  max-width: min(100%, 1180px);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 14px;
  background: #05080c;
}

.hero-film-poster,
.hero-film-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-film-poster {
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.hero-film-frame.is-playing .hero-film-poster { opacity: 0; }

.hero-film-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.hero-film-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(56px, 6vw, 78px);
  height: clamp(56px, 6vw, 78px);
  margin: -39px 0 0 -39px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.hero-film-play svg { width: 26px; height: 26px; margin-left: 3px; }

.hero-film-play:hover {
  transform: scale(1.06);
  background: rgba(255, 255, 255, 0.2);
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.hero-btn-primary {
  color: #fff;
  background: var(--ink);
}

.hero-btn-primary:hover { opacity: 0.86; }

.hero-btn-ghost {
  color: var(--ink);
  border: 1px solid rgba(7, 17, 28, 0.18);
  background: transparent;
}

.hero-btn-ghost:hover {
  border-color: rgba(7, 17, 28, 0.36);
  background: rgba(7, 17, 28, 0.03);
}

.gallery-shell {
  padding: 90px clamp(24px, 6vw, 72px) 130px;
}

/* Gallery grid — landscape, centered, unhurried */

.grid {
  display: grid;
  width: min(100%, 1180px);
  margin: 0 auto;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.tile {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--soft);
  cursor: pointer;
  isolation: isolate;
}

.tile:focus-visible { outline-offset: -3px; }

.tile-media,
.tile-frame {
  position: absolute;
  inset: 0;
}

.tile-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--soft);
  transition: transform 1.1s cubic-bezier(0.16, 0.8, 0.24, 1);
}

.tile:hover .tile-thumb,
.tile:focus-visible .tile-thumb {
  transform: scale(1.045);
}

.tile-frame {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.tile-frame.is-active { opacity: 1; }

.tile-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.tile-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0);
  opacity: 0;
  transition: opacity 0.4s ease, background 0.4s ease;
}

.tile:hover .tile-veil,
.tile:focus-visible .tile-veil {
  opacity: 1;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(6px) saturate(1.4);
  -webkit-backdrop-filter: blur(6px) saturate(1.4);
}

.tile-label {
  font-size: 14px;
  font-weight: 560;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.gallery-error {
  width: min(100%, 800px);
  margin: 80px auto;
  color: var(--ink-65);
  text-align: center;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 5vh, 60px) clamp(16px, 5vw, 60px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 17, 28, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: min(1100px, 100%);
}

.lightbox-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 2px;
  background: #000;
  transform: scale(0.96);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lightbox.is-open .lightbox-frame { transform: scale(1); }

.lightbox-poster,
.lightbox-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.lightbox-poster {
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.lightbox.is-ready .lightbox-poster { opacity: 0; }

.lightbox-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.lightbox-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 1;
  animation: lightbox-spin 0.85s linear infinite;
  transition: opacity 0.3s ease;
}

.lightbox.is-ready .lightbox-spinner { opacity: 0; }

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

.lightbox-title {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.01em;
}

.lightbox-close {
  position: fixed;
  top: clamp(16px, 3vh, 30px);
  right: clamp(16px, 3vw, 30px);
  z-index: 2;
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: background 0.25s ease;
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-close svg { width: 18px; height: 18px; }

.gallery-end {
  display: flex;
  min-height: 280px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 84px 24px;
  color: var(--ink);
  background: #fff;
  border-top: 1px solid rgba(7, 17, 28, 0.07);
  text-align: center;
}

.gallery-end svg {
  width: 34px;
  height: 30px;
  overflow: visible;
  fill: none;
  stroke: rgba(7, 17, 28, 0.28);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-end p {
  margin: 28px 0 26px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  letter-spacing: -0.015em;
}

.gallery-end a {
  display: inline-flex;
  min-height: auto;
  align-items: center;
  padding: 6px 2px;
  color: var(--ink-65);
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.gallery-end a:hover { color: var(--ink); }

.gallery-end a + a {
  margin-top: 12px;
  color: var(--ink-42);
  font-size: 11px;
}

@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .hero-btn { min-height: 42px; padding: 0 20px; font-size: 11px; }

  .gallery-shell { padding: 64px 22px 90px; }
  .grid { grid-template-columns: 1fr; }
  .tile-label { font-size: 11px; }

  .lightbox-close { top: 14px; right: 14px; }
}

@media (hover: none) {
  .tile-veil {
    opacity: 1;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 10px;
    background: linear-gradient(180deg, transparent 55%, rgba(7, 17, 28, 0.55));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .tile-label { color: #fff; }
}

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

/* Enterprise sign in -------------------------------------------------------
   The one committed action in the header, so it is built as a solid object
   rather than an outline: a rounded rectangle with a lit top edge, a contact
   shadow plus an ambient one, and a press state that genuinely depresses
   (inset shadow, no lift, faster easing). Sits to the left of the wordmark so
   the eye reaches the action before the address. */

.topbar-end {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.8vw, 26px);
}

.signin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: var(--ink);
  font-size: 12.5px;
  font-weight: 560;
  letter-spacing: -0.008em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 1px 1px rgba(7, 17, 28, 0.16),
    0 2px 6px rgba(7, 17, 28, 0.07);
  transition:
    transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.18s ease;
}

.signin:hover {
  background: #142234;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 2px 3px rgba(7, 17, 28, 0.18),
    0 5px 14px rgba(7, 17, 28, 0.12);
}

.signin:active {
  transform: translateY(0) scale(0.985);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.30),
    0 1px 2px rgba(7, 17, 28, 0.20);
  transition-duration: 0.06s;
}

.signin:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.signin-arrow {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.7;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.18s ease;
}

.signin:hover .signin-arrow {
  opacity: 1;
  transform: translateX(2px);
}

@media (prefers-reduced-motion: reduce) {
  .signin,
  .signin:hover,
  .signin:active,
  .signin-arrow,
  .signin:hover .signin-arrow {
    transition: none;
    transform: none;
  }
}

@media (max-width: 860px) {
  .topbar-end .topbar-locale {
    display: none;
  }
}

@media (max-width: 620px) {
  .topbar-end .topbar-wordmark {
    display: none;
  }
}
