:root {
  --paper: #f4f0e7;
  --paper-deep: #e8dfd0;
  --ink: #171411;
  --muted: #71685b;
  --line: rgba(23, 20, 17, 0.18);
  --accent: #ad432c;
  --pine: #233d35;
  --ivory: #fffaf0;
  --shadow: 0 24px 80px rgba(23, 20, 17, 0.16);
  --sans: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(23, 20, 17, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 20, 17, 0.02) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
  font-family: var(--sans);
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.42;
  background-image:
    radial-gradient(rgba(23, 20, 17, 0.08) 0.8px, transparent 0.8px);
  background-size: 7px 7px;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 240, 231, 0.92);
  backdrop-filter: blur(16px);
}

.lang-toggle {
  min-width: 44px;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.lang-toggle:hover {
  border-color: var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  color: var(--ivory);
  background: var(--ink);
  border-radius: 50%;
  place-items: center;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 22px;
  color: var(--muted);
  font-size: 14px;
}

nav a {
  border-bottom: 1px solid transparent;
}

nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.section-band {
  padding: clamp(56px, 8vw, 116px) clamp(20px, 5vw, 64px);
}

.hero {
  min-height: calc(100vh - 118px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(36px, 7vw, 96px);
  padding-top: clamp(32px, 6vw, 72px);
  padding-bottom: 30px;
}

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

.section-kicker {
  padding-left: 14px;
  border-left: 6px solid var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  max-width: 980px;
  font-size: clamp(54px, 7vw, 100px);
}

.hero-title span {
  display: block;
  white-space: nowrap;
}

.hero-title span + span::before {
  content: "|";
  display: inline-block;
  margin-right: 0.18em;
  color: var(--accent);
}

h2 {
  font-size: clamp(34px, 5vw, 72px);
}

h3 {
  font-size: clamp(22px, 2.4vw, 34px);
}

.hero-deck {
  max-width: 780px;
  margin: 30px 0 0;
  color: #3d352d;
  font-size: clamp(18px, 2vw, 24px);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

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

.button.primary {
  color: var(--ivory);
  background: var(--ink);
}

.button.secondary {
  color: var(--ink);
  background: transparent;
}

.hero-media {
  position: relative;
  width: min(100%, 301px);
  aspect-ratio: 9 / 16;
  justify-self: center;
  align-self: center;
  overflow: hidden;
  background: transparent;
  box-shadow: var(--shadow);
}

.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
}

.media-label {
  position: absolute;
  top: 28px;
  left: 28px;
  z-index: 2;
  max-width: calc(100% - 56px);
  padding: 12px 14px;
  color: var(--ivory);
  background: rgba(23, 20, 17, 0.72);
  backdrop-filter: blur(8px);
}

.media-label span {
  display: block;
  color: #d4c6b0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.media-label strong {
  display: block;
  margin-top: 2px;
  font-size: 15px;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: var(--ivory);
}

.proof-strip div {
  min-height: 138px;
  padding: 28px clamp(18px, 3vw, 40px);
  border-right: 1px solid rgba(255, 250, 240, 0.18);
}

.proof-strip div:last-child {
  border-right: 0;
}

.proof-strip strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1;
}

.proof-strip span {
  color: #d4c6b0;
  font-size: 14px;
}

.intro-grid,
.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(28px, 6vw, 92px);
  align-items: start;
}

.intro-copy,
.process-lead p,
.section-head p,
.featured-copy p {
  color: var(--muted);
  font-size: 18px;
}

.plain-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.work {
  background: var(--paper-deep);
}

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

.featured-case {
  display: grid;
  grid-template-columns: minmax(300px, 0.5fr) minmax(0, 0.9fr);
  min-height: 560px;
  margin-bottom: 22px;
  color: var(--ivory);
  background: var(--ink);
}

.featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 4vw, 52px);
}

.case-number {
  color: rgba(255, 250, 240, 0.18);
  font-family: var(--serif);
  font-size: clamp(80px, 10vw, 160px);
  font-weight: 900;
  line-height: 0.8;
}

.featured-copy p {
  color: #d4c6b0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.tag-row span {
  padding: 6px 9px;
  border: 1px solid rgba(255, 250, 240, 0.24);
  color: #d4c6b0;
  font-size: 12px;
}

.feature-poster,
.case-item button,
.case-item .inline-video-player,
.stack-card {
  position: relative;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  cursor: pointer;
}

.feature-poster {
  display: grid;
  width: 70%;
  aspect-ratio: 9 / 16;
  align-self: center;
  justify-self: center;
  background: #0b0908;
  place-items: center;
}

.case-item button,
.case-item .inline-video-player,
.stack-card {
  background: #0b0908;
}

.inline-video-player {
  display: block;
  cursor: default;
  background: transparent;
}

.inline-video-player video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
}

.feature-poster.inline-video-player {
  min-height: 560px;
}

.case-item .inline-video-player {
  aspect-ratio: 9 / 16;
}

.case-item.wide .inline-video-player {
  aspect-ratio: 16 / 9;
}

.feature-poster img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  opacity: 0.92;
  transition: transform 500ms ease, opacity 500ms ease;
}

.feature-poster span {
  position: absolute;
  right: 20px;
  bottom: 20px;
  padding: 10px 14px;
  color: var(--ivory);
  background: rgba(23, 20, 17, 0.78);
  font-weight: 900;
}

.feature-poster:hover img {
  transform: scale(1.035);
  opacity: 1;
}

.case-item button:hover img,
.stack-card:hover img,
.stack-card:focus-visible img {
  transform: none;
  opacity: 1;
}

.case-grid {
  column-count: 3;
  column-gap: 24px;
}

.case-item,
.case-stack {
  display: inline-block;
  position: relative;
  width: 100%;
  margin: 0 0 28px;
  break-inside: avoid;
  background: transparent;
}

.case-item:not(.wide),
.case-stack:not(.wide) {
  width: 70%;
  margin-right: 15%;
  margin-left: 15%;
}

.case-stack:hover,
.case-stack:focus-within {
  z-index: 6;
}

.video-trigger.is-video-selected {
  filter: saturate(0.9) brightness(0.86);
}

.floating-video-player {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 80;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 28px 90px rgba(23, 20, 17, 0.42);
  transform: translate(-50%, -50%);
  animation: videoPinIn 220ms ease-out;
}

.floating-video-player.vertical {
  width: min(70vw, 360px);
  height: min(calc(100vh - 168px), 640px);
  aspect-ratio: 9 / 16;
}

.floating-video-player.wide {
  width: min(76vw, 960px);
  aspect-ratio: 16 / 9;
}

.floating-video-player video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
}

@keyframes videoPinIn {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 12px)) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.case-item.wide,
.case-stack.wide {
  grid-column: auto;
}

.case-item button,
.stack-deck {
  aspect-ratio: 9 / 16;
}

.case-item.wide button,
.case-stack.wide .stack-deck {
  aspect-ratio: 16 / 9;
}

.case-item img,
.stack-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease, opacity 420ms ease;
}

.case-item.wide img,
.case-stack.wide img {
  object-position: center top;
}

.case-item div,
.case-stack > div:last-child {
  padding: 18px 0 0;
}

.case-item span,
.case-stack > div:last-child span,
.taxonomy-grid span,
.price-tier span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-item h3,
.case-stack h3 {
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.25;
}

.case-item p,
.case-stack p {
  min-height: 52px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.stack-deck {
  position: relative;
  display: block;
  min-height: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  isolation: isolate;
  --active-lift: -8%;
}

.stack-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-shadow: 0 14px 34px rgba(23, 20, 17, 0.18);
  transform-origin: 50% 96%;
  transition:
    transform 560ms cubic-bezier(0.2, 0.85, 0.2, 1),
    box-shadow 560ms ease,
    filter 560ms ease;
}

.stack-card:nth-child(1) {
  z-index: 1;
  transform: translate(-8px, 8px) rotate(-3.5deg);
}

.stack-card:nth-child(2) {
  z-index: 2;
  transform: translate(0, 0) rotate(0.75deg);
}

.stack-card:nth-child(3) {
  z-index: 3;
  transform: translate(8px, -8px) rotate(3.5deg);
}

.stack-deck:hover .stack-card,
.stack-deck:focus-within .stack-card,
.stack-deck.is-spread .stack-card {
  box-shadow: 0 16px 44px rgba(23, 20, 17, 0.2);
}

.stack-deck:hover .stack-card:nth-child(1),
.stack-deck:focus-within .stack-card:nth-child(1),
.stack-deck.is-spread .stack-card:nth-child(1) {
  transform: translate(-10%, 3%) rotate(-7deg);
}

.stack-deck:hover .stack-card:nth-child(2),
.stack-deck:focus-within .stack-card:nth-child(2),
.stack-deck.is-spread .stack-card:nth-child(2) {
  transform: translate(0, -1.5%) rotate(0deg);
}

.stack-deck:hover .stack-card:nth-child(3),
.stack-deck:focus-within .stack-card:nth-child(3),
.stack-deck.is-spread .stack-card:nth-child(3) {
  transform: translate(10%, 3%) rotate(7deg);
}

.stack-deck[data-card-count="2"]:hover .stack-card:nth-child(1),
.stack-deck[data-card-count="2"]:focus-within .stack-card:nth-child(1),
.stack-deck[data-card-count="2"].is-spread .stack-card:nth-child(1) {
  transform: translate(-8%, 3%) rotate(-6deg);
}

.stack-deck[data-card-count="2"]:hover .stack-card:nth-child(2),
.stack-deck[data-card-count="2"]:focus-within .stack-card:nth-child(2),
.stack-deck[data-card-count="2"].is-spread .stack-card:nth-child(2) {
  transform: translate(8%, 3%) rotate(6deg);
}

.stack-deck[data-active-card="0"] .stack-card:nth-child(1),
.stack-deck[data-active-card="1"] .stack-card:nth-child(2),
.stack-deck[data-active-card="2"] .stack-card:nth-child(3) {
  z-index: 10;
  box-shadow: 0 24px 68px rgba(23, 20, 17, 0.32);
}

.stack-deck[data-active-card="0"] .stack-card:nth-child(1) {
  transform: translate(-14%, var(--active-lift)) rotate(-8deg) scale(1.035);
}

.stack-deck[data-active-card="1"] .stack-card:nth-child(2) {
  transform: translate(0, -9.5%) rotate(0deg) scale(1.04);
}

.stack-deck[data-active-card="2"] .stack-card:nth-child(3) {
  transform: translate(14%, var(--active-lift)) rotate(8deg) scale(1.035);
}

.stack-deck[data-card-count="2"][data-active-card="0"] .stack-card:nth-child(1) {
  transform: translate(-12%, var(--active-lift)) rotate(-7deg) scale(1.035);
}

.stack-deck[data-card-count="2"][data-active-card="1"] .stack-card:nth-child(2) {
  transform: translate(12%, var(--active-lift)) rotate(7deg) scale(1.035);
}

.stack-card span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 6px 9px;
  color: var(--ivory);
  background: rgba(23, 20, 17, 0.66);
  font-size: 12px;
  font-weight: 900;
}

.taxonomy-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 18px;
  margin-top: 42px;
}

.taxonomy-grid div {
  min-height: 280px;
  padding: clamp(24px, 3vw, 42px);
  border-top: 6px solid var(--accent);
  background: var(--ivory);
}

.taxonomy-grid div:first-child {
  color: var(--ivory);
  background: var(--pine);
  border-top-color: #d9b36f;
}

.taxonomy-grid div:first-child p {
  color: #d4c6b0;
}

.taxonomy-grid h3 {
  margin-top: 20px;
}

.taxonomy-grid p {
  margin: 18px 0 0;
  color: var(--muted);
}

.pricing {
  background: var(--ink);
  color: var(--ivory);
}

.pricing .section-head p {
  color: #d4c6b0;
}

.pricing-layout {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.price-tier {
  min-height: 250px;
  grid-column: span 2;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid rgba(255, 250, 240, 0.18);
  background: rgba(255, 250, 240, 0.045);
}

.price-tier.highlight {
  grid-column: span 3;
  background: var(--ivory);
  color: var(--ink);
}

.price-tier.premium {
  grid-column: span 3;
  background: var(--accent);
}

.price-tier.custom {
  grid-column: span 6;
  min-height: 160px;
}

.price-stack {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.price-original {
  width: fit-content;
  color: inherit;
  font-size: 18px;
  font-weight: 900;
  opacity: 0.48;
  text-decoration-thickness: 2px;
  text-decoration-color: currentColor;
}

.price-discount {
  display: block;
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 56px);
  line-height: 1.05;
}

.price-tier p {
  margin: 20px 0 0;
  color: inherit;
  opacity: 0.78;
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.process-list li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.process-list span {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.process-list h3 {
  font-family: var(--sans);
  font-size: 22px;
}

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

.delivery {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
  gap: 36px;
  background: var(--paper-deep);
}

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.delivery-grid p {
  min-height: 120px;
  margin: 0;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #3d352d;
  font-weight: 700;
}

.contact {
  padding-bottom: clamp(72px, 10vw, 140px);
}

.contact-panel {
  max-width: 1040px;
  padding: clamp(30px, 5vw, 64px);
  color: var(--ivory);
  background: var(--pine);
  box-shadow: var(--shadow);
}

.contact-panel h2 {
  max-width: 860px;
}

.contact-panel .plain-list {
  max-width: 680px;
}

.contact-panel .plain-list li {
  border-top-color: rgba(255, 250, 240, 0.2);
}

.contact-note {
  color: #d4c6b0;
  font-size: 18px;
}

.contact-direct {
  display: inline-flex;
  width: fit-content;
  margin: 18px 0 22px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 250, 240, 0.28);
  color: var(--ivory);
  background: rgba(255, 250, 240, 0.08);
  font-size: 18px;
  font-weight: 900;
}

@media (max-width: 1080px) {
  .hero,
  .intro-grid,
  .process-grid,
  .delivery,
  .section-head,
  .featured-case {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    width: min(364px, 100%);
  }

  .hero-media video {
    aspect-ratio: 9 / 16;
    object-position: center top;
  }

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

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

  .case-grid {
    column-count: 2;
  }

  .case-stack.wide,
  .case-item.wide {
    grid-column: span 2;
  }

  .price-tier,
  .price-tier.highlight,
  .price-tier.premium,
  .price-tier.custom {
    grid-column: span 6;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  h1 {
    font-size: 43px;
  }

  .hero-title span {
    white-space: normal;
  }

  .hero-title span + span::before {
    display: none;
  }

  .section-band {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    gap: 24px;
    padding-bottom: 18px;
  }

  .hero-deck {
    margin-top: 22px;
  }

  .hero-actions {
    flex-direction: column;
    margin-top: 24px;
  }

  .button {
    width: 100%;
  }

  .proof-strip,
  .taxonomy-grid,
  .delivery-grid {
    grid-template-columns: 1fr;
  }

  .case-grid {
    column-count: 1;
  }

  .case-item.wide,
  .case-stack.wide {
    grid-column: span 1;
  }

  .featured-case {
    min-height: 0;
  }

  .feature-poster img {
    min-height: 0;
  }

  .case-item button,
  .case-stack.wide .stack-deck {
    aspect-ratio: 9 / 16;
  }

  .case-item.wide button {
    aspect-ratio: 16 / 9;
  }

  .stack-deck:hover .stack-card:nth-child(1),
  .stack-deck:focus-within .stack-card:nth-child(1),
  .stack-deck.is-spread .stack-card:nth-child(1) {
    transform: translate(-7%, 3%) rotate(-6deg);
  }

  .stack-deck:hover .stack-card:nth-child(3),
  .stack-deck:focus-within .stack-card:nth-child(3),
  .stack-deck.is-spread .stack-card:nth-child(3) {
    transform: translate(7%, 3%) rotate(6deg);
  }

  .pricing-layout {
    grid-template-columns: 1fr;
  }

  .price-tier,
  .price-tier.highlight,
  .price-tier.premium,
  .price-tier.custom {
    grid-column: auto;
  }

  .process-list li {
    grid-template-columns: 48px minmax(0, 1fr);
  }
}
