:root {
  color-scheme: light;
  --ink: #121614;
  --muted: #65716a;
  --paper: #faf9f4;
  --surface: #ffffff;
  --line: #e0ded4;
  --blue: #4285f4;
  --blue-dark: #1a73e8;
  --red: #ea4335;
  --yellow: #fbbc04;
  --google-green: #34a853;
  --green: var(--blue);
  --green-dark: var(--blue-dark);
  --amber: var(--yellow);
  --mist: #f1f5fe;
  --shadow: 0 22px 70px rgba(18, 22, 20, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  line-height: 1.65;
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-logo {
  width: 142px;
  height: 42px;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.site-nav a,
.header-action,
.filter-button {
  min-height: 38px;
  border-radius: 8px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  color: var(--muted);
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  padding: 8px 14px;
  white-space: nowrap;
}

.header-action:hover {
  border-color: var(--green);
  color: var(--green);
}

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #d9dfd4;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(250, 249, 244, 0.9) 0%, rgba(250, 249, 244, 0.72) 34%, rgba(250, 249, 244, 0.18) 70%),
    linear-gradient(0deg, rgba(18, 22, 20, 0.12), transparent 48%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 104px 0 116px;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  margin-bottom: 20px;
  border: 1px solid rgba(66, 133, 244, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  padding: 8px 14px 8px 10px;
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  backdrop-filter: blur(14px);
}

.hero-brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3rem, 7.4vw, 6.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.35;
}

.hero-text {
  max-width: 640px;
  margin: 24px 0 0;
  color: #333b36;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 900;
  white-space: nowrap;
}

.button-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  line-height: 1;
}

.button-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.button-icon rect {
  rx: 1.4px;
}

.button.primary {
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--green-dark);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: var(--green);
}

.button.secondary .button-icon {
  background: rgba(251, 188, 4, 0.24);
}

.intro-strip,
.work-section,
.series-section,
.about-section,
.contact-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  transform: translateY(-38px);
  border: 1px solid var(--line);
  background: var(--line);
  box-shadow: var(--shadow);
}

.intro-strip div {
  min-height: 120px;
  background: var(--surface);
  padding: 22px;
}

.intro-strip strong,
.intro-strip span {
  display: block;
}

.intro-strip strong {
  color: var(--green);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1;
}

.intro-strip div:nth-child(2) strong {
  color: var(--red);
}

.intro-strip div:nth-child(3) strong {
  color: var(--yellow);
}

.intro-strip div:nth-child(4) strong {
  color: var(--google-green);
}

.intro-strip span {
  margin-top: 12px;
  color: var(--muted);
  font-weight: 700;
}

.work-section,
.series-section,
.about-section,
.contact-section {
  padding: 58px 0 80px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.5fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.filter-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  padding: 8px 13px;
  cursor: pointer;
}

.filter-button:hover,
.filter-button.active {
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
}

.filter-button:nth-child(3):hover,
.filter-button:nth-child(3).active {
  border-color: var(--red);
  background: var(--red);
}

.filter-button:nth-child(4):hover,
.filter-button:nth-child(4).active {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--ink);
}

.filter-button:nth-child(5):hover,
.filter-button:nth-child(5).active {
  border-color: var(--google-green);
  background: var(--google-green);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 16px;
}

.work-card {
  min-height: 360px;
}

.work-card.feature {
  grid-column: 1 / -1;
  grid-row: auto;
  min-height: min(520px, 42vw);
}

.work-card.wide {
  grid-column: 1 / -1;
  min-height: min(430px, 32vw);
}

.work-card.tall {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 736px;
}

.work-card.is-hidden {
  display: none;
}

.work-open {
  position: relative;
  display: grid;
  align-content: end;
  width: 100%;
  height: 100%;
  min-height: inherit;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: var(--mist);
  color: #ffffff;
  text-align: left;
  cursor: pointer;
}

.work-open::after {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  content: "";
  background: linear-gradient(0deg, rgba(0, 30, 22, 0.88), rgba(0, 30, 22, 0));
}

.work-open img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.work-card.wide .work-open img {
  object-position: center center;
}

.work-card.tall .work-open img {
  object-position: center center;
}

.work-open:hover img {
  transform: scale(1.04);
}

.work-meta,
.work-open strong {
  position: relative;
  z-index: 1;
  margin-inline: 18px;
}

.work-meta {
  width: max-content;
  max-width: calc(100% - 36px);
  margin-bottom: 8px;
  border-radius: 999px;
  background: var(--amber);
  color: #1f1804;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.work-card[data-category="brand"] .work-meta {
  background: var(--blue);
  color: #ffffff;
}

.work-card[data-category="product"] .work-meta {
  background: var(--red);
  color: #ffffff;
}

.work-card[data-category="festival"] .work-meta {
  background: var(--yellow);
  color: var(--ink);
}

.work-card[data-category="campaign"] .work-meta {
  background: var(--google-green);
  color: #ffffff;
}

.work-open strong {
  margin-bottom: 18px;
  font-size: 1.12rem;
  line-height: 1.35;
}

.series-section {
  border-top: 1px solid var(--line);
}

.series-section .section-heading {
  grid-template-columns: 1fr;
  max-width: 760px;
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.series-grid article {
  min-height: 264px;
  background: var(--surface);
  padding: 24px;
}

.series-grid span {
  color: var(--amber);
  font-size: 0.9rem;
  font-weight: 900;
}

.series-grid article:nth-child(1) span {
  color: var(--blue);
}

.series-grid article:nth-child(2) span {
  color: var(--red);
}

.series-grid article:nth-child(3) span {
  color: var(--yellow);
}

.series-grid article:nth-child(4) span {
  color: var(--google-green);
}

.series-grid h3 {
  margin-top: 58px;
}

.series-grid p {
  margin: 12px 0 0;
  color: var(--muted);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 64px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.about-copy p:last-child {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.about-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 26px;
  box-shadow: 0 14px 44px rgba(18, 22, 20, 0.08);
}

.about-logo {
  width: min(220px, 100%);
  height: auto;
  margin-bottom: 18px;
}

.brand-note {
  margin: 0 0 24px;
  color: var(--muted);
}

.about-panel ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.contact-section {
  min-height: 440px;
  display: grid;
  align-content: center;
  justify-items: start;
  border-top: 1px solid var(--line);
}

.contact-section p:not(.eyebrow) {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.08rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 22, 20, 0.72);
}

.modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  width: min(1040px, 100%);
  height: min(820px, calc(100vh - 48px));
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: #eef0eb;
}

.modal-copy {
  display: grid;
  align-content: end;
  gap: 14px;
  min-height: 0;
  overflow: auto;
  padding: 32px;
}

.modal-type {
  width: max-content;
  border-radius: 999px;
  background: var(--amber);
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.modal-copy p {
  margin: 0;
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .site-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .header-action {
    justify-self: end;
  }

  .hero {
    min-height: 720px;
  }

  .hero-media::after {
    background:
      linear-gradient(0deg, rgba(250, 249, 244, 0.98) 0%, rgba(250, 249, 244, 0.88) 50%, rgba(250, 249, 244, 0.24) 100%),
      linear-gradient(0deg, rgba(18, 22, 20, 0.12), transparent 55%);
  }

  .hero-media img {
    object-position: center top;
  }

  .hero-content {
    padding: 360px 0 72px;
  }

  .intro-strip,
  .series-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading,
  .about-section,
  .modal-panel {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-card.feature {
    grid-column: 1 / -1;
    min-height: 420px;
  }

  .work-card.tall {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 680px;
  }

  .modal-panel {
    height: min(860px, calc(100vh - 48px));
  }

  .modal-image {
    max-height: calc(100vh - 250px);
  }
}

@media (max-width: 620px) {
  .site-header {
    width: min(100% - 24px, 1180px);
    gap: 12px;
  }

  .brand-logo {
    width: 104px;
    height: 34px;
  }

  .header-action {
    padding-inline: 11px;
  }

  .hero {
    min-height: 700px;
  }

  .hero-media::after {
    background:
      linear-gradient(0deg, rgba(250, 249, 244, 0.96) 0%, rgba(250, 249, 244, 0.68) 48%, rgba(250, 249, 244, 0.06) 100%),
      linear-gradient(0deg, rgba(18, 22, 20, 0.1), transparent 58%);
  }

  .hero-media img {
    object-position: center top;
  }

  .hero-content,
  .intro-strip,
  .work-section,
  .series-section,
  .about-section,
  .contact-section {
    width: min(100% - 24px, 1180px);
  }

  .hero-content {
    padding-top: 310px;
  }

  .intro-strip,
  .gallery-grid,
  .series-grid {
    grid-template-columns: 1fr;
  }

  .intro-strip {
    transform: translateY(-24px);
  }

  .intro-strip div {
    min-height: auto;
  }

  .work-card,
  .work-card.feature,
  .work-card.tall {
    grid-column: auto;
    grid-row: auto;
    min-height: 460px;
  }

  .work-card.feature {
    min-height: 300px;
  }

  .work-card.tall {
    min-height: 620px;
  }

  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .filter-button {
    flex: 0 0 auto;
  }

  .modal {
    padding: 12px;
  }

  .modal-image {
    max-height: calc(100vh - 250px);
  }

  .modal-copy {
    padding: 24px;
  }
}
