/* Jiayun studio identity and responsive layouts. */
:root {
    --primary: #24685d; --primary-dark: #194d45; --primary-strong: #194d45;
    --primary-light: #edf3ef; --primary-soft: #edf3ef; --accent: #b9dfb3;
    --accent-gradient: linear-gradient(135deg, #24685d, #194d45);
    --bg: #f8f9f5; --text-main: #1b2e32; --text-sub: #5b686a;
    --text-muted: #667573; --border: #dce3dd; --radius-lg: 16px; --radius-md: 12px;
}
body { background-image: none; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid #478775; outline-offset: 5px; }
section[id] { scroll-margin-top: 100px; }
.header { padding: 16px max(5vw, calc((100vw - 1280px)/2)); background: rgba(248,249,245,.95); min-height: 86px; }
.logo-mark { width: 46px; }
.logo-name { font-size: 18px; }
.logo-sub { font-size: 10px; letter-spacing: 1.3px; color: #64716e; }
.nav { gap: 28px; }
.nav-link { font-size: 14px; }
.nav-cta { background: #213c3b; color: #fff; padding: 11px 18px; border-radius: 6px; }
.nav-cta:hover { color: #d8efc7; }
.nav-cta:after { display: none; }
.footer { background: transparent; padding: 30px 5vw; flex-direction: row; justify-content: space-between; font-size: 12px; }
.skip-link { position: fixed; top: -80px; left: 20px; background: white; z-index: 100; padding: 14px; }
.skip-link:focus { top: 10px; }
.studio-home .section, .hero, .expertise-strip { max-width: 1280px; margin: 0 auto; }
.studio-home .section { padding: 86px 0; }
.studio-home .section-alt { background: none; border-radius: 0; }
.eyebrow { font-family: Arial,sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 1.8px; color: #517265; margin: 0 0 24px; }
.hero { padding: 76px 0; overflow: visible; }
.hero-bg-blob { display: none; }
.hero-inner { display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; gap: 54px; max-width: none; }
.hero-kicker { font-family: Arial,sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 1.5px; color: #517265; margin: 0 0 26px; background: none; padding: 0; border: 0; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #5a9d78; margin-right: 8px; }
.hero h1 { font-size: clamp(36px,3.65vw,54px); line-height: 1.45; letter-spacing: -1.9px; margin: 0 0 26px; font-weight: 700; }
.hero-highlight { color: #34735d; position: relative; white-space: nowrap; background: none; -webkit-text-fill-color: currentColor; }
.hero-highlight:after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 6px; border-top: 2px solid #93b896; border-radius: 50%; transform: rotate(-2deg); }
.hero-subtitle { font-size: 15px; line-height: 2; color: var(--text-sub); margin: 0 0 30px; max-width: 485px; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin: 0; }
.btn { font-size: 14px; border-radius: 6px; box-shadow: none; gap: 25px; padding: 14px 22px; text-decoration: none; }
.btn.primary { background: #234c44; color: white; box-shadow: none; }
.btn.primary:hover { background: #163e36; transform: translateY(-2px); }
.text-link { display: inline-flex; gap: 24px; align-items: center; color: #26473e; font-size: 14px; font-weight: 500; text-decoration: none; }
.text-link:hover { color: #528965; }
.hero-badges { display: flex; gap: 0; margin-top: 35px; }
.hero-badges .badge { font-size: 11px; color: #64746b; border: 0; padding: 0; background: none; box-shadow: none; }
.hero-badges .badge + .badge:before { content: "/"; padding: 0 16px; color: #a4b3a7; }
/* A conceptual system diagram, not a product screenshot. */
.system-visual { height: 416px; position: relative; border: 1px solid #d8e2d9; border-radius: 14px; background-color: #eef2ea; background-image: radial-gradient(#b8c9b9 .7px,transparent .7px); background-size: 16px 16px; overflow: hidden; padding: 22px 28px; display: flex; flex-direction: column; align-items: center; }
.visual-topline, .visual-bottomline { font-family: Arial,sans-serif; display: flex; justify-content: space-between; align-items: center; width: 100%; font-size: 8px; letter-spacing: 1px; color: #53695b; z-index: 1; }
.visual-topline .status-dot { height: 5px; width: 5px; margin-right: 4px; }
.orbit { position: absolute; border: 1px solid #d9e3d6; border-radius: 50%; width: 350px; height: 350px; top: 30px; pointer-events: none; }
.orbit-two { width: 470px; height: 470px; top: -30px; }
.system-node { position: relative; display: flex; gap: 12px; align-items: center; background: #fff; box-shadow: 0 6px 18px #213b3110; border: 1px solid #dfe8de; border-radius: 8px; padding: 14px 18px; width: 270px; margin-top: 29px; }
.system-node small, .system-core small { display: block; font: 8px Arial,sans-serif; letter-spacing: 1.5px; margin-bottom: 5px; color: #66766b; }
.system-node strong { font-size: 12px; }
.node-symbol { font-size: 23px; color: #53755e; }
.node-check { margin-left: auto; font-size: 10px; background: #edf5e8; padding: 2px 5px; color: #568653; }
.connection { height: 25px; min-height: 25px; width: 1px; background: #8ca78e; position: relative; }
.connection:after { content: ""; position: absolute; bottom: 0; left: -3px; width: 5px; height: 5px; border-right: 1px solid #749178; border-bottom: 1px solid #749178; transform: rotate(45deg); }
.system-core { z-index: 1; display: flex; align-items: center; gap: 15px; width: 310px; border-radius: 10px; padding: 20px; background: #223f37; color: white; box-shadow: 0 14px 22px #20382c1a; }
.core-code { font: 24px monospace; color: #c4e5b7; }
.system-core small { color: #b1c5b7; font-size: 7px; }
.system-core strong { font-size: 19px; letter-spacing: 1px; }
.core-spark { font-size: 28px; margin-left: auto; color: #d1e8bc; }
.system-outputs { z-index: 1; display: grid; grid-template-columns: repeat(3,1fr); width: 100%; gap: 10px; }
.system-outputs > div { display: flex; flex-direction: column; align-items: center; background: #ffffffed; border: 1px solid #d9e2d6; padding: 11px 4px; border-radius: 7px; }
.system-outputs span { color: #527b58; font-size: 20px; line-height: 1.2; margin-bottom: 6px; }
.system-outputs strong { font-size: 11px; }
.system-outputs small { font-size: 9px; color: #657361; margin-top: 4px; }
.visual-bottomline { margin-top: auto; font-size: 9px; letter-spacing: 0; }
.visual-bottomline small { font-size: 8px; }
.visual-bottomline .status-dot { width: 5px; height: 5px; }
.expertise-strip { padding: 25px 0; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 12px; color: #637166; }
.expertise-strip > div { display: flex; align-items: center; gap: 32px; color: #44534c; font-size: 14px; }
.expertise-strip b { font-size: 12px; color: #7a8e7e; font-weight: 400; }
/* Services and selected projects. */
.studio-home .section-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; max-width: none; margin: 0 0 38px; text-align: left; }
.studio-home .section-header .eyebrow { margin: 0 0 18px; font-size: 11px; color: #517265; }
.studio-home .section h2 { font-size: 34px; line-height: 1.5; letter-spacing: -1px; margin: 0; }
.studio-home .section-header > p { color: var(--text-sub); font-size: 14px; line-height: 1.9; margin: 0 0 4px; }
.services-grid { grid-template-columns: repeat(4,1fr); gap: 16px; }
.service.card { padding: 26px 24px; border: 1px solid #dfe5dd; border-radius: 9px; box-shadow: none; display: flex; flex-direction: column; }
.service:hover { border-color: #92ad94; }
.offer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.offer-icon { font: 24px monospace; color: #4b715d; }
.offer-top small { font: 10px monospace; color: #68766b; }
.service h3 { font-size: 18px; margin: 0 0 14px; letter-spacing: -.5px; }
.service .service-desc { font-size: 13px; line-height: 1.9; margin: 0 0 24px; }
.service ul { padding: 17px 0 0; margin: auto 0 0; border-top: 1px solid #e8ece6; font-size: 11px; }
.service li { margin-bottom: 7px; }
.service li:before { color: #6c926d; }
.work-section { border-top: 1px solid var(--border); }
.selected-work { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
.work-card { color: inherit; text-decoration: none; display: block; min-width: 0; }
.work-art { height: 232px; padding: 25px 30px; border-radius: 10px; position: relative; overflow: hidden; transition: transform .25s; }
.work-card:hover .work-art { transform: translateY(-4px); }
.factory-art { background: #e7ece3; }
.crm-art { background: #e5ecee; }
.mini-caption { font: 9px monospace; letter-spacing: 1px; color: #54645a; display: flex; justify-content: space-between; }
.work-art > small { position: absolute; bottom: 14px; right: 20px; font-size: 9px; color: #586a62; }
.factory-flow { display: flex; align-items: center; gap: 12px; margin-top: 35px; }
.factory-flow > span { flex: 1; font-size: 12px; background: #fafff8; border: 1px solid #cedac8; border-radius: 5px; padding: 14px 10px; display: flex; justify-content: space-between; gap: 5px; }
.factory-flow b, .crm-flow > b { color: #708572; font-weight: 400; }
.factory-flow i { font-style: normal; color: #638957; }
.mini-lines { margin-top: 22px; display: grid; grid-template-columns: 3fr 2fr 1fr; gap: 7px; }
.mini-lines i { height: 7px; background: #c3d3bb; border-radius: 2px; }
.mini-lines i:nth-child(2) { background: #d1ddcb; }
.mini-lines i:nth-child(3) { background: #dce5d6; }
.crm-flow { display: flex; align-items: center; justify-content: center; gap: 26px; margin-top: 22px; }
.crm-flow > span { font: 20px Arial,sans-serif; text-align: center; }
.crm-flow small { font: 10px var(--font-sans); color: #506467; }
.crm-flow .crm-center { background: #2d4d50; color: white; border-radius: 10px; padding: 14px 26px; }
.crm-center small { color: #cfdddc; }
.crm-label { font-size: 10px; text-align: center; margin-top: 18px; color: #526b6d; letter-spacing: 3px; }
.work-info { padding: 23px 0 0; }
.work-info .eyebrow { font-family: var(--font-sans); font-size: 10px; margin-bottom: 10px; }
.work-info h3 { display: flex; justify-content: space-between; gap: 12px; font-size: 20px; margin: 0 0 10px; }
.work-info h3 span { font-weight: 400; }
.work-info > p:last-child { color: var(--text-sub); font-size: 13px; line-height: 1.9; margin: 0; }
.about-studio { border-top: 1px solid var(--border); display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.about-intro { font-size: 14px; line-height: 2; color: var(--text-sub); max-width: 410px; margin: 24px 0; }
.principles article { display: flex; gap: 25px; padding: 25px 0; border-bottom: 1px solid var(--border); }
.principles article:first-child { padding-top: 0; }
.principles article > span { font: 12px monospace; color: #64836b; padding-top: 5px; }
.principles h3 { font-size: 18px; margin: 0 0 8px; }
.principles p { font-size: 13px; line-height: 1.9; color: var(--text-sub); margin: 0; }
#process { border-top: 1px solid var(--border); padding-bottom: 30px; }
.process-grid { grid-template-columns: repeat(4,1fr); gap: 30px; margin-top: 45px; }
.step.card { background: transparent; border: 0; border-top: 1px solid #aabdad; border-radius: 0; padding: 20px 0 0; box-shadow: none; text-align: left; }
.step-number { position: static; display: block; background: none; width: auto; height: auto; border: 0; padding: 0; font: 16px monospace; color: #5c7961; margin: 0 0 22px; box-shadow: none; }
.step h3 { font-size: 18px; margin: 0 0 12px; }
.step p { font-size: 13px; line-height: 1.9; margin: 0; }
.step:after { display: none; }
/* Contact and shared secondary pages. */
.contact-banner { background: #203e38; border-radius: 12px; color: #fff; padding: 58px 60px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px; }
.contact-banner .eyebrow { color: #b4cdaa; font-size: 10px; }
.studio-home .contact-banner h2 { font-size: 36px; color: white; }
.contact-banner p { font-size: 13px; line-height: 1.9; color: #bacac0; margin: 22px 0; }
.contact-button { background: #d3e8be; color: #203e38; margin-top: 6px; display: inline-flex; }
.contact-button:hover { background: #e0f0d2; }
.contact-details { border-left: 1px solid #496259; padding-left: 46px; display: flex; flex-direction: column; justify-content: flex-end; }
.contact-symbol { font-size: 54px; line-height: 1; color: #d0e7bd; margin-bottom: auto; align-self: flex-end; }
.contact-details small { display: block; font: 9px Arial,sans-serif; letter-spacing: 2px; color: #b4c5b9; margin: 18px 0 6px; }
.contact-details a { color: white; text-decoration: none; font-size: 18px; }
.contact-details a:hover { text-decoration: underline; }
.contact-details p { font-size: 11px; margin-bottom: 0; }
.back-to-top { background: #2e5449; width: 40px; height: 40px; box-shadow: 0 3px 12px #0002; }
.case { box-shadow: none; }
.case-feature { border-color: #9cb7a0; }
.legal-page { min-height: 70vh; }
.js .reveal { opacity: 1; transform: none; }
@media (min-width: 1440px) { .hero { padding-top: 100px; padding-bottom: 94px; } }
@media (max-width: 1400px) { .studio-home .section, .hero, .expertise-strip { margin-left: 5vw; margin-right: 5vw; } }
@media (max-width: 1100px) {
    .nav { gap: 18px; } .nav-link { font-size: 12px; }
    .hero-inner { gap: 30px; } .hero h1 { font-size: 38px; } .system-visual { padding: 20px; }
    .services-grid { grid-template-columns: repeat(2,1fr); } .expertise-strip > div { gap: 18px; }
    .factory-flow { gap: 8px; } .factory-flow > span { font-size: 10px; padding: 12px 7px; }
    .about-studio { gap: 45px; } .contact-banner { padding: 42px; } .contact-details { padding-left: 30px; }
}
@media (max-width: 800px) {
    .header { padding: 12px 5vw; min-height: 74px; } .logo-name { font-size: 16px; } .logo-mark { width: 40px; } .logo-sub { font-size: 8px; }
    .nav { position: absolute; top: 100%; left: 5vw; right: 5vw; width: auto; background: #fff; flex-direction: column; padding: 22px; box-shadow: 0 12px 30px #18392b18; border: 1px solid var(--border); border-radius: 8px; display: none; align-items: stretch; gap: 8px; }
    .nav.open { display: flex; } .nav-link { font-size: 14px; padding: 10px; }
    .nav-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 12px; cursor: pointer; } .nav-toggle span { width: 23px; height: 2px; background: #29483d; }
    .hero { padding: 48px 0; } .hero-inner { grid-template-columns: 1fr; gap: 36px; }
    .hero h1 { font-size: clamp(31px,6vw,46px); letter-spacing: -1px; } .hero-subtitle { font-size: 14px; }
    .system-visual { max-width: 560px; width: 100%; justify-self: center; height: 410px; padding: 22px 28px; }
    .hero-kicker { font-size: 9px; letter-spacing: 1.1px; }
    .expertise-strip { flex-direction: column; align-items: flex-start; gap: 15px; padding: 22px 0; } .expertise-strip > div { justify-content: space-between; width: 100%; font-size: 12px; gap: 8px; }
    .studio-home .section { padding: 58px 0; } .studio-home .section-header { align-items: flex-start; flex-direction: column; gap: 20px; margin-bottom: 28px; }
    .studio-home .section h2 { font-size: 28px; } .studio-home .section-header > p { font-size: 13px; }
    .selected-work { grid-template-columns: minmax(0,1fr); gap: 30px; } .work-art { height: 225px; } .factory-flow > span { font-size: 12px; padding: 14px 10px; }
    .about-studio { grid-template-columns: 1fr; gap: 34px; } .about-intro { max-width: none; }
    .process-grid { grid-template-columns: 1fr 1fr; gap: 30px; } #process { padding-bottom: 0; }
    .contact-banner { grid-template-columns: 1fr; padding: 30px 25px; gap: 32px; } .studio-home .contact-banner h2 { font-size: 29px; }
    .contact-details { border-left: none; border-top: 1px solid #496259; padding: 10px 0 0; } .contact-symbol { display: none; }
    .contact-banner .eyebrow { font-size: 8px; letter-spacing: 1.3px; } .footer { flex-wrap: wrap; gap: 18px; padding: 25px 5vw; }
}
@media (max-width: 440px) {
    .services-grid { grid-template-columns: 1fr; } .service.card { padding: 24px; } .offer-top { margin-bottom: 18px; }
    .hero-actions { gap: 20px; } .hero-actions .btn { padding: 13px 17px; gap: 12px; font-size: 13px; } .text-link { font-size: 12px; gap: 12px; }
    .hero-badges .badge { font-size: 10px; } .hero-badges .badge + .badge:before { padding: 0 12px; }
    .system-core { width: 260px; padding: 18px 16px; gap: 10px; } .system-core strong { font-size: 17px; } .system-node { width: 240px; }
    .visual-topline { font-size: 6px; letter-spacing: .6px; } .system-visual { padding: 20px 16px; height: 400px; } .visual-bottomline { font-size: 8px; }
    .expertise-strip > div { font-size: 10px; gap: 5px; } .work-art { padding: 22px 18px; height: 210px; }
    .factory-flow { gap: 5px; } .factory-flow > span { font-size: 10px; padding: 12px 6px; }
    .crm-flow { gap: 17px; } .crm-flow .crm-center { padding: 14px 20px; } .work-info h3 { font-size: 18px; }
    .eyebrow { font-size: 10px; } .contact-details a { font-size: 17px; } .process-grid { gap: 24px; } .step p { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}
