/*
Theme Name: Wiseman Consulting
Author: Wiseman / Codex
Version: 1.0.0
*/
:root {
  --ink: #101419;
  --muted: #65707b;
  --paper: #f5efe5;
  --white: #fffaf2;
  --line: rgba(16, 20, 25, 0.14);
  --blue: #075cff;
  --blue-soft: #dce8ff;
  --navy: #07111d;
  --slate: #202a33;
  --shadow: 0 28px 80px rgba(16, 20, 25, 0.16);
  --radius: 22px;
  --latin: "Manrope", "Avenir Next", "Segoe UI", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --zh: "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(16, 20, 25, 0.035) 1px, transparent 1px) 0 0 / 78px 78px,
    linear-gradient(180deg, #fffaf2 0%, #f4eee4 100%);
  font-family: var(--latin);
  line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; }
.wrap { width: min(1200px, calc(100% - 42px)); max-width: 1200px; margin: auto; }
.en-only, .zh-only { display: inline; }
body.lang-en .zh-only { display: none !important; }
body.lang-zh .en-only { display: none !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 250, 242, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  max-width: 1200px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: 360px;
  text-decoration: none;
  font-weight: 900;
}
.brand-logo {
  display: block;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
}
.brand-copy {
  min-width: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.brand-copy em {
  display: block;
  margin-top: 4px;
  color: var(--blue);
  font-style: normal;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.menu {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}
.menu a {
  color: #3d4650;
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
}
.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}
.lang-switch button {
  min-width: 48px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 10px;
  font: 900 13px/1 var(--latin);
  cursor: pointer;
}
.lang-switch button.is-active {
  background: var(--ink);
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 21px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
}
.btn.blue {
  border-color: var(--blue);
  background: var(--blue);
}
.btn.light {
  background: rgba(255, 250, 242, 0.78);
  color: var(--ink);
}
.eyebrow {
  color: var(--blue);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero {
  overflow: hidden;
  padding: clamp(48px, 7vw, 92px) 0 38px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.05fr);
  gap: clamp(36px, 5vw, 74px);
  align-items: center;
}
.hero-copy h1 {
  margin: 14px 0 24px;
  max-width: 720px;
  font: 400 clamp(64px, 7.5vw, 124px)/0.88 var(--serif);
  letter-spacing: 0;
}
.hero-copy p {
  margin: 0 0 32px;
  max-width: 620px;
  color: #252b31;
  font-size: clamp(20px, 2.1vw, 30px);
  font-weight: 760;
  line-height: 1.25;
}
.hero-actions, .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.tag-row { margin-top: 28px; }
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--ink);
  background: rgba(255, 250, 242, 0.76);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.hero-media {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(16, 20, 25, 0.24);
  background: var(--ink);
  box-shadow: var(--shadow);
}
.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.hero-media:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(7, 17, 29, 0.72));
}
.media-badges {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.media-badges span {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 250, 242, 0.32);
  background: rgba(16, 20, 25, 0.56);
  color: var(--white);
  font-size: 11px;
  font-weight: 950;
}
.hero-strip {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) 1fr;
  gap: 28px;
  margin-top: 34px;
  padding: 28px;
  background: linear-gradient(90deg, rgba(7, 92, 255, 0.2), transparent 42%), var(--navy);
  color: var(--white);
}
.hero-strip > p {
  margin: 0;
  font: 400 33px/1.05 var(--serif);
}
.hero-strip dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
}
.hero-strip div {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 250, 242, 0.2);
}
.hero-strip dt {
  color: #9db8ff;
  font-size: 18px;
  font-weight: 950;
}
.hero-strip dd {
  margin: 0;
  color: rgba(255, 250, 242, 0.82);
  font-size: 14px;
}

.band { padding: 92px 0; border-top: 1px solid var(--line); }
.band.white { background: rgba(255, 255, 255, 0.64); }
.band.dark {
  background: linear-gradient(135deg, rgba(7, 17, 29, 0.94), rgba(7, 17, 29, 0.82));
  color: var(--white);
}
.section-head {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 44px;
  margin-bottom: 40px;
}
.section-head h2 {
  margin: 0;
  font: 400 clamp(42px, 6vw, 76px)/0.98 var(--serif);
}
.section-head p {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}
.dark .section-head h2, .dark .eyebrow { color: var(--white); }
.dark .section-head p { color: rgba(255, 250, 242, 0.74); }

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  min-height: 315px;
  display: grid;
  align-content: end;
  gap: 16px;
  padding: 30px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.78);
}
.num {
  color: var(--blue);
  font-size: 25px;
  font-weight: 950;
}
.card h3, .service-row h3 {
  margin: 0;
  font-size: 25px;
  line-height: 1.15;
}
.card p, .service-row p, .case-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.service-list {
  border-top: 1px solid var(--ink);
}
.service-row {
  display: grid;
  grid-template-columns: 90px minmax(240px, 0.42fr) 1fr;
  gap: 28px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.service-row .num { font-size: 27px; }

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.case-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.82);
}
.case-card figure {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink);
}
.case-card figure:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,20,25,.02), rgba(16,20,25,.24));
}
.case-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.case-body {
  min-height: 235px;
  display: grid;
  align-content: end;
  gap: 16px;
  padding: 26px;
}
.case-body h3 {
  margin: 0;
  font-size: 24px;
}

.timeline-list {
  border-top: 1px solid rgba(255, 250, 242, 0.22);
}
.timeline-item {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 28px;
  align-items: end;
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 250, 242, 0.18);
}
.timeline-item blockquote {
  margin: 0;
  font: 400 clamp(34px, 5vw, 68px)/1 var(--serif);
}
.timeline-item p {
  margin: 0;
  color: #9db8ff;
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}

.deliverables {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--ink);
}
.deliverables div + div { border-left: 1px solid var(--line); }
.deliverables p {
  position: relative;
  min-height: 86px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 24px 26px 24px 56px;
  border-bottom: 1px solid var(--line);
  font-weight: 900;
}
.deliverables p:before {
  content: "";
  position: absolute;
  left: 26px;
  width: 10px;
  height: 10px;
  background: var(--blue);
}
.deliverables p:last-child { border-bottom: 0; }

.about-grid, .contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 54px;
}
.about-copy p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.7;
}
.founder-note {
  margin-top: 26px;
  padding: 26px;
  border-left: 5px solid var(--blue);
  background: rgba(255, 255, 255, 0.62);
  font: 400 34px/1.1 var(--serif);
}
.contact-grid {
  align-items: start;
}
.contact-card, .contact-form {
  padding: 28px;
  border: 1px solid rgba(255, 250, 242, 0.22);
  background: rgba(255, 250, 242, 0.08);
}
.contact-card {
  display: grid;
  gap: 14px;
}
.contact-card a {
  color: var(--white);
  overflow-wrap: anywhere;
  font-size: 22px;
  font-weight: 900;
}
.contact-card a[href*="facebook"] {
  color: #9db8ff;
  font-size: 20px;
}
.contact-form {
  display: grid;
  gap: 14px;
}
.contact-form label {
  display: grid;
  gap: 8px;
}
.contact-form span {
  color: rgba(255, 250, 242, 0.74);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 250, 242, 0.24);
  background: rgba(255, 250, 242, 0.08);
  color: var(--white);
  font: inherit;
  padding: 14px;
  outline: none;
}
.form-status {
  min-height: 22px;
  margin: 0;
  color: rgba(255, 250, 242, 0.76);
}
.site-footer {
  padding: 42px 0;
  background: #050b12;
  color: rgba(255, 250, 242, 0.78);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}
.footer-grid strong { color: var(--white); }

body.lang-zh {
  font-family: var(--latin), var(--zh);
}
body.lang-zh .zh-only {
  font-family: var(--zh);
}
body.lang-zh .hero-copy h1 {
  font-family: var(--serif), var(--zh);
  font-weight: 400;
}
body.lang-zh .hero-copy p {
  font-size: clamp(20px, 1.82vw, 28px);
  line-height: 1.52;
  font-weight: 700;
}
body.lang-zh .section-head h2 {
  font-family: var(--serif), var(--zh);
  font-size: clamp(34px, 4.15vw, 58px);
  line-height: 1.12;
  font-weight: 800;
}
body.lang-zh .section-head p,
body.lang-zh .about-copy p,
body.lang-zh .card p,
body.lang-zh .service-row p,
body.lang-zh .case-card p {
  line-height: 1.76;
}
body.lang-zh .eyebrow {
  font-size: 15px;
  letter-spacing: 0.03em;
}
body.lang-zh .num { font-size: 26px; }
body.lang-zh .service-row .num { font-size: 28px; }
body.lang-zh .card h3,
body.lang-zh .service-row h3,
body.lang-zh .case-body h3 {
  font-size: 24px;
  line-height: 1.28;
}
body.lang-zh .timeline-item blockquote {
  font-family: var(--zh);
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.16;
  font-weight: 700;
}
body.lang-zh .founder-note {
  font-family: var(--zh);
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.25;
  font-weight: 700;
}

@media (max-width: 980px) {
  .nav { align-items: flex-start; padding: 14px 0; }
  .menu { flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 16 / 8.8; }
  .hero-strip, .section-head, .service-row, .timeline-item { grid-template-columns: 1fr; }
  .hero-strip dl, .value-grid, .case-grid { grid-template-columns: 1fr; }
  .deliverables { grid-template-columns: 1fr; }
  .deliverables div + div { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .wrap { width: min(100% - 28px, 1200px); }
  .brand-logo {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
  }
  .brand-copy {
    font-size: 14px;
  }
  .brand-copy em {
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .menu a { font-size: 12px; }
  .hero { padding-top: 34px; }
  .hero-copy h1 { font-size: clamp(50px, 16vw, 78px); line-height: 0.94; }
  .hero-copy p { font-size: 19px; line-height: 1.48; }
  .hero-media img { aspect-ratio: 4 / 3; }
  .media-badges { grid-template-columns: repeat(2, 1fr); left: 12px; right: 12px; bottom: 12px; }
  .band { padding: 68px 0; }
  .section-head h2 { font-size: 38px; }
  .btn { width: 100%; }
  .tag-row { display: grid; }
  .footer-grid { display: block; }
  body.lang-zh .hero-copy p { font-size: 20px; }
  body.lang-zh .section-head h2 { font-size: 34px; }
  body.lang-zh .num { font-size: 24px; }
}
