:root {
  --bg: #070707;
  --bg-soft: #121212;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f5f1e8;
  --muted: rgba(245, 241, 232, 0.68);
  --accent: #d5b57a;
  --accent-soft: rgba(213, 181, 122, 0.18);
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: min(1280px, calc(100vw - 96px));
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Noto Serif SC", serif;
  --sans: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --duration: 0.7s;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  background:
    radial-gradient(circle at top left, rgba(213, 181, 122, 0.22), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(255, 255, 255, 0.1), transparent 22%),
    linear-gradient(180deg, #090909 0%, #080808 42%, #0b0b0b 100%);
  color: var(--text);
  min-height: 100vh;
}

[id] {
  scroll-margin-top: 140px;
}

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

button,
a,
.tilt-card {
  -webkit-tap-highlight-color: transparent;
}

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

.ambient,
.ambient-grid {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
}

.ambient-one {
  background:
    radial-gradient(circle at 20% 18%, rgba(213, 181, 122, 0.16), transparent 20%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08), transparent 16%),
    radial-gradient(circle at 50% 80%, rgba(213, 181, 122, 0.08), transparent 22%);
  filter: blur(24px);
  animation: floatAmbient 16s ease-in-out infinite alternate;
}

.ambient-two {
  background:
    radial-gradient(circle at 74% 60%, rgba(255, 255, 255, 0.05), transparent 20%),
    radial-gradient(circle at 12% 74%, rgba(213, 181, 122, 0.12), transparent 18%);
  filter: blur(38px);
  animation: floatAmbient 20s ease-in-out infinite alternate-reverse;
}

.ambient-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 80%);
}

.site-header,
.section,
.site-footer {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 20px;
  z-index: 20;
  margin-top: 20px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.7);
  backdrop-filter: blur(20px);
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) max-content;
  align-items: center;
  gap: 16px;
  transition:
    transform 0.4s ease,
    background 0.4s ease,
    border-color 0.4s ease;
}

.site-header.is-scrolled {
  background: rgba(8, 8, 8, 0.88);
  border-color: rgba(213, 181, 122, 0.22);
  transform: translateY(-4px);
}

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

.brand-mark {
  display: flex;
  gap: 6px;
}

.brand-mark span {
  width: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f4dfb6, #b68b44);
  box-shadow: 0 6px 18px rgba(213, 181, 122, 0.25);
}

.brand-mark span:nth-child(1) {
  height: 28px;
}

.brand-mark span:nth-child(2) {
  height: 36px;
}

.brand-mark span:nth-child(3) {
  height: 22px;
}

.brand-kicker,
.section-kicker,
.mini-label {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: rgba(245, 241, 232, 0.52);
}

.brand-name {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 600;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  justify-content: center;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.nav-link,
.header-cta,
.button {
  position: relative;
  border-radius: 999px;
  overflow: hidden;
  transition:
    color 0.35s ease,
    background 0.35s ease,
    transform 0.35s ease,
    border-color 0.35s ease;
}

.nav-link::before,
.header-cta::before,
.button::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, 0.16) 50%, transparent 82%);
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
}

.nav-link {
  flex: 0 0 auto;
  padding: 12px 14px;
  color: var(--muted);
  border: 1px solid transparent;
  white-space: nowrap;
  font-size: 0.98rem;
}

.nav-link.active,
.nav-link:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 60%),
    rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.nav-link:hover::before,
.nav-link.active::before,
.header-cta:hover::before,
.button:hover::before {
  opacity: 1;
  animation: sweepSheen 1.2s ease;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
}

.header-cta {
  flex-shrink: 0;
  min-width: 136px;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(213, 181, 122, 0.2), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(213, 181, 122, 0.2);
  white-space: nowrap;
}

@media (max-width: 1360px) {
  .site-header {
    grid-template-columns: minmax(200px, 236px) minmax(0, 1fr) max-content;
    gap: 12px;
    padding: 18px 20px;
  }

  .brand-lockup {
    gap: 12px;
  }

  .nav-link {
    padding: 11px 10px;
    font-size: 0.93rem;
  }

  .header-cta {
    min-width: 124px;
    padding: 12px 16px;
  }
}

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

.section {
  padding: 120px 0 0;
}

.hero {
  padding-top: 88px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy h2,
.section-heading h2,
.footer-top h2 {
  margin: 0;
  font-family: var(--display);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero-copy h2 {
  font-size: clamp(4rem, 7vw, 7rem);
  max-width: 10ch;
}

.hero-copy h2 span {
  display: block;
  color: var(--accent);
}

.hero-lead,
.section-heading p,
.story-card p,
.solution-card p,
.product-card p,
.query-card p,
.materials-grid p,
.culture-card p,
.contact-panel p,
.footer-contact p,
.merchant-card p,
.timeline-item p {
  color: var(--muted);
  line-height: 1.85;
}

.hero-lead {
  margin: 28px 0 0;
  max-width: 60ch;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 36px;
}

.button {
  padding: 16px 24px;
  border: 1px solid var(--line);
}

.button-primary {
  background: linear-gradient(135deg, rgba(213, 181, 122, 0.25), rgba(255, 255, 255, 0.08));
  border-color: rgba(213, 181, 122, 0.28);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.03);
}

.hero-stats {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.glass-card,
.feature-card,
.solution-card,
.story-card,
.query-card,
.product-card,
.merchant-card,
.materials-card,
.culture-card,
.contact-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.sheen-card::after {
  content: "";
  position: absolute;
  inset: -30% auto auto -50%;
  width: 42%;
  height: 180%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: rotate(16deg) translateX(-140%);
  opacity: 0;
  pointer-events: none;
}

.sheen-card:hover::after,
.sheen-card.is-focused::after,
.flow-card.is-active::after {
  opacity: 1;
  animation: cardSweep 1.35s ease;
}

.glass-card::before,
.feature-card::before,
.solution-card::before,
.story-card::before,
.query-card::before,
.product-card::before,
.merchant-card::before,
.materials-card::before,
.culture-card::before,
.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 44%);
  opacity: 0.55;
  pointer-events: none;
}

.stat-card {
  padding: 24px;
  min-height: 150px;
}

.stat-value {
  margin: 0;
  font-family: var(--display);
  font-size: 2.4rem;
  color: var(--accent);
}

.stat-label {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.hero-visual {
  min-height: 760px;
  position: relative;
}

.visual-core {
  position: sticky;
  top: 132px;
  min-height: 720px;
  isolation: isolate;
  border-radius: 48px;
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.08), transparent 20%),
    radial-gradient(circle at 72% 70%, rgba(213, 181, 122, 0.2), transparent 22%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.visual-glow,
.visual-sheen,
.visual-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.visual-glow {
  border-radius: inherit;
  filter: blur(20px);
}

.glow-one {
  background:
    radial-gradient(circle at 32% 28%, rgba(213, 181, 122, 0.18), transparent 18%),
    radial-gradient(circle at 78% 68%, rgba(255, 255, 255, 0.08), transparent 20%);
  animation: pulseGlow 8s ease-in-out infinite;
}

.glow-two {
  background:
    radial-gradient(circle at 70% 26%, rgba(213, 181, 122, 0.1), transparent 16%),
    radial-gradient(circle at 22% 76%, rgba(255, 255, 255, 0.06), transparent 18%);
  animation: pulseGlow 11s ease-in-out infinite reverse;
}

.visual-sheen {
  background: linear-gradient(120deg, transparent 32%, rgba(255, 255, 255, 0.09) 48%, transparent 64%);
  transform: translateX(-130%) skewX(-14deg);
  animation: heroSweep 9s ease-in-out infinite;
}

.visual-particles span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8), rgba(213, 181, 122, 0.15));
  opacity: 0.35;
  animation: particleFloat 12s ease-in-out infinite;
}

.visual-particles span:nth-child(1) {
  top: 18%;
  left: 22%;
}

.visual-particles span:nth-child(2) {
  top: 24%;
  left: 70%;
  animation-delay: -2s;
}

.visual-particles span:nth-child(3) {
  top: 46%;
  left: 62%;
  animation-delay: -5s;
}

.visual-particles span:nth-child(4) {
  top: 68%;
  left: 18%;
  animation-delay: -3s;
}

.visual-particles span:nth-child(5) {
  top: 74%;
  left: 74%;
  animation-delay: -6s;
}

.visual-particles span:nth-child(6) {
  top: 36%;
  left: 36%;
  animation-delay: -8s;
}

.visual-ring {
  position: absolute;
  inset: 14% 12%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 0 80px rgba(255, 255, 255, 0.03),
    0 0 0 28px rgba(255, 255, 255, 0.02),
    0 0 0 56px rgba(255, 255, 255, 0.015);
  animation: rotateRing 18s linear infinite;
}

.visual-card,
.floating-panel {
  position: absolute;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(14, 14, 14, 0.8);
  backdrop-filter: blur(18px);
  animation: panelBreath 8s ease-in-out infinite;
}

.primary-card {
  width: 60%;
  left: 20%;
  top: 24%;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(213, 181, 122, 0.26), rgba(255, 255, 255, 0.04)),
    rgba(14, 14, 14, 0.8);
  animation-duration: 10s;
}

.visual-card p,
.floating-panel span {
  margin: 0 0 8px;
  color: rgba(245, 241, 232, 0.66);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.visual-card strong,
.floating-panel strong {
  display: block;
  font-size: 1.2rem;
  line-height: 1.55;
}

.panel-left {
  width: 220px;
  top: 16%;
  left: 6%;
}

.panel-right {
  width: 230px;
  top: 18%;
  right: 6%;
}

.panel-bottom {
  width: 260px;
  right: 10%;
  bottom: 14%;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 42px;
}

.section-heading h2,
.footer-top h2 {
  font-size: clamp(2.8rem, 4.4vw, 4.8rem);
}

.section-heading p {
  margin: 18px 0 0;
  max-width: 64ch;
}

.capability-grid,
.solution-grid,
.culture-grid,
.materials-grid {
  display: grid;
  gap: 22px;
}

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

.feature-card,
.solution-card,
.product-card,
.culture-card {
  padding: 28px;
}

.feature-index {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
}

.feature-card h3,
.solution-card h3,
.story-card h3,
.query-card h3,
.product-card h3,
.merchant-card h3,
.materials-card h3,
.culture-card h3,
.contact-panel h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.62rem;
  letter-spacing: -0.02em;
}

.feature-card p,
.solution-card p,
.product-card p,
.culture-card p,
.merchant-card p {
  margin: 16px 0 0;
}

.solution-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  position: relative;
}

.solution-grid::before {
  content: "";
  position: absolute;
  inset: -32px -26px;
  border-radius: 40px;
  background:
    linear-gradient(90deg, transparent, rgba(213, 181, 122, 0.08), transparent),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.solution-grid.is-active::before {
  opacity: 1;
  transform: scale(1);
}

.solution-card {
  min-height: 260px;
  transition:
    transform 0.45s ease,
    border-color 0.45s ease,
    box-shadow 0.45s ease,
    opacity 0.45s ease,
    filter 0.45s ease;
}

.solution-card.is-dimmed {
  opacity: 0.58;
  filter: saturate(0.78);
}

.solution-card.is-focused {
  transform: translateY(-8px) scale(1.015);
  border-color: rgba(213, 181, 122, 0.32);
  box-shadow: 0 34px 86px rgba(0, 0, 0, 0.42);
}

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

.solution-card:nth-child(2),
.solution-card:nth-child(3),
.solution-card:nth-child(5),
.solution-card:nth-child(6) {
  grid-column: span 4;
}

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

.story-card,
.merchant-card {
  padding: 32px;
}

.story-card p {
  margin: 16px 0 0;
}

.detail-list {
  margin: 20px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.detail-list li + li {
  margin-top: 14px;
}

.timeline {
  margin-top: 26px;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.timeline-item {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.timeline-item span {
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.timeline-item p {
  margin: 14px 0 0;
}

.product-layout,
.merchant-layout {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 22px;
}

.query-card {
  padding: 32px;
  min-height: 100%;
}

.query-fields {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.query-field {
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(245, 241, 232, 0.52);
}

.product-stack {
  display: grid;
  gap: 22px;
}

.step-list {
  margin-top: 24px;
  display: grid;
  gap: 18px;
  position: relative;
  --flow-progress: 0;
}

.step-list::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, rgba(213, 181, 122, 0.12), rgba(255, 255, 255, 0.06));
}

.step-list::after {
  content: "";
  position: absolute;
  left: 25px;
  top: 10px;
  width: 1px;
  height: calc(var(--flow-progress, 0) * 1%);
  background: linear-gradient(180deg, rgba(213, 181, 122, 0.85), rgba(255, 255, 255, 0.42));
  transition: height 0.4s ease;
}

.step-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0.68;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.step-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.step-item span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  color: var(--accent);
  border: 1px solid rgba(213, 181, 122, 0.28);
  background: rgba(213, 181, 122, 0.08);
  box-shadow: 0 0 0 0 rgba(213, 181, 122, 0);
  transition:
    box-shadow 0.45s ease,
    border-color 0.45s ease,
    background 0.45s ease,
    transform 0.45s ease;
}

.step-item strong {
  font-size: 1.08rem;
}

.step-item p {
  margin: 8px 0 0;
}

.step-item.is-active {
  opacity: 1;
  transform: translateX(6px);
}

.step-item.is-active span {
  transform: scale(1.04);
  background: rgba(213, 181, 122, 0.16);
  border-color: rgba(213, 181, 122, 0.56);
  box-shadow: 0 0 0 10px rgba(213, 181, 122, 0.08);
}

.contact-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent);
}

.doc-pills {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.doc-pills span {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 241, 232, 0.84);
  font-size: 0.94rem;
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
}

.doc-pills span:hover {
  transform: translateY(-2px);
  border-color: rgba(213, 181, 122, 0.28);
  background: rgba(213, 181, 122, 0.08);
}

.materials-card {
  margin-top: 22px;
  padding: 32px;
}

.materials-grid {
  margin-top: 26px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.materials-grid div {
  padding: 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.materials-grid div:hover {
  transform: translateY(-4px);
  border-color: rgba(213, 181, 122, 0.2);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.26);
}

.materials-grid strong {
  display: block;
  font-size: 1rem;
}

.materials-grid p {
  margin: 12px 0 0;
}

.about-grid {
  margin-bottom: 22px;
}

.culture-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-panel {
  margin-top: 22px;
  padding: 32px;
}

.site-footer {
  padding: 120px 0 42px;
}

.footer-top {
  padding: 38px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 0% 0%, rgba(213, 181, 122, 0.18), transparent 24%),
    rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.footer-glow {
  animation: footerPulse 11s ease-in-out infinite;
}

.footer-contact {
  text-align: right;
}

.footer-contact p {
  margin: 6px 0;
}

.footer-bottom {
  padding: 28px 6px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(245, 241, 232, 0.56);
  font-size: 0.92rem;
}

.reveal,
.reveal-up,
.reveal-left,
.reveal-scale,
.reveal-mask {
  opacity: 0;
  transition:
    opacity var(--duration) ease,
    transform var(--duration) ease;
}

.reveal,
.reveal-up {
  transform: translateY(28px);
}

.reveal-left {
  transform: translateX(-28px);
}

.reveal-scale {
  transform: translateY(18px) scale(0.96);
}

.reveal-mask {
  clip-path: inset(0 0 100% 0);
  transform: translateY(0);
  transition:
    opacity var(--duration) ease,
    clip-path 0.8s ease;
}

.reveal.is-visible,
.reveal-up.is-visible,
.reveal-left.is-visible,
.reveal-scale.is-visible,
.reveal-mask.is-visible {
  opacity: 1;
}

.reveal.is-visible,
.reveal-up.is-visible {
  transform: translateY(0);
}

.reveal-left.is-visible {
  transform: translateX(0);
}

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

.reveal-mask.is-visible {
  clip-path: inset(0 0 0 0);
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

.tilt-card {
  --parallax-y: 0px;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --lift-y: 0px;
  transform-style: preserve-3d;
  transform:
    translate3d(0, var(--parallax-y), 0)
    perspective(1200px)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y))
    translateY(var(--lift-y));
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.tilt-card:hover {
  --lift-y: -4px;
  border-color: var(--line-strong);
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.42);
}

@keyframes floatAmbient {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(0, -24px, 0) scale(1.05);
  }
}

@keyframes rotateRing {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes heroSweep {
  0%,
  18% {
    transform: translateX(-130%) skewX(-14deg);
    opacity: 0;
  }
  30%,
  48% {
    transform: translateX(22%) skewX(-14deg);
    opacity: 1;
  }
  60%,
  100% {
    transform: translateX(120%) skewX(-14deg);
    opacity: 0;
  }
}

@keyframes panelBreath {
  0%,
  100% {
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.34);
    filter: brightness(1.04);
  }
}

@keyframes particleFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.18;
  }
  50% {
    transform: translate3d(10px, -18px, 0) scale(1.15);
    opacity: 0.48;
  }
}

@keyframes sweepSheen {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}

@keyframes cardSweep {
  0% {
    transform: rotate(16deg) translateX(-140%);
  }
  100% {
    transform: rotate(16deg) translateX(320%);
  }
}

@keyframes footerPulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(213, 181, 122, 0);
  }
  50% {
    box-shadow: 0 0 42px rgba(213, 181, 122, 0.08);
  }
}

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

  .reveal,
  .reveal-up,
  .reveal-left,
  .reveal-scale,
  .reveal-mask {
    opacity: 1;
    transform: none;
    clip-path: inset(0 0 0 0);
  }
}

@media (max-width: 1200px) {
  :root {
    --container: min(1120px, calc(100vw - 56px));
  }

  .hero,
  .product-layout,
  .merchant-layout,
  .two-column {
    grid-template-columns: 1fr;
  }

  .capability-grid,
  .culture-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .solution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .solution-card,
  .solution-card:nth-child(1),
  .solution-card:nth-child(2),
  .solution-card:nth-child(3),
  .solution-card:nth-child(4),
  .solution-card:nth-child(5),
  .solution-card:nth-child(6) {
    grid-column: auto;
  }

  .hero-visual {
    min-height: auto;
  }

  .visual-core {
    position: relative;
    top: auto;
    min-height: 600px;
  }
}

@media (max-width: 820px) {
  :root {
    --container: min(100vw - 32px, 100%);
  }

  .site-header {
    position: static;
    margin-top: 16px;
    padding: 18px;
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow: visible;
    scrollbar-width: auto;
  }

  .header-cta {
    width: 100%;
  }

  .section {
    padding-top: 88px;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-copy h2 {
    font-size: clamp(2.6rem, 11vw, 4rem);
  }

  .hero-actions,
  .hero-stats,
  .capability-grid,
  .culture-grid,
  .materials-grid,
  .timeline,
  .footer-top,
  .footer-bottom {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-actions {
    display: grid;
  }

  .hero-stats,
  .capability-grid,
  .culture-grid,
  .materials-grid {
    grid-template-columns: 1fr;
  }

  .visual-core {
    min-height: 540px;
  }

  .primary-card {
    width: 72%;
    left: 14%;
  }

  .panel-left,
  .panel-right,
  .panel-bottom {
    width: 200px;
  }

  .footer-contact {
    text-align: left;
  }

  .footer-bottom {
    padding-top: 18px;
  }
}
