:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-muted: #eeeeee;
  --surface-dark: #1c1c1c;
  --text: #000000;
  --text-soft: #767676;
  --text-inverse: #f6f6f6;
  --border: #242424;
  --border-soft: #eeeeee;
  --danger: #ff4242;
  --link-blue: #0099ff;
  --inline-icon-filter: brightness(0) saturate(100%) opacity(0.6);
  --inline-icon-filter-hover: brightness(0) saturate(100%) opacity(1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161616;
    --surface: #1c1c1c;
    --surface-muted: #242424;
    --surface-dark: #1c1c1c;
    --text: #f6f6f6;
    --text-soft: #848484;
    --text-inverse: #f6f6f6;
    --border: #242424;
    --border-soft: #242424;
    --inline-icon-filter: brightness(0) invert(1) opacity(0.6);
    --inline-icon-filter-hover: brightness(0) invert(1) opacity(1);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
}

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

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

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

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.content-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 56px 0;
  animation: page-fade-in 180ms ease-out both;
}

@keyframes page-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.hero h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.95;
  text-wrap: balance;
}

.lead,
.copy-block p,
.time-line,
.copyright {
  font-size: 14px;
}

.lead {
  max-width: 600px;
  margin: 18px 0 0;
  color: #5f5f5f;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
}

.story {
  padding-top: 26px;
}

.image-card {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
}

.hero-image {
  margin-bottom: 28px;
}

.gallery-image {
  margin: 36px 0 24px;
}

.image-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.copy-block {
  max-width: 640px;
  margin-bottom: 22px;
}

.copy-block p {
  margin: 0 0 14px;
  color: var(--text-soft);
  line-height: 24px;
}

.copy-block p:last-child {
  margin-bottom: 0;
}

.advisory {
  margin-bottom: 44px;
}

.logo-marquee {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 20px 0;
  padding: 10px 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    black 10%,
    black 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    black 10%,
    black 90%,
    transparent 100%
  );
}

.logo-marquee::-webkit-scrollbar {
  display: none;
}

.logo-track {
  display: flex;
  width: max-content;
  /* Start only once the loaded logos have a measured duration. */
  animation: logo-marquee-scroll var(--logo-loop-duration) linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.logo-marquee:hover .logo-track,
.logo-marquee:focus-within .logo-track {
  animation-play-state: paused;
}

.logo-set {
  display: flex;
  align-items: center;
  gap: 50px;
  padding-right: 50px;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  flex: 0 0 auto;
}

.logo {
  display: block;
  width: auto;
  height: 44px;
  flex: 0 0 auto;
  filter: brightness(0) saturate(100%) opacity(0.48);
  transition: filter 180ms ease, opacity 180ms ease;
}

.logo-item:hover .logo,
.logo-item:focus-within .logo {
  filter: brightness(0) saturate(100%) opacity(0.8);
}

.logo-bm {
  opacity: 0.8;
}

.logo-item:hover .logo-bm,
.logo-item:focus-within .logo-bm {
  opacity: 0.94;
}

@keyframes logo-marquee-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    /* The track contains two identical sets; one set is exactly half its width. */
    transform: translate3d(-50%, 0, 0);
  }
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 10px;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.inline-link svg {
  width: 16px;
  height: 16px;
  color: var(--text-soft);
  transition: color 160ms ease;
}

.inline-link:hover {
  color: var(--text);
}

.inline-link:hover svg {
  color: var(--text);
}

.footer-bar {
  width: 100vw;
  margin: 48px 0 0;
  margin-left: calc(50% - 50vw);
  border-top: 1px solid #f3f3f3;
  background: #fcfcfc;
  color: var(--text);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 56px 32px;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex-wrap: nowrap;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  line-height: 24px;
  white-space: nowrap;
}

.offline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 6px rgba(255, 66, 66, 0.35);
}

.offline-dot.online {
  background: #2fbf71;
  box-shadow: 0 0 6px rgba(47, 191, 113, 0.35);
  animation: pulse-online 1.8s ease-in-out infinite;
}

@keyframes pulse-online {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 6px rgba(47, 191, 113, 0.35);
  }

  50% {
    transform: scale(1.18);
    box-shadow: 0 0 10px rgba(47, 191, 113, 0.45);
  }
}

.time-line,
.copyright {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 24px;
}

.time-line {
  color: var(--text-soft);
  white-space: nowrap;
}

@media (prefers-color-scheme: dark) {
  ::selection {
    background: rgba(255, 255, 255, 0.12);
    color: inherit;
  }

  .logo {
    filter: brightness(0) invert(1) opacity(0.56);
  }

  .logo-item:hover .logo,
  .logo-item:focus-within .logo {
    filter: brightness(0) invert(1) opacity(0.9);
  }

  .lead {
    color: #a6a6a6;
  }

  .footer-bar {
    border-top-color: var(--border);
    background: var(--surface-dark);
    color: var(--text-inverse);
  }

  .time-line,
  .copyright {
    color: var(--text-soft);
  }
}

@media (max-width: 1199px) {
  .content-inner {
    max-width: 720px;
    padding: 32px 24px 0;
  }

  .footer-inner {
    max-width: 720px;
    padding: 24px 24px 32px;
  }
}

@media (max-width: 809px) {
  .hero h1 {
    font-size: clamp(32px, 9vw, 42px);
  }

  .logo-set {
    gap: 36px;
    padding-right: 36px;
  }

  .logo-marquee {
    margin: 20px 0;
  }

  .logo-item {
    width: auto;
    flex-basis: auto;
  }

  .logo {
    height: 32px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer-meta {
    flex-wrap: wrap;
    gap: 8px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .content-inner {
    animation: none;
  }

  .logo-track {
    animation: none;
  }
}
