/* 青空象限 · shared visual system. Change the tokens here to update all pages. */
@font-face {
  font-family: "Studio Sans";
  src: url("../fonts/HarmonyOS_SansSC_Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Studio Sans";
  src: url("../fonts/HarmonyOS_SansSC_Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Studio Serif";
  src: url("../fonts/NotoSerifSC-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --paper: #f6f7f5;
  --white: #fcfcfa;
  --ink: #263330;
  --muted: #626d68;
  --quiet: #737d77;
  --brand: #009fa3;
  --teal: #087d7c;
  --line: #dce2dc;
  --serif: "Studio Serif", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Studio Sans", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(24px, 6.6vw, 112px);
  --content: 1280px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; scrollbar-gutter: stable; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-weight: 400; font-size: 16px; line-height: 1.85; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 400; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 6px; }
::selection { color: white; background: var(--teal); }
[hidden] { display: none !important; }
.container { width: min(calc(100% - var(--gutter) * 2), var(--content)); margin-inline: auto; }
.serif { font-family: var(--serif); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 16px; padding: 8px 16px; color: white; background: var(--teal); transform: translateY(-160%); z-index: 500; }
.skip-link:focus { transform: none; }
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: 96px; transition: background .3s, box-shadow .3s, height .3s var(--ease); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.is-scrolled, .site-header.is-solid { height: 78px; background: rgba(247, 248, 245, .93); box-shadow: 0 1px 0 rgba(38, 51, 48, .08); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 44px; }
.brand img { width: 142px; height: auto; }
.desktop-nav { display: flex; align-items: center; gap: clamp(26px, 3.3vw, 52px); }
.nav-link { position: relative; display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; letter-spacing: .14em; color: #46524d; }
.nav-link::after { content: ""; position: absolute; left: 0; right: .14em; bottom: 7px; height: 1px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease); }
.nav-link:hover, .nav-link[aria-current] { color: var(--teal); }
.nav-link:hover::after, .nav-link[aria-current]::after { transform: scaleX(1); }
.mobile-menu { display: none; }

/* The hero copy is real text. The photograph contains no navigation or headline. */
.hero { position: relative; height: 100svh; min-height: 760px; max-height: 1080px; isolation: isolate; overflow: hidden; background: #e7e6e3; }
.hero-media { position: absolute; inset: 0; z-index: -2; transform: translate3d(0, var(--scene-y, 0px), 0) scale(1.018); }
.hero-image { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; animation: image-settle 1.8s var(--ease) both; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(245, 245, 241, .14), transparent 60%); pointer-events: none; }
.hero-copy { position: relative; padding-top: clamp(172px, 22vh, 232px); }
.hero-kicker { display: flex; align-items: center; gap: 18px; font-size: 13px; letter-spacing: .24em; color: #57665f; }
.hero-kicker::before { content: ""; width: 32px; height: 1px; background: var(--teal); }
.hero-title { font-family: var(--serif); font-size: clamp(58px, 5.7vw, 90px); letter-spacing: -.025em; line-height: 1.38; margin: 24px 0 21px; font-weight: 400; }
.hero-title span { display: block; }
.hero-title span:last-child { color: var(--teal); }
.hero-description { color: #4d5c54; font-size: 15px; line-height: 1.95; letter-spacing: .025em; max-width: 380px; }
.hero-actions { display: flex; align-items: center; gap: 30px; margin-top: 28px; }
.text-link { display: inline-flex; justify-content: space-between; align-items: center; gap: 30px; padding: 8px 0 10px; min-height: 44px; border-bottom: 1px solid var(--ink); font-size: 13px; letter-spacing: .08em; transition: color .25s, border-color .25s; }
.text-link .arrow { display: inline-block; font-size: 20px; line-height: 1; transition: transform .3s var(--ease); }
.text-link:hover { color: var(--teal); border-color: var(--teal); }
.text-link:hover .arrow { transform: translateX(5px); }
.plain-link { font-size: 13px; padding-block: 12px; color: #54655b; transition: color .2s; }
.plain-link:hover { color: var(--teal); }
.hero-bottom { position: absolute; bottom: 30px; left: 0; right: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.scroll-hint { display: inline-flex; align-items: center; min-height: 44px; gap: 15px; font-size: 11px; letter-spacing: .16em; }
.scroll-hint::before { content: ""; height: 36px; width: 1px; background: #61776c; }
.hero-note { font-size: 10px; letter-spacing: .13em; color: #57665c; }
.hero-kicker, .hero-title span, .hero-description, .hero-actions { animation: enter .8s var(--ease) both; }
.hero-kicker { animation-delay: .08s; }
.hero-title span:first-child { animation-delay: .16s; }
.hero-title span:last-child { animation-delay: .27s; }
.hero-description { animation-delay: .39s; }
.hero-actions { animation-delay: .48s; }
@keyframes enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes image-settle { from { transform: scale(1.03); } to { transform: scale(1); } }

.section { padding-block: clamp(88px, 8.3vw, 136px); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 36px; margin-bottom: 48px; }
.eyebrow { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; font-size: 10px; letter-spacing: .17em; color: var(--teal); font-weight: 500; }
.eyebrow .number { color: var(--quiet); font-weight: 400; }
.eyebrow .divider { display: inline-block; width: 30px; height: 1px; background: var(--line); }
.section-title { font-family: var(--serif); font-size: clamp(32px, 3.1vw, 46px); letter-spacing: .01em; line-height: 1.5; }
.section-intro { max-width: 370px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.selected-section { background: var(--white); }
.project-card { display: grid; grid-template-columns: 1.75fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-visual { overflow: hidden; background: #3c3b3a; aspect-ratio: 1.27; }
.project-visual img { width: 100%; height: 100%; object-fit: contain; transition: transform .75s var(--ease); }
.project-info { display: flex; flex-direction: column; padding: 40px 0 36px 52px; }
.project-category { font-size: 11px; color: var(--teal); letter-spacing: .12em; }
.project-title { margin-top: auto; padding-top: 32px; font-family: var(--serif); font-size: clamp(24px, 2.5vw, 35px); line-height: 1.7; }
.project-description { margin-top: 20px; font-size: 14px; color: var(--muted); max-width: 270px; }
.project-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.project-meta .arrow { font-size: 27px; color: var(--teal); transition: transform .3s var(--ease); }
.project-card:hover .project-visual img { transform: scale(1.025); }
.project-card:hover .project-meta .arrow { transform: translate(4px, -4px); }
.section-tail { display: flex; justify-content: flex-end; margin-top: 28px; }
.services-section { border-bottom: 1px solid var(--line); }
.services-layout { display: grid; grid-template-columns: .85fr 1.4fr; gap: 100px; }
.services-note { margin-top: 23px; max-width: 285px; font-size: 14px; color: var(--muted); }
.service-list { list-style: none; }
.service-row { display: grid; grid-template-columns: 30px 1fr; gap: 15px; padding: 30px 0; border-top: 1px solid var(--line); }
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-index { font-family: Georgia, serif; font-size: 13px; color: var(--teal); padding-top: 6px; }
.service-row h3 { font-family: var(--serif); font-size: 23px; margin-bottom: 12px; }
.service-row p { color: var(--muted); font-size: 14px; max-width: 460px; }
.statement { background: #eaf0eb; padding-block: clamp(76px, 8vw, 128px); position: relative; overflow: hidden; }
.statement .container { position: relative; }
.statement .eyebrow { margin-bottom: 28px; }
.statement h2 { font-family: var(--serif); font-size: clamp(27px, 3.2vw, 48px); line-height: 1.9; letter-spacing: .025em; }
.statement h2 span { color: var(--teal); }
.statement p:last-child { margin-top: 24px; color: var(--muted); font-size: 13px; }
.about-grid { display: grid; grid-template-columns: .85fr 1.4fr; gap: 100px; }
.about-caption { color: var(--muted); font-size: 13px; margin-top: 20px; line-height: 2.1; }
.about-body { padding-top: 7px; }
.about-body > p { color: #526058; font-size: 15px; line-height: 2.15; margin-bottom: 22px; }
.about-body > p:last-of-type { margin-bottom: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 31px; }
.stat-value { display: block; color: var(--teal); font-family: Georgia, serif; font-size: clamp(32px, 3vw, 44px); line-height: 1.2; letter-spacing: -.04em; }
.stat-value sup { font-size: 20px; margin-left: 3px; vertical-align: .6em; }
.stat-label { display: block; font-size: 11px; color: var(--muted); margin-top: 9px; letter-spacing: .04em; }
.contact-section { background: #eaf0eb; padding-block: 94px; }
.contact-layout { display: grid; grid-template-columns: .85fr 1.4fr; gap: 100px; align-items: center; }
.contact-description { font-size: 14px; margin-top: 20px; color: var(--muted); max-width: 400px; }
.contact-details { justify-self: end; width: 100%; max-width: 100%; display: flex; align-items: stretch; justify-content: space-between; gap: 32px; }
.contact-main { display: flex; flex-direction: column; }
.contact-label { font-size: 11px; color: var(--muted); letter-spacing: .09em; }
.email-link { display: inline-block; font-family: Georgia, serif; font-size: clamp(25px, 2.7vw, 40px); white-space: nowrap; letter-spacing: -.035em; color: var(--teal); line-height: 1.4; margin-top: 13px; overflow-wrap: anywhere; transition: color .25s; }
.email-link:hover { color: #064e4d; }
.contact-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: auto; padding-top: 24px; }
.copy-button { border: 0; border-bottom: 1px solid #99aaa1; background: none; padding: 8px 0; min-height: 44px; font-size: 12px; letter-spacing: .04em; white-space: nowrap; }
.contact-status { min-height: 1.8em; font-size: 12px; color: var(--teal); margin-top: 10px; }
.contact-status:empty { display: none; }
.wechat-block { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; font-size: 12px; color: var(--muted); flex-shrink: 0; }
.wechat-block img { width: 116px; height: 116px; object-fit: contain; background: white; }
.wechat-meta { display: flex; align-items: center; gap: 26px; margin-top: auto; color: var(--ink); }
.wechat-id { display: inline-flex; align-items: center; padding: 8px 0 10px; min-height: 44px; border-bottom: 1px solid var(--ink); font-size: 13px; letter-spacing: .08em; color: var(--ink); white-space: nowrap; }
.site-footer { padding-block: 34px; font-size: 11px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.footer-name { font-size: 12px; letter-spacing: .06em; }
.footer-copy { margin-top: 5px; font-size: 10px; letter-spacing: .03em; }
.footer-top { display: inline-flex; align-items: center; min-height: 44px; gap: 22px; }

/* Portfolio and project pages share the same rhythm and navigation. */
.page-main { padding-top: 172px; min-height: calc(100svh - 100px); }
.page-intro { margin-bottom: 64px; max-width: 640px; }
.page-title { font-family: var(--serif); font-size: clamp(40px, 5vw, 70px); line-height: 1.4; margin-bottom: 26px; }
.page-description { color: var(--muted); max-width: 480px; font-size: 15px; }
.portfolio-list { display: grid; gap: 48px; padding-bottom: 76px; }
.portfolio-note { display: flex; justify-content: space-between; align-items: center; gap: 30px; border-top: 1px solid var(--line); padding: 38px 0 70px; }
.portfolio-note p { font-family: var(--serif); font-size: 23px; }
.breadcrumb { display: inline-flex; align-items: center; gap: 15px; font-size: 12px; color: var(--muted); margin-bottom: 42px; padding-block: 8px; }
.project-heading { display: grid; grid-template-columns: 1.3fr 1fr; gap: 80px; margin-bottom: 52px; align-items: end; }
.project-heading .page-title { font-size: clamp(34px, 4.5vw, 60px); margin-bottom: 0; }
.project-summary { color: var(--muted); font-size: 14px; }
.project-facts { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; font-size: 11px; color: var(--teal); margin-top: 20px; }
.project-full-image { display: block; position: relative; background: #3c3b3a; overflow: hidden; }
.project-full-image img { width: min(100%, 1060px); margin-inline: auto; }
.image-hint { position: absolute; bottom: 22px; right: 24px; color: white; background: rgba(20, 30, 27, .7); padding: 7px 15px; font-size: 12px; }
.project-image-caption { font-size: 12px; color: var(--muted); margin-top: 18px; }
.project-bottom { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 58px 0 88px; }
.image-dialog { max-width: none; width: 100vw; height: 100dvh; max-height: none; padding: 64px 40px 30px; border: 0; background: rgba(20, 25, 23, .96); color: white; margin: 0; }
.image-dialog::backdrop { background: rgba(20, 25, 23, .9); }
.image-dialog img { width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 105px); object-fit: contain; margin: auto; }
.dialog-close { position: absolute; right: 28px; top: 12px; min-width: 44px; min-height: 44px; padding: 8px 14px; border: 0; background: none; color: white; font-size: 14px; }

/* Content is visible by default, including when scripts are unavailable. */
[data-reveal] { transition: opacity .72s var(--ease), transform .72s var(--ease); }
[data-reveal].is-pending { opacity: 0; transform: translateY(18px); }
[data-reveal].is-pending:focus-within { opacity: 1; transform: none; }

@media (min-width: 1800px) {
  .hero-copy { padding-top: 220px; }
  .hero-title { font-size: 94px; }
}
@media (max-width: 1050px) {
  .project-info { padding-left: 32px; }
  .services-layout, .about-grid { gap: 50px; grid-template-columns: .8fr 1.2fr; }
  .contact-layout { gap: 42px; grid-template-columns: 1fr; }
  .project-description { font-size: 13px; }
  .project-title { font-size: 26px; }
  .hero-title { font-size: 68px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 88px; }
  .site-header, .site-header.is-scrolled, .site-header.is-solid { height: 76px; }
  .brand img { width: 124px; }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary { min-height: 44px; display: flex; gap: 12px; align-items: center; list-style: none; cursor: pointer; font-size: 12px; letter-spacing: .08em; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .menu-lines { width: 20px; height: 12px; position: relative; display: block; }
  .menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; width: 20px; height: 1px; background: var(--ink); transition: transform .25s, top .25s; }
  .menu-lines::before { top: 2px; }
  .menu-lines::after { top: 10px; }
  .mobile-menu[open] .menu-lines::before { top: 6px; transform: rotate(45deg); }
  .mobile-menu[open] .menu-lines::after { top: 6px; transform: rotate(-45deg); }
  .mobile-menu nav { position: absolute; top: 75px; left: 0; right: 0; padding: 18px var(--gutter) 25px; background: #f6f7f5; border-bottom: 1px solid var(--line); box-shadow: 0 12px 20px rgba(34, 50, 40, .04); display: grid; grid-template-columns: 1fr 1fr; gap: 6px 30px; }
  .mobile-menu nav a { display: block; padding: 14px 0; font-size: 14px; }
  .mobile-menu nav a[aria-current] { color: var(--teal); }
  .hero { min-height: 770px; height: auto; max-height: none; }
  .hero-media { top: auto; height: 440px; bottom: 0; transform: none; }
  .hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, #e7e6e3 0, rgba(231, 230, 227, .88) 9%, transparent 32%); }
  .hero-image { object-position: 52% bottom; }
  .hero::after { display: none; }
  .hero-copy { padding-top: 142px; padding-bottom: 362px; }
  .hero-kicker { font-size: 11px; gap: 12px; letter-spacing: .13em; }
  .hero-kicker::before { width: 23px; }
  .hero-title { font-size: clamp(46px, 9.8vw, 64px); line-height: 1.5; margin-top: 20px; margin-bottom: 20px; }
  .hero-description { font-size: 13px; line-height: 1.95; }
  .hero-actions { margin-top: 23px; gap: 26px; }
  .hero-actions .text-link { font-size: 12px; gap: 26px; }
  .hero-actions .plain-link { font-size: 12px; }
  .hero-bottom { bottom: 22px; }
  .hero-note { display: none; }
  .scroll-hint { font-size: 10px; }
  .scroll-hint::before { height: 27px; }
  .section { padding-block: 78px; }
  .section-head { display: block; margin-bottom: 30px; }
  .section-head .section-intro { margin-top: 20px; max-width: none; font-size: 13px; }
  .section-title { font-size: 32px; }
  .project-card { grid-template-columns: 1fr; }
  .project-visual { aspect-ratio: 1.12; }
  .project-info { padding: 26px 0; }
  .project-title { padding-top: 16px; font-size: 27px; margin-top: 0; }
  .project-title br { display: none; }
  .project-description { max-width: none; margin-top: 13px; }
  .project-meta { margin-top: 22px; padding-top: 17px; }
  .services-layout, .about-grid, .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .services-note { max-width: none; margin-top: 16px; font-size: 13px; }
  .service-row { padding: 25px 0; }
  .service-row h3 { font-size: 22px; }
  .service-row p { font-size: 13px; }
  .statement { padding-block: 78px; }
  .statement h2 { font-size: clamp(23px, 4.1vw, 30px); line-height: 2; letter-spacing: 0; }
  .statement p:last-child { font-size: 12px; }
  .about-body > p { font-size: 14px; line-height: 2.1; }
  .about-caption { margin-top: 14px; }
  .stats { margin-top: 31px; padding-top: 25px; gap: 12px; }
  .stat-value { font-size: 36px; }
  .stat-label { font-size: 10px; }
  .contact-section { padding-block: 74px; }
  .contact-description { font-size: 13px; }
  .contact-details { justify-self: start; width: 100%; flex-direction: column; align-items: flex-start; gap: 28px; }
  .email-link { font-size: clamp(28px, 7.5vw, 42px); }
  .contact-tools { margin-top: 16px; }
  .site-footer { padding-block: 28px; }
  .footer-inner { align-items: flex-start; }
  .footer-name { font-size: 11px; }
  .footer-copy { max-width: 220px; font-size: 9px; }
  .footer-top { font-size: 10px; gap: 8px; }
  .page-main { padding-top: 122px; }
  .page-intro { margin-bottom: 42px; }
  .page-title { font-size: 42px; margin-bottom: 20px; }
  .page-description { font-size: 14px; }
  .portfolio-list { padding-bottom: 44px; }
  .portfolio-note { display: block; padding-bottom: 54px; }
  .portfolio-note p { font-size: 22px; margin-bottom: 20px; }
  .project-heading { grid-template-columns: 1fr; gap: 28px; margin-bottom: 36px; }
  .project-heading .page-title { font-size: 35px; }
  .breadcrumb { margin-bottom: 28px; }
  .project-bottom { flex-wrap: wrap; padding-block: 38px 64px; }
  .image-dialog { padding: 75px 12px 24px; }
  .dialog-close { right: 12px; }
}
@media (max-width: 370px) {
  :root { --gutter: 20px; }
  .hero-title { font-size: 44px; }
  .hero-actions { gap: 22px; }
  .hero-actions .plain-link { font-size: 11px; }
  .project-title { font-size: 24px; }
  .stat-value { font-size: 31px; }
  .statement h2 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .hero-media, .hero-image, [data-reveal].is-pending { transform: none !important; }
  [data-reveal].is-pending { opacity: 1; }
  .project-card:hover .project-visual img { transform: none; }
}
