:root {
  color-scheme: light;
  --page: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.1);
  --panel: #ffffff;
  --dark: #0b0b0d;
  --blue: #0071e3;
  --green: #0f7b58;
  --pink: #d8486f;
  --gold: #a06b1f;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 245, 247, 0.78);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(180%) blur(18px);
  transition:
    border-color 0.25s ease,
    background 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(245, 245, 247, 0.9);
  border-color: var(--line);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  height: 48px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.brand-mark {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: rgba(29, 29, 31, 0.78);
}

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

.hero {
  display: flex;
  min-height: auto;
  flex-direction: column;
  gap: clamp(18px, 3vw, 34px);
  padding: clamp(28px, 4vw, 40px) 0 10px;
  overflow: hidden;
}

.hero-copy,
.section-heading,
.contact {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--blue);
  font-size: 17px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 1120px;
  margin: 0 auto;
  font-size: clamp(40px, 7vw, 64px);
  line-height: 0.98;
  font-weight: 800;
}

.hero-text {
  max-width: 760px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.35;
  font-weight: 600;
}

.hero-visual {
  width: min(1320px, calc(100% - 28px));
  height: clamp(360px, 42vw, 620px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #dfe4ea;
}

.hero-visual img {
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.category-strip {
  width: min(940px, calc(100% - 24px));
  margin: 12px auto 60px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.category-strip a {
  min-height: 112px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.category-strip img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease;
}

.category-strip a:hover img {
  transform: translateY(-4px);
}

.section {
  width: min(1280px, calc(100% - 28px));
  margin: 0 auto;
  padding: 56px 0;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading h2,
.contact h2,
.cinema-copy h2 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5.2vw, 70px);
  line-height: 1.02;
  font-weight: 800;
}

.section-heading p:not(.eyebrow) {
  max-width: 690px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.45;
  font-weight: 600;
}

.section-heading.split {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: end;
  gap: 28px;
  text-align: left;
}

.section-heading.split p:not(.eyebrow) {
  margin: 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-auto-rows: minmax(330px, auto);
  gap: 18px;
}

.feature-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.feature-card.large {
  grid-row: span 2;
  min-height: 680px;
}

.feature-card.dark {
  background: #080808;
  color: #fff;
}

.feature-card.light {
  background: #fefefe;
}

.feature-card img {
  height: 100%;
  object-fit: cover;
}

.feature-card.large img {
  object-position: center;
}

.card-copy {
  position: absolute;
  inset: 32px 30px auto;
  max-width: 420px;
  text-shadow: 0 1px 20px rgba(255, 255, 255, 0.55);
}

.feature-card.dark .card-copy {
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.5);
}

.card-copy p {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
}

.card-copy h3 {
  margin-bottom: 8px;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.04;
}

.card-copy span {
  color: rgba(29, 29, 31, 0.72);
  font-size: 18px;
  font-weight: 650;
}

.feature-card.dark .card-copy span {
  color: rgba(255, 255, 255, 0.74);
}

.gallery-section {
  width: 100%;
  padding-left: max(14px, calc((100vw - 1280px) / 2));
}

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(290px, 410px);
  gap: 18px;
  overflow-x: auto;
  padding: 6px max(14px, calc((100vw - 1280px) / 2)) 18px 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.gallery-card {
  scroll-snap-align: start;
  min-height: 526px;
  display: grid;
  grid-template-rows: 390px auto auto;
  gap: 10px;
  padding: 14px 14px 22px;
  border-radius: 8px;
  background: var(--panel);
}

.gallery-card img {
  height: 390px;
  border-radius: 6px;
  object-fit: cover;
  background: #f1f1f1;
}

.gallery-card h3 {
  margin: 8px 4px 0;
  font-size: 25px;
}

.gallery-card p {
  margin: 0 4px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
}

.cinema {
  position: relative;
  width: 100%;
  min-height: 78svh;
  margin: 42px 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #111;
  color: #fff;
}

.cinema::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.42),
    rgba(0, 0, 0, 0.05) 52%,
    rgba(0, 0, 0, 0.55)
  );
}

.cinema img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.cinema-copy {
  position: relative;
  z-index: 1;
  width: min(880px, calc(100% - 36px));
  text-align: center;
}

.cinema-copy .eyebrow {
  color: #fff;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.capability-grid article {
  min-height: 250px;
  padding: 26px;
  border-radius: 8px;
  background: var(--panel);
}

.capability-grid span {
  color: var(--green);
  font-weight: 800;
}

.capability-grid h3 {
  margin: 58px 0 14px;
  font-size: 24px;
  line-height: 1.12;
}

.capability-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 600;
}

.compare {
  width: min(1120px, calc(100% - 28px));
  margin: 26px auto 70px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.compare-item {
  min-height: 190px;
  padding: 26px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.compare-item strong {
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1;
}

.compare-item span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.contact {
  padding: 90px 0 118px;
}

.contact h2 {
  max-width: 850px;
  margin-inline: auto;
}

.contact-button {
  min-width: 128px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.contact-button:hover {
  background: #0066cc;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(29, 29, 31, 0.86);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

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

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

@media (max-width: 900px) {
  .nav-links {
    gap: 16px;
  }

  .hero {
    min-height: auto;
  }

  .category-strip {
    grid-template-columns: repeat(5, 104px);
    overflow-x: auto;
    justify-content: start;
    padding-bottom: 8px;
  }

  .section-heading.split,
  .featured-grid,
  .capability-grid,
  .compare {
    grid-template-columns: 1fr;
  }

  .section-heading.split {
    text-align: center;
  }

  .section-heading.split p:not(.eyebrow) {
    margin: 0 auto;
  }

  .feature-card,
  .feature-card.large {
    min-height: 520px;
  }

  .gallery-card {
    grid-template-rows: 340px auto auto;
    min-height: 482px;
  }

  .gallery-card img {
    height: 340px;
  }
}

@media (max-width: 640px) {
  .nav {
    width: calc(100% - 22px);
  }

  .nav-links {
    gap: 12px;
    font-size: 12px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-visual {
    width: calc(100% - 16px);
    height: 300px;
  }

  .section {
    width: calc(100% - 16px);
    padding: 42px 0;
  }

  .featured-grid {
    gap: 12px;
  }

  .feature-card,
  .feature-card.large {
    min-height: 470px;
  }

  .card-copy {
    inset: 22px 20px auto;
  }

  .card-copy span {
    font-size: 16px;
  }

  .gallery {
    grid-auto-columns: minmax(268px, 82vw);
    gap: 12px;
  }

  .gallery-card {
    min-height: 432px;
    grid-template-rows: 292px auto auto;
  }

  .gallery-card img {
    height: 292px;
  }

  .cinema {
    min-height: 62svh;
  }

  .capability-grid article {
    min-height: 220px;
  }

  .contact {
    padding-bottom: 92px;
  }
}
