/*
  2026 public redesign layer
  Visual target: quiet luxury atelier + executive procurement system.
  This file deliberately overrides site.css without changing its behavior contracts.
*/

:root {
  --bg: #f5f4ef;
  --surface: #eceae2;
  --surface-strong: #fffefa;
  --surface-metal: #dedcd3;
  --ink: #141512;
  --ink-soft: #30322e;
  --muted: #62655f;
  --placeholder: #777a73;
  --line: #d7d5cc;
  --line-strong: #a6a79f;
  --accent: #163f32;
  --accent-hover: #0f3026;
  --accent-soft: #e4ece7;
  --on-accent: #fffefa;
  --gold: #c9a968;
  --gold-soft: #e2d4aa;
  --graphite: #111311;
  --graphite-soft: #1c1f1c;
  --danger: #8d2f2b;
  --danger-soft: #f6e7e4;
  --success: #26624d;
  --focus: #b9934a;
  --font-sans: "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-display: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", STSong, SimSun, serif;
  --radius-panel: 0;
  --radius-media: 0;
  --radius-control: 2px;
  --radius-pill: 2px;
  --header-height: 84px;
  --shell: min(1480px, calc(100vw - 96px));
  --section-space: clamp(5.5rem, 9vw, 9.5rem);
}

:root[data-theme="dark"] {
  --bg: #111311;
  --surface: #191c19;
  --surface-strong: #202420;
  --surface-metal: #2c302c;
  --ink: #f5f2e9;
  --ink-soft: #d6d5cd;
  --muted: #a6aaa1;
  --placeholder: #999d94;
  --line: #343834;
  --line-strong: #5b6059;
  --accent: #83aa98;
  --accent-hover: #a0c0b1;
  --accent-soft: #24372f;
  --on-accent: #101512;
  --gold: #d7ba76;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111311;
    --surface: #191c19;
    --surface-strong: #202420;
    --surface-metal: #2c302c;
    --ink: #f5f2e9;
    --ink-soft: #d6d5cd;
    --muted: #a6aaa1;
    --placeholder: #999d94;
    --line: #343834;
    --line-strong: #5b6059;
    --accent: #83aa98;
    --accent-hover: #a0c0b1;
    --accent-soft: #24372f;
    --on-accent: #101512;
    --gold: #d7ba76;
  }
}

body {
  background: var(--bg);
  letter-spacing: 0.005em;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 560;
  letter-spacing: -0.035em;
}

.shell,
.section-shell {
  width: var(--shell);
}

.site-header {
  height: var(--header-height);
  border-bottom-color: #2d302d;
  background: var(--graphite);
  color: #f5f2e9;
}

.site-header__inner {
  gap: clamp(1.5rem, 3vw, 3.75rem);
}

.wordmark {
  flex: 0 0 auto;
  width: clamp(176px, 16vw, 250px);
  min-width: 0;
}

.wordmark__picture,
.wordmark__logo {
  display: block;
  width: 100%;
}

.wordmark__logo {
  height: 56px;
  object-fit: contain;
  object-position: left center;
}

.wordmark__fallback {
  color: var(--gold-soft);
}

.desktop-nav {
  margin-left: auto;
}

.desktop-nav .nav-link {
  color: #c9ccc6;
  font-size: 0.82rem;
  font-weight: 560;
  letter-spacing: 0.035em;
}

.desktop-nav .nav-link:hover,
.desktop-nav .nav-link.is-current {
  color: #fffefa;
}

.desktop-nav .nav-link::after {
  background: var(--gold);
}

.header-actions {
  gap: 8px;
}

.text-action {
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid #59605a;
  background: transparent;
  color: #fffefa;
  font-size: 0.8rem;
}

.text-action:hover {
  border-color: var(--gold);
  background: transparent;
  color: var(--gold-soft);
}

.site-header .icon-button,
.site-header .menu-toggle {
  color: #d8d9d4;
  border-color: #474c47;
  background: transparent;
}

.site-header .icon-button:hover,
.site-header .menu-toggle:hover {
  color: var(--gold-soft);
  border-color: var(--gold);
}

.mobile-menu__panel {
  background: var(--graphite);
  color: #f5f2e9;
}

.mobile-menu__title,
.mobile-nav a,
.mobile-menu__utility a,
.mobile-menu__utility button {
  color: #f5f2e9;
}

.mobile-nav a[aria-current="page"] {
  color: var(--gold-soft);
}

.button {
  min-height: 52px;
  padding-inline: 24px;
  border-radius: 2px;
  font-size: 0.88rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.button--primary {
  background: var(--accent);
}

.button--secondary {
  border-color: var(--line-strong);
}

.section-kicker,
.hero-eyebrow {
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-heading {
  gap: 20px;
}

.section-heading h2,
.album-section__intro h2,
.closing-call h2,
.case-method h2 {
  font-size: clamp(2.45rem, 4.5vw, 4.7rem);
  line-height: 1.05;
}

.home-hero {
  width: 100%;
  min-height: min(560px, calc(100dvh - var(--header-height)));
  grid-template-columns: minmax(0, 0.94fr) minmax(520px, 1.06fr);
  gap: 0;
  padding: 0;
  background: var(--surface-strong);
}

.home-hero__copy {
  min-height: inherit;
  align-content: center;
  gap: 20px;
  padding: clamp(3rem, 5vw, 5.5rem) clamp(3rem, 7vw, 7rem) clamp(3rem, 5vw, 5.5rem) max(48px, calc((100vw - min(1480px, calc(100vw - 96px))) / 2));
}

.home-hero h1 {
  max-width: 690px;
  font-size: clamp(3.6rem, 5.2vw, 5.7rem);
  line-height: 1.02;
}

.home-hero__copy > p:not(.hero-eyebrow) {
  max-width: 37ch;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.9;
}

.hero-actions {
  margin-top: 8px;
}

.fabric-stage {
  min-height: inherit;
  border: 0;
  background: var(--graphite);
}

.fabric-stage__media {
  inset: 0;
  border: 0;
}

.fabric-stage__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 1px solid #343834;
  pointer-events: none;
}

.fabric-stage__media img {
  filter: saturate(0.76) contrast(1.07);
}

.fabric-stage__brand {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(3rem, 7vw, 7rem);
}

.fabric-stage__brand img {
  width: min(72%, 520px);
  height: auto;
  max-height: 72%;
  object-fit: contain;
}

.fabric-stage figcaption,
.inner-hero__visual figcaption {
  right: 30px;
  bottom: 25px;
  left: 30px;
  max-width: 54ch;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d7d9d3;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.proof-band {
  background: var(--bg);
}

.proof-band__inner {
  min-height: 158px;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
}

.proof-band h2 {
  font-size: clamp(1.65rem, 2.5vw, 2.55rem);
}

.client-logos img {
  filter: grayscale(1) contrast(0.9);
}

.service-section {
  display: block;
  padding-block: clamp(2rem, 3vw, 3rem) clamp(4.5rem, 7vw, 7rem);
}

.service-section .section-heading {
  display: grid;
  grid-template-columns: minmax(150px, 0.3fr) minmax(360px, 1.05fr) minmax(260px, 0.65fr);
  align-items: center;
  max-width: none;
  gap: 12px clamp(2rem, 6vw, 7rem);
}

.service-section .section-heading h2 {
  grid-column: 2;
  font-size: clamp(2rem, 3.2vw, 3.35rem);
}

.service-section .section-heading > p:not(.section-kicker) {
  grid-column: 3;
  font-size: 0.96rem;
}

.service-section .rail-controls {
  display: none;
}

.service-rail {
  display: grid;
  grid-template-columns: repeat(9, minmax(120px, 1fr));
  grid-auto-flow: initial;
  grid-auto-columns: initial;
  gap: 0;
  margin-top: clamp(1.5rem, 2.5vw, 2.5rem);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.service-step {
  min-height: 210px;
  padding: 26px 20px 24px;
  border-top: 0;
  border-right: 1px solid var(--line);
}

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

.service-step > i {
  margin-bottom: auto;
  color: var(--accent);
  font-size: 1.5rem;
}

.service-step h3 {
  margin-top: 42px;
  margin-bottom: 0;
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.service-step p {
  display: none;
}

.procurement-path {
  padding-block: clamp(4rem, 7vw, 7rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.procurement-path__intro {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1.65fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 7rem);
}

.procurement-path__intro h2 {
  max-width: 820px;
  font-size: clamp(2.2rem, 4vw, 4.1rem);
}

.procurement-path__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(3rem, 6vw, 6rem);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.procurement-path__steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  min-height: 185px;
  padding: 30px clamp(22px, 3vw, 42px);
  border-right: 1px solid var(--line);
}

.procurement-path__steps li:last-child {
  border-right: 0;
}

.procurement-path__steps > li > span {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 2.35rem;
  line-height: 1;
}

.procurement-path__steps div {
  display: grid;
  align-content: start;
  gap: 13px;
}

.procurement-path__steps h3 {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 680;
  letter-spacing: 0.02em;
}

.procurement-path__steps p {
  color: var(--muted);
  font-size: 0.88rem;
}

.industry-section,
.album-section,
.principles,
.cooperation,
.case-gallery,
.contact-faq {
  border-top-color: var(--line);
}

.industry-mosaic {
  gap: 1px;
  background: var(--line);
}

.industry-piece {
  border: 0;
  background: var(--bg);
}

.industry-piece__visual,
.industry-piece--4 .industry-piece__visual,
.solution-chapter__visual,
.case-item__media,
.case-empty__visual,
.craft-sequence__canvas,
.inner-hero__visual,
.address-band,
.not-found__visual {
  border-radius: 0;
}

.industry-piece__body {
  padding: 28px 26px 34px;
}

.industry-piece--4 .industry-piece__body {
  background: var(--graphite);
  color: #f4f1e8;
}

.industry-piece--4 .industry-piece__body p {
  color: #aeb2aa;
}

.industry-piece--4 .industry-piece__body > i,
.industry-piece--4 .industry-piece__body a {
  color: #e1d0a2;
}

.album-section {
  display: block;
}

.album-section__intro {
  position: static;
  max-width: 900px;
}

.album-showcase {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(260px, 28vw, 410px);
  grid-template-columns: none;
  gap: clamp(1rem, 2vw, 1.75rem);
  margin-top: clamp(3rem, 6vw, 6rem);
  padding-bottom: 20px;
  overflow-x: auto;
  scroll-snap-type: inline mandatory;
}

.album-preview,
.album-preview:nth-child(3n + 1) {
  grid-column: auto;
  scroll-snap-align: start;
}

.album-preview__media,
.album-preview:nth-child(3n + 1) .album-preview__media {
  aspect-ratio: 4 / 3;
  border-radius: 0;
}

.album-preview__meta h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 650;
}

.album-empty,
.contact-workspace__form,
.wechat-card,
.submission-note {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface-strong);
}

.closing-call {
  padding: clamp(4.5rem, 8vw, 8rem) clamp(0px, 3vw, 48px);
}

.inner-hero {
  grid-template-columns: minmax(320px, 0.8fr) minmax(480px, 1.2fr);
  min-height: min(760px, calc(100dvh - var(--header-height)));
  padding-block: 0;
}

.inner-hero h1,
.case-hero h1,
.contact-hero h1 {
  font-size: clamp(3.5rem, 5.8vw, 6.2rem);
}

.inner-hero__visual {
  min-height: min(660px, 70dvh);
  background: var(--graphite-soft);
}

.inner-hero__visual canvas,
.craft-sequence__canvas canvas,
.solution-chapter__visual canvas,
.case-item__media canvas,
.case-empty__visual canvas,
.address-band canvas,
.not-found__visual canvas {
  filter: grayscale(1) contrast(1.12);
}

.about-statement,
.solution-index,
.case-method,
.contact-workspace,
.contact-faq {
  gap: clamp(3rem, 8vw, 9rem);
}

.principle-row,
.solution-index__links a,
.solution-chapter,
.solution-chapter__content li,
.case-method__points p,
.faq-list details,
.privacy-page__content section {
  border-color: var(--line);
}

.solution-chapter__content h2,
.case-item__body h3,
.form-intro h2,
.address-band h2,
.privacy-page__header h1 {
  font-family: var(--font-display);
}

.cooperation-flow article,
.principle-row,
.case-item__body,
.contact-detail {
  border-top-color: var(--line-strong);
}

.field input,
.field textarea,
.file-drop {
  border-radius: 0;
  background: var(--bg);
}

.wechat-card > img {
  border-radius: 0;
}

.site-footer {
  border-top-color: #2f332f;
  background: var(--graphite);
  color: #f4f1e8;
}

.footer-grid {
  grid-template-columns: minmax(300px, 1.2fr) minmax(300px, 0.8fr) auto;
}

.footer-brand__logo {
  width: min(100%, 330px);
  height: auto;
  margin-bottom: 18px;
}

.footer-brand__name,
.footer-contact p,
.footer-links,
.site-footer a {
  color: #ecebe5;
}

.footer-brand > p:last-child,
.footer-legal {
  color: #9ea39b;
}

.footer-contact i {
  color: var(--gold);
}

.footer-legal {
  border-top-color: #303430;
}

@media (max-width: 1180px) {
  :root {
    --shell: min(100% - 56px, 1120px);
  }

  .home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(430px, 0.9fr);
  }

  .home-hero__copy {
    padding-left: 40px;
  }

  .service-rail {
    grid-template-columns: repeat(9, minmax(140px, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 74px;
    --shell: min(100% - 40px, 820px);
  }

  .wordmark {
    width: 180px;
  }

  .home-hero,
  .inner-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-section .section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .service-section .section-heading h2,
  .service-section .section-heading > p:not(.section-kicker) {
    grid-column: auto;
  }

  .home-hero__copy {
    min-height: 610px;
    padding: 72px max(24px, calc((100vw - var(--shell)) / 2));
  }

  .fabric-stage {
    min-height: 600px;
  }

  .proof-band__inner,
  .procurement-path__intro,
  .about-statement,
  .solution-index,
  .case-method,
  .contact-workspace,
  .contact-faq {
    grid-template-columns: minmax(0, 1fr);
  }

  .procurement-path__steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .procurement-path__steps li {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .procurement-path__steps li:last-child {
    border-bottom: 0;
  }

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

  .footer-links {
    grid-column: 1 / -1;
    grid-auto-flow: column;
    justify-content: start;
    justify-items: start;
  }
}

@media (max-width: 700px) {
  :root {
    --shell: calc(100% - 32px);
    --section-space: 5rem;
  }

  .wordmark {
    width: 46px;
  }

  .wordmark__logo {
    width: 46px;
    height: 50px;
  }

  .header-actions .text-action,
  .header-actions .theme-toggle {
    display: none;
  }

  .home-hero__copy {
    min-height: 560px;
    padding: 64px 22px;
  }

  .home-hero h1 {
    font-size: clamp(2.8rem, 12.5vw, 3.7rem);
    line-height: 1.06;
  }

  .fabric-stage {
    min-height: 480px;
  }

  .proof-band__inner {
    padding-block: 44px;
  }

  .service-rail {
    grid-template-columns: repeat(9, minmax(128px, 1fr));
  }

  .service-step {
    min-height: 180px;
  }

  .album-showcase {
    grid-auto-columns: min(82vw, 330px);
  }

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

  .footer-links {
    grid-column: auto;
    grid-auto-flow: row;
  }
}

@media (prefers-reduced-motion: reduce) {
  .album-preview__media img,
  .industry-piece__visual img,
  .case-item__media img {
    transition: none;
  }
}
