/* finesse · register=brand · A=cool-fog+citrus · B=system-sans+mono · C=asymmetric-bento+disclosure
 * D=CSS-reveal+native-dialog · E=concrete-walnut-linen-daylight · SOUL=8 SPECTACLE=4 DENSITY=4 */

:root {
  --surface: #f2f4f0;
  --surface-strong: #e8ece7;
  --surface-deep: #20251f;
  --ink: #1d211d;
  --muted: #667066;
  --muted-soft: #8c968c;
  --line: rgba(29, 33, 29, 0.14);
  --line-strong: rgba(29, 33, 29, 0.24);
  --accent: #ed6a3a;
  --accent-soft: #f4b29b;
  --white: #f8faf7;
  --shell: min(1240px, calc(100% - 64px));
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --shadow: 0 24px 60px rgba(33, 42, 34, 0.10);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 84px;
  --font-ui: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-meta: Manrope, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; min-width: 320px; overflow-x: clip; background: var(--surface); color: var(--ink); font-family: var(--font-ui); line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E"); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, select { cursor: pointer; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--ink); }

.shell { width: var(--shell); margin-inline: auto; }
.section-pad { padding-block: 132px; }
.section-mark { margin: 0 0 20px; color: var(--muted); font-family: var(--font-meta); font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.dialog-kicker { margin: 0 0 20px; color: var(--muted); font-family: var(--font-meta); font-size: 11px; font-weight: 600; letter-spacing: .03em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { min-width: 0; color: var(--ink); letter-spacing: -.055em; line-height: .98; overflow-wrap: anywhere; }
h1 { max-width: 720px; margin-bottom: 30px; font-size: clamp(3.6rem, 5vw, 5.9rem); font-weight: 700; }
h2 { margin-bottom: 22px; font-size: clamp(2.6rem, 5vw, 5.2rem); font-weight: 700; }
h1 > span, h2 > span { display: block; white-space: nowrap; }
h3 { margin-bottom: 0; font-size: clamp(1.15rem, 1.7vw, 1.45rem); }
em { color: var(--accent); font-style: normal; }
.scroll-progress { position: fixed; top: 0; left: 0; z-index: 50; width: 100%; height: 3px; background: transparent; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 0; background: var(--accent); transform-origin: left; }
@supports (animation-timeline: scroll()) {
  .scroll-progress span { animation: scroll-progress linear both; animation-timeline: scroll(root block); }
}
@keyframes scroll-progress { from { width: 0; } to { width: 100%; } }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 80; padding: 10px 14px; border-radius: var(--radius-pill); background: var(--ink); color: var(--white); transform: translateY(-140%); transition: transform .25s var(--ease); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 40; height: var(--nav-h); background: rgba(242,244,240,.86); border-bottom: 1px solid transparent; backdrop-filter: blur(18px); transition: border-color .3s ease, background .3s ease; }
.site-header.is-scrolled { border-color: var(--line); background: rgba(242,244,240,.95); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 164px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--ink); color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: -.12em; }
.brand-copy { display: grid; gap: 1px; font-family: var(--font-ui); font-size: 11px; line-height: 1.25; }
.brand-copy strong { font-size: 13px; letter-spacing: -.03em; }
.brand-copy span { color: var(--muted); }
.desktop-nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.desktop-nav a { color: var(--muted); font-size: 13px; transition: color .25s ease; }
.desktop-nav a:hover { color: var(--ink); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 0 21px; border: 1px solid transparent; border-radius: var(--radius-pill); font-size: 13px; font-weight: 700; white-space: nowrap; transition: transform .25s var(--ease), background .25s ease, color .25s ease, border-color .25s ease; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(.98); }
.button-dark { background: var(--ink); color: var(--white); }
.button-dark:hover { background: var(--accent); color: var(--ink); }
.button-light { background: var(--white); color: var(--ink); }
.button-light:hover { background: var(--accent); }
.header-cta { min-height: 42px; padding-inline: 17px; }
.menu-toggle { position: relative; display: none; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; }
.menu-toggle span { position: absolute; top: 50%; left: 50%; display: block; width: 21px; height: 1.5px; margin: 0; background: var(--ink); transform: translate(-50%, -50%); transition: transform .22s var(--ease), opacity .16s ease; }
.menu-toggle span:first-child { transform: translate(-50%, calc(-50% - 4px)); }
.menu-toggle span:last-child { transform: translate(-50%, calc(-50% + 4px)); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }
.mobile-nav { display: none; }

.hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(48px, 6vw, 92px); align-items: center; min-height: calc(100dvh - var(--nav-h)); padding-top: 74px; padding-bottom: 100px; }
.hero-copy { padding-bottom: 16px; }
.hero-intro { width: min(100%, 390px); margin-bottom: 34px; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.75; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 13px; font-weight: 700; }
.text-link span { color: var(--accent); transition: transform .25s var(--ease); }
.text-link:hover span { transform: translate(3px, -3px); }
.hero-visual { position: relative; min-width: 0; }
.image-frame { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-strong); }
.image-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(248,250,247,.28); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-image { aspect-ratio: 1.46 / 1; box-shadow: var(--shadow); }
.hero-image img { transition: transform 1.2s var(--ease); }
.hero-image:hover img { transform: scale(1.025); }
.image-frame figcaption { position: absolute; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-between; padding: 18px 20px; color: var(--white); font-family: var(--font-meta); font-size: 10px; font-weight: 600; letter-spacing: .03em; background: linear-gradient(transparent, rgba(21,27,22,.62)); }
.hero-note { position: absolute; right: 0; bottom: -34px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-family: var(--font-meta); font-size: 10px; font-weight: 600; letter-spacing: .03em; text-align: right; }

.proof-band { display: grid; grid-template-columns: repeat(3, 1fr) 1.3fr; gap: 24px; align-items: end; padding-block: 26px 30px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.proof-band div { display: grid; gap: 3px; }
.proof-band strong { font-size: clamp(2rem, 3.2vw, 3rem); font-weight: 500; letter-spacing: -.06em; }
.proof-band span, .proof-band p { color: var(--muted); font-size: 12px; }
.proof-band p { max-width: 210px; margin: 0 0 2px auto; line-height: 1.6; }

.section-heading { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); gap: 60px; align-items: end; margin-bottom: 64px; }
.section-heading .section-mark { grid-column: 1 / -1; margin-bottom: -20px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p:last-child { max-width: 330px; margin-bottom: 3px; color: var(--muted); }
.project-grid { display: grid; grid-template-columns: 1.28fr .72fr; grid-template-rows: minmax(260px, 1fr) minmax(260px, 1fr); gap: 16px; }
.project-card { position: relative; display: flex; min-width: 0; min-height: 300px; padding: 0; overflow: hidden; border: 0; border-radius: var(--radius-lg); background: var(--surface-strong); color: var(--white); text-align: left; text-decoration: none; isolation: isolate; }
.project-card-large { grid-row: span 2; min-height: 640px; }
.project-card-tall { min-height: 340px; }
.project-card-detail, .project-card-material { min-height: 282px; }
.project-card-fengxian { grid-column: 1 / -1; min-height: 360px; }
.project-card-gonghe { grid-column: 1 / -1; min-height: 420px; }
.project-card-gonghe .project-image img { object-position: center 48%; }
.project-image { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--surface-strong); }
.project-image::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(22,27,23,.04) 38%, rgba(22,27,23,.74)); transition: opacity .3s ease; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.project-card-large .project-image img { object-position: center; }
.project-card:hover .project-image img { transform: scale(1.045); }
.project-card:hover .project-image::after { opacity: .84; }
.project-meta { position: absolute; z-index: 1; right: 20px; bottom: 18px; left: 20px; display: flex; justify-content: space-between; gap: 16px; color: var(--white); font-size: 12px; }
.project-meta span:last-child { color: rgba(248,250,247,.68); font-family: var(--font-meta); font-size: 10px; font-weight: 600; }
.project-arrow { position: absolute; z-index: 1; top: 18px; right: 18px; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(248,250,247,.48); border-radius: 50%; color: var(--white); transition: background .25s ease, color .25s ease, transform .25s var(--ease); }
.project-card:hover .project-arrow { background: var(--accent); color: var(--ink); border-color: var(--accent); transform: translate(2px, -2px); }

.method-section { background: var(--surface-deep); color: var(--white); }
.method-layout { display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(50px, 10vw, 160px); min-height: 760px; padding-block: 144px; }
.method-statement { position: sticky; top: 150px; align-self: start; }
.method-statement h2, .method-statement p { color: var(--white); }
.method-statement .section-mark { color: var(--accent); }
.method-statement p:not(.section-mark) { max-width: 390px; color: rgba(248,250,247,.62); }
.method-index { display: flex; align-items: center; gap: 8px; margin-top: 74px; color: rgba(248,250,247,.45); font-family: var(--font-meta); font-size: 11px; font-weight: 600; }
.method-index-current { color: var(--accent); font-size: 20px; }
.method-steps { align-self: center; }
.method-step { display: grid; grid-template-columns: 58px 1fr; gap: 22px; align-items: start; width: 100%; padding: 34px 0; border: 0; border-top: 1px solid rgba(248,250,247,.18); background: transparent; color: rgba(248,250,247,.55); font: inherit; text-align: left; transition: color .3s ease, border-color .3s ease; }
.method-step { cursor: pointer; text-decoration: none; }
.method-step:last-child { border-bottom: 1px solid rgba(248,250,247,.18); }
.method-step:hover, .method-step:focus-visible { color: var(--white); border-color: var(--accent); }
.method-step.is-active { color: var(--white); border-color: var(--accent); }
.step-number { padding-top: 5px; color: var(--accent); font-family: var(--font-meta); font-size: 11px; font-weight: 600; }
.method-step h3 { color: inherit; font-size: clamp(1.6rem, 3vw, 2.6rem); }
.method-step p { max-width: 430px; margin: 13px 0 0; color: inherit; font-size: 13px; line-height: 1.8; }
.method-detail-link { display: inline-flex; align-items: center; gap: 14px; margin-top: 34px; padding-bottom: 10px; border-bottom: 1px solid rgba(248,250,247,.34); color: var(--white); font-family: var(--font-meta); font-size: 12px; font-weight: 600; transition: color .25s ease, border-color .25s ease, transform .25s var(--ease); }
.method-detail-link span { color: var(--accent); font-size: 16px; }
.method-detail-link:hover, .method-detail-link:focus-visible { border-color: var(--accent); color: var(--accent-soft); transform: translateX(4px); }

/* Direct links from the four homepage workflow cards should land below the sticky header. */
.process-stage-card[id] { scroll-margin-top: calc(var(--nav-h) + 28px); }

/* The material statement is intentionally allowed to resolve into three calm lines. */
.material-copy { overflow: hidden; }
.material-copy h2 { width: 100%; max-width: 100%; font-size: clamp(2.5rem, 4.2vw, 4.6rem); line-height: 1.02; overflow-wrap: anywhere; }
.material-copy h2 > span { white-space: normal; }

.services { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(56px, 10vw, 150px); }
.services-heading { align-self: start; }
.services-heading h2 { max-width: 360px; }
.services-list { border-top: 1px solid var(--line-strong); }
.service-row { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 88px; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.service-title { display: flex; align-items: baseline; gap: 28px; font-size: clamp(1.1rem, 1.8vw, 1.45rem); font-weight: 600; letter-spacing: -.04em; }
.service-title > span { color: var(--accent); font-family: var(--font-meta); font-size: 11px; font-weight: 600; letter-spacing: 0; }
.service-plus { color: var(--accent); font-size: 26px; font-weight: 300; transition: transform .35s var(--ease); }
.service-row[aria-expanded="true"] .service-plus { transform: rotate(45deg); }
.service-panel { display: grid; grid-template-rows: 0fr; overflow: hidden; padding: 0 0 0 70px; border-bottom: 1px solid transparent; opacity: 0; transform: translateY(-6px); transition: grid-template-rows .45s var(--ease), opacity .25s ease, border-color .45s ease, transform .45s var(--ease); }
.service-panel.is-open { grid-template-rows: 1fr; padding-top: 4px; padding-bottom: 30px; border-color: var(--line); opacity: 1; transform: translateY(0); }
.service-panel-inner { min-height: 0; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; }
.service-panel p { max-width: 420px; margin: 0; color: var(--muted); font-size: 13px; }
.service-panel span { align-self: end; color: var(--muted-soft); font-family: var(--font-meta); font-size: 10px; font-weight: 600; text-align: right; }

.material-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(48px, 9vw, 132px); align-items: center; padding-block: 140px; }
.material-copy p:last-child { max-width: 330px; color: var(--muted); }
.material-image { aspect-ratio: 1.22 / 1; }
.material-image img { transition: transform .8s var(--ease); }
.material-section:hover .material-image img { transform: scale(1.03); }

.contact-section { padding-top: 30px; padding-bottom: 140px; }
.contact-card { display: grid; grid-template-columns: 1fr .8fr; gap: clamp(48px, 10vw, 160px); padding: clamp(34px, 6vw, 78px); border-radius: var(--radius-lg); background: var(--surface-deep); }
.contact-copy h2, .contact-copy p { color: var(--white); }
.contact-copy > p:last-child { max-width: 360px; color: rgba(248,250,247,.64); }
.contact-form { display: grid; gap: 10px; align-content: start; }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form label { margin-top: 8px; color: rgba(248,250,247,.72); font-size: 11px; }
.contact-form label span { color: var(--accent); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid rgba(248,250,247,.27); border-radius: 0; outline: 0; background: transparent; color: var(--white); font-size: 14px; resize: vertical; transition: border-color .25s ease; }
.contact-form select { color: var(--white); }
.contact-form option { color: var(--ink); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(248,250,247,.42); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--accent); }
.contact-form .button { margin-top: 18px; justify-self: start; }
.form-note { margin: 4px 0 0; color: rgba(248,250,247,.44); font-size: 10px; line-height: 1.5; }
.form-note.is-success { color: var(--accent-soft); }

.site-footer { padding-block: 30px 42px; border-top: 1px solid var(--line-strong); }
.footer-top, .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-top { padding-bottom: 42px; }
.footer-top > p { margin: 0; color: var(--muted); font-size: 13px; }
.footer-bottom { color: var(--muted); font-family: var(--font-meta); font-size: 10px; font-weight: 600; }
.footer-bottom a { color: var(--ink); }

.project-dialog { width: min(920px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; overflow: auto; border: 0; border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 28px 80px rgba(11,15,11,.28); }
.project-dialog::backdrop { background: rgba(23,28,23,.62); backdrop-filter: blur(10px); }
.dialog-close { position: absolute; top: 18px; right: 18px; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(248,250,247,.58); border-radius: 50%; background: rgba(29,33,29,.46); color: var(--white); font-size: 25px; font-weight: 300; line-height: 1; }
.dialog-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-strong); }
.dialog-media img { width: 100%; height: 100%; object-fit: cover; }
.dialog-body { padding: clamp(28px, 5vw, 52px); }
.dialog-body h2 { margin-bottom: 18px; font-size: clamp(2.8rem, 6vw, 5rem); }
.dialog-body > p:not(.dialog-kicker) { max-width: 560px; color: var(--muted); font-size: 15px; }
.dialog-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.dialog-tags span { padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--muted); font-family: var(--font-meta); font-size: 10px; font-weight: 600; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.hero-copy, .hero-visual, .section-heading, .method-statement, .method-steps, .services-heading, .services-list, .material-copy, .contact-copy, .contact-form { min-width: 0; }

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #1c211c;
    --surface-strong: #293129;
    --surface-deep: #111510;
    --ink: #e7ece6;
    --muted: #a8b1a7;
    --muted-soft: #7d897e;
    --line: rgba(231, 236, 230, .14);
    --line-strong: rgba(231, 236, 230, .24);
    --white: #f6f8f4;
    --shadow: 0 24px 60px rgba(0, 0, 0, .22);
  }
  .site-header { background: rgba(28, 33, 28, .86); }
  .site-header.is-scrolled { background: rgba(28, 33, 28, .95); }
  .mobile-nav { background: rgba(28, 33, 28, .97); }
  .brand-mark { color: #1d211d; }
  .button-dark { background: var(--white); color: #1d211d; }
  .button-dark:hover { background: var(--accent); color: #1d211d; }
  .button-light { background: #e8ece7; color: #1d211d; }
  .contact-form option { color: #1d211d; }
}

@media (max-width: 980px) {
  :root { --shell: min(100% - 40px, 760px); }
  .desktop-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav { display: none; grid-template-columns: 1fr 1fr; gap: 10px 20px; padding: 16px 20px 24px; overflow: hidden; background: rgba(242,244,240,.97); border-bottom: 1px solid var(--line); }
  .mobile-nav.is-open { display: grid; animation: mobile-nav-in .3s var(--ease) both; }
  .mobile-nav a { padding: 11px 0; color: var(--muted); font-size: 14px; }
  .mobile-nav .button { grid-column: 1 / -1; margin-top: 6px; color: var(--white); }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 84px; }
  .hero-copy { max-width: 640px; }
  .hero-note { right: 10px; }
  .proof-band { grid-template-columns: repeat(3, 1fr); }
  .proof-band p { grid-column: 1 / -1; max-width: 320px; margin: 12px 0 0; }
  .method-layout, .services, .material-section, .contact-card { grid-template-columns: 1fr; }
  .method-layout { gap: 70px; }
  .method-statement { position: static; }
  .method-index { margin-top: 34px; }
  .services { gap: 60px; }
  .material-section { gap: 50px; }
  .contact-card { gap: 60px; }
}

@keyframes mobile-nav-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  :root { --shell: calc(100% - 32px); --nav-h: 72px; }
  .section-pad { padding-block: 88px; }
  .site-header { height: var(--nav-h); }
  .brand { min-width: 0; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; font-size: 11px; }
  .brand-copy strong { font-size: 12px; }
  .hero { gap: 48px; padding-top: 64px; padding-bottom: 78px; }
  h1 { font-size: clamp(2.9rem, 11.8vw, 5.25rem); line-height: 1.04; letter-spacing: -.07em; }
  h2 { font-size: clamp(2.2rem, 9vw, 4rem); }
  .hero-intro { font-size: 15px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .hero-image { aspect-ratio: 1 / 1.06; }
  .hero-note { display: none; }
  .proof-band { grid-template-columns: 1fr 1fr; gap: 24px 18px; padding-block: 24px; }
  .proof-band div:last-of-type { grid-column: 1 / -1; }
  .proof-band p { margin-top: 4px; }
  .section-heading { display: block; margin-bottom: 40px; }
  .section-heading .section-mark { margin-bottom: 20px; }
  .section-heading > p:last-child { margin-top: 24px; }
  .project-grid { display: grid; grid-template-columns: 1fr; grid-template-rows: none; gap: 12px; }
  .project-card, .project-card-large, .project-card-tall, .project-card-detail, .project-card-material { min-height: 310px; }
  .project-card-large { min-height: 390px; }
  .method-layout { padding-block: 92px; }
  .method-step { grid-template-columns: 38px 1fr; gap: 12px; padding-block: 28px; }
  .method-step p { font-size: 12px; }
  .service-title { gap: 16px; font-size: 17px; }
  .service-panel.is-open { padding-left: 0; }
  .service-panel-inner { grid-template-columns: 1fr; }
  .service-panel span { justify-self: start; text-align: left; }
  .material-section { padding-block: 92px; }
  .material-image { aspect-ratio: 1 / 1.05; }
  .contact-section { padding-bottom: 92px; }
  .contact-card { padding: 28px 22px; }
  .contact-form .button { width: 100%; }
  .footer-top, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-top { padding-bottom: 30px; }
  .footer-bottom { gap: 10px; }
  .dialog-close { top: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .scroll-progress span { animation: none; }
}

/* finesse · mobile adaptation · register=h5+brand · morph=longform-site
 * SOUL=8 SPECTACLE=3 DENSITY=3 · desktop-dark palette lock · touch-first controls */
@media (max-width: 767px) {
  /* The desktop presentation is dark by art direction, so a phone's light mode
   * must not turn the same brand surface into a different white website. */
  :root {
    color-scheme: dark;
    --surface: #1c211c;
    --surface-strong: #293129;
    --surface-deep: #111510;
    --ink: #e7ece6;
    --muted: #a8b1a7;
    --muted-soft: #7d897e;
    --line: rgba(231,236,230,.14);
    --line-strong: rgba(231,236,230,.24);
    --white: #f6f8f4;
    --shell: calc(100% - 32px);
    --nav-h: 64px;
  }
  html, body { overflow-x: clip; }
  body { background: var(--surface); }
  body::before { opacity: .018; }
  .site-header { height: calc(var(--nav-h) + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); background: var(--surface); border-bottom-color: var(--line); backdrop-filter: blur(18px) saturate(110%); }
  .site-header.is-scrolled { background: var(--surface); }
  .header-inner { height: var(--nav-h); gap: 12px; }
  .brand { gap: 9px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 10px; font-size: 10px; }
  .brand-mark { background: var(--white); color: #1d211d; }
  .button-dark, .button-light { background: var(--white); color: #1d211d; }
  .button-dark:hover, .button-light:hover { background: var(--accent); color: #1d211d; }
  .brand-copy strong { font-size: 12px; }
  .brand-copy span { font-size: 10px; }
  .menu-toggle { flex: 0 0 44px; display: grid; place-content: center; min-width: 44px; min-height: 44px; }
  .mobile-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 18px; padding: 12px 16px max(18px, env(safe-area-inset-bottom)); background: var(--surface); border-bottom-color: var(--line); }
  .mobile-nav a { min-height: 44px; display: flex; align-items: center; padding: 10px 0; color: var(--ink); font-size: 14px; touch-action: manipulation; }
.mobile-nav a:nth-child(-n + 4)::after { content: none; }
  .mobile-nav .button { justify-content: center; grid-column: 1 / -1; min-height: 48px; margin-top: 8px; color: var(--white); }
  h1, h2, h3 { letter-spacing: -.055em; }
  h1 { font-size: clamp(2.8rem, 12vw, 4.2rem); line-height: 1.04; }
  h2 { font-size: clamp(2.15rem, 10vw, 3.6rem); line-height: 1.04; }
  h1 > span, h2 > span { white-space: normal; }
  .section-pad { padding-block: 82px; }
  .hero { gap: 38px; padding-top: 54px; padding-bottom: 66px; }
  .section-mark, .dialog-kicker { margin-bottom: 16px; font-size: 11px; }
  .hero-intro { margin-bottom: 26px; color: var(--muted); font-size: 16px; line-height: 1.75; }
  .hero-actions { gap: 12px; }
  .hero-actions .button, .hero-actions .text-link { min-height: 48px; }
  .hero-image { aspect-ratio: 1 / 1.04; border-radius: 20px; }
  .hero-image figcaption { padding: 14px 16px; font-size: 10px; }
  .proof-band { gap: 18px 16px; padding-block: 22px; }
  .proof-band strong { font-size: 1.65rem; }
  .proof-band span, .proof-band p { font-size: 12px; }
  .section-heading { margin-bottom: 38px; }
  .section-heading > p:last-child { margin-top: 20px; font-size: 15px; line-height: 1.75; }
  .project-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .project-card, .project-card-large, .project-card-tall, .project-card-detail, .project-card-material { min-height: 292px; border-radius: 20px; }
  .project-card-large { min-height: 390px; }
  .project-meta { right: 16px; bottom: 15px; left: 16px; gap: 10px; font-size: 13px; }
  .project-meta span:last-child { font-size: 9px; text-align: right; }
  .project-arrow { top: 14px; right: 14px; width: 44px; height: 44px; }
  .method-layout { gap: 46px; min-height: auto; padding-block: 82px; }
  .method-statement { position: static; }
  .method-statement p:not(.section-mark) { color: rgba(248,250,247,.74); font-size: 16px; line-height: 1.75; }
  .method-index { margin-top: 30px; }
  .method-detail-link { min-height: 44px; margin-top: 22px; padding-block: 8px; font-size: 13px; }
  .method-step { grid-template-columns: 36px minmax(0,1fr); gap: 12px; min-height: 116px; padding-block: 25px; }
  .method-step h3 { font-size: 1.45rem; }
  .method-step p { margin-top: 9px; color: rgba(248,250,247,.72); font-size: 14px; line-height: 1.7; }
  .services { gap: 42px; }
  .services-heading h2 { max-width: none; }
  .service-row { min-height: 64px; }
  .service-title { gap: 14px; font-size: 17px; }
  .service-plus { min-width: 44px; min-height: 44px; display: grid; place-items: center; font-size: 24px; }
  .service-panel.is-open { padding: 4px 0 24px; }
  .service-panel p { font-size: 15px; line-height: 1.75; }
  .material-section { gap: 34px; padding-block: 82px; }
  .material-copy p:last-child { font-size: 15px; line-height: 1.75; }
  .material-image { aspect-ratio: 1 / 1.04; border-radius: 20px; }
  .contact-section { padding-bottom: 82px; }
  .contact-card { gap: 38px; padding: 28px 20px; border-radius: 20px; }
  .contact-copy > p:last-child { font-size: 15px; line-height: 1.75; }
  .contact-form label { margin-top: 12px; font-size: 12px; }
  .contact-form input, .contact-form select, .contact-form textarea { min-height: 48px; padding-block: 13px; font-size: 16px; }
  .contact-form textarea { min-height: 92px; }
  .contact-form .button { width: 100%; min-height: 52px; margin-top: 18px; }
  .form-note { font-size: 11px; line-height: 1.65; }
  .site-footer { padding-bottom: max(36px, env(safe-area-inset-bottom)); }
  .footer-bottom a { min-height: 44px; display: inline-flex; align-items: center; }
  .project-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 18px; }
  .dialog-body { padding: 26px 20px 30px; }
  .dialog-body h2 { font-size: clamp(2.35rem, 10vw, 3.6rem); }
}

@media (min-width: 768px) and (max-width: 1024px) and (pointer: coarse) {
  :root {
    color-scheme: dark;
    --surface: #1c211c;
    --surface-strong: #293129;
    --surface-deep: #111510;
    --ink: #e7ece6;
    --muted: #a8b1a7;
    --muted-soft: #7d897e;
    --line: rgba(231,236,230,.14);
    --line-strong: rgba(231,236,230,.24);
    --white: #f6f8f4;
    --shell: min(100% - 56px, 880px);
  }
  body { background: var(--surface); }
  .site-header { background: var(--surface); border-bottom-color: var(--line); }
  .site-header.is-scrolled { background: var(--surface); }
  .brand-mark { background: var(--white); color: #1d211d; }
  .mobile-nav { background: var(--surface); border-bottom-color: var(--line); }
  .button-dark, .button-light { background: var(--white); color: #1d211d; }
  .button-dark:hover, .button-light:hover { background: var(--accent); color: #1d211d; }
  .desktop-nav, .header-cta { display: none; }
  .menu-toggle { display: grid; place-content: center; }
  .hero { grid-template-columns: 1fr 1fr; gap: 38px; }
  .method-layout, .services, .material-section, .contact-card { gap: 48px; }
}

/* Full-size image preview */
body.is-lightbox-open { overflow: hidden; }
.is-zoomable { cursor: zoom-in; }
.image-lightbox[hidden] { display: none; }
.image-lightbox {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 56px);
  color: #f6f8f4;
  background: rgba(8, 11, 8, .94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.image-lightbox-backdrop { position: absolute; inset: 0; }
.image-lightbox-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  width: min(1240px, 100%);
  height: auto;
  max-height: calc(100dvh - 48px);
}
.image-lightbox-figure {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  place-items: center;
  gap: 14px;
  width: 100%;
  min-height: 0;
  height: auto;
  max-height: calc(100dvh - 96px);
  margin: 0;
}
.image-lightbox-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - 150px);
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,.4);
}
.image-lightbox-caption {
  max-width: min(760px, 90vw);
  color: rgba(246,248,244,.78);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.image-lightbox-close,
.image-lightbox-nav {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(246,248,244,.22);
  border-radius: 999px;
  color: #f6f8f4;
  background: rgba(246,248,244,.09);
  font: inherit;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.image-lightbox-close:hover,
.image-lightbox-nav:hover { border-color: var(--accent); background: rgba(249,101,55,.2); transform: translateY(-2px); }
.image-lightbox-close { position: absolute; z-index: 2; top: -10px; right: -10px; font-size: 28px; line-height: 1; }
.image-lightbox-nav { position: relative; z-index: 4; }
.image-lightbox-prev { grid-column: 1; grid-row: 1; justify-self: start; }
.image-lightbox-next { grid-column: 3; grid-row: 1; justify-self: end; }
.image-lightbox-counter {
  grid-column: 2;
  grid-row: 2;
  padding-top: 12px;
  color: rgba(246,248,244,.5);
  font-size: 11px;
  letter-spacing: .08em;
  text-align: center;
}
.image-lightbox button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

@media (max-width: 767px) {
  .image-lightbox { padding: 52px 12px 24px; }
  .image-lightbox-panel { grid-template-columns: 44px minmax(0, 1fr) 44px; max-height: calc(100dvh - 76px); }
  .image-lightbox-figure { max-height: calc(100dvh - 116px); }
  .image-lightbox-image { max-height: calc(100dvh - 166px); border-radius: 8px; }
  .image-lightbox-close { top: -42px; right: 0; width: 44px; height: 44px; }
  .image-lightbox-nav { width: 42px; height: 42px; }
  .image-lightbox-caption { max-width: 68vw; font-size: 12px; }
}

/* Immersive image inspection: near-fullscreen fit, wheel/pinch zoom, and pan. */
.image-lightbox-panel { width: min(100%, 1560px); max-height: calc(100dvh - 28px); }
.image-lightbox-figure { max-height: calc(100dvh - 72px); }
.image-lightbox-image {
  max-width: min(100%, calc(100vw - 112px));
  max-height: calc(100dvh - 112px);
  cursor: zoom-in;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
  transform: translate3d(0, 0, 0) scale(1);
  transition: transform .14s ease-out;
  will-change: transform;
}
.image-lightbox-image.is-zoomed { cursor: grab; transition-duration: .06s; }
.image-lightbox-image.is-zoomed:active { cursor: grabbing; }
.image-lightbox-zoom-controls {
  position: absolute;
  z-index: 3;
  top: -10px;
  right: 54px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(246,248,244,.18);
  border-radius: 999px;
  background: rgba(20,23,20,.72);
}
.image-lightbox-zoom-controls button {
  display: grid;
  place-items: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  color: #f6f8f4;
  background: transparent;
  font: 600 15px/1 var(--font-meta);
  cursor: pointer;
}
.image-lightbox-zoom-controls button:hover:not(:disabled) { background: rgba(246,248,244,.14); }
.image-lightbox-zoom-controls button:disabled { opacity: .42; cursor: default; }
.image-lightbox-zoom-controls button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 767px) {
  .image-lightbox { padding: 48px 8px 18px; }
  .image-lightbox-panel { grid-template-columns: 40px minmax(0, 1fr) 40px; max-height: calc(100dvh - 62px); }
  .image-lightbox-figure { max-height: calc(100dvh - 92px); }
  .image-lightbox-image { max-width: calc(100vw - 96px); max-height: calc(100dvh - 130px); }
  .image-lightbox-zoom-controls { top: -42px; right: 52px; gap: 2px; padding: 2px; }
  .image-lightbox-zoom-controls button { min-width: 40px; min-height: 40px; padding-inline: 8px; }
  .image-lightbox-zoom-controls [data-zoom-reset] { min-width: 76px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .image-lightbox-image { transition: none; }
}

/* Center header calls to action independently of the decorative arrow placeholder. */
.site-header .header-cta,
.site-header .mobile-nav .button-dark {
  justify-content: center;
  gap: 0;
  line-height: 1;
  text-align: center;
}
.site-header .header-cta > span,
.site-header .mobile-nav .button-dark > span {
  display: none;
}

/* One shared desktop header state across the home page, cases, and process pages. */
@media (min-width: 981px) {
  .site-header { transition: background-color 520ms ease, border-color 520ms ease, box-shadow 520ms ease; }
  .site-header.is-scrolled {
    background: rgba(24, 90, 86, .97);
    border-bottom-color: rgba(251, 250, 246, .16);
    box-shadow: 0 8px 24px rgba(19, 54, 50, .12);
  }
  .brand-logo { transition: filter 520ms ease; }
  .site-header.is-scrolled .brand-logo { filter: brightness(0) invert(1); }
  .desktop-nav a { transition: color 420ms ease; }
  .site-header.is-scrolled .desktop-nav a,
  .site-header.is-scrolled .desktop-nav a:hover,
  .site-header.is-scrolled .desktop-nav a:focus-visible { color: #fbfaf6; }
  .site-header.is-scrolled .header-cta {
    background: #fbfaf6;
    border-color: #fbfaf6;
    color: #185a56;
    transition: color 420ms ease, background-color 420ms ease, border-color 420ms ease;
  }
  .site-header.is-scrolled .header-cta:hover,
  .site-header.is-scrolled .header-cta:focus-visible {
    background: #e9eee9;
    border-color: #e9eee9;
    color: #124a46;
  }
}
