:root {
  --paper: #f2eee6;
  --paper-2: #e9e2d6;
  --paper-3: #ddd3c3;
  --white: #fbf8f2;
  --ink: #1b1916;
  --ink-2: #2a2723;
  --muted: #756e64;
  --muted-2: #9a9287;
  --line: rgba(27, 25, 22, 0.13);
  --line-strong: rgba(27, 25, 22, 0.28);
  --accent: #9a6f43;
  --accent-light: #c7a67d;
  --dark: #131210;
  --dark-2: #1c1a17;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --sans: "Helvetica Neue", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 86px;
  --max: 1480px;
  --pad: clamp(20px, 4vw, 64px);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.viewer-open {
  overflow: hidden;
}

h1,
h2,
h3,
p,
dl,
dd,
blockquote {
  margin: 0;
}

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

button,
input {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

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

svg {
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

::selection {
  background: var(--accent);
  color: var(--white);
}

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 5000;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 0 var(--pad);
  border-bottom: 1px solid transparent;
  transition: height 0.4s var(--ease), background 0.4s ease, border-color 0.4s ease;
}

.site-header.is-scrolled {
  height: 70px;
  background: rgba(242, 238, 230, 0.9);
  border-color: var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

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

.brand-mark {
  width: 30px;
  height: 38px;
  color: var(--ink);
  display: inline-flex;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-mark.small {
  width: 24px;
  height: 31px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.1;
}

.brand-copy small {
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.site-nav a {
  position: relative;
  padding: 6px 0;
  color: var(--muted);
  transition: color 0.25s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

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

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 26px;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.icon-button:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  padding: 12px 0;
}

.header-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}

.header-link:hover svg {
  transform: translateX(4px);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  width: 100%;
  max-width: var(--max);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: calc(var(--header-h) + 5vh) var(--pad) 8vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.78fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}

.hero-ghost {
  position: absolute;
  z-index: -1;
  top: 14vh;
  right: 0;
  font-size: clamp(7rem, 15vw, 15rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 0.8;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(27, 25, 22, 0.07);
  pointer-events: none;
  user-select: none;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.26em;
  color: var(--muted);
}

.eyebrow-line {
  width: 38px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  margin-top: clamp(24px, 3.4vh, 42px);
  font-family: var(--serif);
  font-size: clamp(4.2rem, 7.7vw, 8.9rem);
  font-weight: 600;
  line-height: 0.93;
  letter-spacing: -0.055em;
}

.hero h1 span {
  display: inline-block;
  margin-left: 0.34em;
  color: var(--accent);
  font-weight: 400;
}

.hero-lead {
  max-width: 37em;
  margin-top: clamp(26px, 4vh, 44px);
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.02em;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.1em;
  transition: transform 0.3s var(--ease), background 0.3s ease, color 0.3s ease;
}

.button svg {
  width: 18px;
  height: 18px;
}

.button-dark {
  background: var(--ink);
  color: var(--paper);
}

.button-dark:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.button-dark:disabled {
  opacity: 0.4;
  pointer-events: none;
}

.button-text {
  padding: 0;
  min-height: 44px;
  gap: 10px;
  color: var(--ink);
}

.button-text:hover {
  color: var(--accent);
}

.play-dot {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.play-dot svg {
  width: 18px;
  height: 18px;
}

.button-text:hover .play-dot {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 540px;
  margin-top: clamp(44px, 7vh, 76px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-stats dt {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--muted-2);
}

.hero-stats dd {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.3vw, 2.4rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hero-stage {
  position: relative;
  justify-self: end;
  width: min(100%, 500px);
  padding-right: 14px;
}

.hero-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4.15;
  overflow: hidden;
  border-radius: 240px 240px 10px 10px;
  background: linear-gradient(145deg, var(--paper-2), var(--paper-3));
  box-shadow: 0 28px 70px rgba(50, 40, 28, 0.16);
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: inherit;
  pointer-events: none;
}

.hero-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.24em;
}

.hero-placeholder-line {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  position: relative;
}

.hero-placeholder-line::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid var(--line);
  border-radius: 50%;
  animation: pulse-ring 2.4s ease-in-out infinite;
}

.hero-case {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  color: var(--white);
  text-align: left;
}

.hero-case img,
.hero-case video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 34%;
  transition: transform 1.4s var(--ease);
}

.hero-case:hover img,
.hero-case:hover video {
  transform: scale(1.035);
}

.hero-case-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 11, 9, 0.62), rgba(12, 11, 9, 0.04) 52%, rgba(12, 11, 9, 0.15));
}

.hero-case-tag {
  position: absolute;
  top: 34px;
  left: 34px;
  font-size: 9px;
  letter-spacing: 0.22em;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(16, 14, 12, 0.18);
  backdrop-filter: blur(8px);
}

.hero-case-panel {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  color: var(--ink);
  border-radius: 7px;
  background: rgba(246, 242, 234, 0.9);
  backdrop-filter: blur(12px);
}

.hero-case-panel small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.24em;
  margin-bottom: 5px;
}

.hero-case-panel strong {
  display: block;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.hero-case-panel em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.08em;
}

.hero-case-arrow {
  width: 42px;
  height: 42px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.hero-case-arrow svg {
  width: 18px;
  height: 18px;
}

.hero-case:hover .hero-case-arrow {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.hero-side-note {
  position: absolute;
  top: 64px;
  right: -18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  writing-mode: vertical-rl;
  font-size: 8px;
  letter-spacing: 0.34em;
  color: var(--muted-2);
}

.hero-caption {
  position: absolute;
  left: 2px;
  bottom: -30px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.scroll-cue {
  position: absolute;
  left: var(--pad);
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.26em;
}

.scroll-cue svg {
  width: 16px;
  height: 16px;
  animation: scroll-bob 2.2s ease-in-out infinite;
}

/* ---------- Works ---------- */

.works {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(74px, 10vw, 150px) var(--pad) 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.52fr);
  gap: clamp(28px, 6vw, 100px);
  align-items: end;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.section-head h2 {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: clamp(3rem, 5.4vw, 5.8rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.section-desc {
  justify-self: end;
  max-width: 33em;
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
}

.toolbar {
  position: sticky;
  top: 70px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: clamp(48px, 7vw, 82px);
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(242, 238, 230, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.05em;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.filter span {
  font-size: 9px;
  color: var(--muted-2);
  transition: color 0.25s ease;
}

.filter:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.filter.is-active span {
  color: rgba(242, 238, 230, 0.6);
}

.search-box {
  width: min(260px, 30vw);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 2px 9px;
  border-bottom: 1px solid var(--line-strong);
}

.search-box .search-icon {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--muted);
}

.search-box input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
  letter-spacing: 0.03em;
}

.search-box input::placeholder {
  color: var(--muted-2);
}

.search-box input::-webkit-search-cancel-button {
  display: none;
}

.search-clear {
  width: 22px;
  height: 22px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.search-clear svg {
  width: 14px;
  height: 14px;
}

.result-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 28px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: clamp(18px, 2.3vw, 34px);
}

#works {
  scroll-margin-top: 72px;
}

.case-card {
  min-width: 0;
  cursor: pointer;
  animation: card-in 0.72s var(--ease) both;
}

.case-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 3px;
  background: linear-gradient(145deg, var(--paper-2), var(--paper-3));
}

.case-media img,
.case-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.012);
  transition: transform 1.1s var(--ease), opacity 0.65s ease;
}

.case-media img.is-loaded,
.case-media video {
  opacity: 1;
}

.case-media video {
  pointer-events: none;
}

.case-card:hover .case-media img,
.case-card:hover .case-media video {
  transform: scale(1.055);
}

.case-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 14, 11, 0.48), transparent 42%);
  pointer-events: none;
}

.case-tags {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.case-tag,
.case-media-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(18, 16, 13, 0.34);
  color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  font-size: 9px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.case-media-pill svg {
  width: 12px;
  height: 12px;
}

.case-open {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: var(--white);
  background: rgba(18, 16, 13, 0.2);
  backdrop-filter: blur(10px);
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.45s var(--ease), background 0.25s ease;
}

.case-open svg {
  width: 18px;
  height: 18px;
}

.case-card:hover .case-open,
.case-card:focus-visible .case-open {
  opacity: 1;
  transform: translateY(0);
}

.case-card:hover .case-open {
  background: var(--paper);
  color: var(--ink);
}

.case-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 1px 0;
}

.case-index {
  color: var(--muted-2);
  font-size: 8px;
  letter-spacing: 0.24em;
}

.case-meta h3 {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.8vw, 1.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  transition: color 0.25s ease;
}

.case-card:hover h3 {
  color: var(--accent);
}

.case-count {
  padding-top: 19px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.loading-state,
.error-state,
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 280px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: center;
}

.spinner {
  width: 22px;
  height: 22px;
  display: inline-block;
  border: 1px solid var(--line-strong);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.error-state p {
  font-size: 13px;
}

/* ---------- Services ---------- */

#services {
  scroll-margin-top: 72px;
}

.services {
  padding: clamp(76px, 9vw, 138px) var(--pad) clamp(72px, 9vw, 132px);
}

.services-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.services .section-head {
  border-top-color: var(--line-strong);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.3vw, 34px);
  margin-top: clamp(38px, 5vw, 66px);
  border-top: 1px solid var(--line-strong);
}

.service-card {
  position: relative;
  min-width: 0;
  padding: clamp(26px, 3.2vw, 42px) clamp(20px, 2.4vw, 34px) clamp(30px, 3.6vw, 48px) 0;
  border-bottom: 1px solid var(--line);
}

.service-card:not(:last-child) {
  border-right: 1px solid var(--line);
}

.service-card:not(:first-child) {
  padding-left: clamp(20px, 2.4vw, 34px);
}

.service-index {
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 0.22em;
  font-variant-numeric: tabular-nums;
}

.service-card h3 {
  margin-top: clamp(38px, 5vw, 64px);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.1vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.service-card p {
  max-width: 28em;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
}

.process {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 76px);
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: clamp(34px, 4.5vw, 54px);
  border-top: 1px solid var(--line);
}

.process-head h3 {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 30px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  min-width: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-strong);
}

.process-index {
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 0.2em;
  font-variant-numeric: tabular-nums;
}

.process-list strong {
  display: block;
  margin-top: 22px;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.process-list p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

@media (max-width: 860px) {
  .process {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .services {
    padding-top: 74px;
    padding-bottom: 76px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .service-card,
  .service-card:not(:first-child),
  .service-card:not(:last-child) {
    padding: 24px 0 26px;
    border-right: 0;
  }

  .service-card h3 {
    margin-top: 28px;
  }
}

/* ---------- Statement ---------- */

#about {
  scroll-margin-top: 70px;
}

.statement {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--paper);
  padding: clamp(80px, 11vw, 160px) var(--pad);
}

.statement::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(154, 111, 67, 0.18), transparent 38%),
    radial-gradient(circle at 86% 88%, rgba(199, 166, 125, 0.1), transparent 34%);
  pointer-events: none;
}

.statement-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.eyebrow-light {
  color: rgba(242, 238, 230, 0.5);
}

.statement blockquote {
  margin-top: clamp(34px, 5vw, 60px);
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 3.8rem);
  font-weight: 400;
  line-height: 1.48;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.brand-meaning {
  max-width: 760px;
  margin-top: clamp(28px, 3.4vw, 44px);
  color: rgba(242, 238, 230, 0.8);
  font-size: clamp(0.95rem, 1.35vw, 1.12rem);
  letter-spacing: 0.04em;
  line-height: 1.9;
}

.brand-meaning::before {
  content: "";
  display: block;
  width: 34px;
  height: 1px;
  margin-bottom: 18px;
  background: var(--accent-light);
}

.statement-note {
  max-width: 540px;
  margin-top: 40px;
  color: rgba(242, 238, 230, 0.52);
  font-size: 12px;
  line-height: 2;
}

.statement-mark {
  position: absolute;
  right: 2vw;
  bottom: -0.26em;
  font-family: var(--serif);
  font-size: clamp(14rem, 33vw, 34rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 238, 230, 0.07);
  pointer-events: none;
  user-select: none;
}

/* ---------- Footer ---------- */

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px var(--pad) calc(28px + env(safe-area-inset-bottom, 0px));
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.footer-brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
}

.footer-brand p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.footer-qr {
  display: block;
  width: 84px;
  height: 84px;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--line);
  object-fit: contain;
}

.footer-contact-copy strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.2;
}

.footer-contact-copy p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.footer-year {
  color: var(--muted-2);
}

/* ---------- Viewer ---------- */

.viewer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #0d0c0b;
  color: var(--paper);
}

.viewer-backdrop {
  position: absolute;
  inset: 0;
}

.viewer-shell {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 50% 38%, rgba(64, 55, 44, 0.24), transparent 54%),
    #0d0c0b;
  animation: viewer-in 0.45s var(--ease);
}

.viewer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 28px 18px;
  border-bottom: 1px solid rgba(242, 238, 230, 0.1);
}

.viewer-heading {
  min-width: 0;
}

.viewer-series {
  color: var(--accent-light);
  font-size: 9px;
  letter-spacing: 0.24em;
}

.viewer-heading h2 {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.viewer-count {
  margin-top: 6px;
  color: rgba(242, 238, 230, 0.48);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.viewer-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.viewer-tool {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid rgba(242, 238, 230, 0.18);
  border-radius: 999px;
  color: rgba(242, 238, 230, 0.78);
  font-size: 10px;
  letter-spacing: 0.08em;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.viewer-tool svg {
  width: 17px;
  height: 17px;
}

.viewer-tool:hover {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}

.viewer-close {
  width: 42px;
  padding: 0;
}

.viewer-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.viewer-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 26px 76px;
  touch-action: pan-y;
}

.viewer-bg {
  display: none;
}

.viewer-media {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewer-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.34);
  animation: media-in 0.42s var(--ease);
}

.viewer-video {
  width: min(100%, 1180px);
  max-height: 100%;
  background: #000;
  outline: none;
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.36);
  animation: media-in 0.42s var(--ease);
}

.viewer-error {
  max-width: 28em;
  color: rgba(242, 238, 230, 0.55);
  font-size: 12px;
  line-height: 1.9;
  text-align: center;
}

.viewer-spinner {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.viewer-spinner .spinner {
  border-color: rgba(242, 238, 230, 0.2);
  border-top-color: var(--paper);
}

.stage-nav {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(242, 238, 230, 0.18);
  border-radius: 50%;
  color: rgba(242, 238, 230, 0.78);
  background: rgba(13, 12, 11, 0.34);
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
  transition: background 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}

.stage-nav svg {
  width: 20px;
  height: 20px;
}

.stage-nav.prev {
  left: 20px;
}

.stage-nav.next {
  right: 20px;
}

.stage-nav:hover {
  background: var(--paper);
  color: var(--ink);
}

.stage-nav:disabled {
  opacity: 0.2;
  pointer-events: none;
}

.viewer-info {
  min-height: 0;
  overflow-y: auto;
  padding: 28px 22px 20px;
  border-left: 1px solid rgba(242, 238, 230, 0.1);
  display: flex;
  flex-direction: column;
}

.viewer-desc {
  color: rgba(242, 238, 230, 0.62);
  font-size: 12px;
  line-height: 1.95;
}

.viewer-meta {
  margin-top: 26px;
  border-top: 1px solid rgba(242, 238, 230, 0.1);
}

.viewer-meta div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(242, 238, 230, 0.08);
  font-size: 10px;
}

.viewer-meta dt {
  color: rgba(242, 238, 230, 0.38);
  letter-spacing: 0.1em;
}

.viewer-meta dd {
  color: rgba(242, 238, 230, 0.72);
  text-align: right;
}

.viewer-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: auto;
  padding-top: 30px;
}

.viewer-thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 2px;
  background: #1b1916;
  opacity: 0.55;
  transition: opacity 0.25s ease, border-color 0.25s ease;
}

.viewer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.viewer-thumb:hover {
  opacity: 0.88;
}

.viewer-thumb.is-active {
  opacity: 1;
  border-color: var(--accent-light);
}

.viewer-thumb.is-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.06));
}

.thumb-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: #fff;
  transform: translate(-50%, -50%);
}

.thumb-play svg {
  width: 12px;
  height: 12px;
}

.viewer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 28px calc(13px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(242, 238, 230, 0.1);
  color: rgba(242, 238, 230, 0.44);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.viewer-counter {
  color: rgba(242, 238, 230, 0.72);
  font-variant-numeric: tabular-nums;
}

.noscript {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
}

/* ---------- Motion ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

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

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(0.86); opacity: 0.55; }
  50% { transform: scale(1.08); opacity: 0.12; }
}

@keyframes scroll-bob {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(4px); }
}

@keyframes viewer-in {
  from { opacity: 0; transform: scale(1.015); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes media-in {
  from { opacity: 0; transform: translateY(8px) scale(0.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Responsive ---------- */

@media (max-width: 1120px) {
  .site-nav {
    gap: 22px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(310px, 0.72fr);
    gap: 44px;
  }

  .hero h1 {
    font-size: clamp(4rem, 8.6vw, 7rem);
  }

  .hero-side-note {
    display: none;
  }

  .viewer-body {
    grid-template-columns: minmax(0, 1fr) 290px;
  }

  .viewer-stage {
    padding: 22px 64px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 74px;
  }

  .site-nav {
    display: none;
  }

  .site-actions {
    margin-left: auto;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 64px;
    padding-top: calc(var(--header-h) + 7vh);
    padding-bottom: 80px;
  }

  .hero-copy {
    max-width: 700px;
  }

  .hero h1 {
    font-size: clamp(4rem, 12vw, 7.2rem);
  }

  .hero-lead {
    max-width: 34em;
  }

  .hero-stage {
    justify-self: center;
    width: min(86vw, 470px);
    padding-right: 0;
  }

  .scroll-cue {
    display: none;
  }

  .hero-ghost {
    top: 10vh;
    font-size: 23vw;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-desc {
    justify-self: start;
  }

  .toolbar {
    top: 74px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .search-box {
    width: 100%;
  }

  .case-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  }

  .viewer-head {
    padding: 16px 18px 14px;
  }

  .viewer-body {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .viewer-stage {
    padding: 14px 52px;
  }

  .viewer-info {
    max-height: 32vh;
    padding: 14px 18px 16px;
    border-left: 0;
    border-top: 1px solid rgba(242, 238, 230, 0.1);
  }

  .viewer-desc,
  .viewer-meta {
    display: none;
  }

  .viewer-thumbs {
    display: flex;
    gap: 7px;
    margin-top: 0;
    padding-top: 0;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .viewer-thumbs::-webkit-scrollbar {
    display: none;
  }

  .viewer-thumb {
    width: 68px;
    flex: 0 0 68px;
  }

  .viewer-foot {
    padding: 11px 18px calc(11px + env(safe-area-inset-bottom, 0px));
  }

  .viewer-hint {
    display: none;
  }

  .stage-nav.prev {
    left: 10px;
  }

  .stage-nav.next {
    right: 10px;
  }

  .stage-nav {
    width: 38px;
    height: 38px;
  }

  .footer-main {
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .header-link span {
    display: none;
  }

  .header-link {
    width: 42px;
    height: 42px;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
  }

  .header-link svg {
    width: 16px;
    height: 16px;
  }

  .brand-copy small {
    display: none;
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .hero {
    gap: 48px;
    padding-bottom: 64px;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 17vw, 5.6rem);
    letter-spacing: -0.065em;
  }

  .hero h1 span {
    margin-left: 0.2em;
  }

  .hero-lead {
    font-size: 13px;
    line-height: 1.95;
  }

  .hero-actions {
    gap: 20px;
    margin-top: 30px;
  }

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

  .hero-frame {
    aspect-ratio: 3 / 4.25;
    border-radius: 190px 190px 8px 8px;
  }

  .hero-case-panel {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 14px;
  }

  .hero-case-panel strong {
    font-size: 21px;
  }

  .hero-case-tag {
    top: 28px;
    left: 28px;
  }

  .hero-caption {
    bottom: -25px;
  }

  .hero-ghost {
    display: none;
  }

  .section-head h2 {
    font-size: clamp(2.8rem, 13vw, 4rem);
  }

  .toolbar {
    margin-top: 34px;
  }

  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filter {
    flex: none;
  }

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

  .case-media {
    aspect-ratio: 4 / 5.15;
  }

  .case-open {
    opacity: 1;
    transform: none;
  }

  .case-meta h3 {
    font-size: 1.55rem;
  }

  .statement {
    padding-top: 80px;
    padding-bottom: 100px;
  }

  .statement blockquote {
    font-size: clamp(1.65rem, 7.4vw, 2.6rem);
    line-height: 1.6;
  }

  .statement-note {
    margin-top: 28px;
  }

  .statement-mark {
    font-size: 60vw;
  }

  .viewer-heading h2 {
    font-size: 1.3rem;
  }

  .viewer-tool span {
    display: none;
  }

  .viewer-stage {
    padding: 10px 42px;
  }

  .viewer-img {
    max-height: calc(100vh - 320px);
    max-height: calc(100svh - 320px);
  }

  .viewer-video {
    max-height: calc(100vh - 320px);
    max-height: calc(100svh - 320px);
  }

  .viewer-info {
    max-height: 26vh;
  }
}

@media (max-width: 1180px), (hover: none) and (pointer: coarse) {
  .viewer {
    overscroll-behavior: none;
  }

  .viewer-shell {
    overflow: hidden;
    background: #0a0908;
  }

  .viewer-head {
    position: absolute;
    z-index: 9;
    top: 0;
    left: 0;
    right: 0;
    align-items: flex-start;
    padding: calc(14px + env(safe-area-inset-top, 0px)) calc(16px + env(safe-area-inset-right, 0px)) 20px calc(16px + env(safe-area-inset-left, 0px));
    border-bottom: 0;
    background: linear-gradient(to bottom, rgba(5, 4, 3, 0.94), rgba(5, 4, 3, 0.68) 34%, rgba(5, 4, 3, 0.22) 68%, transparent);
    transition: opacity 0.35s ease, transform 0.35s var(--ease);
  }

  .viewer-body {
    position: absolute;
    inset: 0;
    display: block;
  }

  .viewer-stage {
    position: absolute;
    inset: 0;
    display: block;
    padding: 0;
    background: #0a0908;
    touch-action: pan-y;
  }

  .viewer-bg {
    position: absolute;
    z-index: 0;
    inset: -38px;
    display: block;
    overflow: hidden;
    pointer-events: none;
  }

  .viewer-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 4, 0.36);
  }

  .viewer-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(34px) saturate(0.82) brightness(0.54);
    transform: scale(1.08);
  }

  .viewer-media {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
  }

  .viewer-img,
  .viewer-video {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    box-shadow: none;
  }

  .viewer-video {
    background: #000;
  }

  .viewer-spinner {
    z-index: 4;
  }

  .stage-nav {
    z-index: 6;
    width: 42px;
    height: 42px;
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(10, 9, 8, 0.28);
    transition: opacity 0.35s ease;
  }

  .stage-nav.prev {
    left: calc(10px + env(safe-area-inset-left, 0px));
  }

  .stage-nav.next {
    right: calc(10px + env(safe-area-inset-right, 0px));
  }

  .viewer-info {
    position: absolute;
    z-index: 8;
    left: 0;
    right: 0;
    bottom: calc(30px + env(safe-area-inset-bottom, 0px));
    display: block;
    max-height: none;
    overflow: visible;
    padding: 52px calc(16px + env(safe-area-inset-right, 0px)) 10px calc(16px + env(safe-area-inset-left, 0px));
    border: 0;
    background: linear-gradient(to top, rgba(5, 4, 3, 0.86), rgba(5, 4, 3, 0.32) 55%, transparent);
    transition: opacity 0.35s ease, transform 0.35s var(--ease);
  }

  .viewer-desc,
  .viewer-meta {
    display: none;
  }

  .viewer-thumbs {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .viewer-thumbs::-webkit-scrollbar {
    display: none;
  }

  .viewer-thumb {
    flex: 0 0 62px;
    width: 62px;
    border-radius: 3px;
  }

  .viewer-foot {
    position: absolute;
    z-index: 9;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 8px calc(16px + env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) calc(16px + env(safe-area-inset-left, 0px));
    border-top: 0;
    background: linear-gradient(to top, rgba(7, 6, 5, 0.58), transparent);
    transition: opacity 0.35s ease, transform 0.35s var(--ease);
  }

  .viewer-hint {
    display: none;
  }

  .viewer-heading h2 {
    font-size: 1.3rem;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.58);
  }

  .viewer-series,
  .viewer-count {
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.46);
  }

  .viewer.chrome-hidden .viewer-head,
  .viewer.chrome-hidden .viewer-info,
  .viewer.chrome-hidden .viewer-foot,
  .viewer.chrome-hidden .stage-nav {
    opacity: 0;
    pointer-events: none;
  }

  .viewer.chrome-hidden .viewer-head {
    transform: translateY(-10px);
  }

  .viewer.chrome-hidden .viewer-info,
  .viewer.chrome-hidden .viewer-foot {
    transform: translateY(10px);
  }
}

@media (max-width: 600px) {
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .footer-contact {
    width: 100%;
  }

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}




