:root {
  --ivory: #f4f1e9;
  --paper: #faf8f2;
  --ink: #17201c;
  --forest: #183f34;
  --moss: #66796d;
  --gold: #aa8358;
  --line: rgba(23, 32, 28, 0.14);
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --serif: "Songti SC", "STSong", "SimSun", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body.dialog-open {
  overflow: hidden;
}

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

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

.case-container {
  width: min(1380px, calc(100% - 72px));
  margin: 0 auto;
}

.case-nav {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  width: min(1380px, calc(100% - 72px));
  height: 92px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.case-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

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

.case-brand-mark svg {
  width: 27px;
  height: 27px;
}

.case-brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.case-brand strong {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.08em;
}

.case-brand small {
  margin-top: 5px;
  color: rgba(23, 32, 28, 0.54);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.case-nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  color: rgba(23, 32, 28, 0.64);
  font-size: 12px;
}

.case-nav-links > a {
  position: relative;
  padding: 10px 0;
}

.case-nav-links > a.active,
.case-nav-links > a:hover {
  color: var(--ink);
}

.case-nav-links > a.active::after {
  content: "";
  position: absolute;
  right: 30%;
  bottom: 0;
  left: 30%;
  height: 1px;
  background: var(--ink);
}

.case-nav-links .case-nav-cta {
  padding: 11px 20px;
  color: var(--ivory);
  background: var(--forest);
  border-radius: 999px;
}

.case-nav-links .case-nav-cta:hover {
  color: white;
}

.case-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.case-menu-button span {
  display: block;
  width: 17px;
  height: 1px;
  margin: 5px auto;
  background: var(--ink);
}

.case-hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 255, 255, 0.72), transparent 28%),
    linear-gradient(135deg, #f0ede5 0%, #e8e3d8 52%, #f2eee6 100%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: radial-gradient(rgba(23, 32, 28, 0.24) 0.55px, transparent 0.55px);
  background-size: 15px 15px;
  mask-image: linear-gradient(90deg, #000, transparent 55%, #000);
}

.hero-ambient {
  position: absolute;
  border: 1px solid rgba(23, 63, 52, 0.11);
  border-radius: 50%;
}

.hero-ambient-a {
  top: -20vw;
  right: -11vw;
  width: 53vw;
  height: 53vw;
}

.hero-ambient-b {
  bottom: -28vw;
  left: -16vw;
  width: 58vw;
  height: 58vw;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 100svh;
  padding-top: 122px;
  padding-bottom: 70px;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 8vw;
  align-items: center;
}

.hero-copy {
  padding-top: 10px;
}

.hero-kicker,
.section-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.hero-copy h1 {
  max-width: 740px;
  margin: 26px 0 27px;
  font-family: var(--serif);
  font-size: clamp(49px, 5.2vw, 82px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.18;
  white-space: pre-line;
}

.hero-subtitle {
  max-width: 580px;
  margin: 0;
  color: rgba(23, 32, 28, 0.62);
  font-size: 15px;
  line-height: 1.9;
}

.hero-cta {
  display: inline-flex;
  margin-top: 37px;
  padding-bottom: 10px;
  align-items: center;
  gap: 38px;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hero-cta svg {
  width: 20px;
  height: 20px;
  transition: transform 180ms ease;
}

.hero-cta:hover svg {
  transform: translateX(5px);
}

.hero-editorial {
  position: relative;
  height: min(66vh, 680px);
  min-height: 510px;
}

.hero-collage {
  position: absolute;
  inset: 4% 2% 3% 9%;
}

.hero-card {
  position: absolute;
  overflow: hidden;
  background: #d6d1c5;
  border: 7px solid rgba(249, 247, 241, 0.86);
  box-shadow: 0 22px 55px rgba(26, 42, 34, 0.13);
}

.hero-card:nth-child(1) {
  top: 0;
  right: 4%;
  width: 64%;
  height: 57%;
  z-index: 2;
}

.hero-card:nth-child(2) {
  bottom: 2%;
  left: 1%;
  width: 57%;
  height: 45%;
  z-index: 3;
}

.hero-card:nth-child(3) {
  right: 0;
  bottom: 0;
  width: 34%;
  height: 30%;
  z-index: 1;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card .case-placeholder {
  height: 100%;
}

.hero-card-label {
  position: absolute;
  right: 12px;
  bottom: 9px;
  left: 12px;
  color: white;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.hero-number {
  position: absolute;
  z-index: 5;
  top: 16%;
  left: -5%;
  display: flex;
  width: 114px;
  height: 114px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ivory);
  background: var(--forest);
  border-radius: 50%;
  box-shadow: 0 18px 44px rgba(24, 63, 52, 0.2);
}

.hero-number span {
  font-size: 7px;
  letter-spacing: 0.18em;
}

.hero-number strong {
  margin: 3px 0 1px;
  font-family: var(--serif);
  font-size: 37px;
  font-weight: 500;
  line-height: 1;
}

.hero-number small {
  color: rgba(255, 255, 255, 0.63);
  font-size: 8px;
}

.hero-seal {
  position: absolute;
  z-index: 6;
  right: -12px;
  bottom: 10%;
  display: flex;
  width: 70px;
  height: 70px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(23, 32, 28, 0.62);
  border: 1px solid rgba(23, 32, 28, 0.26);
  border-radius: 50%;
  font-size: 6px;
  letter-spacing: 0.16em;
  line-height: 1.65;
  transform: rotate(9deg);
}

.hero-scroll {
  position: absolute;
  z-index: 3;
  bottom: 29px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(23, 32, 28, 0.42);
  font-size: 7px;
  letter-spacing: 0.19em;
  transform: translateX(-50%);
}

.hero-scroll i {
  width: 48px;
  height: 1px;
  background: rgba(23, 32, 28, 0.24);
}

.case-index {
  padding: 110px 0 96px;
  background: var(--paper);
}

.case-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
}

.case-heading-row h2 {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 57px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.25;
}

.case-heading-row > p {
  max-width: 380px;
  margin: 0 0 7px;
  color: rgba(23, 32, 28, 0.55);
  font-size: 13px;
  line-height: 1.8;
  text-align: right;
}

.case-toolbar {
  display: flex;
  margin: 47px 0 35px;
  padding: 15px 0;
  align-items: center;
  gap: 11px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-search {
  display: flex;
  min-width: 270px;
  align-items: center;
  gap: 8px;
}

.case-search svg {
  width: 18px;
  height: 18px;
  color: rgba(23, 32, 28, 0.42);
}

.case-search input {
  width: 100%;
  padding: 8px 0;
  background: transparent;
  border: 0;
  outline: none;
  font-size: 12px;
}

.case-toolbar select {
  padding: 9px 34px 9px 15px;
  color: rgba(23, 32, 28, 0.7);
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  outline: none;
  font-size: 11px;
  cursor: pointer;
}

.case-result-count {
  margin-left: auto;
  color: rgba(23, 32, 28, 0.4);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 35px 22px;
}

.case-card {
  min-width: 0;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  animation: card-in 600ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

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

.case-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #ddd8cc;
}

.case-card:nth-child(6n + 2) .case-card-media,
.case-card:nth-child(6n + 5) .case-card-media {
  aspect-ratio: 4 / 4.65;
}

.case-card:nth-child(6n + 3) .case-card-media {
  aspect-ratio: 4 / 5.45;
}

.case-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.65, 0.25, 1), filter 350ms ease;
}

.case-card:hover .case-card-media img {
  transform: scale(1.035);
  filter: saturate(0.92);
}

.case-card::after {
  content: "";
  display: block;
}

.case-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 -70px 80px rgba(12, 20, 16, 0.13);
}

.case-card-index {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 13px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.case-card.is-demo .case-card-index::after {
  content: " · 灵感模板";
  opacity: 0.7;
}

.case-card-info {
  display: flex;
  padding-top: 14px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.case-card-title {
  min-width: 0;
}

.case-card-title h3 {
  overflow: hidden;
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-card-title p {
  margin: 5px 0 0;
  color: rgba(23, 32, 28, 0.46);
  font-size: 10px;
}

.case-card-meta {
  flex: none;
  color: rgba(23, 32, 28, 0.48);
  font-size: 9px;
  line-height: 1.8;
  text-align: right;
}

.case-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    linear-gradient(145deg, hsl(var(--hue) 20% 81%), hsl(calc(var(--hue) + 23) 16% 58%));
}

.case-placeholder::before,
.case-placeholder::after {
  content: "";
  position: absolute;
}

.case-placeholder::before {
  top: 12%;
  right: 10%;
  width: 52%;
  height: 63%;
  background: rgba(255, 255, 255, 0.23);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 42% 42% 6px 6px;
  box-shadow:
    -58px 76px 0 -18px rgba(36, 47, 41, 0.17),
    32px 104px 0 -24px rgba(246, 242, 233, 0.35);
  transform: rotate(-4deg);
}

.case-placeholder::after {
  right: 18%;
  bottom: 12%;
  width: 35%;
  height: 30%;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  transform: skewY(-12deg);
}

.placeholder-label {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.84);
}

.placeholder-label strong {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

.placeholder-label span {
  font-size: 7px;
  letter-spacing: 0.15em;
}

.case-load-wrap {
  display: flex;
  padding-top: 54px;
  justify-content: center;
}

.case-load-button {
  display: flex;
  width: 190px;
  height: 62px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(23, 32, 28, 0.28);
  border-radius: 999px;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.case-load-button:hover {
  color: var(--ivory);
  background: var(--forest);
}

.case-load-button span {
  font-size: 12px;
}

.case-load-button small {
  margin-top: 2px;
  opacity: 0.55;
  font-size: 8px;
}

.case-empty {
  padding: 100px 20px;
  text-align: center;
}

.case-empty strong {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
}

.case-empty p {
  color: rgba(23, 32, 28, 0.45);
  font-size: 12px;
}

.case-manifesto {
  padding: 105px 0;
  color: var(--ivory);
  background: var(--forest);
}

.manifesto-inner {
  text-align: center;
}

.manifesto-inner .section-kicker {
  color: #d3b182;
}

.manifesto-inner blockquote {
  margin: 29px 0 36px;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.48;
}

.manifesto-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: rgba(255, 255, 255, 0.49);
  font-size: 10px;
  letter-spacing: 0.13em;
}

.manifesto-meta i {
  width: 26px;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.case-contact {
  padding: 96px 0;
  background: #ece6d9;
}

.contact-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
}

.contact-inner h2 {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: clamp(35px, 4.2vw, 59px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.35;
}

.contact-actions {
  display: flex;
  padding-bottom: 5px;
  gap: 13px;
}

.contact-primary,
.contact-secondary {
  display: inline-flex;
  min-height: 50px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.contact-primary {
  color: white;
  background: var(--forest);
}

.contact-secondary {
  gap: 8px;
  border: 1px solid rgba(23, 32, 28, 0.25);
}

.contact-secondary svg {
  width: 16px;
  height: 16px;
}

.case-footer {
  color: rgba(255, 255, 255, 0.6);
  background: #111815;
}

.footer-inner {
  display: flex;
  min-height: 106px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  font-size: 10px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand strong {
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
}

.footer-contact {
  color: rgba(255, 255, 255, 0.42);
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a:hover {
  color: white;
}

.case-dialog {
  width: min(1180px, calc(100% - 40px));
  max-height: calc(100vh - 40px);
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-radius: 3px;
  box-shadow: 0 35px 100px rgba(10, 17, 14, 0.35);
}

.case-dialog::backdrop {
  background: rgba(12, 18, 15, 0.68);
  backdrop-filter: blur(4px);
}

.dialog-topbar {
  display: flex;
  height: 54px;
  padding: 0 20px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.dialog-topbar button {
  display: grid;
  width: 33px;
  height: 33px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  place-items: center;
}

.dialog-topbar button:hover {
  background: #efebe1;
}

.dialog-topbar svg {
  width: 18px;
  height: 18px;
}

.case-dialog-body {
  overflow-y: auto;
  max-height: calc(100vh - 94px);
}

.case-story {
  padding: 0 0 6px;
  background: #fcfaf5;
}

.case-story-header {
  max-width: 820px;
  margin: 0 auto;
  padding: 54px 38px 34px;
  text-align: center;
}

.case-story-header .section-kicker {
  color: var(--gold);
}

.case-story-header h2 {
  margin: 13px 0 17px;
  font-family: var(--serif);
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.3;
}

.case-story-intro {
  max-width: 680px;
  margin: 0 auto;
  color: rgba(23, 32, 28, 0.59);
  font-size: 12px;
  line-height: 2;
}

.case-story-header .dialog-tags {
  justify-content: center;
}

.case-story-specs {
  display: grid;
  margin-top: 30px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(4, 1fr);
}

.case-story-specs > div {
  padding: 2px 15px;
  border-right: 1px solid var(--line);
}

.case-story-specs > div:last-child {
  border-right: 0;
}

.case-story-specs span {
  display: block;
  color: rgba(23, 32, 28, 0.4);
  font-size: 8px;
}

.case-story-specs strong {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: rgba(23, 32, 28, 0.77);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-story-gallery-heading {
  display: flex;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 30px 17px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.case-story-gallery-heading > div {
  display: flex;
  flex-direction: column;
}

.case-story-gallery-heading span {
  color: var(--gold);
  font-size: 7px;
  letter-spacing: 0.2em;
}

.case-story-gallery-heading strong {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

.case-story-gallery-heading p {
  margin: 0;
  color: rgba(23, 32, 28, 0.42);
  font-size: 8px;
}

.case-story-gallery {
  display: grid;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 12px;
}

.case-story-image {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
  background: #111713;
  border: 0;
  cursor: zoom-in;
  line-height: 0;
}

.case-story-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  transition: filter 250ms ease;
}

.case-story-image:hover img {
  filter: brightness(0.94);
}

.case-story-image-index {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  width: 29px;
  height: 29px;
  color: white;
  background: rgba(11, 18, 14, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 9px;
  line-height: 1;
  backdrop-filter: blur(7px);
  place-items: center;
}

.case-story-image-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 6px 9px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(11, 18, 14, 0.42);
  font-size: 7px;
  letter-spacing: 0.05em;
  line-height: 1;
  backdrop-filter: blur(7px);
}

.case-story-placeholder {
  width: 100%;
  height: min(68vh, 700px);
}

.case-story-end {
  display: flex;
  padding: 29px 20px 25px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: rgba(23, 32, 28, 0.29);
}

.case-story-end span {
  width: 36px;
  height: 1px;
  background: rgba(23, 32, 28, 0.15);
}

.case-story-end strong {
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.2em;
}

.dialog-gallery {
  display: block;
  padding: 25px;
  gap: 10px;
}

.dialog-gallery-item {
  overflow: hidden;
  min-height: 260px;
  background: #d9d4c8;
}

.dialog-gallery-item:first-child {
  grid-row: span 2;
}

.dialog-gallery-item img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.dialog-single-placeholder {
  min-height: 580px;
}

.case-carousel {
  width: 100%;
}

.case-carousel-stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: min(66vh, 720px);
  min-height: 390px;
  background: #111713;
  touch-action: pan-y;
}

.case-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}

.case-carousel-slide {
  display: block;
  overflow: hidden;
  width: 100%;
  height: 100%;
  padding: 0;
  flex: 0 0 100%;
  background: transparent;
  border: 0;
  cursor: zoom-in;
}

.case-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  color: white;
  background: rgba(12, 18, 15, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
  place-items: center;
}

.carousel-arrow.previous {
  left: 18px;
}

.carousel-arrow.next {
  right: 18px;
}

.carousel-arrow svg {
  width: 20px;
  height: 20px;
}

.case-carousel-meta {
  display: flex;
  padding: 10px 2px 9px;
  align-items: center;
  justify-content: space-between;
  color: rgba(23, 32, 28, 0.42);
  font-size: 8px;
  letter-spacing: 0.07em;
}

.case-thumbnails {
  display: flex;
  overflow-x: auto;
  padding: 2px 1px 7px;
  gap: 7px;
  scrollbar-width: thin;
}

.case-thumbnails button {
  overflow: hidden;
  width: 82px;
  height: 60px;
  padding: 0;
  flex: 0 0 auto;
  background: #ded9ce;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.58;
}

.case-thumbnails button.active {
  border-color: var(--gold);
  opacity: 1;
}

.case-thumbnails img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-viewer {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  color: white;
  background: #0b100d;
  border: 0;
}

.image-viewer::backdrop {
  background: rgba(5, 8, 6, 0.94);
}

.image-viewer-topbar {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  height: 58px;
  padding: 0 22px;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.66);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.image-viewer-topbar button {
  display: grid;
  width: 37px;
  height: 37px;
  padding: 0;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  place-items: center;
}

.image-viewer-hint {
  position: absolute;
  left: 50%;
  color: rgba(255, 255, 255, 0.38);
  font-size: 8px;
  letter-spacing: 0.08em;
  transform: translateX(-50%);
}

.image-viewer-topbar svg {
  width: 20px;
  height: 20px;
}

.image-viewer-stage {
  display: grid;
  width: 100%;
  height: calc(100vh - 106px);
  padding: 58px 80px 22px;
  touch-action: pan-y;
  place-items: center;
}

.image-viewer-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
}

.image-viewer-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  width: 47px;
  height: 47px;
  padding: 0;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  cursor: pointer;
  transform: translateY(-50%);
  place-items: center;
}

.image-viewer-arrow.previous {
  left: 20px;
}

.image-viewer-arrow.next {
  right: 20px;
}

.image-viewer-arrow svg {
  width: 22px;
  height: 22px;
}

.image-viewer-thumbs {
  position: absolute;
  right: 80px;
  bottom: 10px;
  left: 80px;
  display: flex;
  overflow-x: auto;
  height: 54px;
  justify-content: center;
  gap: 6px;
  scrollbar-width: none;
}

.image-viewer-thumbs button {
  overflow: hidden;
  width: 68px;
  height: 48px;
  padding: 0;
  flex: 0 0 auto;
  background: #1d241f;
  border: 1px solid transparent;
  cursor: pointer;
  opacity: 0.46;
}

.image-viewer-thumbs button.active {
  border-color: #c9a573;
  opacity: 1;
}

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

.dialog-copy {
  display: grid;
  padding: 16px 34px 55px;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 60px;
}

.dialog-copy h2 {
  margin: 0 0 15px;
  font-family: var(--serif);
  font-size: clamp(29px, 4vw, 45px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.dialog-copy > div > p {
  max-width: 670px;
  margin: 0;
  color: rgba(23, 32, 28, 0.6);
  font-size: 12px;
  line-height: 2;
}

.dialog-tags {
  display: flex;
  flex-wrap: wrap;
  margin-top: 21px;
  gap: 7px;
}

.dialog-tags span {
  padding: 6px 10px;
  color: rgba(23, 32, 28, 0.64);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9px;
}

.dialog-specs {
  display: grid;
  align-content: start;
  gap: 14px;
}

.dialog-spec {
  display: flex;
  padding-bottom: 12px;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}

.dialog-spec span {
  color: rgba(23, 32, 28, 0.42);
}

.dialog-spec strong {
  font-weight: 500;
  text-align: right;
}

.dialog-booking {
  display: inline-flex;
  margin-top: 14px;
  padding: 11px 16px;
  color: white;
  background: var(--forest);
  border: 0;
  justify-content: center;
  border-radius: 2px;
  cursor: pointer;
  font-size: 10px;
}

.inline-booking-panel {
  margin: 0 25px 25px;
  padding: 34px;
  background: #eee9de;
  border-top: 1px solid rgba(23, 63, 52, 0.16);
}

.inline-booking-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.inline-booking-heading h3 {
  margin: 8px 0 5px;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.inline-booking-heading > div > p:last-child {
  margin: 0;
  color: rgba(23, 32, 28, 0.54);
  font-size: 10px;
  line-height: 1.7;
}

.inline-booking-heading > span {
  padding-bottom: 4px;
  color: var(--gold);
  font-size: 8px;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.inline-booking-form {
  display: grid;
  margin-top: 25px;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.inline-booking-form label {
  display: grid;
  gap: 5px;
}

.inline-booking-form label.full {
  grid-column: 1 / -1;
}

.inline-booking-form label > span {
  color: rgba(23, 32, 28, 0.65);
  font-size: 9px;
  font-weight: 600;
}

.inline-booking-form input,
.inline-booking-form select,
.inline-booking-form textarea {
  width: 100%;
  padding: 10px 11px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 32, 28, 0.14);
  border-radius: 2px;
  outline: none;
  font-family: var(--sans);
  font-size: 10px;
}

.inline-booking-form textarea {
  resize: vertical;
}

.inline-booking-form input:focus,
.inline-booking-form select:focus,
.inline-booking-form textarea:focus {
  background: white;
  border-color: var(--forest);
}

.inline-consent {
  display: flex !important;
  align-items: flex-start;
  gap: 7px !important;
  color: rgba(23, 32, 28, 0.52);
  font-size: 8px;
  line-height: 1.65;
}

.inline-consent input {
  width: 13px;
  height: 13px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--forest);
}

.inline-consent button {
  padding: 0;
  color: var(--forest);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: inherit;
  text-decoration: underline;
}

.inline-booking-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.inline-booking-submit > button {
  min-height: 44px;
  padding: 0 21px;
  color: white;
  background: var(--forest);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
}

.inline-booking-submit > button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.inline-booking-error {
  min-height: 15px;
  margin: 0;
  color: #a34337;
  font-size: 9px;
}

.inline-booking-success {
  display: flex;
  margin-top: 24px;
  padding: 18px 20px;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.inline-booking-success > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  color: white;
  background: var(--forest);
  border-radius: 50%;
  place-items: center;
}

.inline-booking-success strong {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
}

.inline-booking-success p {
  margin: 3px 0 0;
  color: rgba(23, 32, 28, 0.52);
  font-size: 9px;
}

.inline-booking-success em {
  color: var(--forest);
  font-style: normal;
  letter-spacing: 0.06em;
}

.inline-booking-success button {
  margin-left: auto;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid rgba(23, 32, 28, 0.2);
  border-radius: 2px;
  cursor: pointer;
  font-size: 8px;
}

.case-privacy-dialog {
  width: min(570px, calc(100% - 30px));
  max-height: calc(100vh - 40px);
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 0;
}

.case-privacy-dialog::backdrop {
  background: rgba(12, 18, 15, 0.75);
}

.case-privacy-content {
  padding: 25px;
}

.case-privacy-content h3 {
  margin: 17px 0 5px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
}

.case-privacy-content h3:first-child {
  margin-top: 0;
}

.case-privacy-content p {
  margin: 0;
  color: rgba(23, 32, 28, 0.57);
  font-size: 10px;
  line-height: 1.85;
}

.case-privacy-content .case-privacy-note {
  margin-top: 18px;
  padding: 10px;
  background: #f1eee6;
  font-size: 9px;
}

.case-toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  padding: 12px 17px;
  color: white;
  background: var(--forest);
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(17, 35, 27, 0.22);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.case-toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1050px) {
  .hero-inner {
    grid-template-columns: 1fr 0.9fr;
    gap: 35px;
  }

  .hero-copy h1 {
    font-size: clamp(45px, 6vw, 65px);
  }

  .hero-number {
    left: 0;
  }

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

@media (max-width: 760px) {
  .case-container,
  .case-nav {
    width: calc(100% - 30px);
  }

  .case-nav {
    height: 76px;
  }

  .case-brand-mark {
    width: 37px;
    height: 37px;
  }

  .case-brand strong {
    font-size: 16px;
  }

  .case-nav-links {
    position: fixed;
    z-index: 30;
    top: 69px;
    right: 15px;
    left: 15px;
    display: none;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 20px 45px rgba(24, 40, 32, 0.12);
  }

  .case-nav-links.open {
    display: flex;
  }

  .case-nav-links > a {
    padding: 12px 8px;
  }

  .case-nav-links .case-nav-cta {
    margin-top: 8px;
    text-align: center;
  }

  .case-menu-button {
    display: block;
  }

  .hero-inner {
    display: block;
    min-height: auto;
    padding-top: 112px;
    padding-bottom: 92px;
  }

  .hero-copy h1 {
    margin-top: 21px;
    font-size: 43px;
  }

  .hero-subtitle {
    font-size: 13px;
  }

  .hero-editorial {
    height: 430px;
    min-height: 0;
    margin-top: 52px;
  }

  .hero-number {
    top: 5%;
    left: -2%;
    width: 95px;
    height: 95px;
  }

  .hero-number strong {
    font-size: 31px;
  }

  .hero-scroll {
    display: none;
  }

  .case-index {
    padding: 75px 0 70px;
  }

  .case-heading-row,
  .contact-inner {
    display: block;
  }

  .case-heading-row > p {
    margin-top: 15px;
    text-align: left;
  }

  .case-toolbar {
    flex-wrap: wrap;
  }

  .case-search {
    min-width: 100%;
  }

  .case-toolbar select {
    padding-left: 10px;
  }

  .case-result-count {
    margin-left: auto;
  }

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

  .case-card-media,
  .case-card:nth-child(n) .case-card-media {
    aspect-ratio: 4 / 5;
  }

  .case-manifesto {
    padding: 75px 0;
  }

  .manifesto-inner blockquote {
    font-size: 29px;
  }

  .manifesto-meta {
    flex-wrap: wrap;
    gap: 10px;
  }

  .case-contact {
    padding: 70px 0;
  }

  .contact-actions {
    margin-top: 27px;
    flex-wrap: wrap;
  }

  .footer-inner {
    padding: 25px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .case-dialog {
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
  }

  .case-dialog-body {
    max-height: calc(100vh - 74px);
  }

  .dialog-gallery {
    display: block;
    padding: 14px;
  }

  .case-story-header {
    padding: 37px 21px 26px;
  }

  .case-story-header h2 {
    font-size: 32px;
  }

  .case-story-intro {
    font-size: 11px;
  }

  .case-story-specs {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .case-story-specs > div {
    padding: 10px 7px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .case-story-specs > div:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .case-story-gallery-heading {
    display: block;
    padding: 20px 14px 12px;
  }

  .case-story-gallery-heading p {
    margin-top: 4px;
  }

  .case-story-gallery {
    padding: 0 7px;
    gap: 7px;
  }

  .case-story-image-hint {
    right: 8px;
    bottom: 8px;
  }

  .case-story-image-index {
    top: 8px;
    left: 8px;
  }

  .case-story-placeholder {
    height: 52vh;
  }

  .dialog-gallery-item {
    min-height: 260px;
    margin-bottom: 8px;
  }

  .dialog-single-placeholder {
    min-height: 420px;
  }

  .case-carousel-stage {
    height: 52vh;
    min-height: 280px;
  }

  .carousel-arrow {
    width: 35px;
    height: 35px;
  }

  .carousel-arrow.previous {
    left: 8px;
  }

  .carousel-arrow.next {
    right: 8px;
  }

  .case-carousel-meta span:last-child {
    display: none;
  }

  .image-viewer-stage {
    padding: 58px 46px 72px;
  }

  .image-viewer-arrow {
    width: 38px;
    height: 38px;
  }

  .image-viewer-arrow.previous {
    left: 6px;
  }

  .image-viewer-arrow.next {
    right: 6px;
  }

  .image-viewer-thumbs {
    right: 20px;
    left: 20px;
    height: 48px;
    justify-content: flex-start;
  }

  .image-viewer-hint {
    display: none;
  }

  .dialog-copy {
    display: block;
    padding: 18px 23px 40px;
  }

  .inline-booking-panel {
    margin: 0 14px 14px;
    padding: 22px 17px;
  }

  .inline-booking-heading {
    display: block;
  }

  .inline-booking-heading h3 {
    font-size: 24px;
  }

  .inline-booking-heading > span {
    display: inline-block;
    margin-top: 9px;
  }

  .inline-booking-form {
    grid-template-columns: 1fr;
  }

  .inline-booking-form label.full,
  .inline-booking-submit,
  .inline-booking-submit.full {
    grid-column: auto;
  }

  .inline-booking-submit {
    align-items: flex-start;
    flex-direction: column;
  }

  .inline-booking-submit > button {
    width: 100%;
  }

  .inline-booking-success {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .inline-booking-success button {
    margin-left: 52px;
  }

  .dialog-specs {
    margin-top: 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
