:root {
  --paper: #f7f6f1;
  --paper-deep: #ebe8df;
  --ink: #11110f;
  --ink-soft: #2a2925;
  --muted: #6f6b63;
  --line: #d6d2c8;
  --line-strong: #bbb5aa;
  --red: #7b2e2e;
  --green: #1e655b;
  --blue: #284c67;
  --shadow: 0 24px 80px rgba(17, 17, 15, 0.14);
  color-scheme: light;
  font-family: "Helvetica Neue", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

img,
video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  min-height: 72px;
  padding: 0 32px;
  background: rgba(247, 246, 241, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
}

.site-links {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
  font-size: 14px;
}

.site-links a {
  color: var(--muted);
  transition: color 180ms ease;
}

.site-links a:hover {
  color: var(--ink);
}

.work-nav-shell {
  position: sticky;
  top: 72px;
  z-index: 25;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
  max-width: 1640px;
  margin: 0 auto;
  padding: 18px 32px 20px;
  background: rgba(247, 246, 241, 0.92);
  backdrop-filter: blur(18px);
}

.work-nav-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
}

.work-nav {
  display: flex;
  align-items: flex-start;
  gap: 38px;
  min-width: 0;
  overflow-x: auto;
  font-size: 16px;
  scrollbar-width: none;
}

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

.hero {
  display: flex;
  min-height: 62svh;
  padding: 112px 32px 86px;
  max-width: 1640px;
  margin: 0 auto;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 1280px;
  padding: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 1280px;
  margin: 0;
  font-size: 76px;
  line-height: 0.98;
  font-weight: 700;
  text-wrap: balance;
}

.title-unit {
  display: inline-block;
}

.hero-intro {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 19px;
}

.section {
  max-width: 1640px;
  margin: 0 auto;
  padding: 118px 40px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 180px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(180px, 0.5fr) minmax(300px, 0.7fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 64px;
}

.section-head h2 {
  margin: 0;
  font-size: 48px;
  line-height: 1;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.section-head.compact {
  grid-template-columns: minmax(180px, 0.5fr) 1fr;
}

.filter-button {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  grid-template-rows: auto auto;
  gap: 10px;
  align-content: start;
  min-width: max-content;
  min-height: 54px;
  padding: 0 0 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  letter-spacing: 0;
  text-align: left;
  transition: color 160ms ease, background 160ms ease;
}

.filter-button::before {
  content: attr(data-index);
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  transition: color 160ms ease;
}

.filter-button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.filter-button span {
  display: block;
  color: inherit;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
}

.filter-button:hover,
.filter-button[aria-selected="true"] {
  background: transparent;
  color: var(--ink);
}

.filter-button:disabled,
.filter-button.is-disabled {
  color: rgba(111, 107, 99, 0.38);
  cursor: default;
}

.filter-button:disabled::before,
.filter-button.is-disabled::before {
  color: rgba(111, 107, 99, 0.38);
}

.filter-button:hover::after,
.filter-button[aria-selected="true"]::after {
  transform: scaleX(1);
}

.filter-button:disabled::after,
.filter-button.is-disabled::after {
  transform: scaleX(0);
}

.filter-button[aria-selected="true"]::before {
  color: var(--ink);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 42px 30px;
  align-items: start;
}

.project-card {
  grid-column: span 4;
  display: block;
  min-width: 0;
}

.project-card.is-large {
  grid-column: span 7;
}

.project-card.is-static-render {
  grid-column: span 4;
}

.project-card.is-static-render.is-large {
  grid-column: span 6;
}

.project-card.is-photo-service {
  grid-column: span 4;
}

.project-card.is-video-project {
  grid-column: span 3;
}

.project-card figure {
  margin: 0;
}

.project-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--paper-deep);
  border: 1px solid var(--line-strong);
}

.project-card.is-large .project-media {
  aspect-ratio: 16 / 10;
}

.project-card.is-static-render .project-media,
.project-card.is-photo-service .project-media {
  aspect-ratio: 2 / 3;
}

.project-card.is-static-render.is-large .project-media {
  aspect-ratio: 4 / 3;
}

.project-card.is-video-project .project-media {
  aspect-ratio: 4 / 3;
}

.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 0 solid rgba(17, 17, 15, 0);
  transition: border-width 180ms ease, border-color 180ms ease;
}

.project-card:hover .project-media::after {
  border-width: 8px;
  border-color: rgba(17, 17, 15, 0.88);
}

.project-media img {
  transition: transform 520ms ease, filter 520ms ease;
}

.project-card:hover img,
.project-card:hover video {
  transform: scale(1.035);
  filter: saturate(0.9);
}

.play-chip {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
}

.play-chip::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
}

.project-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 18px 0 8px;
}

.project-info h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 19px;
  line-height: 1.25;
}

.project-info p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.project-card.is-video-project .project-info h3 {
  font-size: 16px;
}

.project-card.is-video-project .project-info p {
  font-size: 13px;
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 64px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

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

.service-grid article {
  min-height: 220px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.service-grid h3 {
  margin: 48px 0 16px;
  font-size: 22px;
}

.service-grid p {
  margin: 0;
  color: var(--muted);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1fr);
  gap: 60px;
}

.about-copy h2 {
  margin: 0;
  max-width: 700px;
  font-size: 48px;
  line-height: 1.06;
}

.about-text p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 19px;
}

.about-text p + p {
  margin-top: 18px;
}

.studio-facts {
  display: grid;
  gap: 0;
  margin: 42px 0 0;
  border-top: 1px solid var(--line);
}

.studio-facts div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.studio-facts dt {
  color: var(--muted);
}

.studio-facts dd {
  margin: 0;
}

.detail-view {
  max-width: 1640px;
  margin: 0 auto;
  padding: 56px 32px 130px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin-bottom: 46px;
  color: var(--muted);
}

.back-link:hover {
  color: var(--ink);
}

.back-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
}

.detail-top {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  gap: 64px;
  align-items: end;
  padding-bottom: 54px;
  border-bottom: 1px solid var(--line);
}

.detail-title h1 {
  margin: 0;
  max-width: 780px;
  font-size: 72px;
  line-height: 0.98;
}

.detail-intro {
  margin: 26px 0 0;
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 20px;
}

.meta-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.meta-list div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.meta-list dt {
  color: var(--muted);
}

.meta-list dd {
  margin: 0;
}

.detail-main-media {
  position: relative;
  display: grid;
  place-items: center;
  margin-top: 34px;
  overflow: hidden;
  min-height: 520px;
  height: min(78vh, 920px);
  border: 1px solid var(--ink);
  background: var(--ink);
}

.detail-main-media img,
.detail-main-media video {
  object-fit: contain;
  opacity: 0.96;
}

.video-control {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(17, 17, 15, 0.1);
  cursor: pointer;
}

.video-control span {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.video-control span::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid currentColor;
}

.detail-main-media.is-playing img {
  animation: scan 5s linear infinite;
}

.detail-main-media.is-playing .video-control {
  background: rgba(17, 17, 15, 0.28);
}

.detail-gallery {
  display: block;
  columns: 3 280px;
  column-gap: 14px;
  margin-top: 14px;
}

.gallery-item {
  display: block;
  break-inside: avoid;
  overflow: hidden;
  margin: 0 0 14px;
  border: 1px solid var(--line-strong);
  background: var(--paper-deep);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.detail-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-footer a {
  min-height: 86px;
  padding: 22px;
  color: var(--muted);
  transition: background 180ms ease, color 180ms ease;
}

.detail-footer a:last-child {
  text-align: right;
  border-left: 1px solid var(--line);
}

.detail-footer a:hover {
  background: var(--ink);
  color: var(--paper);
}

@keyframes scan {
  0% {
    filter: saturate(0.8) contrast(1);
    transform: scale(1);
  }
  50% {
    filter: saturate(1.05) contrast(1.08);
    transform: scale(1.025);
  }
  100% {
    filter: saturate(0.8) contrast(1);
    transform: scale(1);
  }
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: auto 1fr;
    row-gap: 10px;
    padding: 12px 24px;
  }

  .site-links {
    justify-content: flex-end;
  }

  .work-nav-shell {
    padding: 18px 24px 20px;
  }

  .hero {
    min-height: auto;
    padding-top: 88px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero h1,
  .detail-title h1 {
    font-size: 58px;
  }

  .section-head,
  .about-section,
  .detail-top {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card.is-large,
  .project-card.is-static-render,
  .project-card.is-static-render.is-large,
  .project-card.is-photo-service,
  .project-card.is-video-project {
    grid-column: span 6;
  }

  .project-grid {
    gap: 34px 24px;
  }

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

}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .site-header {
    grid-template-columns: auto 1fr;
    min-height: 66px;
    padding: 0 16px;
  }

  .work-nav-shell {
    top: 66px;
    gap: 14px;
    padding: 16px 16px 12px;
  }

  .work-nav {
    gap: 28px;
  }

  .work-nav-label {
    margin: 0;
  }

  .site-links {
    gap: 12px;
    font-size: 13px;
  }

  .filter-button {
    min-width: 104px;
    min-height: 66px;
    padding: 0;
  }

  .filter-button::before {
    font-size: 11px;
  }

  .filter-button::after {
    left: 0;
    right: 0;
    bottom: 11px;
  }

  .filter-button span {
    font-size: 14px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero,
  .section,
  .detail-view {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding-top: 72px;
    padding-bottom: 62px;
  }

  .hero h1,
  .detail-title h1,
  .about-copy h2 {
    font-size: 42px;
  }

  .section-head h2 {
    font-size: 38px;
  }

  .hero-intro,
  .about-text p,
  .detail-intro {
    font-size: 17px;
  }

  .section {
    padding-top: 72px;
    padding-bottom: 72px;
    scroll-margin-top: 172px;
  }

  .project-grid {
    gap: 36px;
  }

  .project-card,
  .project-card.is-large,
  .project-card.is-static-render,
  .project-card.is-static-render.is-large,
  .project-card.is-photo-service,
  .project-card.is-video-project {
    grid-column: 1 / -1;
  }

  .project-media,
  .project-card.is-large .project-media,
  .project-card.is-static-render .project-media,
  .project-card.is-static-render.is-large .project-media,
  .project-card.is-photo-service .project-media,
  .project-card.is-video-project .project-media {
    aspect-ratio: 4 / 3;
  }

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

  .service-grid article {
    min-height: 190px;
    padding: 22px;
  }

  .studio-facts div,
  .meta-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .detail-main-media {
    min-height: 320px;
    height: min(68vh, 560px);
  }

  .detail-footer {
    grid-template-columns: 1fr;
  }

  .detail-footer a:last-child {
    text-align: left;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
