:root {
  --bg: #f3f1eb;
  --surface: #e8e5de;
  --ink: #121212;
  --muted: #67645e;
  --line: rgba(18, 18, 18, 0.17);
  --accent: #ff4d00;
  --max-width: 1280px;
  --page-padding: clamp(20px, 4vw, 64px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

main {
  display: flex;
  flex-direction: column;
}

.hero {
  order: 1;
}

.work-section {
  order: 2;
}

.about-section {
  order: 3;
}

.services-section {
  order: 4;
}

.stats {
  order: 5;
}

.growth-section {
  order: 6;
}

.contact-section {
  order: 7;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px var(--page-padding);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  letter-spacing: 0.08em;
}

.brand span {
  font-size: 17px;
  font-weight: 700;
}

.brand small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.site-nav {
  display: flex;
  gap: clamp(18px, 3vw, 44px);
  font-size: 14px;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transition: width 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 100%;
}

.menu-button {
  display: none;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.section {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: clamp(80px, 10vw, 150px) var(--page-padding);
}

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

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

h1 {
  max-width: 900px;
  margin-bottom: 32px;
  font-size: clamp(54px, 8vw, 118px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

h3 {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.hero {
  min-height: calc(100vh - 76px);
  padding-top: clamp(72px, 9vw, 130px);
  padding-bottom: clamp(36px, 5vw, 72px);
}

.work-section {
  padding-top: clamp(42px, 5.5vw, 76px);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-intro {
  max-width: 680px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 22px);
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  padding: 13px 22px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  font-size: 14px;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

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

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

.button-ghost:hover {
  background: var(--ink);
  color: var(--bg);
}

.hero-visual {
  aspect-ratio: 16 / 7;
  margin-top: clamp(56px, 8vw, 110px);
  overflow: hidden;
  background: #0b1f3f;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.media-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, transparent 49.8%, rgba(18, 18, 18, 0.13) 50%, transparent 50.2%),
    linear-gradient(45deg, transparent 49.8%, rgba(18, 18, 18, 0.13) 50%, transparent 50.2%),
    var(--surface);
  color: var(--muted);
  text-align: center;
}

.media-placeholder span {
  padding: 0 16px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.media-placeholder small {
  margin-top: 6px;
  padding: 0 16px;
  font-size: 12px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats div {
  display: flex;
  min-height: 180px;
  padding: 34px var(--page-padding);
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
}

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

.stats strong {
  font-size: clamp(28px, 3.6vw, 52px);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.stats span {
  color: var(--muted);
  font-size: 13px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 60px;
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 90px);
}

.section-heading > p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 15px;
}

.portrait-work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 38px);
}

.landscape-work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 6vw, 84px) clamp(20px, 3vw, 40px);
}

.portrait-video {
  aspect-ratio: 9 / 16;
}

.landscape-video {
  aspect-ratio: 16 / 9;
}

.video-frame {
  background: #080808;
}

.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-fallback {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #080808;
  background-image: url("assets/xpc-selected-work.png");
  background-repeat: no-repeat;
  color: #fff;
}

.video-fallback::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.72));
  content: "";
}

.fallback-interview {
  background-position: 4.2% 71.1%;
  background-size: 561% auto;
}

.fallback-heritage {
  background-position: 50.5% 71.1%;
  background-size: 561% auto;
}

.fallback-hotwine {
  background-image: none;
}

.fallback-hotwine .fallback-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-image: url("assets/xpc-selected-work.png");
  background-position: 27.3% 71.1%;
  background-repeat: no-repeat;
  background-size: 561% auto;
}

.play-marker {
  position: absolute;
  z-index: 1;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.38);
  font-size: 20px;
  backdrop-filter: blur(8px);
}

.video-fallback small {
  position: absolute;
  z-index: 1;
  bottom: 18px;
  left: 20px;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.work-copy {
  min-height: 112px;
  margin-bottom: 20px;
}

.format-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landscape-label {
  margin-top: clamp(80px, 10vw, 140px);
}

.work-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.work-copy h3 {
  margin: 0 0 8px;
}

.portrait-card .work-copy h3 {
  font-size: clamp(20px, 2vw, 27px);
}

.work-copy p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
}

.work-footer {
  padding-top: 16px;
}

.work-footer a,
.case-link,
.text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
}

.case-link {
  color: var(--muted);
}

.section-action {
  margin-top: clamp(55px, 8vw, 100px);
  text-align: center;
}

.growth-section {
  padding-top: 20px;
}

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

.growth-grid article {
  min-height: 300px;
  padding: clamp(24px, 3.5vw, 48px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.growth-grid article > span {
  color: var(--accent);
  font-size: 12px;
}

.growth-grid h3 {
  margin: 48px 0 12px;
}

.growth-grid strong {
  display: block;
  margin-bottom: 16px;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
}

.growth-grid p {
  max-width: 460px;
  margin-bottom: 0;
  color: var(--muted);
}

.services-section {
  width: 100%;
  max-width: none;
  background: var(--ink);
  color: var(--bg);
}

.services-section > * {
  width: min(100%, calc(var(--max-width) - 2 * var(--page-padding)));
  margin-right: auto;
  margin-left: auto;
}

.services-section .section-heading > p {
  color: #a8a59f;
}

.service-list {
  border-top: 1px solid rgba(243, 241, 235, 0.22);
}

.service-list article {
  display: grid;
  grid-template-columns: 70px minmax(240px, 1fr) minmax(280px, 1.3fr);
  gap: 30px;
  align-items: baseline;
  padding: 30px 0;
  border-bottom: 1px solid rgba(243, 241, 235, 0.22);
}

.service-list article > span,
.service-list article > p {
  color: #a8a59f;
  font-size: 14px;
}

.service-list h3,
.service-list p {
  margin-bottom: 0;
}

.about-section {
  display: block;
}

.about-copy h2 {
  max-width: 800px;
  margin-bottom: 42px;
  font-size: clamp(34px, 4vw, 58px);
}

.about-copy > p:not(.eyebrow) {
  max-width: 690px;
  color: var(--muted);
  font-size: 16px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.skill-tags li {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 12px;
}

.contact-section {
  width: 100%;
  max-width: none;
  padding-top: clamp(90px, 12vw, 180px);
  padding-bottom: clamp(90px, 12vw, 180px);
  border-top: 1px solid var(--line);
  text-align: center;
}

.contact-section h2 {
  margin-bottom: 24px;
}

.contact-section > p:not(.eyebrow) {
  margin-bottom: 32px;
  color: var(--muted);
}

.contact-links {
  justify-content: center;
}

.contact-note {
  display: block;
  margin-top: 24px;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 28px var(--page-padding);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
}

@media (max-width: 760px) {
  h1 {
    font-size: clamp(43px, 12vw, 50px);
    letter-spacing: -0.055em;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding: 22px var(--page-padding) 28px;
    flex-direction: column;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-bottom: 24px;
  }

  .work-section {
    padding-top: 44px;
  }

  .hero-visual {
    aspect-ratio: 4 / 3;
  }

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

  .stats div {
    min-height: 140px;
  }

  .stats div:nth-child(2) {
    border-right: 0;
  }

  .stats div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section-heading,
  .about-section {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 28px;
  }

  .portrait-work-grid,
  .landscape-work-grid {
    grid-template-columns: 1fr;
  }

  .growth-grid {
    grid-template-columns: 1fr;
  }

  .portrait-video {
    width: min(100%, 360px);
    margin: 0 auto;
  }

  .service-list article {
    grid-template-columns: 42px 1fr;
    gap: 10px 18px;
  }

  .service-list article > p {
    grid-column: 2;
  }

  .work-copy {
    min-height: 0;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
