:root {
  --ink: #10100f;
  --ink-soft: #2a2926;
  --muted: #6e6a63;
  --line: #ded8ce;
  --paper: #f7f4ee;
  --paper-strong: #fffdfa;
  --gold: #c6a274;
  --gold-deep: #8c6b43;
  --black: #070707;
  --header-height: 78px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Noto Serif SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

body.panel-open {
  overflow: hidden;
}

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

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.site-header {
  align-items: center;
  color: #fff;
  display: grid;
  grid-template-columns: 200px 1fr auto auto;
  height: var(--header-height);
  left: 0;
  padding: 0 clamp(22px, 4.8vw, 42px);
  position: fixed;
  right: 0;
  top: 0;
  transition: background 240ms ease, border-color 240ms ease, color 240ms ease;
  z-index: 50;
}

.site-header.scrolled {
  background: rgba(247, 244, 238, 0.92);
  border-bottom: 1px solid rgba(16, 16, 15, 0.12);
  color: var(--ink);
  backdrop-filter: blur(18px);
}

.brand {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(24px, 2.3vw, 34px);
  font-weight: 700;
  white-space: nowrap;
}

.desktop-nav {
  align-items: center;
  display: flex;
  gap: clamp(18px, 2.4vw, 34px);
  justify-content: center;
}

.desktop-nav a {
  font-size: 14px;
  opacity: 0.86;
  padding: 28px 0 25px;
  position: relative;
}

.desktop-nav a::after {
  background: currentColor;
  bottom: 22px;
  content: "";
  height: 1px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 220ms ease;
  width: 26px;
}

.desktop-nav a.active::after,
.desktop-nav a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.outline-btn,
.solid-btn,
.text-button,
.menu-toggle,
.panel-close,
.modal-close,
.back-top {
  align-items: center;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
}

.outline-btn {
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
  height: 42px;
  min-width: 112px;
  padding: 0 18px;
}

.outline-btn:hover,
.solid-btn:hover {
  transform: translateY(-1px);
}

.nav-cta {
  font-size: 14px;
}

.menu-toggle {
  background: transparent;
  color: inherit;
  display: none;
  font-size: 26px;
  height: 44px;
  width: 44px;
}

.hero {
  background: var(--black);
  color: #fff;
  min-height: 100svh;
  overflow: hidden;
  position: relative;
}

.hero > img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.74) 0%, rgba(0, 0, 0, 0.24) 42%, rgba(0, 0, 0, 0.36) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0.03) 44%, rgba(0, 0, 0, 0.62) 100%);
  inset: 0;
  position: absolute;
}

.hero-content {
  left: clamp(34px, 8vw, 116px);
  max-width: 620px;
  position: absolute;
  top: 50%;
  transform: translateY(-43%);
  z-index: 1;
}

.eyebrow,
.section-kicker {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.08em;
  margin: 0 0 26px;
  text-transform: uppercase;
}

.hero h1 {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(64px, 8vw, 128px);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 24px;
}

.hero-copy {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(25px, 2.5vw, 41px);
  line-height: 1.45;
  margin: 0;
}

.hero-tags {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 48px;
}

.hero-tags span {
  border-right: 1px solid rgba(255, 255, 255, 0.42);
  line-height: 1;
  padding-right: 18px;
}

.hero-tags span:last-child {
  border-right: 0;
}

.explore-link {
  align-items: center;
  bottom: clamp(44px, 7vw, 78px);
  display: inline-flex;
  gap: 12px;
  left: 0;
  position: absolute;
  transform: translateY(calc(43vh - 36px));
}

.explore-link i {
  border: 1px solid rgba(255, 255, 255, 0.65);
  height: 36px;
  line-height: 34px;
  text-align: center;
  width: 36px;
}

.hero-side {
  align-items: flex-end;
  bottom: 38px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: absolute;
  right: clamp(22px, 4.8vw, 44px);
  z-index: 1;
}

.hero-side button {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.58);
  color: #fff;
  cursor: pointer;
  height: 46px;
  padding: 0 20px;
}

.hero-side span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.section-pad {
  padding: clamp(72px, 9vw, 130px) clamp(22px, 7vw, 104px);
}

.section-grid {
  align-items: center;
  display: grid;
  gap: clamp(44px, 8vw, 120px);
  grid-template-columns: minmax(0, 0.84fr) minmax(320px, 1fr);
}

.copy-block h2,
.section-head h2,
.cta-copy h2 {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 500;
  line-height: 1.45;
  margin: 0;
}

.copy-block p:not(.section-kicker),
.section-head p,
.cta-copy p:not(.section-kicker) {
  color: var(--muted);
  font-size: 15px;
  line-height: 2.1;
  margin: 30px 0 0;
  max-width: 640px;
}

.image-frame {
  aspect-ratio: 1.22;
  overflow: hidden;
}

.image-frame img {
  height: 100%;
  object-fit: cover;
  transition: transform 900ms ease;
  width: 100%;
}

.image-frame:hover img {
  transform: scale(1.035);
}

.text-link,
.text-button {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  gap: 12px;
  margin-top: 34px;
}

.text-button {
  background: transparent;
  font-size: 14px;
  margin-top: 0;
  padding: 0;
}

.metrics {
  background: var(--black);
  color: #fff;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 45px clamp(22px, 7vw, 110px);
}

.metric {
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  min-height: 86px;
  padding: 0 clamp(16px, 3vw, 48px);
}

.metric:last-child {
  border-right: 0;
}

.metric strong,
.metric span {
  color: var(--gold);
  font-family: "Noto Serif SC", serif;
  font-size: clamp(34px, 3.2vw, 48px);
  font-weight: 500;
}

.metric span {
  font-size: 24px;
}

.metric p {
  color: rgba(255, 255, 255, 0.72);
  margin: 12px 0 0;
}

.section-head {
  align-items: flex-end;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 34px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.filter-row button {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  cursor: pointer;
  height: 36px;
  padding: 0 16px;
}

.filter-row button.active,
.filter-row button:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

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

.project-card {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.project-card[hidden] {
  display: none;
}

.project-media {
  aspect-ratio: 0.78;
  background: #ddd4c8;
  overflow: hidden;
}

.project-media img {
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
  width: 100%;
}

.project-card:hover .project-media img,
.project-card:focus-visible .project-media img {
  transform: scale(1.055);
}

.project-meta {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
  padding: 20px 0 0;
}

.project-meta h3 {
  font-family: "Noto Serif SC", serif;
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 12px;
}

.project-meta p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.project-meta i {
  align-items: center;
  border-bottom: 1px solid var(--ink);
  display: inline-flex;
  height: 30px;
}

.progress-line {
  background: #d8d2c9;
  height: 3px;
  margin: 54px auto 0;
  max-width: 420px;
}

.progress-line span {
  background: var(--ink);
  display: block;
  height: 100%;
  transition: width 260ms ease;
  width: 24%;
}

.service {
  padding-top: 56px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.service-item {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  min-height: 168px;
  padding: 16px clamp(12px, 2vw, 34px);
  text-align: center;
  transition: background 220ms ease, transform 220ms ease;
}

.service-item:last-child {
  border-right: 0;
}

.service-item i {
  color: var(--gold-deep);
  font-size: 32px;
}

.service-item strong {
  display: block;
  font-family: "Noto Serif SC", serif;
  font-size: 18px;
  font-weight: 500;
  margin: 20px 0 12px;
}

.service-item span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  line-height: 1.7;
}

.service-item.active,
.service-item:hover {
  background: var(--paper-strong);
  transform: translateY(-4px);
}

.service-detail {
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 2;
  margin-top: 36px;
  padding-top: 24px;
}

.honors {
  background: var(--black);
  color: #fff;
  padding: 62px clamp(22px, 7vw, 104px);
}

.honors-head {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 38px;
}

.honors h2 {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  margin: 0;
}

.honors p {
  color: rgba(255, 255, 255, 0.74);
  margin: 0;
}

.honor-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.honor-row div {
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  min-height: 92px;
  padding: 4px clamp(12px, 2vw, 28px);
}

.honor-row div:last-child {
  border-right: 0;
}

.honor-row strong {
  color: #d6c0a0;
  display: block;
  font-size: clamp(20px, 2.1vw, 31px);
  line-height: 1.05;
  margin-bottom: 16px;
}

.honor-row span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.7;
}

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

.insight-list button {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 24px;
  grid-template-columns: 70px 1fr 44px;
  min-height: 96px;
  padding: 0;
  text-align: left;
  width: 100%;
}

.insight-list span {
  color: var(--gold-deep);
}

.insight-list strong {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 500;
}

.insight-list i {
  justify-self: end;
}

.contact-cta {
  align-items: stretch;
  background: var(--paper-strong);
  display: grid;
  grid-template-columns: 1fr minmax(340px, 440px);
  min-height: 420px;
  overflow: hidden;
  position: relative;
}

.contact-cta > img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center right;
  position: absolute;
  width: 100%;
}

.contact-cta::after {
  background: rgba(247, 244, 238, 0.88);
  content: "";
  inset: 0 33% 0 0;
  position: absolute;
}

.cta-copy {
  align-self: center;
  max-width: 680px;
  padding: clamp(54px, 7vw, 96px) clamp(22px, 7vw, 104px);
  position: relative;
  z-index: 1;
}

.contact-form {
  align-self: center;
  background: rgba(16, 16, 15, 0.92);
  color: #fff;
  display: grid;
  gap: 16px;
  margin: clamp(24px, 4vw, 54px);
  padding: 32px;
  position: relative;
  z-index: 1;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.contact-form input,
.contact-form select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 0;
  color: #fff;
  height: 42px;
  outline: 0;
}

.contact-form input:focus,
.contact-form select:focus {
  border-bottom-color: var(--gold);
}

.contact-form select option {
  color: var(--ink);
}

.solid-btn {
  background: var(--ink);
  color: #fff;
  gap: 14px;
  height: 48px;
  margin-top: 8px;
  padding: 0 22px;
  transition: transform 180ms ease, background 180ms ease;
}

.contact-form .solid-btn {
  background: var(--paper-strong);
  color: var(--ink);
  justify-content: space-between;
  width: 100%;
}

.form-note {
  color: #d7be98;
  min-height: 20px;
  margin: 0;
}

.mobile-panel {
  background: var(--black);
  color: #fff;
  display: grid;
  gap: 22px;
  grid-auto-rows: min-content;
  inset: 0 0 0 auto;
  padding: 26px;
  position: fixed;
  transform: translateX(100%);
  transition: transform 240ms ease;
  width: min(100vw, 430px);
  z-index: 80;
}

.mobile-panel.open {
  transform: translateX(0);
}

.mobile-panel a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-family: "Noto Serif SC", serif;
  font-size: 22px;
  padding-bottom: 16px;
}

.panel-close {
  background: transparent;
  color: #fff;
  font-size: 28px;
  height: 44px;
  justify-self: end;
  width: 44px;
}

.project-modal {
  background: var(--paper-strong);
  border: 0;
  color: var(--ink);
  max-width: min(1040px, calc(100vw - 32px));
  padding: 0;
  width: 100%;
}

.rights-modal {
  background: #11110f;
  border: 1px solid rgba(198, 162, 116, 0.36);
  color: #fff;
  max-width: min(620px, calc(100vw - 32px));
  padding: clamp(28px, 4vw, 46px);
  width: 100%;
}

.rights-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.rights-mark {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.rights-modal h2 {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  line-height: 1.24;
  margin: 0 44px 20px 0;
}

.rights-modal p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 2;
  margin: 0 0 14px;
}

.rights-modal .rights-lead {
  color: #fff;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.7;
}

.rights-check {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding-top: 22px;
}

.rights-check input {
  accent-color: var(--gold);
  height: 16px;
  width: 16px;
}

.rights-confirm {
  align-items: center;
  background: var(--paper-strong);
  border: 0;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  gap: 16px;
  height: 48px;
  justify-content: space-between;
  margin-top: 24px;
  min-width: 180px;
  padding: 0 20px;
}

.rights-close {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 22px;
  height: 40px;
  justify-content: center;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 40px;
}

.project-modal::backdrop {
  background: rgba(0, 0, 0, 0.68);
}

.project-modal[open] {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.82fr);
}

.modal-image {
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  width: 100%;
}

.modal-copy {
  align-self: center;
  padding: clamp(30px, 5vw, 58px);
}

.modal-copy h3 {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
}

.modal-copy p {
  color: var(--muted);
  line-height: 1.9;
}

.modal-copy dl {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
  padding-top: 24px;
}

.modal-copy dl div {
  display: grid;
  grid-template-columns: 64px 1fr;
}

.modal-copy dt {
  color: var(--gold-deep);
}

.modal-copy dd {
  margin: 0;
}

.modal-close {
  background: rgba(16, 16, 15, 0.86);
  color: #fff;
  font-size: 24px;
  height: 46px;
  position: absolute;
  right: 0;
  top: 0;
  width: 46px;
  z-index: 1;
}

.back-top {
  background: var(--ink);
  bottom: 24px;
  color: #fff;
  height: 44px;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 24px;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
  width: 44px;
  z-index: 45;
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reveal {
  opacity: 1;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
}

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

.hero-content.reveal {
  transform: translateY(calc(-43% + 22px));
}

.hero-content.reveal.visible {
  transform: translateY(-43%);
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .section-grid,
  .contact-cta {
    grid-template-columns: 1fr;
  }

  .metrics,
  .project-grid,
  .service-grid,
  .honor-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric:nth-child(2n),
  .service-item:nth-child(2n),
  .honor-row div:nth-child(2n) {
    border-right: 0;
  }

  .service-item {
    border-bottom: 1px solid var(--line);
  }

  .contact-cta::after {
    inset: 0;
  }
}

@media (max-width: 700px) {
  .site-header {
    height: 66px;
    padding: 0 18px;
  }

  .brand {
    font-size: 24px;
  }

  .nav-cta {
    display: none;
  }

  .mobile-panel {
    width: 100vw;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-content {
    left: 24px;
    max-width: calc(100vw - 48px);
    top: 48%;
  }

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

  .hero-copy {
    font-size: 24px;
  }

  .hero-tags {
    gap: 12px;
    margin-top: 30px;
  }

  .explore-link {
    transform: translateY(calc(38vh - 28px));
  }

  .hero-side {
    display: none;
  }

  .section-pad {
    padding: 62px 22px;
  }

  .section-head,
  .honors-head {
    align-items: start;
    flex-direction: column;
  }

  .metrics,
  .project-grid,
  .service-grid,
  .honor-row {
    grid-template-columns: 1fr;
  }

  .metric,
  .service-item,
  .honor-row div {
    border-right: 0;
  }

  .metric {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    padding: 18px 0;
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .filter-row {
    overflow-x: auto;
    padding-bottom: 6px;
    flex-wrap: nowrap;
  }

  .filter-row button {
    white-space: nowrap;
  }

  .insight-list button {
    grid-template-columns: 42px 1fr 28px;
    min-height: 86px;
  }

  .contact-form {
    margin: 0 22px 38px;
    padding: 24px;
  }

  .project-modal[open] {
    grid-template-columns: 1fr;
  }

  .modal-image {
    min-height: 300px;
  }
}
