:root {
  --home-bg: #020202;
  --home-surface: #0b0b0b;
  --home-surface-raised: #121212;
  --home-text: #ffffff;
  --home-muted: #b8b8b8;
  --home-border: #303030;
  --home-sky: #c0f0fb;
  --home-blue: #2e6bff;
  --home-navy: #0b2a5b;
  --home-serif: "Songti SC", "STSong", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --home-sans: "PingFang SC", "Microsoft YaHei", "Inter", Arial, sans-serif;
  --home-width: 1180px;
}

.every-home { margin: 0; color: var(--home-text); background: var(--home-bg); font-family: var(--home-sans); line-height: 1.65; }
.every-home a { color: inherit; }
.every-home .skip-link { color: #000; background: var(--home-sky); }
.every-home .kicker { margin: 0 0 1rem; color: var(--home-sky); font-family: var(--home-sans); font-size: .73rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.every-home h1, .every-home h2, .every-home h3 { font-family: var(--home-serif); font-weight: 400; }

.every-header { position: sticky; z-index: 50; top: 0; min-height: 104px; padding: .8rem max(1rem, calc((100vw - 1460px) / 2)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; background: rgba(2, 2, 2, .94); border-bottom: 1px solid var(--home-border); backdrop-filter: blur(18px); }
.header-left, .header-right { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); font-size: .88rem; }
.header-left a, .header-mail { color: #d7d7d7; }
.header-left a:hover, .header-mail:hover { color: var(--home-sky); }
.header-right { justify-content: flex-end; }
.every-brand { width: clamp(200px, 18vw, 270px); height: 78px; display: grid; place-items: center; overflow: hidden; }
.every-brand img { display: block; width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) brightness(0) invert(1); }
.every-nav-toggle, .mobile-nav { display: none; }

.button { border: 0; cursor: pointer; font-family: var(--home-sans); font-weight: 500; border-radius: .25rem; }
.button-sky { color: #020202 !important; background: var(--home-sky); }
.button-sky:hover { background: #e5faff; transform: translateY(-2px); }
.button-small { min-height: 40px; padding: .5rem 1rem; font-size: .92rem; }
.button-large { min-height: 56px; padding: .9rem 1.5rem; font-size: 1.05rem; }
.button-outline { color: #fff !important; background: transparent; border: 1px solid #696969; }
.button-outline:hover { color: #020202 !important; background: var(--home-sky); border-color: var(--home-sky); }

.consulting-hero { min-height: calc(100vh - 104px); padding: clamp(5rem, 10vh, 9rem) 1.25rem 4rem; display: grid; place-items: center; text-align: center; }
.hero-core { max-width: 860px; }
.hero-core h1 { margin: 0 auto 1.7rem; font-size: clamp(4.2rem, 7vw, 7.3rem); line-height: .94; letter-spacing: -.055em; }
.hero-core h1 span { display: block; white-space: nowrap; }
.hero-deck { max-width: 720px; margin: 0 auto 2rem; color: var(--home-muted); font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.65; }
.scroll-cue { display: block; width: fit-content; margin: 2.7rem auto 0; color: #d0d0d0; font-size: .92rem; border-bottom: 1px solid #6b6b6b; }

.trust-belt { padding: 1.6rem 0 2.3rem; overflow: hidden; border-top: 1px solid var(--home-border); border-bottom: 1px solid var(--home-border); text-align: center; }
.trust-belt > p { margin: 0 0 1.3rem; color: var(--home-muted); font-size: .86rem; }
.trust-track { max-width: 1320px; margin: auto; padding: 0 1.25rem; display: flex; justify-content: space-between; gap: 2rem; color: #e9e9e9; font-family: var(--home-serif); font-size: clamp(1.05rem, 1.5vw, 1.35rem); }

.edge-section { max-width: var(--home-width); margin: auto; padding: clamp(7rem, 12vw, 12rem) 1.25rem; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(3rem, 8vw, 8rem); }
.edge-art { min-height: 660px; background: linear-gradient(180deg, rgba(2,2,2,.08), rgba(2,2,2,.35)), url("../images/eastern-code-scroll-v3.webp") center / cover; }
.edge-copy h2 { margin: 0 0 1.4rem; font-size: clamp(2.8rem, 4.4vw, 4.5rem); line-height: 1.05; letter-spacing: -.045em; }
.edge-copy > p:not(.kicker) { color: var(--home-muted); font-size: 1.05rem; }
.signal-list { margin: 3rem 0 0; border-top: 1px solid var(--home-border); }
.signal-list > div { padding: 1.4rem 0; display: grid; grid-template-columns: 58px 1fr; border-bottom: 1px solid var(--home-border); }
.signal-list dt { color: var(--home-sky); font-family: var(--home-serif); font-size: 1.5rem; }
.signal-list dd { margin: 0; display: flex; flex-direction: column; }
.signal-list strong { font-weight: 500; }
.signal-list span { color: var(--home-muted); font-size: .9rem; }

.method-section { border-top: 1px solid var(--home-border); }
.section-heading { max-width: var(--home-width); margin: auto; padding: clamp(6rem, 10vw, 10rem) 1.25rem clamp(4rem, 7vw, 7rem); }
.section-heading h2 { margin: 0 0 1.2rem; font-size: clamp(3.4rem, 6vw, 6rem); line-height: 1; letter-spacing: -.05em; }
.section-heading > p:last-child { max-width: 650px; margin: 0; color: var(--home-muted); font-size: 1.08rem; }
.section-heading-wide h2 { max-width: 960px; }
.section-heading-wide > p:last-child { max-width: 760px; }

.method-step { max-width: var(--home-width); margin: auto; padding: 0 1.25rem clamp(7rem, 12vw, 11rem); display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.method-reverse .method-copy { order: 2; }
.method-number { display: block; margin-bottom: 3rem; color: #fff; font-family: var(--home-serif); font-size: clamp(4rem, 6vw, 6rem); line-height: 1; }
.method-copy h3 { margin: .2rem 0 1.2rem; font-size: clamp(2.4rem, 4vw, 4rem); line-height: 1.04; letter-spacing: -.045em; white-space: nowrap; }
.method-copy > p:not(.kicker) { color: var(--home-muted); }
.method-copy ul { margin: 2rem 0 0; padding: 1.1rem 0 0; list-style: none; border-top: 1px solid var(--home-border); }
.method-copy li { position: relative; padding: .45rem 0 .45rem 1.4rem; color: #d0d0d0; }
.method-copy li::before { content: "→"; position: absolute; left: 0; color: var(--home-sky); }
.method-visual { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.method-visual svg { display: block; width: 100%; height: 100%; }

.practice-section { padding-bottom: clamp(7rem, 12vw, 11rem); background: #080808; border-top: 1px solid var(--home-border); border-bottom: 1px solid var(--home-border); }
.practice-editorial { max-width: var(--home-width); margin: auto; padding: 0 1.25rem; }
.practice-editorial article { padding: clamp(4rem, 7vw, 7rem) 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; border-top: 1px solid var(--home-border); }
.practice-editorial article:nth-child(even) .practice-image { order: 2; }
.practice-editorial h3 { margin: .3rem 0 1.1rem; font-size: clamp(2.2rem, 3.5vw, 3.5rem); line-height: 1.05; letter-spacing: -.04em; }
.practice-editorial article > div:last-child > p:not(.kicker) { color: var(--home-muted); }
.practice-image { position: relative; min-height: 430px; padding: 3rem; overflow: hidden; color: #08162d; background: var(--home-sky); }
.image-write { display: flex; flex-direction: column; justify-content: space-between; background: #eee6d9; }
.image-write::after { content: ""; position: absolute; inset: 6rem 3rem; background: repeating-linear-gradient(to bottom, transparent 0 42px, rgba(11,42,91,.35) 42px 43px); }
.image-write span, .image-write strong { position: relative; z-index: 2; }
.image-write span { color: var(--home-blue); font-size: .76rem; font-weight: 700; letter-spacing: .18em; }
.image-write strong { align-self: flex-end; font-family: var(--home-serif); font-size: 3.4rem; font-weight: 400; line-height: 1.04; text-align: right; }
.image-build { display: flex; align-items: flex-end; gap: 1.2rem; background: #dbe5f7; }
.image-build i { width: 25%; height: 38%; background: #52647d; }
.image-build i:nth-child(2) { height: 67%; background: var(--home-navy); }
.image-build i:nth-child(3) { height: 94%; background: var(--home-blue); }
.image-build span { position: absolute; top: 2.5rem; right: 2.5rem; font-weight: 700; }
.image-transfer { display: grid; grid-template-columns: repeat(3, 1fr); place-items: center; gap: .8rem; background: #f5f5f2; }
.image-transfer span { width: 100%; aspect-ratio: 1; display: grid; place-items: center; border: 2px solid var(--home-navy); border-radius: 50%; font-weight: 700; }
.image-transfer span:nth-child(2) { color: #fff; background: var(--home-navy); }
.image-transfer span:nth-child(3) { color: #fff; background: var(--home-blue); border-color: var(--home-blue); }
.text-arrow { display: inline-block; margin-top: 1rem; color: var(--home-sky) !important; border-bottom: 1px solid currentColor; }

.clients-section { padding-bottom: clamp(7rem, 12vw, 11rem); }
.client-panels { max-width: var(--home-width); margin: auto; padding: 0 1.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.client-panel { overflow: hidden; background: var(--home-surface-raised); border: 1px solid var(--home-border); }
.client-image { min-height: 430px; background-position: center; background-size: cover; }
.client-public .client-image { background-image: linear-gradient(rgba(2,2,2,.08), rgba(2,2,2,.2)), url("../images/eastern-code-hero-v3.webp"); }
.client-business .client-image { background-image: linear-gradient(rgba(2,2,2,.05), rgba(2,2,2,.15)), url("../images/hero-workflow-v2.webp"); }
.client-panel > div:last-child { padding: clamp(2rem, 4vw, 3.5rem); }
.client-panel h3 { margin: .3rem 0 1rem; font-size: clamp(1.9rem, 2.8vw, 2.8rem); line-height: 1.08; }
.client-panel p:not(.kicker) { color: var(--home-muted); }
.client-panel .button { margin-top: 1.2rem; }

.outcomes-section { padding-bottom: clamp(7rem, 12vw, 11rem); background: #080808; border-top: 1px solid var(--home-border); border-bottom: 1px solid var(--home-border); }
.outcome-quotes { max-width: var(--home-width); margin: auto; padding: 0 1.25rem; display: grid; grid-template-columns: repeat(3, 1fr); }
.outcome-quotes blockquote { min-height: 360px; margin: 0; padding: 2.5rem; display: flex; flex-direction: column; border: 1px solid var(--home-border); border-right: 0; }
.outcome-quotes blockquote:last-child { border-right: 1px solid var(--home-border); }
.outcome-quotes blockquote > span { color: var(--home-sky); font-family: var(--home-serif); font-size: 4rem; line-height: 1; }
.outcome-quotes blockquote p { margin: 2rem 0 auto; font-family: var(--home-serif); font-size: clamp(1.45rem, 2.2vw, 2rem); line-height: 1.35; }
.outcome-quotes footer { padding-top: 2rem; color: var(--home-muted); font-size: .88rem; border-top: 1px solid var(--home-border); }

.contact-section { max-width: var(--home-width); margin: auto; padding: clamp(7rem, 12vw, 11rem) 1.25rem; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(4rem, 9vw, 9rem); }
.contact-intro h2 { margin: .3rem 0 1.5rem; font-size: clamp(3.2rem, 5vw, 5rem); line-height: .98; letter-spacing: -.05em; }
.contact-intro > p:not(.kicker) { color: var(--home-muted); }
.contact-intro > a { display: inline-block; margin-top: 1rem; color: var(--home-sky); border-bottom: 1px solid currentColor; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.contact-form label { display: flex; flex-direction: column; gap: .55rem; color: #dedede; font-size: .88rem; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: .9rem 0; color: #fff; background: transparent; border: 0; border-bottom: 1px solid #676767; border-radius: 0; font: inherit; }
.contact-form textarea { padding: 1rem; border: 1px solid #676767; resize: vertical; }
.contact-form select option { color: #111; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--home-sky); outline-offset: 4px; }
.form-wide { grid-column: 1 / -1; }
.form-note { margin: 0; color: var(--home-muted); font-size: .8rem; }
.contact-form .button { width: 100%; }

.next-section { min-height: 480px; padding: clamp(5rem, 9vw, 8rem) max(1.25rem, calc((100vw - var(--home-width)) / 2)); display: grid; grid-template-columns: 1fr .8fr .35fr; gap: 4rem; align-items: center; color: #020202; background: var(--home-sky); }
.next-section .kicker { color: var(--home-navy); }
.next-section h2 { margin: 0; font-size: clamp(3.2rem, 5vw, 5rem); line-height: .98; letter-spacing: -.05em; }
.next-section > div:nth-child(2) p { max-width: 430px; }
.next-section .button-outline { color: #020202 !important; border-color: #020202; }
.next-section .button-outline:hover { color: #fff !important; background: #020202; }
.next-mark { font-family: var(--home-serif); font-size: clamp(6rem, 10vw, 11rem); line-height: 1; text-align: right; }

.every-footer { padding: 3rem max(1.25rem, calc((100vw - var(--home-width)) / 2)); display: grid; grid-template-columns: 1fr auto 1fr; gap: 3rem; align-items: center; color: var(--home-muted); font-size: .82rem; border-top: 1px solid var(--home-border); }
.every-footer img { width: 190px; filter: grayscale(1) brightness(0) invert(1); }
.every-footer nav { display: flex; gap: 1.5rem; }
.every-footer > div:last-child { text-align: right; }

@media (max-width: 960px) {
  .every-header { min-height: 82px; grid-template-columns: 1fr auto; }
  .header-left, .header-right { display: none; }
  .every-brand { width: 190px; height: 62px; justify-self: start; }
  .every-nav-toggle { display: block; justify-self: end; color: #fff; background: transparent; border: 1px solid #666; }
  .mobile-nav { position: absolute; top: 82px; left: 0; right: 0; padding: 1.2rem; background: #090909; border-bottom: 1px solid var(--home-border); }
  .mobile-nav.is-open { display: flex; flex-direction: column; }
  .mobile-nav a { padding: .8rem; border-bottom: 1px solid var(--home-border); }
  .consulting-hero { min-height: calc(100vh - 82px); }
  .edge-section, .method-step, .practice-editorial article, .client-panels, .contact-section { grid-template-columns: 1fr; }
  .method-reverse .method-copy, .practice-editorial article:nth-child(even) .practice-image { order: 0; }
  .edge-art { min-height: 560px; }
  .method-copy h3 { white-space: normal; }
  .outcome-quotes { grid-template-columns: 1fr; }
  .outcome-quotes blockquote { min-height: 280px; border-right: 1px solid var(--home-border); border-bottom: 0; }
  .outcome-quotes blockquote:last-child { border-bottom: 1px solid var(--home-border); }
  .next-section { grid-template-columns: 1fr 1fr; }
  .next-mark { display: none; }
  .every-footer { grid-template-columns: 1fr 1fr; }
  .every-footer nav { grid-row: 2; grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .hero-core h1 { font-size: clamp(3.3rem, 16vw, 4.4rem); }
  .hero-core h1 span { white-space: normal; }
  .trust-track { justify-content: flex-start; overflow-x: auto; }
  .trust-track span { flex: 0 0 auto; }
  .edge-art { min-height: 420px; }
  .section-heading h2 { font-size: clamp(3rem, 15vw, 4.3rem); }
  .method-number { margin-bottom: 1.8rem; }
  .method-visual { aspect-ratio: 1 / .88; }
  .practice-image, .client-image { min-height: 330px; }
  .image-write strong { font-size: 2.7rem; }
  .contact-form { grid-template-columns: 1fr; }
  .form-wide { grid-column: 1; }
  .next-section { grid-template-columns: 1fr; gap: 2rem; }
  .every-footer { grid-template-columns: 1fr; }
  .every-footer nav { grid-row: auto; grid-column: auto; flex-wrap: wrap; }
  .every-footer > div:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .every-home *, .every-home *::before, .every-home *::after { scroll-behavior: auto !important; transition: none !important; }
}
