:root {
  --color-brand-deep: #0b2a5b;
  --color-brand-slate: #52647d;
  --color-brand-bright: #2e6bff;
  --color-bg: #f7f9fc;
  --color-surface: #ffffff;
  --color-text: #10233f;
  --color-text-muted: #52647d;
  --color-border: #dce3ed;
  --color-focus: #ffb000;
  --shadow-soft: 0 24px 70px rgba(11, 42, 91, .12);
  --radius-sm: .6rem;
  --radius-md: 1.2rem;
  --content-width: 1180px;
  --section-space: clamp(5rem, 10vw, 9rem);
  --font-sans: "Inter", "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--color-text); background: var(--color-bg); font-family: var(--font-sans); line-height: 1.7; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 4px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .7rem 1rem; background: white; color: var(--color-brand-deep); border-radius: .4rem; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.site-header { position: sticky; top: 0; z-index: 30; height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 0 max(1.25rem, calc((100vw - var(--content-width)) / 2)); background: rgba(247, 249, 252, .93); border-bottom: 1px solid rgba(82, 100, 125, .15); backdrop-filter: blur(18px); }
.brand { display: block; width: 218px; height: 58px; overflow: hidden; }
.brand-crop { display: block; width: 100%; height: 100%; background: url("../images/yuancode-logo-official.png") no-repeat left center / contain; }
.site-header nav { display: flex; align-items: center; gap: 1.8rem; font-size: .94rem; font-weight: 600; }
.site-header nav a:not(.nav-cta):hover { color: var(--color-brand-bright); }
.nav-cta { padding: .58rem 1rem; color: white; background: var(--color-brand-deep); border-radius: var(--radius-sm); }
.nav-toggle { display: none; border: 1px solid var(--color-border); border-radius: .5rem; background: white; padding: .55rem .75rem; color: var(--color-text); font: inherit; }
.hero { min-height: calc(100vh - 76px); display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; max-width: var(--content-width); margin: auto; padding: 5rem 1.25rem; gap: clamp(3rem, 7vw, 7rem); }
.eyebrow { color: var(--color-brand-bright); font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { max-width: 760px; margin: 1rem 0 1.5rem; font-size: clamp(3rem, 6.2vw, 5.8rem); line-height: 1.02; letter-spacing: -.055em; }
.hero-copy { max-width: 660px; color: var(--color-text-muted); font-size: clamp(1.05rem, 1.6vw, 1.28rem); }
.hero-actions { display: flex; gap: 1rem; margin-top: 2.3rem; flex-wrap: wrap; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: .75rem 1.25rem; border-radius: var(--radius-sm); font-weight: 700; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--color-brand-bright); }
.button-primary:hover { background: #1455dc; }
.button-secondary { border: 1px solid var(--color-border); background: var(--color-surface); }
.hero-visual { position: relative; overflow: hidden; min-height: 500px; padding: 4rem 3rem 2rem; display: flex; flex-direction: column; justify-content: flex-end; color: white; background: var(--color-brand-deep); border-radius: 2.2rem 2.2rem 8rem 2.2rem; box-shadow: var(--shadow-soft); }
.hero-logo-crop { position: absolute; top: 18%; left: 10%; width: 80%; aspect-ratio: 3.43; background: white url("../images/yuancode-brand.png") no-repeat 54.2% 19.7%; background-size: 142.22% auto; border-radius: .8rem; box-shadow: 0 20px 45px rgba(0,0,0,.18); }
.hero-visual p { position: relative; z-index: 2; margin: 0; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.28); }
.hero-visual p span { margin-right: 1rem; color: #83a8ff; font-family: monospace; }
.signal-line { position: absolute; display: block; height: 1px; background: rgba(46, 107, 255, .8); transform: rotate(-36deg); }
.signal-one { width: 120%; top: 14%; left: -35%; }.signal-two { width: 90%; top: 26%; left: 30%; }
.trust-line { display: flex; justify-content: space-between; gap: 2rem; max-width: var(--content-width); margin: auto; padding: 1.3rem 1.25rem; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); color: var(--color-text-muted); font-size: .88rem; }
.section { max-width: var(--content-width); margin: auto; padding: var(--section-space) 1.25rem; }
.section-intro { max-width: 760px; margin-bottom: clamp(3rem, 6vw, 5.5rem); }
.section-intro h2, .about h2, .contact h2, .page-hero h1 { margin: .7rem 0 1.2rem; font-size: clamp(2.2rem, 4.6vw, 4.3rem); line-height: 1.12; letter-spacing: -.045em; }
.section-intro > p:not(.eyebrow), .about p, .contact > p { color: var(--color-text-muted); font-size: 1.08rem; }
.service-list { border-top: 1px solid var(--color-border); }
.service-list article { display: grid; grid-template-columns: 90px 1fr; padding: 2.6rem 0; border-bottom: 1px solid var(--color-border); }
.service-list article > span { color: var(--color-brand-bright); font-family: monospace; }
.service-list article > div { display: grid; grid-template-columns: 1fr 1fr; column-gap: 5rem; }
.service-list h3 { grid-column: 1 / -1; margin: 0 0 .7rem; font-size: clamp(1.45rem, 2.5vw, 2.15rem); }
.service-list p, .service-list ul { color: var(--color-text-muted); }
.service-list ul { margin: 0; padding-left: 1.2rem; }
.method { max-width: none; padding-left: max(1.25rem, calc((100vw - var(--content-width)) / 2)); padding-right: max(1.25rem, calc((100vw - var(--content-width)) / 2)); color: white; background: var(--color-brand-deep); }
.method-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.25); }
.method-steps li { min-height: 250px; padding: 2rem 2rem 2rem 0; border-right: 1px solid rgba(255,255,255,.18); }
.method-steps li + li { padding-left: 2rem; }
.method-steps span { color: #83a8ff; font-family: monospace; }.method-steps h3 { margin: 4rem 0 .5rem; font-size: 1.35rem; }.method-steps p { color: #bdcbe0; }
.insight-preview { display: grid; grid-template-columns: 1fr .9fr; gap: 8vw; align-items: center; }
.text-link { display: inline-block; margin-top: 1rem; color: var(--color-brand-bright); font-weight: 800; }
.featured-insight, .insight-card { display: block; padding: clamp(2rem, 4vw, 3.5rem); background: white; border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: 0 12px 40px rgba(11,42,91,.06); }
.featured-insight { transition: transform .2s ease, box-shadow .2s ease; }.featured-insight:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.featured-insight h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.2; }.featured-insight p:not(.eyebrow) { color: var(--color-text-muted); }.featured-insight span { color: var(--color-brand-bright); font-weight: 800; }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; border-top: 1px solid var(--color-border); }
.contact { padding: var(--section-space) max(1.25rem, calc((100vw - var(--content-width)) / 2)); color: white; background: #071b3c; }
.contact > p { max-width: 700px; color: #bdcbe0; }.contact-status { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; color: #dce7ff; }.contact-status a, .contact-status span { padding: .75rem 1rem; border: 1px solid rgba(255,255,255,.25); border-radius: .6rem; }
.site-footer { display: flex; justify-content: space-between; gap: 2rem; padding: 3rem max(1.25rem, calc((100vw - var(--content-width)) / 2)); color: #c4d0e2; background: #06142c; font-size: .88rem; }.site-footer strong { color: white; font-size: 1.2rem; }.site-footer a { text-decoration: underline; }
.page-hero { max-width: var(--content-width); margin: auto; padding: clamp(5rem, 11vw, 9rem) 1.25rem 4rem; }.page-hero > p:last-child { max-width: 650px; color: var(--color-text-muted); font-size: 1.1rem; }
.insight-list { max-width: var(--content-width); margin: 0 auto; padding: 0 1.25rem var(--section-space); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 1.5rem; }.insight-card h2 { font-size: 1.55rem; line-height: 1.3; }.insight-card > p:not(.eyebrow) { color: var(--color-text-muted); }
.article { max-width: 820px; margin: auto; padding: clamp(4rem, 9vw, 8rem) 1.25rem; }.back-link { color: var(--color-brand-slate); }.article > h1 { margin: 1rem 0 1.4rem; font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: 1.12; letter-spacing: -.045em; }.article-lead { padding-bottom: 2.5rem; color: var(--color-text-muted); font-size: 1.25rem; border-bottom: 1px solid var(--color-border); }.article-body { font-size: 1.08rem; }.article-body h2 { margin-top: 3.2rem; font-size: 2rem; line-height: 1.25; }.article-body h3 { margin-top: 2.5rem; }.article-body li { margin: .55rem 0; }.article-body a { color: var(--color-brand-bright); text-decoration: underline; }.article-cta { margin-top: 5rem; padding: 2.5rem; color: white; background: var(--color-brand-deep); border-radius: var(--radius-md); }.article-cta h2 { margin: .6rem 0 1.5rem; }
.privacy { max-width: 780px; margin: auto; padding: 5rem 1.25rem 8rem; }.privacy h1 { font-size: clamp(2.4rem, 5vw, 4rem); }.privacy h2 { margin-top: 2.5rem; }
@media (max-width: 840px) {
  .site-header { height: 68px; }.brand { width: 190px; height: 52px; }.nav-toggle { display: block; }.site-header nav { position: absolute; display: none; top: 68px; left: 0; right: 0; padding: 1.2rem; flex-direction: column; align-items: stretch; background: white; border-bottom: 1px solid var(--color-border); }.site-header nav.is-open { display: flex; }.site-header nav a { padding: .7rem; }.nav-cta { text-align: center; }
  .hero { grid-template-columns: 1fr; padding-top: 4rem; }.hero-visual { min-height: 360px; }.hero-logo-crop { top: 12%; left: 8%; width: 84%; }.trust-line { flex-direction: column; gap: 0; }
  .service-list article { grid-template-columns: 50px 1fr; }.service-list article > div { grid-template-columns: 1fr; }.method-steps { grid-template-columns: 1fr 1fr; }.method-steps li { min-height: 220px; border-bottom: 1px solid rgba(255,255,255,.18); }.insight-preview, .about { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .hero h1 { font-size: clamp(2.7rem, 14vw, 4rem); }.hero-visual { min-height: 300px; padding: 2rem 1.5rem; border-radius: 1.4rem 1.4rem 5rem 1.4rem; }.hero-actions { flex-direction: column; }.button { width: 100%; }.service-list article { grid-template-columns: 1fr; }.service-list article > span { margin-bottom: .7rem; }.method-steps { grid-template-columns: 1fr; }.method-steps li, .method-steps li + li { padding: 1.5rem 0; min-height: auto; border-right: 0; }.method-steps h3 { margin: 1.5rem 0 .4rem; }.site-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Narrative homepage — editorial rhythm inspired by long-form consulting sites,
   implemented with YuanCode's own brand, copy, imagery and components. */
.narrative-site { background: #f4f1eb; }
.narrative-site .site-header { background: rgba(244, 241, 235, .94); }
.narrative-hero { position: relative; isolation: isolate; min-height: calc(100vh - 76px); margin: 0; padding: clamp(3rem, 6vw, 6rem) max(1.25rem, calc((100vw - 1440px) / 2 + 4vw)); display: flex; align-items: center; overflow: hidden; background: #f4f1eb url("../images/eastern-code-hero-v3.webp") no-repeat center / cover; }
.narrative-hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(244,241,235,.98) 0%, rgba(244,241,235,.93) 30%, rgba(244,241,235,.56) 52%, rgba(244,241,235,.08) 75%); }
.narrative-hero-copy { width: min(690px, 54vw); }
.narrative-hero-copy h1 { margin: .8rem 0 1.35rem; max-width: 690px; font-size: clamp(3.6rem, 5.6vw, 5.7rem); line-height: .96; letter-spacing: -.065em; }
.narrative-hero-copy > p:not(.eyebrow) { max-width: 620px; color: var(--color-text-muted); font-size: clamp(1.08rem, 1.55vw, 1.3rem); }
.narrative-hero-copy .hero-actions { align-items: center; }
.editorial-link { padding: .7rem 0; font-weight: 700; border-bottom: 1px solid var(--color-text); }
.headline-line { display: block; }
.manifesto { max-width: 1440px; margin: 0 auto; padding: clamp(6rem, 14vw, 13rem) max(1.25rem, 8vw); border-top: 1px solid rgba(82,100,125,.3); }
.manifesto h2 { max-width: 1180px; margin: 1.3rem 0 clamp(3rem, 7vw, 6rem); font-size: clamp(2.7rem, 5.1vw, 5.2rem); line-height: 1.02; letter-spacing: -.06em; }
.manifesto-grid { margin-left: auto; max-width: 800px; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); color: var(--color-text-muted); font-size: 1.08rem; }
.story-flow { background: #fff; }
.story-heading { max-width: 1180px; margin: 0 auto; padding: clamp(6rem, 11vw, 10rem) 1.25rem clamp(4rem, 7vw, 7rem); }
.story-heading h2 { max-width: none; margin: 1rem 0 0; font-size: clamp(2.7rem, 4.9vw, 4.8rem); line-height: 1; letter-spacing: -.055em; }
.story-step { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem clamp(7rem, 13vw, 12rem); display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.story-step-reverse .step-visual { order: 2; }
.step-visual { margin: 0; aspect-ratio: 4 / 3; }
.step-visual svg { display: block; width: 100%; height: 100%; }
.step-number { color: var(--color-brand-bright); font-size: .76rem; font-weight: 800; letter-spacing: .16em; }
.step-copy h3 { margin: .8rem 0 1.5rem; font-size: clamp(2rem, 3.2vw, 3.25rem); line-height: 1.06; letter-spacing: -.052em; }
.step-copy > p:not(.step-number), .step-copy li { color: var(--color-text-muted); font-size: 1.05rem; }
.step-copy ul { margin: 2rem 0 0; padding: 1.3rem 0 0; list-style: none; border-top: 1px solid var(--color-border); }
.step-copy li { padding: .5rem 0 .5rem 1.5rem; position: relative; }
.step-copy li::before { content: "→"; position: absolute; left: 0; color: var(--color-brand-bright); }
.practice { position: relative; isolation: isolate; padding: clamp(7rem, 13vw, 12rem) max(1.25rem, calc((100vw - 1180px) / 2)); color: white; background-color: #071b3c; background-repeat: no-repeat; background-position: center; background-size: cover; }
.practice.is-bg-ready { background-image: linear-gradient(rgba(4,20,48,.78), rgba(4,20,48,.9)), url("../images/eastern-code-scroll-v3.webp"); }
.practice-heading { max-width: 920px; margin-bottom: clamp(5rem, 11vw, 10rem); }
.practice-heading h2 { margin: 1rem 0 1.5rem; font-size: clamp(2.8rem, 4.8vw, 4.7rem); line-height: 1; letter-spacing: -.055em; }
.practice-heading > p:not(.eyebrow) { max-width: 710px; color: #bdcbe0; font-size: 1.12rem; }
.practice-row { padding: clamp(4rem, 7vw, 7rem) 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 9vw, 9rem); align-items: center; border-top: 1px solid rgba(255,255,255,.2); }
.practice-row-reverse .practice-art { order: 2; }
.practice-row h3 { margin: .8rem 0 1.2rem; font-size: clamp(1.9rem, 3vw, 3rem); line-height: 1.08; letter-spacing: -.045em; }
.practice-row p:not(.eyebrow) { color: #bdcbe0; }
.practice-art { position: relative; min-height: 360px; padding: 3rem; overflow: hidden; color: var(--color-text); background: #f4f1eb; }
.practice-art-write { display: flex; flex-direction: column; justify-content: space-between; }
.practice-art-write::after { content: ""; position: absolute; inset: 5rem 3rem; border-top: 1px solid var(--color-brand-slate); border-bottom: 1px solid var(--color-brand-slate); box-shadow: 0 54px 0 -53px var(--color-brand-slate), 0 108px 0 -107px var(--color-brand-slate); }
.practice-art-write span, .practice-art-write b { position: relative; z-index: 2; }
.practice-art-write span { color: var(--color-brand-bright); font-size: .8rem; font-weight: 800; letter-spacing: .16em; }.practice-art-write b { align-self: flex-end; max-width: 280px; font-size: 2.2rem; line-height: 1.1; }
.practice-art-build { display: flex; align-items: flex-end; gap: 1rem; background: #dfe8f5; }
.practice-art-build i { width: 24%; height: 42%; background: var(--color-brand-slate); }.practice-art-build i:nth-child(2) { height: 70%; background: var(--color-brand-deep); }.practice-art-build i:nth-child(3) { height: 94%; background: var(--color-brand-bright); }.practice-art-build span { position: absolute; top: 2rem; right: 2rem; color: var(--color-brand-deep); font-weight: 800; }
.practice-art-teach { display: grid; place-items: center; grid-template-columns: repeat(3, 1fr); gap: 1rem; background: #fff; }
.practice-art-teach span { width: 100%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--color-brand-slate); color: var(--color-brand-deep); font-weight: 800; }.practice-art-teach span:nth-child(2) { background: var(--color-brand-deep); color: #fff; }.practice-art-teach span:nth-child(3) { background: var(--color-brand-bright); color: #fff; border-color: var(--color-brand-bright); }
.practice .text-link { color: #8fb1ff; }
.audiences { max-width: 1180px; margin: 0 auto; padding: clamp(7rem, 13vw, 12rem) 1.25rem; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(4rem, 10vw, 10rem); }
.audiences h2 { margin: 1rem 0; font-size: clamp(2.7rem, 4vw, 4rem); line-height: 1; letter-spacing: -.05em; }
.audience-list { border-top: 1px solid var(--color-border); }
.audience-list article { display: grid; grid-template-columns: 60px 1fr; padding: 2.2rem 0; border-bottom: 1px solid var(--color-border); }
.audience-list span { grid-row: 1 / 3; color: var(--color-brand-bright); font-family: monospace; }.audience-list h3 { margin: 0; font-size: 1.45rem; }.audience-list p { margin: .4rem 0 0; color: var(--color-text-muted); }
.weekly-feature { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem clamp(7rem, 13vw, 12rem); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 8rem); align-items: stretch; }
.weekly-feature > div:first-child { padding: clamp(3rem, 6vw, 6rem) 0; }.weekly-feature h2 { margin: .8rem 0 1.3rem; font-size: clamp(2.2rem, 3.6vw, 3.6rem); line-height: 1.04; letter-spacing: -.05em; }.weekly-feature p:not(.eyebrow) { color: var(--color-text-muted); }
.weekly-visual { min-height: 500px; padding: 3rem; display: grid; grid-template-columns: 1fr auto; align-content: space-between; color: white; background: var(--color-brand-bright); }.weekly-visual span:nth-child(2) { text-align: right; letter-spacing: .18em; }.weekly-visual span:nth-child(3) { grid-column: 1 / -1; align-self: center; font-size: 8rem; line-height: 1; }.weekly-visual b { grid-column: 1 / -1; font-size: clamp(2rem, 4vw, 4rem); }
.narrative-contact h2 { max-width: 1180px; font-size: clamp(2.7rem, 4.8vw, 4.8rem); line-height: 1; letter-spacing: -.055em; }
@media (min-width: 901px) {
  .headline-line, .manifesto h2, .story-heading h2, .step-copy h3, .practice-heading h2, .practice-row h3, .audiences h2, .weekly-feature h2, .narrative-contact h2 { white-space: nowrap; }
}
@media (max-width: 900px) {
  .narrative-hero { min-height: 720px; padding: 5rem 1.25rem; background-position: 62% center; }.narrative-hero::before { background: linear-gradient(90deg, rgba(244,241,235,.98) 0%, rgba(244,241,235,.9) 58%, rgba(244,241,235,.45) 100%); }.narrative-hero-copy { width: min(100%, 650px); }.headline-line, .manifesto h2, .story-heading h2, .step-copy h3, .practice-heading h2, .practice-row h3, .audiences h2, .weekly-feature h2, .narrative-contact h2 { white-space: normal; }.manifesto-grid, .story-step, .practice-row, .audiences, .weekly-feature { grid-template-columns: 1fr; }.story-step-reverse .step-visual, .practice-row-reverse .practice-art { order: 0; }.manifesto-grid { margin-left: 0; }.practice-art { min-height: 320px; }.weekly-visual { min-height: 420px; }
}
@media (max-width: 520px) {
  .narrative-hero { min-height: 680px; padding-top: 3rem; background-position: 68% center; }.narrative-hero::before { background: rgba(244,241,235,.84); }.narrative-hero-copy h1 { font-size: clamp(2.7rem, 13vw, 3.25rem); }.narrative-hero-copy h1 .headline-line { white-space: nowrap; }.narrative-hero-copy .hero-actions { align-items: stretch; }.editorial-link { text-align: center; }.manifesto h2 br, .story-heading h2 br { display: none; }.manifesto-grid { grid-template-columns: 1fr; }.story-step { padding-bottom: 6rem; gap: 2rem; }.step-copy h3 br { display: none; }.practice-art { min-height: 280px; padding: 2rem; }.practice-art-teach { gap: .4rem; }.practice-art-teach span { font-size: .8rem; }.audience-list article { grid-template-columns: 44px 1fr; }.weekly-visual { min-height: 340px; padding: 2rem; }.weekly-visual span:nth-child(3) { font-size: 5rem; }
}
