@charset "UTF-8";

:root {
  --canvas: #f6f5f1;
  --surface: #fff;
  --ink: #232521;
  --secondary: #666a64;
  --line: #d9dbd3;
  --blue: #3456ed;
  --blue-light: #e7ecff;
  --resume: #e8f1f9;
  --dark: #202420;
  --display: "Avenir Next", "Helvetica Neue", "PingFang SC", sans-serif;
  --body: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(.22, .68, 0, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 16px/1.75 var(--body); -webkit-font-smoothing: antialiased; }
body.dialog-open { overflow: hidden; }
::selection { background: var(--blue-light); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
button:disabled { opacity: .6; }
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3, dl, dd { margin: 0; }
p, h1, h2, h3 { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; }
h2 { font-size: clamp(30px, 3.05vw, 46px); line-height: 1.42; letter-spacing: -.055em; }
h3 { letter-spacing: -.035em; }
button { color: inherit; }
[hidden] { display: none !important; }
.wrap { width: min(1376px, calc(100% - 112px)); margin-inline: auto; }
.blue { color: var(--blue); }
.quiet-button { padding: 0; border: 0; background: none; }
.skip-link { position: fixed; top: -70px; left: 16px; z-index: 100; background: var(--ink); color: white; padding: 12px 20px; }
.skip-link:focus { top: 12px; }

/* A personal masthead, kept separate from the case navigation. */
.site-header { height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: baseline; gap: 12px; white-space: nowrap; font-size: 25px; font-weight: 600; letter-spacing: -.05em; }
.wordmark-slash { color: #a5a89f; font-weight: 400; }
.wordmark-en { font: 500 14px/1 var(--display); letter-spacing: -.035em; }
.main-nav { display: flex; gap: 34px; margin-left: auto; margin-right: 28px; font-size: 14px; }
.main-nav a, .back-link, .compact-footer > a:last-of-type { transition: color 180ms; }
.main-nav a:hover, .back-link:hover { color: var(--blue); }
.header-contact { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; padding: 11px 18px; background: var(--ink); color: var(--surface); border-radius: 3px; font-size: 13px; transition: background 180ms; white-space: nowrap; }
.header-contact:hover { background: var(--blue); }
.header-contact span { font-size: 20px; line-height: 1; }

/* The headline is the anchor; actual product imagery supplies the color. */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); column-gap: 24px; padding-top: 82px; }
.hero-copy { position: relative; z-index: 2; }
.intro-line { display: flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: .025em; margin-bottom: 30px; }
.intro-mark { display: inline-block; width: 9px; height: 9px; border: 2px solid var(--blue); transform: rotate(45deg); }
.hero h1 { font-size: clamp(46px, 5.1vw, 81px); font-weight: 600; line-height: 1.25; letter-spacing: -.068em; white-space: nowrap; }
.hero h1 .blue { display: inline-block; margin-left: 5px; }
.hero-description { margin-top: 28px; font-size: 17px; color: var(--secondary); line-height: 1.9; }
.hero-bottom { display: flex; align-items: center; gap: 60px; margin-top: 42px; }
.text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; font-size: 14px; padding-block: 8px; border-bottom: 1px solid currentColor; }
.text-link:hover { color: var(--blue); }
.text-link span { font-size: 20px; line-height: 1; transition: transform 220ms var(--ease); }
.text-link:hover span { transform: translate(2px, -2px); }
.signature { font: italic 30px/1.2 Georgia, serif; color: var(--blue); transform: rotate(-7deg); letter-spacing: -.06em; }
.hero-art { position: relative; align-self: center; height: 390px; margin-top: 16px; }
.art-note { position: absolute; top: 8px; left: 16px; font: 10px/1.6 var(--display); color: var(--secondary); letter-spacing: .1em; }
.hero-browser { position: absolute; top: 62px; left: 0; width: 88%; border: 1px solid #d4d7db; background: white; border-radius: 6px; transform: rotate(-6deg); box-shadow: 0 20px 48px #23252114; animation: browser-float 7s var(--ease) infinite; }
.browser-bar { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-bottom: 1px solid #e6e8ee; background: #fbfbfc; border-radius: 5px 5px 0 0; }
.browser-bar > span { width: 5px; height: 5px; background: #ccd0d7; border-radius: 50%; }
.browser-bar b { margin-inline: auto; padding-right: 30px; color: #777b85; font-size: 8px; font-weight: 400; }
.hero-browser > img { width: 100%; }
.browser-caption { display: flex; justify-content: space-between; padding: 10px 14px; font-size: 11px; }
.hero-phone { position: absolute; top: 139px; right: -3%; width: 29%; transform: rotate(9deg); border-radius: 23px; box-shadow: 0 16px 36px #2325211c; animation: phone-float 7s var(--ease) infinite; }
.hero-phone img { width: 100%; border-radius: inherit; }
.art-coordinate { position: absolute; bottom: 17px; left: 26px; display: flex; align-items: center; gap: 24px; font-size: 12px; color: var(--secondary); }
.art-coordinate > span { font-size: 23px; color: var(--blue); }
.art-cross { position: absolute; right: 9%; top: 16px; font-size: 36px; font-weight: 200; color: var(--blue); }
.hero-foot { grid-column: 1 / -1; margin-top: 76px; padding: 23px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); color: var(--secondary); font-size: 12px; }
.hero-foot p { display: flex; gap: 18px; }
.hero-foot p > span { color: #acaea6; }
.motion-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; }
.pause-symbol { font-size: 16px; color: var(--ink); }
.motion-toggle:hover { color: var(--blue); }
@keyframes browser-float { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-9px) rotate(-4deg); } }
@keyframes phone-float { 0%, 100% { transform: translateY(0) rotate(9deg); } 50% { transform: translateY(9px) rotate(6deg); } }
@keyframes enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.hero-copy > * { animation: enter 700ms var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 80ms; }
.hero-copy > :nth-child(3) { animation-delay: 160ms; }
.hero-copy > :nth-child(4) { animation-delay: 240ms; }

/* Selected work: a larger B-side scene and a taller mobile composition. */
.selected-work { padding-top: 94px; padding-bottom: 110px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; margin-bottom: 40px; }
.section-index { font-size: 12px; color: var(--secondary); margin-bottom: 16px; letter-spacing: .025em; }
.section-aside { font-size: 13px; color: var(--secondary); line-height: 1.9; }
.work-grid { display: grid; grid-template-columns: 1.16fr 1fr; gap: 32px; align-items: start; }
.project-resume { margin-top: 76px; }
.project-image { position: relative; display: block; height: 390px; overflow: hidden; border-radius: 5px; isolation: isolate; }
.talent-stage { background: var(--dark); color: white; }
.resume-stage { background: var(--resume); height: 425px; }
.project-image::after { content: ""; position: absolute; inset: auto 0 0; height: 115px; z-index: 1; pointer-events: none; }
.talent-stage::after { background: linear-gradient(transparent, var(--dark) 85%); }
.resume-stage::after { background: linear-gradient(transparent, var(--resume) 85%); }
.stage-heading, .stage-footer { position: absolute; display: flex; align-items: center; justify-content: space-between; left: 27px; right: 27px; z-index: 2; }
.stage-heading { top: 24px; font-size: 13px; }
.stage-badge { border: 1px solid #ffffff38; padding: 3px 9px; border-radius: 20px; font-size: 10px; }
.resume-stage .stage-badge { border-color: #23252130; }
.stage-footer { bottom: 22px; font-size: 12px; }
.round-arrow { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #ffffff55; border-radius: 50%; font-size: 22px; transition: background 220ms, color 220ms, transform 400ms var(--ease); }
.resume-stage .round-arrow { border-color: #23252155; }
.talent-window { position: absolute; width: 86%; top: 91px; left: 7%; border: 1px solid #ffffff40; border-radius: 7px; background: white; transform: perspective(900px) rotateY(-7deg) rotateZ(-3deg); box-shadow: 0 24px 48px #0004; transition: transform 700ms var(--ease); }
.talent-window img { width: 100%; border-radius: 0 0 5px 5px; }
.project-image:hover .talent-window, .project-image:focus-visible .talent-window { transform: perspective(900px) rotateY(0) rotateZ(0) translateY(-6px); }
.project-image:hover .round-arrow, .project-image:focus-visible .round-arrow { transform: rotate(45deg); background: white; color: var(--ink); }
.resume-phones { position: absolute; inset: 75px 0 66px; }
.resume-phones img { position: absolute; border-radius: 16px; box-shadow: 0 20px 28px #4d688b1c; transition: transform 700ms var(--ease); }
.resume-phone-front { width: 31%; left: 20%; top: -5px; transform: rotate(-9deg); }
.resume-phone-back { width: 29%; left: 48%; top: 10px; transform: rotate(10deg); }
.project-image:hover .resume-phone-front, .project-image:focus-visible .resume-phone-front { transform: rotate(-4deg) translate(-7px, -9px); }
.project-image:hover .resume-phone-back, .project-image:focus-visible .resume-phone-back { transform: rotate(5deg) translate(7px, -4px); }
.project-info { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; }
.project-category { color: var(--secondary); font-size: 11px; margin-bottom: 6px; }
.project-info h3 { font-size: 25px; line-height: 1.6; }
.project-info h3 a:hover { color: var(--blue); }
.project-info p:last-child { color: var(--secondary); font-size: 13px; margin-top: 6px; max-width: 33em; }
.case-link { align-self: flex-start; font-size: 11px; white-space: nowrap; margin-top: 28px; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.case-link:hover { color: var(--blue); }

/* A functional preview, with scope visible beside the interaction. */
.practice-section { background: #edeee7; padding: 90px 0; }
.practice-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 10%; align-items: center; }
.practice-copy > p:not(.section-index, .status-note) { margin-top: 24px; max-width: 29em; font-size: 15px; color: var(--secondary); }
.practice-copy .text-link { margin-top: 26px; }
.status-note { font-size: 11px; margin-top: 22px; color: var(--secondary); line-height: 1.8; }
.demo-shell { padding: 24px; background: var(--surface); border: 1px solid #dde0d7; border-radius: 5px; }
.demo-topline { display: flex; align-items: center; justify-content: space-between; font-size: 12px; padding-bottom: 18px; }
.demo-label { color: var(--secondary); font-size: 10px; }
.email-widget { background: var(--canvas); padding: 24px; border-radius: 4px; }
.email-widget-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.mail-icon { display: grid; place-items: center; width: 30px; height: 30px; font: 24px/1 Georgia, serif; color: var(--blue); background: var(--blue-light); border-radius: 50%; }
.demo-status { min-height: 99px; padding-top: 17px; padding-bottom: 20px; }
.demo-status strong { display: block; font-size: 15px; font-weight: 500; }
.demo-status p { margin-top: 5px; color: var(--secondary); font-size: 12px; line-height: 1.8; }
.demo-status code { font: 15px/1.8 var(--display); color: var(--blue); overflow-wrap: anywhere; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 45px; padding: 10px 18px; border: 0; border-radius: 3px; font-size: 13px; transition: background 200ms, transform 200ms; }
.button:active:not(:disabled) { transform: translateY(1px); }
.button-primary { background: var(--blue); color: white; }
.button-primary:hover:not(:disabled) { background: #2846c9; }
.demo-action { width: 100%; }
.demo-fee { margin-top: 10px; color: var(--secondary); font-size: 10px; text-align: center; }
.scenario-control { margin-top: 20px; }
.scenario-control > p { font-size: 11px; color: var(--secondary); margin-bottom: 10px; }
.scenario-buttons { display: flex; flex-wrap: wrap; gap: 7px; }
.scenario-buttons button { background: none; border: 1px solid var(--line); border-radius: 3px; padding: 6px 11px; min-height: 35px; font-size: 11px; transition: background 180ms, border-color 180ms; }
.scenario-buttons button:hover { border-color: var(--blue); }
.scenario-buttons button[aria-pressed="true"] { background: var(--blue-light); border-color: var(--blue); color: var(--blue); }
.demo-disclaimer { color: var(--secondary); font-size: 10px; margin-top: 16px; }
.status-spinner { display: inline-block; width: 12px; height: 12px; margin-right: 8px; border: 1.5px solid var(--line); border-top-color: var(--blue); border-radius: 50%; vertical-align: middle; animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Supporting work expands in place rather than competing with the flagships. */
.more-work { padding-top: 106px; padding-bottom: 96px; }
.more-work h2 { font-size: clamp(28px, 2.7vw, 40px); }
.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.support-project summary { cursor: pointer; list-style: none; }
.support-project summary::-webkit-details-marker { display: none; }
.support-image { display: flex; align-items: center; justify-content: center; height: 255px; border-radius: 4px; overflow: hidden; }
.mofang-surface { background: #e4e8ee; padding: 42px 32px; }
.mofang-surface img { width: 100%; border-radius: 4px; box-shadow: 0 12px 28px #2325210c; transition: transform 500ms var(--ease); }
.petloo-surface { background: #e9e5f2; }
.petloo-surface img { width: 58%; max-width: 290px; transform: translateY(42px); transition: transform 500ms var(--ease); }
.support-project summary:hover .mofang-surface img { transform: translateY(-4px); }
.support-project summary:hover .petloo-surface img { transform: translateY(31px); }
.support-info { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 19px; }
.support-info b { font-size: 20px; font-weight: 500; }
.support-info small { display: block; font-size: 11px; color: var(--secondary); margin-top: 6px; }
.expand-sign { display: inline-block; font-size: 25px; font-weight: 300; transition: transform 220ms; }
.support-project[open] .expand-sign { transform: rotate(45deg); }
.support-detail { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.support-detail p { font-size: 14px; color: var(--secondary); }
.support-detail .text-link { margin-top: 12px; font-size: 12px; }
.about-section { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12%; padding-top: 88px; padding-bottom: 104px; border-top: 1px solid var(--line); }
.about-heading h2 { font-size: clamp(28px, 2.5vw, 38px); }
.about-heading > p:last-child { max-width: 35em; margin-top: 24px; font-size: 14px; line-height: 1.9; color: var(--secondary); }
.experience-list { padding-top: 38px; }
.experience-list > div { display: grid; grid-template-columns: 1.3fr 1fr; column-gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.experience-list span { font: 11px/1.9 var(--display); color: var(--secondary); grid-row: span 2; }
.experience-list b { font-size: 16px; font-weight: 500; }
.experience-list p { font-size: 11px; color: var(--secondary); }
.experience-list > .about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; border: 0; padding-top: 24px; }
.about-actions .text-link { font-size: 12px; }
.about-actions small { font-size: 10px; color: var(--secondary); }
.site-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 64px; border-top: 1px solid var(--line); }
.site-footer > p { font-size: clamp(26px, 3vw, 44px); font-weight: 500; line-height: 1.5; letter-spacing: -.05em; }
.site-footer > p > span { color: var(--secondary); }
.site-footer > div:not(.footer-bottom) { align-self: center; justify-self: end; }
.footer-email { display: block; font: 500 clamp(18px, 2vw, 28px)/1.8 var(--display); letter-spacing: -.03em; }
.footer-email:hover { color: var(--blue); }
.footer-email > span { margin-left: 16px; }
.footer-note { display: block; color: var(--secondary); font-size: 11px; margin-top: 12px; }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; padding-block: 36px 24px; font: 11px/1.8 var(--display); color: var(--secondary); }

/* Cases keep a stable reading spine and use original product visuals. */
.case-hero { padding-top: 38px; }
.back-link { display: inline-block; font-size: 12px; color: var(--secondary); }
.case-kicker { margin-top: 58px; font-size: 13px; color: var(--secondary); }
.case-hero > h1 { font-size: clamp(40px, 4.8vw, 72px); letter-spacing: -.06em; line-height: 1.3; margin-top: 24px; }
.case-lead { color: var(--secondary); margin-top: 28px; font-size: 17px; line-height: 1.9; }
.case-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-block: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.case-facts dt { color: var(--secondary); font-size: 11px; margin-bottom: 10px; }
.case-facts dd { font-size: 13px; line-height: 1.9; }
.case-cover { border-radius: 5px; padding: 60px min(12%, 160px) 24px; }
.talent-cover { background: var(--dark); }
.case-cover img { width: 100%; border-radius: 9px; box-shadow: 0 20px 50px #0003; }
.case-cover figcaption { margin-top: 22px; text-align: center; font-size: 11px; color: #c4c9c1; }
.case-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 7%; margin-top: 96px; }
.case-toc { align-self: start; position: sticky; top: 38px; }
.case-toc > span { font-size: 11px; color: var(--secondary); }
.case-toc nav { display: flex; flex-direction: column; margin-top: 18px; gap: 7px; }
.case-toc nav a { font-size: 12px; color: var(--secondary); padding: 7px 0; border-left: 2px solid transparent; transition: color 180ms, padding 180ms, border-color 180ms; }
.case-toc nav a:hover, .case-toc nav a[aria-current="location"] { color: var(--blue); border-left-color: var(--blue); padding-left: 12px; }
.print-button { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 11px; color: var(--secondary); }
.case-body { min-width: 0; max-width: 1000px; }
.case-section { padding-bottom: 76px; margin-bottom: 72px; border-bottom: 1px solid var(--line); scroll-margin-top: 32px; }
.case-section h2 { font-size: clamp(28px, 3vw, 43px); margin-bottom: 28px; }
.case-section > p:not(.section-index, .figure-note) { margin-top: 22px; color: var(--secondary); font-size: 16px; max-width: 43em; line-height: 1.95; }
.case-section > p.case-large-text { color: var(--ink); font-size: 20px; line-height: 1.85; }
.contribution-note { margin-top: 32px; padding: 24px 28px; background: #edeee7; border-radius: 3px; }
.contribution-note h3 { font-size: 15px; margin-bottom: 10px; font-weight: 500; }
.contribution-note p { font-size: 13px; line-height: 1.95; color: var(--secondary); }
.decision { margin-top: 48px; }
.decision + .decision { margin-top: 64px; }
.decision-heading { display: flex; gap: 18px; align-items: baseline; margin-bottom: 18px; }
.decision-heading > span { font: 400 13px/1.6 var(--display); color: var(--blue); }
.decision-heading > h3 { font-size: 23px; line-height: 1.6; }
.decision > p { font-size: 15px; color: var(--secondary); line-height: 1.95; }
.comparison { margin-top: 28px; background: #edeee7; border-radius: 4px; padding: 22px; }
.comparison-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 12px; }
.comparison-toolbar > div { display: flex; border: 1px solid var(--line); padding: 3px; border-radius: 3px; background: var(--canvas); }
.comparison-toolbar button { padding: 5px 14px; border: 0; border-radius: 2px; background: none; font-size: 11px; }
.comparison-toolbar button[aria-pressed="true"] { background: var(--surface); color: var(--blue); box-shadow: 0 1px 3px #2325210a; }
.comparison-images { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; height: 490px; padding: 28px 0; }
.comparison-images img { max-height: 100%; width: auto; height: 100%; object-fit: contain; border: 1px solid #d4d6cf; border-radius: 4px; }
.figure-note { color: var(--secondary); font-size: 11px; line-height: 1.9; }
.comparison .figure-note { text-align: center; margin-top: 12px; }
.decision > .decision-takeaway { margin-top: 20px; font-size: 13px; }
.path-comparison { display: grid; gap: 12px; margin-top: 24px; }
.path-comparison > div { background: #edeee7; padding: 22px 24px; border-radius: 3px; }
.path-comparison > div:last-child { background: var(--blue-light); }
.path-comparison span { color: var(--secondary); font-size: 11px; }
.path-comparison p { margin-top: 8px; font-size: 14px; line-height: 2; }
.path-comparison i { font-style: normal; margin-inline: 8px; color: var(--secondary); }
.image-button { display: block; width: 100%; padding: 0; border: 0; background: transparent; text-align: left; margin-top: 28px; }
.image-button img { width: 100%; border: 1px solid var(--line); border-radius: 4px; }
.image-button span { display: block; text-align: right; color: var(--secondary); font-size: 11px; margin-top: 10px; }
.image-button:hover span { color: var(--blue); }
.case-demo { margin-top: 36px; max-width: 560px; }
.case-demo .email-widget { padding: 28px; }
.implementation-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 36px; }
.implementation-principles article { border-top: 1px solid var(--line); padding-top: 18px; }
.implementation-principles h3 { font-size: 15px; margin-bottom: 10px; }
.implementation-principles p { color: var(--secondary); font-size: 12px; line-height: 1.95; }
.result-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 36px 0; }
.result-number { font: 500 clamp(32px, 4vw, 58px)/1.4 var(--display); letter-spacing: -.06em; }
.result-number i { font-size: .55em; color: var(--secondary); font-style: normal; margin-inline: 12px; }
.result-band p { color: var(--secondary); font-size: 12px; margin-top: 10px; }
.result-delta { font: 400 18px/1.4 var(--display); color: var(--blue); }
.evidence-table { margin-top: 36px; }
.evidence-row { display: grid; grid-template-columns: 1fr auto; gap: 14px 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.evidence-row b { font-size: 15px; font-weight: 500; }
.evidence-row p { grid-column: 1 / -1; font-size: 13px; color: var(--secondary); line-height: 1.9; }
.state-tag { align-self: start; padding: 3px 9px; border-radius: 20px; font-size: 10px; color: var(--secondary); background: #e8ebe2; }
.state-tag.state-progress { background: var(--blue-light); color: var(--blue); }
.next-case { display: block; padding-block: 0 64px; }
.next-case > span { font-size: 11px; color: var(--secondary); }
.next-case strong { display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: clamp(26px, 3vw, 40px); font-weight: 500; letter-spacing: -.05em; margin-top: 16px; }
.next-case p { font-size: 13px; color: var(--secondary); margin-top: 12px; }
.next-case:hover strong { color: var(--blue); }
.compact-footer { display: flex; align-items: center; gap: 36px; border-top: 1px solid var(--line); padding-block: 32px; margin-top: 48px; }
.compact-footer .wordmark { font-size: 17px; margin-right: auto; }
.compact-footer > a:last-of-type { font-size: 12px; }
.compact-footer > span { font-size: 11px; color: var(--secondary); }

/* Resume keeps a different visual register within the same reading system. */
.resume-case-cover { display: grid; grid-template-columns: 1fr 1.1fr; min-height: 510px; background: var(--resume); border-radius: 5px; overflow: hidden; padding: 60px 8%; gap: 36px; }
.resume-cover-copy { align-self: center; }
.resume-cover-copy > span { font: 11px/1.7 var(--display); color: var(--secondary); letter-spacing: .04em; }
.resume-cover-copy h2 { margin-top: 24px; font-size: clamp(28px, 3.5vw, 48px); line-height: 1.45; }
.resume-cover-copy em { font-size: .6em; font-style: normal; color: var(--blue); white-space: nowrap; }
.resume-case-phones { position: relative; min-height: 390px; }
.resume-case-phones img { position: absolute; width: 47%; border-radius: 18px; box-shadow: 0 14px 30px #4d688b1c; }
.resume-case-phones img:first-child { left: 0; top: 0; transform: rotate(-7deg); }
.resume-case-phones img:last-child { right: 0; top: 28px; transform: rotate(8deg); }
.resume-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-block: 32px; }
.resume-metrics strong { font: 500 76px/1.2 var(--display); letter-spacing: -.06em; }
.resume-metrics strong span { font-size: 32px; margin-left: 3px; }
.resume-metrics p { color: var(--secondary); font-size: 13px; margin-top: 16px; }
.resume-flow-steps { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-block: 30px 44px; }
.resume-flow-steps > span { background: #edeee7; padding: 9px 14px; border-radius: 3px; font-size: 12px; }
.resume-flow-steps > span.highlight { background: var(--blue); color: white; }
.resume-flow-steps i { font-style: normal; color: var(--secondary); }
.resume-decision-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.resume-decision-layout h3 { font-size: 20px; line-height: 1.7; }
.resume-decision-layout p { margin-top: 14px; font-size: 14px; color: var(--secondary); line-height: 1.95; }
.resume-decision-layout h3:not(:first-child) { margin-top: 36px; }
.resume-decision-layout figure { padding: 28px 20px; background: var(--resume); border-radius: 4px; }
.resume-decision-layout figure img { width: 72%; max-width: 215px; margin: auto; border-radius: 10px; }
.resume-decision-layout figcaption { font-size: 10px; color: var(--secondary); margin-top: 18px; text-align: center; }
.state-scope { display: flex; align-items: center; gap: 50px; padding-block: 30px; }
.state-scope strong { font: 500 68px/1.2 var(--display); letter-spacing: -.06em; }
.state-scope p { margin-top: 12px; font-size: 12px; color: var(--secondary); }
.state-scope > span { color: var(--blue); font-size: 25px; }

/* Native dialog: keyboard dismissal, captions, and fit-to-screen imagery. */
.image-dialog { max-width: min(95vw, 1500px); max-height: 94vh; padding: 50px 20px 20px; border: 0; border-radius: 5px; background: var(--canvas); color: var(--ink); }
.image-dialog::backdrop { background: #161b18ba; backdrop-filter: blur(6px); }
.image-dialog > img { max-width: 100%; max-height: calc(85vh - 80px); width: auto; height: auto; object-fit: contain; margin: auto; }
.image-dialog > p { font-size: 12px; color: var(--secondary); margin-top: 16px; text-align: center; }
.dialog-close { position: absolute; top: 12px; right: 16px; border: 0; padding: 5px 10px; background: none; font-size: 12px; }

@media (min-width: 1600px) {
  .hero { padding-top: 100px; }
  .hero h1 { font-size: 88px; }
  .hero-art { height: 430px; }
  .project-image { height: 435px; }
  .resume-stage { height: 470px; }
}
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 72px); }
  .hero { padding-top: 68px; grid-template-columns: 1.6fr 1fr; }
  .hero h1 { font-size: 5.25vw; }
  .hero-art { height: 325px; }
  .art-note { font-size: 8px; }
  .hero-phone { top: 140px; width: 31%; }
  .art-coordinate { bottom: 0; }
  .hero-bottom { gap: 36px; }
  .signature { font-size: 26px; }
  .main-nav { gap: 20px; margin-right: 8px; }
  .work-grid { gap: 24px; }
  .project-image { height: 315px; }
  .resume-stage { height: 350px; }
  .talent-window { top: 90px; }
  .project-info { display: block; }
  .case-link { display: inline-block; margin-top: 16px; }
  .practice-layout { gap: 6%; }
  .practice-copy h2 { font-size: 35px; }
  .case-layout { grid-template-columns: 140px minmax(0, 1fr); gap: 6%; }
  .case-cover { padding-inline: 8%; }
  .implementation-principles { gap: 18px; }
  .resume-case-cover { padding: 40px 6%; min-height: 440px; }
  .resume-case-phones { min-height: 350px; }
}
@media (max-width: 800px) {
  .wrap { width: calc(100% - 48px); }
  .site-header { height: 83px; }
  .wordmark { font-size: 23px; gap: 9px; }
  .wordmark-en { font-size: 12px; }
  .main-nav { display: none; }
  .header-contact { gap: 18px; padding: 9px 13px; font-size: 12px; }
  .hero { grid-template-columns: 1fr; padding-top: 58px; }
  .intro-line { margin-bottom: 25px; font-size: 13px; }
  .hero h1 { font-size: clamp(39px, 7.7vw, 60px); }
  .hero-description { font-size: 15px; margin-top: 24px; }
  .hero-bottom { justify-content: space-between; margin-top: 28px; }
  .hero-art { width: 72%; max-width: 430px; justify-self: center; height: 365px; margin-top: 36px; }
  .hero-browser { top: 52px; }
  .hero-phone { top: 125px; }
  .art-coordinate { bottom: 5px; }
  .art-note { font-size: 9px; }
  .hero-foot { margin-top: 20px; padding-block: 20px; align-items: flex-start; }
  .hero-foot p { flex-wrap: wrap; gap: 7px; font-size: 10px; }
  .motion-toggle { font-size: 10px; white-space: nowrap; }
  .section-heading { align-items: flex-start; gap: 24px; }
  .section-aside { font-size: 11px; }
  .section-index { font-size: 11px; }
  .selected-work { padding-block: 62px 70px; }
  .work-grid { grid-template-columns: 1fr; gap: 48px; }
  .project-resume { margin-top: 0; }
  .project-image { height: min(63vw, 410px); }
  .resume-stage { height: min(68vw, 440px); }
  .talent-window { top: 20%; }
  .stage-heading, .stage-footer { left: 24px; right: 24px; }
  .resume-phones { top: 74px; }
  .resume-phone-front { width: 29%; left: 22%; }
  .resume-phone-back { width: 27%; left: 49%; }
  .project-info { display: flex; }
  .case-link { margin-top: 28px; }
  .project-info h3 { font-size: 24px; }
  .practice-section { padding-block: 64px; }
  .practice-layout { grid-template-columns: 1fr; gap: 36px; }
  .practice-copy > p:not(.section-index, .status-note) { max-width: 40em; }
  .demo-shell { max-width: 540px; width: 100%; }
  .more-work { padding-block: 66px; }
  .more-work > .section-heading { display: block; }
  .more-work .section-aside { display: block; margin-top: 18px; }
  .more-grid { gap: 24px; }
  .support-image { height: 200px; }
  .mofang-surface { padding: 30px 18px; }
  .support-info b { font-size: 17px; }
  .support-info small { font-size: 10px; }
  .about-section { grid-template-columns: 1fr; gap: 28px; padding-block: 60px; }
  .about-heading > p:last-child { max-width: 40em; }
  .experience-list { padding-top: 0; }
  .site-footer { padding-top: 44px; grid-template-columns: 1fr; gap: 28px; }
  .site-footer > div:not(.footer-bottom) { justify-self: start; }
  .footer-bottom { padding-top: 20px; }
  .case-kicker { margin-top: 40px; }
  .case-hero > h1 { font-size: clamp(35px, 5.6vw, 49px); }
  .case-lead { font-size: 15px; }
  .case-facts { grid-template-columns: 1fr 1fr; gap: 25px; margin-block: 36px; }
  .case-cover { padding: 30px 6% 20px; }
  .case-layout { grid-template-columns: 1fr; gap: 40px; margin-top: 36px; }
  .case-toc { position: static; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
  .case-toc > span { display: none; }
  .case-toc nav { flex-direction: row; gap: 20px; margin-top: 0; overflow-x: auto; padding-bottom: 6px; }
  .case-toc nav a { flex-shrink: 0; border-left: 0; border-bottom: 2px solid transparent; }
  .case-toc nav a:hover, .case-toc nav a[aria-current="location"] { padding-left: 0; border-bottom-color: var(--blue); }
  .print-button { display: none; }
  .case-section { margin-bottom: 48px; padding-bottom: 48px; }
  .case-section h2 { font-size: 34px; }
  .case-section > p.case-large-text { font-size: 18px; }
  .case-section > p:not(.section-index, .figure-note) { font-size: 15px; }
  .decision-heading > h3 { font-size: 21px; }
  .decision-heading { gap: 12px; }
  .resume-case-cover { grid-template-columns: .9fr 1.1fr; padding: 40px 6%; gap: 16px; min-height: 360px; }
  .resume-cover-copy h2 { font-size: 30px; }
  .resume-cover-copy > span { font-size: 9px; }
  .resume-case-phones { min-height: 280px; }
  .compact-footer { gap: 20px; }
  .compact-footer .wordmark { font-size: 14px; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 40px); }
  .wordmark-en { display: none; }
  .wordmark-slash { display: none; }
  .site-header { height: 76px; }
  .hero { padding-top: 45px; }
  .hero h1 { font-size: 8.3vw; }
  .hero-description { font-size: 14px; }
  .hero-description br { display: none; }
  .hero-art { width: 90%; height: 325px; margin-top: 32px; }
  .hero-phone { top: 125px; right: -1%; }
  .art-coordinate { bottom: 0; left: 16px; }
  .signature { font-size: 25px; }
  .hero-foot { gap: 16px; }
  .hero-foot p { max-width: 220px; }
  .motion-toggle { font-size: 0; width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line); border-radius: 3px; }
  .motion-toggle .pause-symbol { font-size: 15px; }
  .section-heading { display: block; margin-bottom: 26px; }
  .section-heading .section-aside { display: none; }
  h2 { font-size: 29px; }
  .selected-work { padding-top: 48px; }
  .project-image { height: 280px; }
  .resume-stage { height: 320px; }
  .stage-heading { top: 18px; }
  .stage-heading, .stage-footer { left: 18px; right: 18px; }
  .stage-heading { font-size: 11px; }
  .stage-badge { font-size: 9px; }
  .stage-footer { bottom: 16px; font-size: 10px; }
  .round-arrow { width: 31px; height: 31px; font-size: 20px; }
  .talent-window { top: 68px; width: 88%; left: 6%; }
  .project-info { display: block; padding-top: 18px; }
  .project-info h3 { font-size: 23px; }
  .project-info p:last-child { font-size: 12px; }
  .project-category { font-size: 10px; }
  .case-link { margin-top: 13px; font-size: 11px; min-height: 30px; }
  .practice-copy h2 { font-size: 33px; }
  .practice-copy > p:not(.section-index, .status-note) { font-size: 14px; }
  .demo-shell { padding: 18px; }
  .email-widget, .case-demo .email-widget { padding: 20px 16px; }
  .scenario-buttons { gap: 6px; }
  .scenario-buttons button { min-height: 44px; font-size: 11px; padding-inline: 10px; }
  .demo-status p { font-size: 12px; }
  .more-grid { grid-template-columns: 1fr; gap: 34px; }
  .support-image { height: 225px; }
  .petloo-surface img { width: 61%; }
  .about-heading h2 { font-size: 29px; }
  .about-heading > p:last-child { font-size: 13px; }
  .footer-email { font-size: 21px; }
  .footer-note { font-size: 10px; }
  .case-hero { padding-top: 25px; }
  .case-hero > h1 { font-size: 8vw; }
  .case-kicker { font-size: 11px; margin-top: 32px; }
  .case-lead { font-size: 14px; }
  .case-lead br { display: none; }
  .case-facts { column-gap: 18px; }
  .case-facts dd { font-size: 12px; }
  .case-cover { padding: 24px 18px 16px; }
  .case-cover figcaption { font-size: 9px; margin-top: 16px; }
  .case-section h2 { font-size: 29px; }
  .case-section > p:not(.section-index, .figure-note) { font-size: 14px; }
  .case-section > p.case-large-text { font-size: 17px; }
  .contribution-note { padding: 20px; }
  .comparison { padding: 16px; }
  .comparison-images { height: 410px; }
  .comparison-toolbar { font-size: 11px; gap: 10px; }
  .comparison-toolbar button { padding: 6px 10px; }
  .decision-heading > h3 { font-size: 19px; }
  .decision > p { font-size: 14px; }
  .path-comparison > div { padding: 18px; }
  .path-comparison p { font-size: 12px; }
  .path-comparison i { margin-inline: 4px; }
  .implementation-principles { grid-template-columns: 1fr; gap: 24px; }
  .result-band { align-items: flex-start; flex-direction: column; gap: 10px; padding-block: 20px; }
  .result-number { font-size: 41px; }
  .result-delta { font-size: 16px; }
  .evidence-row { display: block; }
  .evidence-row b { display: block; margin-bottom: 10px; }
  .evidence-row p { margin-top: 14px; }
  .resume-case-cover { display: block; padding: 32px 24px; }
  .resume-cover-copy h2 { font-size: 28px; margin-top: 12px; }
  .resume-cover-copy h2 br:first-child { display: none; }
  .resume-case-phones { min-height: 330px; margin-top: 28px; max-width: 280px; margin-inline: auto; }
  .resume-case-phones img { width: 45%; }
  .resume-case-phones img:last-child { top: 14px; }
  .resume-metrics { gap: 24px; }
  .resume-metrics strong { font-size: 60px; }
  .resume-metrics strong span { font-size: 25px; }
  .resume-metrics p { font-size: 11px; }
  .resume-flow-steps { gap: 7px; }
  .resume-flow-steps > span { padding: 7px 9px; font-size: 10px; }
  .resume-decision-layout { grid-template-columns: 1fr; gap: 28px; }
  .resume-decision-layout h3 { font-size: 19px; }
  .resume-decision-layout figure img { width: 52%; }
  .state-scope { gap: 30px; }
  .state-scope strong { font-size: 56px; }
  .compact-footer { flex-wrap: wrap; gap: 20px 32px; }
  .compact-footer .wordmark { width: 100%; }
  .compact-footer > span { margin-left: auto; }
}

.motion-paused .floating, .motion-paused .hero-copy > *, .motion-paused .status-spinner { animation-play-state: paused; }
.motion-paused .project-image *, .motion-paused .support-image img { transition-duration: 0ms; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  :root { --canvas: #fff; --ink: #000; --secondary: #444; }
  body { background: white; font-size: 11pt; }
  .wrap { width: 100%; }
  .site-header { height: 55px; }
  .header-contact, .main-nav, .hero-art, .motion-toggle, .case-toc, .image-dialog, .next-case, .scenario-control, .demo-action, .print-button, .back-link { display: none !important; }
  .hero { display: block; padding-top: 32px; }
  .hero h1, .case-hero > h1 { font-size: 38pt; }
  .hero-copy > * { animation: none !important; opacity: 1; }
  .hero-foot { margin-top: 24px; }
  .work-grid, .practice-layout, .about-section, .case-layout { display: block; }
  .project-resume { margin-top: 36px; }
  .project { break-inside: avoid; }
  .project-image { height: 340px; print-color-adjust: exact; }
  .project-info { display: block; }
  .selected-work, .more-work, .about-section { padding-block: 32px; }
  .practice-section { padding-block: 32px; background: white; }
  .practice-copy { margin-bottom: 24px; }
  .case-layout { margin-top: 40px; }
  .case-cover { padding: 20px; print-color-adjust: exact; }
  .case-cover img { max-height: 360px; object-fit: contain; box-shadow: none; }
  .case-section { margin-bottom: 24px; padding-bottom: 24px; }
  .case-section h2 { font-size: 24pt; }
  .case-section > p:not(.section-index, .figure-note) { font-size: 11pt; }
  .case-section > p.case-large-text { font-size: 13pt; }
  .comparison-images { height: 360px; }
  .resume-case-cover { min-height: 360px; print-color-adjust: exact; }
  .resume-case-phones { min-height: 320px; }
  .image-button img { max-height: 400px; object-fit: contain; }
  h2, h3 { break-after: avoid; }
  figure, .demo-shell, .case-facts, .resume-metrics { break-inside: avoid; }
  .site-footer { padding-top: 24px; }
  .support-detail { display: block; }
  .hero-browser, .hero-phone, .talent-window, .resume-phones img { animation: none; }
  @page { size: A4; margin: 16mm; }
}
