:root {
  color-scheme: light;
  --paper: #f8f6f1;
  --ink: #1c2236;
  --muted: #555767;
  --line: #cdcbd0;
  --accent: #b93219;
  --orange: #f45f40;
  --blue: #232b49;
  --poster-ink: #121529;
  --signal: #ff855f;
  --white: #fffdf8;
  --heading: "Avenir Next", "Century Gothic", "Segoe UI", sans-serif;
  --body: "Avenir Next", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Baskerville", "Iowan Old Style", Georgia, serif;
  --header-height: 5.3rem;
  --gutter: clamp(1.25rem, 4.25vw, 4.5rem);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 6.25rem; }
body { margin: 0; padding-top: var(--header-height); background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--body); }
body:has(dialog[open]) { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .25em; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, figure { margin: 0; }
h1, h2, h3 { font-weight: 650; font-family: var(--heading); }
h2 { font-size: clamp(2.55rem, 4.25vw, 4.6rem); line-height: 1.02; letter-spacing: -.066em; }
p { overflow-wrap: break-word; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
:lang(zh-Hans) h1, :lang(zh-Hans) h2, :lang(zh-Hans) h3 {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  letter-spacing: -.045em;
  font-weight: 700;
}

.wrap { width: calc(100% - 2 * var(--gutter)); max-width: 85rem; margin-inline: auto; }
.eyebrow { font-size: .875rem; font-weight: 650; letter-spacing: .09em; line-height: 1.35; }
:lang(zh-Hans) .eyebrow { letter-spacing: .13em; }
.skip-link { position: fixed; z-index: 10; inset: .5rem auto auto .5rem; padding: .7rem 1rem; background: var(--white); }
.skip-link:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; padding: 0; white-space: nowrap; }
#main:focus { outline: none; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 3; background: var(--paper); }
.header-inner {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 1.25rem;
}
.wordmark { display: inline-block; width: fit-content; }
.wordmark img { width: clamp(8.35rem, 12.7vw, 11.1rem); height: auto; }
.desktop-nav, .header-controls { display: flex; align-items: center; }
.desktop-nav { gap: clamp(1.25rem, 3vw, 3rem); }
.desktop-nav a, .mobile-nav a { font-size: .9rem; font-weight: 600; text-decoration: none; }
.desktop-nav a:hover, .mobile-nav a:hover { text-decoration: underline; }
.header-controls { justify-self: end; gap: .55rem; }
.language-link, .mobile-menu summary {
  min-height: 2.7rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding-inline: .76rem;
  border: 1px solid var(--line);
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.language-link:hover, .mobile-menu summary:hover { border-color: var(--ink); }
.globe { position: relative; width: .88rem; height: .88rem; border: 1px solid currentColor; border-radius: 50%; }
.globe::before { content: ""; position: absolute; inset: -1px 3px; border: 1px solid currentColor; border-radius: 50%; }
.globe::after { content: ""; position: absolute; inset: 47% 0 auto; border-top: 1px solid currentColor; }
.mobile-menu { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 3.2rem;
  padding: .62rem 1.15rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 650;
  font-size: .95rem;
  line-height: 1.22;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.button--accent { background: var(--signal); color: var(--poster-ink); }
.button--accent:hover { background: #ffad96; }
.button--dark { background: var(--ink); color: var(--white); }
.button--dark:hover { background: #3d476d; }
.button--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.button--outline:hover { background: var(--ink); color: var(--white); }

.services { padding-block: clamp(3.35rem, 7vw, 6.5rem) clamp(4rem, 8vw, 7.75rem); }
.section-intro {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: .85rem 1.75rem;
  align-items: end;
  margin-bottom: clamp(1.65rem, 3.5vw, 3.25rem);
}
.section-intro .eyebrow, .about > .eyebrow { color: var(--accent); grid-column: 1 / -1; }
.section-intro h2 { font-size: clamp(2.65rem, 5.55vw, 6rem); }
.section-intro > p:last-child { color: var(--muted); max-width: 24rem; justify-self: end; }
.service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}
.service-list li {
  padding: clamp(1.1rem, 2.2vw, 2rem) clamp(.95rem, 2.4vw, 2.15rem);
  border-bottom: 1px solid var(--line);
}
.service-list li:not(:nth-child(3n + 1)) { border-left: 1px solid var(--line); }
.service-list li:nth-child(3n + 1) { padding-left: 0; }
.service-list li:nth-child(3n) { padding-right: 0; }
.service-list h3 { font-size: clamp(1.12rem, 1.7vw, 1.65rem); line-height: 1.16; letter-spacing: -.036em; }
.service-list li:nth-child(-n + 3) h3 { color: var(--accent); font-size: clamp(1.32rem, 2.25vw, 2.25rem); }
.service-list p { color: var(--muted); line-height: 1.55; margin-top: .63rem; max-width: 28rem; }

.examples { background: var(--blue); color: var(--white); padding: clamp(3.75rem, 7vw, 7rem) 0; }
.examples-inner {
  display: grid;
  grid-template-columns: minmax(14rem, .72fr) minmax(0, 1.65fr);
  gap: clamp(2.1rem, 5.65vw, 6rem);
  align-items: start;
}
.examples .eyebrow { color: #ffad96; }
.examples h2 { margin: .9rem 0 clamp(1.65rem, 3vw, 2.8rem); font-size: clamp(2.45rem, 3.25vw, 3.7rem); }
.example-tabs { display: grid; border-top: 1px solid #7b86a7; }
.example-tabs button {
  min-height: 3.3rem;
  border: 0;
  border-bottom: 1px solid #7b86a7;
  border-left: 3px solid transparent;
  padding: .65rem .7rem;
  background: transparent;
  color: #e5e8f5;
  text-align: start;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.24;
}
.example-tabs button[aria-selected="true"] { color: #ffad96; border-left-color: #ffad96; background: #303959; }
.example-tabs button:hover { background: #374163; }
.examples :focus-visible { outline-color: #ffad96; outline-offset: -3px; }
.example-panel { display: grid; gap: clamp(1.45rem, 3vw, 2.5rem); }
.example-panel:not([hidden]) ~ .example-panel:not([hidden]) { margin-top: 2.75rem; }
.example-panel > .demo { grid-row: 1; }
.example-copy { display: grid; grid-template-columns: .87fr 1.13fr; gap: clamp(1rem, 3vw, 2.5rem); }
.example-copy h3 {
  font-size: clamp(1.7rem, 2.65vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -.045em;
  margin-top: .65rem;
}
.example-copy > div > p:not(.eyebrow) { color: #e1e5f5; }
.deliverables {
  padding: .8rem 0 0;
  margin: 1.15rem 0;
  border-top: 1px solid #818aa7;
  display: flex;
  gap: .35rem 1rem;
  flex-wrap: wrap;
  list-style: none;
  font-size: .875rem;
  color: #ffdbd2;
}
.deliverables li::before { content: ""; width: .3em; height: .3em; background: currentColor; display: inline-block; margin: 0 .5em .17em 0; }
.text-button {
  padding: .55em 0;
  min-height: 2.75rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .24em;
  text-align: left;
  font-weight: 650;
  font-size: .91rem;
}
.text-button:hover { color: #ffab97; }

.demo { padding: clamp(.8rem, 2.05vw, 1.9rem); color: var(--ink); background: #d2d9ed; }
.demo--culture { background: #e3b4a2; }
.demo--workflow { background: #c6d1ee; }
.demo--social { background: #d8d2e9; }
.demo figcaption { margin-top: .65rem; color: #383c52; font-weight: 650; font-size: .875rem; }
.sample-page { display: grid; grid-template-columns: 1fr .93fr; min-height: clamp(13rem, 22vw, 21rem); background: #fff3e1; }
.demo--culture .sample-page { background: #faf1e6; }
.sample-copy { padding: clamp(.75rem, 2.15vw, 2.05rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .6rem; }
.sample-tag { text-transform: uppercase; letter-spacing: .085em; font-size: .78rem; font-weight: 700; color: #9e351e; }
.sample-copy strong { font: 600 clamp(1.35rem, 2.85vw, 3.15rem)/.98 var(--serif); letter-spacing: -.04em; }
:lang(zh-Hans) .sample-copy strong { font-family: "Songti SC", SimSun, serif; line-height: 1.18; }
.sample-detail { font-size: .78rem; line-height: 1.3; color: #464454; }
.sample-button { background: var(--ink); color: var(--white); padding: .35rem .45rem; font-size: .76rem; line-height: 1.18; }
.sample-image { position: relative; overflow: hidden; }
.sample-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.workflow-demo, .channel-demo {
  list-style: none;
  padding: 1rem clamp(1.1rem, 3vw, 2.6rem);
  min-height: clamp(13rem, 22vw, 21rem);
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--paper);
}
.workflow-demo li { position: relative; display: grid; gap: .09rem; padding: .55rem 0 .55rem 1.6rem; line-height: 1.3; }
.workflow-demo li:not(:last-child)::after { content: ""; position: absolute; top: 1.2rem; bottom: -.8rem; left: .25rem; width: 1px; background: #a29eb0; }
.workflow-node { position: absolute; top: .8rem; left: .02rem; width: .52rem; height: .52rem; border-radius: 50%; background: var(--accent); z-index: 1; }
.workflow-demo li > span:last-child { color: var(--muted); font-size: .875rem; }

.channel-demo > div {
  display: grid;
  grid-template-columns: minmax(4.5rem, .85fr) minmax(0, 1.15fr);
  gap: .75rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.channel-demo > div:first-child { border-top: 1px solid var(--line); }
.channel-demo dt { font-weight: 700; }
.channel-demo dd { margin: 0; font-size: .875rem; color: var(--muted); }

.about {
  display: grid;
  grid-template-columns: .44fr 1.56fr;
  gap: 1.25rem;
  padding-block: clamp(4.1rem, 8vw, 8rem);
}
.about > .eyebrow { grid-column: auto; padding-top: .35rem; border-top: 2px solid var(--accent); width: fit-content; }
.about-copy h2 { font-size: clamp(2.3rem, 4.1vw, 4.3rem); }
.about-copy > p { margin-top: 1.25rem; max-width: 42rem; color: var(--muted); font-size: 1.075rem; }
.about-steps { max-width: 52rem; margin: 1.8rem 0 0; border-top: 1px solid var(--line); }
.about-steps > div {
  display: grid;
  grid-template-columns: minmax(10rem, .75fr) minmax(0, 1.25fr);
  gap: .5rem 1.1rem;
  padding: .95rem 0;
  border-bottom: 1px solid var(--line);
}
.about-steps dt { font-weight: 700; line-height: 1.35; }
.about-steps dd { margin: 0; color: var(--muted); }
.contact { background: var(--orange); }
.contact-inner {
  padding-block: clamp(3.25rem, 6vw, 5.8rem);
  display: flex;
  gap: 1.6rem 3rem;
  align-items: end;
  justify-content: space-between;
}
.contact h2 { margin: 1rem 0 .9rem; max-width: 57rem; font-size: clamp(2.45rem, 4.4vw, 4.55rem); }
.contact-inner p:last-child { max-width: 37rem; font-weight: 550; }
.contact-actions { display: flex; gap: .6rem; flex-wrap: wrap; flex: none; }
.contact :focus-visible { outline-color: var(--ink); }
.site-footer { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; gap: .75rem; min-height: 6.35rem; padding-block: 1rem; }
.site-footer .wordmark img { width: clamp(6.4rem, 11vw, 9.25rem); }
.footer-info { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .2rem 1rem; font-size: .875rem; }
.company-name { color: var(--muted); }
.footer-email { overflow-wrap: anywhere; }
.top-link { justify-self: end; font-size: .875rem; }

.brief-dialog {
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  width: min(34rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  padding: clamp(1.1rem, 4vw, 2.35rem);
  overscroll-behavior: contain;
}
.brief-dialog::backdrop { background: rgb(20 25 42 / .73); }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.dialog-heading h2 { font-size: clamp(1.75rem, 4vw, 2.55rem); }
.close-button { min-width: 2.6rem; min-height: 2.6rem; background: transparent; border: 1px solid var(--line); color: var(--ink); font-size: 1.5rem; line-height: 1; }
.close-button:hover { border-color: var(--ink); }
#brief-form label { display: block; margin: .65rem 0 .28rem; font-weight: 650; }
#brief-form :is(select, input, textarea) {
  display: block;
  width: 100%;
  padding: .58rem .64rem;
  border: 1px solid #888b9a;
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
}
#brief-form select {
  appearance: none;
  padding-right: 2rem;
}
#brief-form label:first-child { position: relative; }
#brief-form label:first-child::after {
  content: "";
  position: absolute;
  top: calc(100% + 1.3rem);
  right: .85rem;
  width: .45rem;
  height: .45rem;
  border: solid var(--ink);
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
  pointer-events: none;
}
#brief-form textarea { resize: vertical; }
.brief-note { font-size: .875rem; color: var(--muted); margin: .9rem 0 .75rem; }
.brief-actions { display: flex; gap: .58rem; flex-wrap: wrap; }
.brief-status:not(:empty) { font-size: .875rem; margin-top: .6rem; color: var(--muted); }

@media (max-width: 62rem) {
  .contact-inner { align-items: start; flex-direction: column; }
}

@media (max-width: 55rem) {
  .examples-inner { grid-template-columns: 1fr; gap: 1.35rem; }
  .examples h2 { margin-bottom: 1.4rem; }
  .example-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid #7b86a7; }
  .example-tabs button {
    min-height: 3.25rem;
    border: 0;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    text-align: center;
    padding: .5rem .24rem;
    font-size: .875rem;
  }
  .example-tabs button[aria-selected="true"] { border-bottom-color: #ffad96; }
}

@media (max-width: 45rem) {
  :root { --header-height: 4rem; }
  html { scroll-padding-top: 4.65rem; }
  .header-inner { grid-template-columns: 1fr auto; gap: .65rem; }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary { cursor: pointer; list-style: none; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .menu-icon { width: .92rem; height: .52rem; border-block: 1px solid currentColor; }
  .mobile-menu[open] summary { border-color: var(--ink); }
  .mobile-nav { position: absolute; inset: 100% var(--gutter) auto; background: var(--paper); border: 1px solid var(--line); display: grid; padding: .36rem .9rem; }
  .mobile-nav a { display: flex; align-items: center; min-height: 2.8rem; }
  .mobile-nav a + a { border-top: 1px solid var(--line); }
  .section-intro { grid-template-columns: 1fr; gap: .75rem; }
  .section-intro > p:last-child { justify-self: start; }
  .service-list { grid-template-columns: minmax(0, 1fr); }
  .service-list li, .service-list li:not(:nth-child(3n + 1)) { padding: 1rem 0; border-left: 0; }
  .service-list p { margin-top: .36rem; }
  .example-copy, .about { grid-template-columns: 1fr; gap: .85rem; }
  .about-steps > div { grid-template-columns: 1fr; }
  .demo--brand .sample-page { grid-template-columns: 1fr; }
  .demo--brand .sample-image { grid-row: 1; aspect-ratio: 1.16; }
  .demo--brand .sample-copy { padding: 1rem; }
  .site-header .wordmark img { width: clamp(6rem, 29.9vw, 8.35rem); }
  .site-footer { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: .55rem 1rem; align-content: center; }
  .footer-info { grid-column: 1; grid-row: 2; flex-direction: column; align-items: flex-start; }
  .top-link { grid-column: 2; grid-row: 1 / span 2; }
}

@media (max-width: 23rem) {
  .language-link, .mobile-menu summary { padding-inline: .55rem; }
  .globe { display: none; }
  .sample-page { min-height: 10.5rem; }
  .sample-copy { gap: .45rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
