:root {
  color-scheme: light;
  --content-max: 1800px;
  --bg: #f7f7f5;
  --paper: #ffffff;
  --ink: #242424;
  --muted: #777777;
  --line: #e6e2dc;
  --warm: #c7a66a;
  --warm-dark: #8f7140;
  --stone: #e9e7e1;
  --shadow: 0 20px 60px rgba(32, 28, 24, 0.08);
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 6vw;
  background: rgba(247, 247, 245, 0.92);
  border-bottom: 1px solid rgba(230, 226, 220, 0.7);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  font-weight: 700;
}

.brand-logo {
  display: block;
  width: auto;
  height: 40px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 42px;
  color: #333333;
  font-size: 16px;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 0;
  white-space: nowrap;
}

.site-nav a span {
  font-size: 1em;
  font-weight: 400;
  letter-spacing: 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--warm-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
  content: "";
}

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

.home-page .site-header {
  position: fixed;
  right: 0;
  left: 0;
  background: rgba(247, 247, 245, 0.96);
  border-bottom: 1px solid rgba(230, 226, 220, 0.72);
  color: var(--ink);
  backdrop-filter: blur(18px);
}

.home-page .site-nav {
  color: #333333;
  font-size: 16px;
  font-weight: 500;
}

.home-page .site-nav a::after {
  background: var(--warm-dark);
}

.hero {
  display: block;
  overflow: hidden;
  min-height: 0;
  padding: 0;
  background: #ffffff;
}

.home-hero {
  position: relative;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: clamp(560px, 35.3vw, 760px);
  background: #f1f0ed;
}

.hero-track {
  display: flex;
  width: 300%;
  height: 100%;
  animation: hero-scroll 18s cubic-bezier(0.76, 0, 0.24, 1) infinite;
  will-change: transform;
}

.hero-slider:hover .hero-track {
  animation-play-state: paused;
}

.hero-slide {
  position: relative;
  flex: 0 0 100vw;
  height: 100%;
  overflow: hidden;
  color: #ffffff;
  background: #d9d8d2;
}

.hero-slide::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.42));
  content: "";
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.01);
}

.hero-slide span {
  position: absolute;
  right: clamp(38px, 8vw, 160px);
  bottom: clamp(42px, 8vw, 118px);
  z-index: 1;
  max-width: min(560px, 70%);
  font-size: clamp(20px, 2.5vw, 42px);
  font-weight: 400;
  line-height: 1.35;
  text-align: right;
}

.hero-slider::before,
.hero-slider::after {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-top: 3px solid rgba(255, 255, 255, 0.9);
  content: "";
}

.hero-slider::before {
  left: 4.8vw;
  border-left: 3px solid rgba(255, 255, 255, 0.9);
  transform: translateY(-50%) rotate(-45deg);
}

.hero-slider::after {
  right: 4.8vw;
  border-right: 3px solid rgba(255, 255, 255, 0.9);
  transform: translateY(-50%) rotate(45deg);
}

@keyframes hero-scroll {
  0%,
  26% {
    transform: translateX(0);
  }

  34%,
  60% {
    transform: translateX(-100vw);
  }

  68%,
  94% {
    transform: translateX(-200vw);
  }

  100% {
    transform: translateX(0);
  }
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--warm-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section-head h2,
.about-aside h2,
.contact-main h2 {
  margin: 0;
  font-size: clamp(42px, 7vw, 92px);
  font-weight: 300;
  line-height: 1.05;
}

.hero-lead {
  margin: 34px 0 18px;
  color: #6f6f6f;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.55;
}

.hero-text {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 38px;
}

.primary-link,
.plain-link,
.filter-bar button {
  min-height: 44px;
  border: 1px solid var(--ink);
  background: transparent;
  padding: 10px 18px;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.primary-link,
.filter-bar button.is-active {
  background: var(--ink);
  color: #ffffff;
}

.plain-link {
  border-color: var(--line);
}

.primary-link:hover,
.plain-link:hover,
.filter-bar button:hover {
  border-color: var(--warm-dark);
  background: var(--warm-dark);
  color: #ffffff;
}

.hero-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, minmax(56px, 1fr));
  gap: 14px;
  min-height: 620px;
}

.hero-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.hero-gallery img:nth-child(1) {
  grid-column: 1 / 5;
  grid-row: 1 / 4;
}

.hero-gallery img:nth-child(2) {
  grid-column: 4 / 7;
  grid-row: 2 / 6;
}

.hero-gallery img:nth-child(3) {
  grid-column: 1 / 4;
  grid-row: 4 / 7;
}

.hero-gallery img:nth-child(4) {
  grid-column: 4 / 6;
  grid-row: 6 / 7;
}

.intro-strip {
  display: block;
  max-width: none;
  margin: 0 auto;
  padding: 76px 32px 66px;
  background: #ffffff;
  color: #3a3a3a;
  text-align: center;
}

.intro-strip p {
  max-width: 1160px;
  margin: 0 auto;
  color: #a6a6a6;
  font-size: clamp(14px, 0.9vw, 16px);
  font-weight: 400;
  line-height: 2.05;
}

.intro-strip p:first-child {
  margin-bottom: 48px;
  color: #333333;
  font-size: clamp(30px, 2.45vw, 46px);
  font-weight: 400;
  line-height: 1.35;
}

.works-section,
.about-section,
.team-section,
.contact-section {
  padding: 96px 6vw;
}

.home-works-grid {
  padding-top: 72px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head h2,
.about-aside h2,
.contact-main h2 {
  font-size: clamp(32px, 4.2vw, 58px);
}

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

.section-head.compact {
  display: block;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.filter-bar button {
  min-height: 38px;
  border-color: var(--line);
  padding: 7px 13px;
  color: #555555;
  font-size: 13px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.work-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  background: var(--stone);
  isolation: isolate;
}

.work-card::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.58));
  opacity: 0;
  transition: opacity 180ms ease;
  content: "";
}

.work-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform 260ms ease;
}

.work-card .work-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 22px;
  color: #ffffff;
  transform: translateY(14px);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.work-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
}

.work-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}

.work-card:hover::before,
.work-card:hover .work-caption,
.work-card:focus-within::before,
.work-card:focus-within .work-caption {
  opacity: 1;
  transform: translateY(0);
}

.work-card:hover img {
  transform: scale(1.04);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) minmax(420px, 1fr);
  gap: 8vw;
  background: #ffffff;
}

.about-content p {
  margin: 0 0 24px;
  color: #686868;
  font-size: 16px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 38px;
}

.principles article,
.team-list article {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.principles h3,
.team-list h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 500;
}

.principles p,
.team-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.team-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 280px;
  gap: 7vw;
  align-items: center;
  background: #2a2926;
  color: #ffffff;
}

address {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  color: #ddd7ce;
  font-style: normal;
}

address a:hover {
  color: var(--warm);
}

.qr-panel {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 28px;
  background: #ffffff;
  color: var(--ink);
}

.qr-panel img {
  width: 180px;
}

.qr-panel p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 6vw;
  background: #1e1d1b;
  color: #aaa49b;
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #ffffff;
}

.home-footer {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(300px, 0.82fr) minmax(190px, 0.34fr);
  align-items: center;
  gap: clamp(56px, 8vw, 140px);
  min-height: 230px;
  padding: 52px 6vw;
  background: #000000;
  color: #f1f1ef;
  font-size: clamp(17px, 1.25vw, 22px);
  line-height: 1.22;
}

.home-footer p {
  margin: 0;
}

.home-footer-intro {
  display: grid;
  gap: 2px;
  color: #eeeeec;
  font-weight: 300;
  letter-spacing: 0;
}

.home-footer-center {
  display: grid;
  gap: 12px;
  color: #aaa7a0;
  font-size: 13px;
  align-content: center;
}

.home-footer-tel {
  color: #ffffff;
  font-size: clamp(18px, 1.4vw, 24px);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.home-footer-business {
  color: #d8d4cd;
  font-size: clamp(13px, 0.9vw, 16px);
}

.home-footer-center p:last-child {
  margin-top: 34px;
}

.home-footer-qr {
  justify-self: end;
  display: grid;
  justify-items: center;
  gap: 16px;
  color: #f3f2ee;
  text-align: center;
}

.home-footer-qr img {
  width: 128px;
  height: 128px;
  background: #ffffff;
  object-fit: contain;
}

.home-footer-qr p {
  width: 100%;
  font-size: clamp(15px, 1vw, 18px);
  text-align: center;
}

.detail-page,
.static-page {
  background: #ffffff;
}

.static-hero {
  padding: 78px 6vw 58px;
  background: #ffffff;
}

.static-hero h1 {
  max-width: 1060px;
  margin: 0;
  font-size: clamp(36px, 5.8vw, 82px);
  font-weight: 400;
  line-height: 1.12;
}

.about-page {
  background: #ffffff;
}

.about-hero {
  padding-bottom: 76px;
}

.about-profile {
  display: grid;
  grid-template-columns: minmax(260px, 0.56fr) minmax(480px, 1fr);
  gap: clamp(54px, 8vw, 150px);
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 70px 6vw 90px;
  border-top: 1px solid var(--line);
}

.about-philosophy {
  display: grid;
  grid-template-columns: minmax(260px, 0.56fr) minmax(480px, 1fr);
  gap: clamp(54px, 8vw, 150px);
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 70px 6vw 90px;
  background: #f7f7f5;
  border-top: 1px solid var(--line);
}

.about-profile-title p {
  margin: 0 0 18px;
  color: #9a9a9a;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.about-profile-title h2,
.about-team-section h2 {
  margin: 0;
  color: #2f2f2f;
  font-size: clamp(36px, 4vw, 66px);
  font-weight: 300;
  line-height: 1.14;
}

.about-profile-content {
  display: grid;
  gap: 18px;
  color: #666666;
  font-size: clamp(15px, 1vw, 18px);
  line-height: 2;
}

.about-profile-content p {
  margin: 0;
}

.about-principles-section {
  padding: 36px 6vw 92px;
  background: #f7f7f5;
}

.about-principles {
  max-width: var(--content-max);
  margin: 0 auto;
}

.about-team-section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 88px 6vw 120px;
}

.about-reference-page .about-hero {
  max-width: none;
  margin: 0;
  padding: 92px 6vw 44px;
  border-bottom: 1px solid var(--line);
}

.about-reference-page .about-hero h1 {
  color: #343434;
  font-size: clamp(46px, 7vw, 112px);
  font-weight: 650;
  line-height: 0.95;
  letter-spacing: 0;
}

.about-reference-page .about-reference-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: clamp(48px, 8vw, 140px);
  max-width: none;
  margin: 0;
  padding: 58px 6vw 72px;
  border-top: 0;
}

.about-reference-page .about-reference-layout + .about-reference-layout {
  border-top: 1px solid var(--line);
}

.about-reference-page .about-profile-title {
  position: sticky;
  top: 104px;
  align-self: start;
  max-width: 360px;
}

.about-reference-page .about-profile-title h2 {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  font-size: clamp(28px, 2.45vw, 46px);
  font-weight: 300;
  line-height: 1.24;
}

.about-reference-page .about-profile-title h2::after {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  content: "→";
}

.about-reference-page .about-profile-content {
  grid-template-columns: 1fr;
  gap: 18px;
  width: 100%;
  max-width: none;
  padding-top: 4px;
  color: #5f6468;
  font-size: clamp(15px, 0.95vw, 18px);
  line-height: 2.05;
}

.about-reference-page .about-profile-content p {
  text-align: justify;
  text-align-last: left;
}

.about-team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  margin-top: 0;
}

.about-member {
  display: grid;
  grid-template-columns: 112px minmax(0, 760px);
  gap: 26px;
  align-items: start;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.member-photo {
  width: 112px;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #d8d8d8, #eeeeee);
}

.member-copy h3 {
  margin: 0 0 10px;
  color: #2e2e2e;
  font-size: clamp(17px, 1.05vw, 21px);
  font-weight: 500;
  line-height: 1.45;
}

.member-copy p {
  margin: 0 0 8px;
  color: #666666;
  font-size: clamp(13px, 0.86vw, 15px);
  line-height: 1.9;
  text-align: justify;
  text-align-last: left;
}

.contact-page .about-hero h1 {
  color: #343434;
  font-size: clamp(46px, 7vw, 112px);
  font-weight: 650;
  line-height: 0.95;
}

.contact-reference-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.contact-card {
  padding-top: 0;
  border-top: 0;
}

.contact-card h3 {
  margin: 0 0 14px;
  color: #2e2e2e;
  font-size: clamp(18px, 1.15vw, 22px);
  font-weight: 500;
}

.contact-card p,
.contact-card address {
  margin: 0;
  color: #606468;
  font-size: clamp(15px, 0.95vw, 18px);
  font-style: normal;
  line-height: 2;
}

.contact-card address {
  display: grid;
  gap: 4px;
}

.contact-card a:hover {
  color: var(--warm-dark);
}

.qr-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 32px;
  align-items: start;
}

.qr-card img {
  width: 132px;
  height: 132px;
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 10px;
}

.minimal-contact-page {
  background: #ffffff;
}

.minimal-contact {
  min-height: calc(100vh - 76px);
  padding: 54px 6vw 110px;
}

.minimal-contact-rule {
  height: 1px;
  margin-bottom: 72px;
  background: #9d9d9d;
}

.minimal-contact h1 {
  margin: 0;
  color: #111111;
  font-size: clamp(16px, 1.05vw, 20px);
  font-weight: 400;
  line-height: 1.4;
}

.minimal-contact-list {
  display: grid;
  gap: 44px;
  max-width: 680px;
  margin-top: 190px;
  color: #111111;
  font-size: clamp(15px, 1vw, 18px);
  line-height: 1.85;
}

.minimal-contact address,
.minimal-contact-extra {
  display: grid;
  gap: 4px;
  margin: 0;
  font-style: normal;
}

.minimal-contact strong {
  font-weight: 400;
}

.minimal-contact a:hover {
  color: var(--warm-dark);
}

.paton-contact-page {
  background: #ffffff;
}

.paton-contact {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: clamp(120px, 13vw, 250px);
  width: min(calc(100% - 12vw), 1180px);
  max-width: 1180px;
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: clamp(120px, 13vh, 170px) 0 140px;
}

.paton-contact h1 {
  margin: 0;
  color: #70757a;
  font-size: clamp(30px, 2vw, 40px);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: 0.02em;
}

.paton-contact-body {
  display: grid;
  gap: clamp(96px, 14vh, 150px);
  max-width: 690px;
}

.paton-contact-intro {
  margin: 0;
  color: #151515;
  font-size: clamp(18px, 1.15vw, 23px);
  font-weight: 600;
  line-height: 1.92;
  text-align: justify;
  text-align-last: left;
}

.paton-contact-info {
  display: grid;
  gap: 7px;
  margin: 0;
  color: #111111;
  font-size: clamp(15px, 0.95vw, 18px);
  font-style: normal;
  line-height: 1.72;
}

.paton-contact-info strong {
  margin-bottom: 2px;
  font-size: clamp(21px, 1.32vw, 27px);
  font-weight: 600;
  line-height: 1.35;
}

.paton-contact-info strong + span {
  margin-bottom: 22px;
  font-size: clamp(14px, 0.9vw, 17px);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.paton-contact-info a:hover {
  color: var(--warm-dark);
}

.not-found-page {
  min-height: calc(100vh - 306px);
  padding: clamp(120px, 16vh, 190px) 6vw;
  background: #ffffff;
}

.not-found-page p {
  margin: 0 0 18px;
  color: var(--warm-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.not-found-page h1 {
  margin: 0 0 42px;
  color: #2f2f2f;
  font-size: clamp(48px, 8vw, 112px);
  font-weight: 500;
  line-height: 1;
}

.not-found-page a {
  display: inline-block;
  border-bottom: 1px solid currentColor;
  color: #333333;
  font-size: 16px;
  line-height: 1.8;
}

.back-link {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 14px;
}

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

.case-intro {
  padding: 60px 32px 0;
  background: #ffffff;
}

.case-intro-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.48fr) minmax(720px, 1fr);
  column-gap: clamp(90px, 10vw, 220px);
  row-gap: 0;
  max-width: var(--content-max);
  margin: 0 auto;
  background: #f6f6f6;
  padding: 42px 54px 64px;
}

.case-title-box,
.case-desc-box,
.case-meta-box {
  background: transparent;
}

.case-title-box {
  align-self: start;
  justify-self: center;
  min-width: min(390px, 100%);
  padding: 10px 36px;
  text-align: center;
}

.case-title-box h1 {
  margin: 0;
  color: #1f2933;
  font-size: clamp(17px, 1.1vw, 23px);
  font-weight: 500;
  line-height: 1.65;
}

.case-desc-box {
  padding: 10px 0 0;
}

.case-desc-box p {
  margin: 0 0 8px;
  color: #1f2933;
  font-size: clamp(15px, 1.02vw, 19px);
  font-weight: 400;
  line-height: 1.9;
}

.case-desc-box p:last-child {
  margin-bottom: 0;
}

.case-meta-box {
  grid-column: 2;
  margin-top: clamp(80px, 12vw, 240px);
  padding: 0;
}

.case-info {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-info li {
  display: block;
  color: #1f2933;
  font-size: clamp(13px, 0.82vw, 15px);
  line-height: 1.8;
}

.case-info span,
.case-info strong {
  color: #1f2933;
  font-weight: 400;
}

.video-section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 0 36px;
}

.case-video {
  margin: 0;
  background: #111111;
}

.case-video video {
  width: 100%;
  height: auto;
  display: block;
}

.detail-gallery {
  display: grid;
  gap: 18px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 0 86px;
  background: #ffffff;
}

.detail-gallery figure {
  margin: 0;
  background: #f1f0ed;
}

.detail-gallery img,
.detail-gallery video {
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

.work-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 0 86px;
  background: #ffffff;
}

.work-pager a {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: #666666;
}

.work-pager a:last-child {
  text-align: right;
}

.work-pager a:hover {
  color: var(--warm-dark);
}

.related-section {
  padding: 86px 32px;
  background: var(--bg);
}

.related-section > .eyebrow,
.related-section > h2,
.related-grid {
  max-width: var(--content-max);
  margin-right: auto;
  margin-left: auto;
}

.related-section h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 400;
}

.related-section .eyebrow {
  margin-bottom: 8px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.related-card {
  display: block;
  background: #ffffff;
}

.related-card img {
  width: 100%;
  aspect-ratio: 1 / 0.72;
  object-fit: cover;
}

.related-card span {
  display: block;
  padding: 16px;
  color: #444444;
  font-size: 14px;
  line-height: 1.5;
}

.related-card:hover span {
  color: var(--warm-dark);
}

.standalone {
  padding-top: 108px;
}

.cases-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}

.cases-toolbar p {
  margin: 0;
  color: #8a8a8a;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

.standalone .filter-bar {
  justify-content: flex-end;
  gap: 28px;
  margin-bottom: 0;
  text-align: right;
}

.standalone .filter-bar button {
  min-height: 0;
  border: 0;
  background: transparent;
  padding: 0;
  color: #8a8a8a;
  font-size: 15px;
  line-height: 1.4;
}

.standalone .filter-bar button.is-active,
.standalone .filter-bar button:hover {
  background: transparent;
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 1080px) {
  .hero,
  .about-section,
  .contact-section,
  .section-head,
  .about-profile,
  .about-philosophy,
  .about-reference-page .about-reference-layout,
  .case-intro-grid {
    grid-template-columns: 1fr;
  }

  .about-reference-page .about-profile-title {
    position: static;
  }

  .about-reference-page .about-profile-content {
    grid-template-columns: 1fr;
  }

  .paton-contact {
    grid-template-columns: 1fr;
    gap: 72px;
  }

  .paton-contact-body {
    max-width: 100%;
  }

  .hero {
    background: #ffffff;
  }

  .hero-gallery {
    min-height: 520px;
  }

  .work-grid,
  .team-list,
  .about-team-grid,
  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-team-grid {
    grid-template-columns: 1fr;
  }

  .case-meta-box {
    grid-column: 1;
    margin-top: 24px;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 5vw;
  }

  .brand-logo {
    height: 34px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 14px;
  }

  .hero,
  .works-section,
  .about-section,
  .team-section,
  .contact-section {
    padding: 64px 5vw;
  }

  .home-hero {
    padding: 0;
  }

  .hero-slider {
    height: clamp(360px, 62vh, 620px);
  }

  .hero-slide {
    flex-basis: 100vw;
  }

  .hero-slide span {
    right: 22px;
    bottom: 24px;
    max-width: 72%;
    font-size: clamp(16px, 5vw, 28px);
  }

  .works-section.standalone {
    padding-top: 72px;
  }

  .cases-toolbar {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 32px;
  }

  .standalone .filter-bar {
    justify-content: flex-start;
    gap: 16px 22px;
    text-align: left;
  }

  .hero {
    min-height: auto;
  }

  .hero-gallery {
    grid-template-rows: repeat(4, 92px);
    min-height: 0;
  }

  .hero-gallery img:nth-child(1) {
    grid-column: 1 / 7;
    grid-row: 1 / 3;
  }

  .hero-gallery img:nth-child(2) {
    grid-column: 1 / 4;
    grid-row: 3 / 5;
  }

  .hero-gallery img:nth-child(3) {
    grid-column: 4 / 7;
    grid-row: 3 / 5;
  }

  .hero-gallery img:nth-child(4) {
    display: none;
  }

  .intro-strip,
  .principles,
  .team-list {
    grid-template-columns: 1fr;
  }

  .about-profile,
  .about-philosophy,
  .about-team-section {
    padding-right: 5vw;
    padding-left: 5vw;
  }

  .about-reference-page .about-hero {
    padding: 56px 5vw 34px;
  }

  .about-reference-page .about-hero h1 {
    font-size: clamp(40px, 13vw, 68px);
  }

  .about-reference-page .about-reference-layout {
    padding: 42px 5vw 52px;
  }

  .about-reference-page .about-profile-title h2 {
    font-size: clamp(28px, 9vw, 40px);
    gap: 16px;
  }

  .about-reference-page .about-profile-title h2::after {
    width: 42px;
    height: 42px;
    font-size: 22px;
  }

  .about-member {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .member-photo {
    width: min(132px, 42vw);
  }

  .qr-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .minimal-contact {
    min-height: auto;
    padding: 36px 5vw 76px;
  }

  .minimal-contact-rule {
    margin-bottom: 46px;
  }

  .minimal-contact-list {
    margin-top: 120px;
    gap: 34px;
  }

  .paton-contact {
    width: calc(100% - 10vw);
    min-height: auto;
    padding: 82px 0 96px;
    gap: 54px;
  }

  .paton-contact-body {
    gap: 72px;
  }

  .paton-contact-intro {
    font-size: 17px;
    line-height: 1.85;
  }

  .home-footer {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 54px 5vw 50px;
  }

  .home-footer-center {
    gap: 20px;
  }

  .home-footer-qr {
    justify-self: start;
    text-align: left;
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .work-card,
  .work-card img {
    min-height: 210px;
  }

  .case-intro,
  .video-section,
  .detail-gallery,
  .work-pager,
  .related-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .case-intro-grid {
    padding: 28px 18px 40px;
  }

  .case-title-box {
    min-width: 0;
    width: 100%;
  }

  .case-desc-box,
  .case-meta-box {
    padding: 18px;
  }

  .work-pager {
    grid-template-columns: 1fr;
  }

  .work-pager a:last-child {
    text-align: left;
  }

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

@media (max-width: 480px) {
  .work-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .primary-link,
  .plain-link {
    text-align: center;
  }
}
