:root {
  --bg: #090909;
  --bg-soft: #121212;
  --panel: rgba(19, 19, 19, 0.76);
  --panel-strong: rgba(26, 26, 26, 0.92);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f5f3ef;
  --text-soft: rgba(245, 243, 239, 0.72);
  --accent-blue: #9ad8ff;
  --accent-coral: #f0a39a;
  --accent-glow: rgba(150, 216, 255, 0.24);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --page-width: min(1180px, calc(100vw - 40px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(154, 216, 255, 0.14), transparent 34%),
    radial-gradient(circle at 88% 15%, rgba(240, 163, 154, 0.12), transparent 24%),
    linear-gradient(180deg, #070707 0%, #0a0a0a 34%, #101010 100%);
  font-family: "Avenir Next", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

.site-shell {
  position: relative;
  overflow: clip;
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 34vw;
  height: 34vw;
  pointer-events: none;
  filter: blur(90px);
  opacity: 0.32;
  z-index: 0;
}

.site-shell::before {
  top: -10vw;
  left: -10vw;
  background: rgba(154, 216, 255, 0.08);
}

.site-shell::after {
  right: -12vw;
  top: 22vh;
  background: rgba(240, 163, 154, 0.08);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  width: var(--page-width);
  margin: 18px auto 0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(8, 8, 8, 0.9);
  border-color: rgba(255, 255, 255, 0.14);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand__logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.brand__text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.brand__text strong {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand__text small {
  color: var(--text-soft);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: var(--text-soft);
  font-size: 0.95rem;
  transition: color 180ms ease;
}

.site-nav a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

main {
  width: var(--page-width);
  margin: 0 auto;
  padding: 28px 0 64px;
}

.hero {
  min-height: min(840px, calc(100vh - 120px));
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  align-items: start;
  gap: clamp(30px, 5vw, 72px);
  padding: clamp(40px, 7vw, 92px) 0 34px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-blue);
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.closing h2 {
  margin: 0;
  font-family: "Optima", "Gill Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.05;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 7vw, 6.2rem);
}

.hero__lead {
  max-width: 34rem;
  margin: 22px 0 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.85;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

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

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

.button--primary {
  background: linear-gradient(120deg, rgba(154, 216, 255, 0.92), rgba(240, 163, 154, 0.92));
  color: #111;
  box-shadow: 0 18px 30px rgba(154, 216, 255, 0.18);
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 32px 0 0;
  list-style: none;
}

.hero__tags li {
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
}

.hero__visual {
  position: relative;
  min-height: 620px;
}

.frame {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background: #0e0e0e;
  box-shadow: var(--shadow);
}

.frame img,
.about-panel img,
.gallery-card img,
.closing img {
  height: 100%;
  object-fit: cover;
}

.frame::after,
.gallery-card::after,
.about-panel::after,
.closing::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 36%, rgba(0, 0, 0, 0.3));
  pointer-events: none;
}

.frame--large {
  inset: 6% 0 0 10%;
}

.frame--top {
  left: 0;
  top: 0;
  width: 38%;
  height: 46%;
  animation: driftTop 8s ease-in-out infinite;
}

.frame--bottom {
  right: 0;
  bottom: 2%;
  width: 42%;
  height: 36%;
  animation: driftBottom 10s ease-in-out infinite;
}

@keyframes driftTop {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes driftBottom {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(14px);
  }
}

.highlight-strip,
.closing,
.glass-card,
.flow-step,
.gallery-card,
.about-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(16px);
}

.highlight-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 26px 30px;
  border-radius: var(--radius-xl);
}

.highlight-strip div {
  display: grid;
  gap: 8px;
}

.highlight-strip span {
  color: var(--text-soft);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.highlight-strip strong {
  font-size: 1.08rem;
  letter-spacing: 0.04em;
}

.section {
  padding: clamp(72px, 8vw, 110px) 0 0;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.section-heading h2,
.closing h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(280px, 1.04fr);
  gap: 26px;
  align-items: stretch;
}

.glass-card,
.about-panel,
.flow-step,
.gallery-card,
.closing {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-copy {
  padding: 34px;
}

.about-copy p {
  margin: 0 0 18px;
  color: var(--text-soft);
  line-height: 1.9;
}

.about-copy blockquote {
  margin: 34px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1.22rem;
  line-height: 1.7;
  letter-spacing: 0.03em;
}

.about-panel {
  position: relative;
  min-height: 520px;
}

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

.service-card {
  padding: 30px;
}

.service-card__index {
  display: inline-flex;
  margin-bottom: 24px;
  color: rgba(154, 216, 255, 0.85);
  font-size: 0.86rem;
  letter-spacing: 0.18em;
}

.service-card h3,
.flow-step h3 {
  margin: 0 0 14px;
  font-size: 1.28rem;
  letter-spacing: 0.03em;
}

.service-card p,
.flow-step p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.9;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 94px;
  gap: 18px;
}

.gallery-card {
  position: relative;
  grid-column: span 4;
  grid-row: span 3;
}

.gallery-card--wide {
  grid-column: span 8;
}

.gallery-card--tall {
  grid-row: span 5;
}

.gallery-card figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.94rem;
  letter-spacing: 0.04em;
}

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

.flow-step {
  padding: 28px;
}

.flow-step span {
  display: inline-flex;
  margin-bottom: 18px;
  color: rgba(240, 163, 154, 0.9);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
}

.closing {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(260px, 1.12fr);
  gap: 24px;
  margin-top: clamp(72px, 8vw, 110px);
  padding: 24px;
}

.closing__copy {
  align-self: center;
  padding: 10px 8px 10px 10px;
}

.closing__copy p:last-child {
  max-width: 28rem;
  color: var(--text-soft);
  line-height: 1.85;
}

.site-footer {
  width: var(--page-width);
  margin: 0 auto;
  padding: 18px 0 34px;
  color: var(--text-soft);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.site-footer__meta {
  margin-left: auto;
}

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

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

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 560px;
  }

  .service-grid,
  .flow-grid,
  .about-grid,
  .closing {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-auto-rows: 88px;
  }
}

@media (max-width: 820px) {
  .site-header {
    padding: 12px 14px;
    border-radius: 28px;
  }

  .nav-toggle {
    display: inline-block;
    flex: 0 0 auto;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: rgba(10, 10, 10, 0.94);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-header.is-nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
  }

  .highlight-strip {
    grid-template-columns: 1fr;
  }

  .gallery-card,
  .gallery-card--wide,
  .gallery-card--tall {
    grid-column: span 12;
    grid-row: span 4;
  }
}

@media (max-width: 640px) {
  :root {
    --page-width: min(100vw - 24px, 100%);
  }

  main {
    padding-top: 18px;
  }

  .site-header {
    margin-top: 12px;
    gap: 12px;
  }

  .brand__logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .brand__text strong {
    font-size: 0.9rem;
  }

  .brand__text small {
    font-size: 0.66rem;
    letter-spacing: 0.12em;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .hero__lead {
    font-size: 1rem;
  }

  .hero__visual {
    min-height: 420px;
  }

  .frame {
    border-radius: 22px;
  }

  .frame--large {
    inset: 12% 0 0 0;
  }

  .frame--top {
    width: 46%;
    height: 42%;
  }

  .frame--bottom {
    width: 46%;
    height: 30%;
  }

  .about-copy,
  .service-card,
  .flow-step,
  .closing {
    padding: 22px;
  }

  .about-panel {
    min-height: 360px;
  }

  .site-footer {
    flex-direction: column;
    gap: 6px;
    padding-bottom: 24px;
  }

  .site-footer__meta {
    margin-left: 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
