:root {
  color-scheme: dark;
  --bg: #050609;
  --ink: #f7fbff;
  --muted: #a6b0bf;
  --line: rgba(255, 255, 255, 0.16);
  --panel: rgba(12, 18, 24, 0.72);
  --cyan: #2fe0ff;
  --gold: #ffc857;
  --coral: #ff5f63;
  --green: #8fe36a;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

.page-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 80;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--gold), var(--coral));
  box-shadow: 0 0 24px rgba(47, 224, 255, 0.75);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 clamp(18px, 4vw, 52px);
  background: linear-gradient(180deg, rgba(5, 6, 9, 0.9), rgba(5, 6, 9, 0));
  transition: background 220ms ease, border-color 220ms ease, height 220ms ease;
}

.site-header.is-scrolled {
  height: 64px;
  background: rgba(5, 6, 9, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: var(--ink);
  color: #050609;
  font-weight: 950;
  transform: skewX(-10deg);
}

.brand-text {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  color: rgba(247, 251, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  display: grid;
  align-items: end;
  padding: 116px clamp(20px, 5vw, 72px) 76px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  transform: scale(1.02);
  filter: saturate(1.06) contrast(1.04);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 9, 0.96) 0%, rgba(5, 6, 9, 0.72) 34%, rgba(5, 6, 9, 0.12) 68%),
    linear-gradient(0deg, rgba(5, 6, 9, 0.96) 0%, rgba(5, 6, 9, 0.08) 50%, rgba(5, 6, 9, 0.64) 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  left: -8vw;
  right: 15vw;
  bottom: 14vh;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--cyan), transparent);
  transform: rotate(-8deg);
  box-shadow: 0 0 28px rgba(47, 224, 255, 0.55);
}

.hero::after {
  right: 8vw;
  bottom: 11vh;
  width: min(44vw, 560px);
  height: 42vh;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, rgba(47, 224, 255, 0.18), transparent 58%);
  transform: skewX(-18deg);
}

.hero-copy {
  width: min(820px, 100%);
}

.eyebrow,
.section-kicker,
.section-heading span,
.contact-copy span,
.card-label {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  display: grid;
  gap: 0;
  margin: 12px 0 22px;
  font-size: clamp(72px, 17vw, 218px);
  line-height: 0.76;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 span:first-child {
  color: var(--ink);
}

.hero h1 span:last-child {
  -webkit-text-stroke: clamp(1px, 0.2vw, 3px) rgba(247, 251, 255, 0.9);
  color: transparent;
}

.hero-summary {
  max-width: 620px;
  margin: 0 0 28px;
  color: rgba(247, 251, 255, 0.78);
  font-size: clamp(17px, 2.1vw, 24px);
  font-weight: 600;
}

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

.primary-action,
.secondary-action,
.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 14px;
  font-weight: 900;
  transform: skewX(-9deg);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.primary-action {
  background: var(--ink);
  color: #050609;
}

.secondary-action {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.primary-action:hover,
.secondary-action:hover,
.contact-button:hover {
  transform: skewX(-9deg) translateY(-2px);
}

.hero-card {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: clamp(24px, 8vh, 78px);
  width: min(320px, calc(100vw - 40px));
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(7, 12, 17, 0.66);
  backdrop-filter: blur(18px);
  transform: skewX(-7deg);
}

.hero-card > * {
  display: block;
  transform: skewX(7deg);
}

.hero-card strong {
  margin-top: 8px;
  font-size: 22px;
}

.hero-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.scroll-cue {
  position: absolute;
  left: clamp(20px, 5vw, 72px);
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(247, 251, 255, 0.62);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.scroll-cue i {
  width: 76px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.marquee-section {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--ink);
  color: #050609;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  min-height: 84px;
  padding-inline: 28px;
  font-size: clamp(28px, 6vw, 82px);
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.section-grid,
.work,
.updates,
.featured-media,
.contact {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(82px, 12vw, 150px) clamp(20px, 4vw, 32px);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(120px, 0.34fr) minmax(0, 1fr);
  gap: clamp(30px, 8vw, 108px);
}

.section-content h2,
.method-stack h2,
.section-heading h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(36px, 7vw, 92px);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: 0;
}

.section-content p,
.contact-copy p {
  max-width: 760px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

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

.work-panel {
  min-height: 330px;
  padding: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(47, 224, 255, 0.13), transparent 40%),
    rgba(255, 255, 255, 0.045);
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.work-panel:nth-child(2) {
  background:
    linear-gradient(135deg, rgba(255, 200, 87, 0.18), transparent 40%),
    rgba(255, 255, 255, 0.045);
}

.work-panel:nth-child(3) {
  background:
    linear-gradient(135deg, rgba(255, 95, 99, 0.16), transparent 40%),
    rgba(255, 255, 255, 0.045);
}

.work-panel:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.4);
}

.work-panel span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
}

.work-panel h3 {
  margin: 86px 0 16px;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1;
}

.work-panel p,
.step-list p,
.timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

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

.step-list {
  display: grid;
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.step-list article {
  display: grid;
  grid-template-columns: 130px minmax(160px, 0.36fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.step-list span {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.step-list h3 {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.08;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.timeline article {
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.timeline time {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.timeline p {
  margin-top: 44px;
  font-size: clamp(17px, 2vw, 22px);
}

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

.media-copy {
  max-width: 760px;
  margin: -10px 0 30px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
}

.video-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  clip-path: polygon(0 0, calc(100% - 42px) 0, 100% 42px, 100% 100%, 0 100%);
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: end;
  border-top: 1px solid var(--line);
}

.contact-button {
  background: var(--gold);
  color: #050609;
  min-width: 160px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 0 clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: rgba(247, 251, 255, 0.6);
  font-size: 13px;
}

.site-footer a {
  color: rgba(247, 251, 255, 0.72);
  transition: color 180ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--cyan);
}

.is-hidden {
  display: none !important;
}

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

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

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

@media (max-width: 860px) {
  .site-header {
    height: 68px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 68px;
    left: 14px;
    right: 14px;
    display: grid;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    background: rgba(5, 6, 9, 0.95);
    backdrop-filter: blur(18px);
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

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

  .site-nav a {
    padding: 14px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: 96svh;
    align-items: end;
    padding-top: 96px;
  }

  .hero-media img {
    object-position: 64% center;
  }

  .hero-mask {
    background:
      linear-gradient(90deg, rgba(5, 6, 9, 0.98) 0%, rgba(5, 6, 9, 0.7) 52%, rgba(5, 6, 9, 0.2) 100%),
      linear-gradient(0deg, rgba(5, 6, 9, 0.98) 0%, rgba(5, 6, 9, 0.2) 58%, rgba(5, 6, 9, 0.72) 100%);
  }

  .hero h1 {
    font-size: clamp(70px, 24vw, 126px);
  }

  .hero-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 28px;
    transform: none;
  }

  .hero-card > * {
    transform: none;
  }

  .scroll-cue {
    display: none;
  }

  .section-grid,
  .work-grid,
  .timeline,
  .featured-media,
  .contact {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .work-panel {
    min-height: 260px;
  }

  .work-panel h3 {
    margin-top: 58px;
  }

  .step-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-button {
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .brand-text {
    font-size: 14px;
  }

  .hero {
    padding-inline: 18px;
    padding-bottom: 44px;
  }

  .hero h1 {
    font-size: clamp(62px, 25vw, 100px);
  }

  .hero-summary {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 320px);
  }

  .primary-action,
  .secondary-action,
  .contact-button {
    width: 100%;
    transform: none;
  }

  .primary-action:hover,
  .secondary-action:hover,
  .contact-button:hover {
    transform: translateY(-2px);
  }

  .marquee-track span {
    min-height: 62px;
    padding-inline: 18px;
  }

  .section-grid,
  .work,
  .updates,
  .featured-media,
  .contact {
    padding-inline: 18px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 18px;
  }
}
