:root {
  --bg: #f4f6f7;
  --surface: #ffffff;
  --ink: #101214;
  --muted: #5d656d;
  --line: #d9dee2;
  --accent: #0b5fff;
  --accent-dark: #063fba;
  --radius: 16px;
  --shadow: 0 24px 70px rgba(16, 18, 20, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Aptos", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", system-ui,
    sans-serif;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 44px;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(244, 246, 247, 0.86);
  border-bottom: 1px solid rgba(217, 222, 226, 0.72);
  backdrop-filter: blur(18px);
}

.brand,
.main-nav,
.hero-actions,
.filter-bar,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  min-width: 0;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  color: #fff;
  background: var(--ink);
  border-radius: 50%;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.main-nav {
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
}

.main-nav a {
  position: relative;
}

.main-nav a.active,
.main-nav a:hover,
.site-footer a:hover,
.text-link:hover {
  color: var(--accent);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 50%;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero,
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: 104px clamp(18px, 4vw, 56px) 48px;
}

.hero {
  min-height: 100dvh;
}

.page-hero {
  min-height: 72dvh;
  padding-bottom: 72px;
}

.hero-copy,
.page-hero > div:first-child {
  max-width: 650px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4.8vw, 62px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.16;
}

.hero-lede,
.page-hero p,
.section-title p,
.route-card p,
.gallery-card p,
.contact-copy p,
.capability-card p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.hero-lede {
  max-width: 580px;
  margin-bottom: 30px;
}

.hero-actions {
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:active {
  transform: translateY(1px) scale(0.99);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.button-primary {
  color: #fff;
  background: var(--accent);
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  border-color: var(--line);
}

.button-secondary:hover {
  border-color: var(--ink);
}

.hero-media,
.page-hero-image,
.image-feature,
.gallery-card,
.contact-panel,
.route-card,
.capability-card,
.inquiry-form {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.hero-media {
  margin: 0;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: clamp(440px, 72vh, 760px);
  object-fit: cover;
}

.page-hero-image {
  width: 100%;
  height: clamp(360px, 52vh, 620px);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 clamp(18px, 4vw, 56px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.proof-strip div {
  padding: 28px;
  background: rgba(255, 255, 255, 0.82);
}

.proof-strip strong,
.proof-strip span,
.contact-panel span,
.contact-panel strong {
  display: block;
}

.proof-strip strong {
  margin-bottom: 8px;
  font-size: 30px;
}

.proof-strip span,
.contact-panel span {
  color: var(--muted);
  line-height: 1.6;
}

.section {
  padding: clamp(76px, 10vw, 128px) clamp(18px, 4vw, 56px);
}

.section-title {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 44px;
}

.image-feature-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.image-feature img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.image-feature.large img {
  height: 520px;
}

.image-feature div,
.gallery-card div,
.route-card,
.capability-card,
.contact-panel,
.inquiry-form {
  padding: clamp(22px, 4vw, 34px);
}

.image-feature span,
.route-card span,
.capability-card span {
  display: block;
  margin-bottom: 34px;
  color: var(--accent);
  font-weight: 800;
}

.home-route,
.capability-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.home-route {
  grid-template-columns: 1fr 1fr;
}

.route-card.dark {
  color: #fff;
  background: #111417;
}

.route-card.dark p {
  color: rgba(255, 255, 255, 0.74);
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 800;
}

.timeline {
  border-top: 1px solid var(--line);
}

.timeline.rich {
  max-width: 1040px;
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 0.38fr 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item strong {
  font-size: 22px;
}

.timeline-item span {
  color: var(--muted);
  line-height: 1.75;
}

.filter-bar {
  gap: 10px;
  margin-bottom: 26px;
  overflow-x: auto;
}

.filter {
  min-height: 40px;
  padding: 0 16px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  white-space: nowrap;
}

.filter.active {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.workshop-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.workshop-card {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

.workshop-card.featured {
  grid-row: span 3;
  grid-template-columns: 1fr;
}

.workshop-card img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.workshop-card.featured img {
  height: 560px;
}

.workshop-card div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(22px, 3vw, 34px);
}

.workshop-card span {
  margin-bottom: 34px;
  color: var(--accent);
  font-weight: 800;
}

.workshop-card h3 {
  margin-bottom: 0;
}

.gallery-card {
  transition:
    transform 220ms ease,
    opacity 220ms ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
}

.gallery-card.is-hidden {
  display: none;
}

.gallery-card img {
  width: 100%;
  height: 310px;
  object-fit: cover;
}

.gallery-card:nth-child(1),
.gallery-card:nth-child(4) {
  grid-column: span 2;
}

.gallery-card.text-only {
  min-height: 310px;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(135deg, rgba(11, 95, 255, 0.12), transparent 42%),
    #fff;
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: start;
  background: #fff;
}

.contact-panel {
  display: grid;
  gap: 12px;
}

.contact-panel strong {
  margin-bottom: 12px;
  font-size: clamp(20px, 2vw, 28px);
  overflow-wrap: anywhere;
}

.contact-details {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  color: var(--muted);
}

.inquiry-form {
  display: grid;
  gap: 18px;
}

label span {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  min-height: 138px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(11, 95, 255, 0.2);
  border-color: var(--accent);
}

.form-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.site-footer {
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

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

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

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

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

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr 44px;
  }

  .main-nav {
    position: fixed;
    inset: 72px 12px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  body.nav-open .main-nav {
    display: flex;
  }

  .main-nav a {
    padding: 12px;
  }

  .main-nav a.active::after {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero,
  .page-hero,
  .section-title,
  .image-feature-grid,
  .home-route,
  .workshop-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .workshop-card,
  .workshop-card.featured {
    grid-template-columns: 1fr;
  }

  .workshop-card.featured img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .hero,
  .page-hero {
    padding-top: 96px;
  }

  .hero-media img,
  .page-hero-image {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .proof-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .brand span:last-child {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  h1 {
    font-size: 42px;
  }

  .proof-strip,
  .gallery-grid,
  .capability-band {
    grid-template-columns: 1fr;
  }

  .gallery-card:nth-child(1),
  .gallery-card:nth-child(4) {
    grid-column: span 1;
  }

  .proof-strip div {
    padding: 22px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
