/* tokens — porcelain, ink and one teal accent */
:root {
  --paper: #F4F5F2;
  --panel: #E8EBE7;
  --ink: #13212A;
  --ink-soft: #55626A;
  --accent: #1F5F73;
  --rule: rgba(19,33,42,.16);
  --status: #F1E4C0;
  --inverse-soft: rgba(244,245,242,.72);
  --font-display: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "Noto Serif SC", "SimSun", serif;
  --font-text: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --section-space: clamp(96px, 12vw, 160px);
}
/* base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 128px; scrollbar-color: var(--ink-soft) var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.8 var(--font-text); caret-color: var(--accent); }
::selection { background: var(--accent); color: var(--paper); }
h1,h2,h3 { font-family: var(--font-display); font-weight: 500; text-wrap: balance; margin: 0 0 24px; line-height: 1.4; }
h1 { font-size: clamp(2.2rem,4.8vw,3.75rem); line-height: 1.2; }
h2 { font-size: clamp(1.75rem,3.2vw,2.6rem); }
h3 { font-size: 22px; }
p { margin: 0 0 24px; max-width: 38em; text-wrap: pretty; }
small,caption,cite { font-size: 13px; }
strong,b { font-weight: 600; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
button,input,select,textarea { font: inherit; }
button,a,input,select,textarea,summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
svg { width: 24px; height: 24px; flex-shrink: 0; vertical-align: middle; }
.external-icon { width: 16px; height: 16px; margin-left: 8px; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 24px 0; }
[hidden] { display: none !important; }
/* layout — twelve-column foundation */
.container { width: calc(100% - var(--gutter) * 2); max-width: 1240px; margin-inline: auto; }
.section { padding-block: var(--section-space); }
.soft { background: var(--panel); }
.grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 48px; }
.card { min-width: 0; }
.card p:last-child { margin-bottom: 0; }
.section > .container > h2 { margin-bottom: 48px; }
.product-panel,.contact-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 32px; align-items: start; }
.product-panel > :first-child { grid-column: 1 / 6; }
.product-panel > :last-child { grid-column: 7 / 13; }
.product-panel { align-items: center; }
.contact-grid > :first-child { grid-column: 1 / 8; }
.contact-grid > aside { grid-column: 9 / 13; border-left: 1px solid var(--rule); padding-left: 32px; }
.faq-layout { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 32px; }
.faq-layout > h2 { grid-column: 1 / 5; }
.faq-layout > .faq { grid-column: 6 / 13; }
/* components */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color 300ms; }
.site-header.scrolled { border-color: var(--rule); }
.header-inner { min-height: 96px; display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.brand { color: var(--ink); text-decoration: none; font: 600 22px/1.4 var(--font-display); white-space: nowrap; }
.brand small { display: block; margin-top: 4px; color: var(--ink-soft); font: 400 13px/1.8 var(--font-text); }
nav { display: flex; gap: 24px; }
nav a { color: var(--ink); font-size: 16px; min-height: 48px; display: inline-flex; align-items: center; text-decoration: none; background: none; border-bottom: 1px solid transparent; }
nav a.active { border-color: var(--accent); color: var(--accent); }
nav a:hover { color: var(--accent); border-color: var(--accent); }
.menu-toggle { display: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 48px; padding: 12px 24px; border: 0; border-radius: 2px; background: var(--ink); color: var(--paper); font-weight: 500; text-decoration: none; cursor: pointer; transition: background-color 200ms, transform 200ms; }
.button:hover { background: var(--accent); }
.button:not(.secondary):hover { transform: translateY(-1px); }
.button:not(.secondary):active { transform: translateY(0); }
.button.secondary { padding-inline: 0; color: var(--accent); border-radius: 0; background-color: transparent; background-image: none; text-decoration: underline; text-decoration-thickness: 1px; }
.button.secondary:hover { text-decoration-thickness: 2px; }
.tag,.intro-note { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 24px; }
.placeholder { aspect-ratio: 16 / 10; background: var(--panel); display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; color: var(--ink-soft); }
.soft .placeholder { background: var(--paper); }
.placeholder.large { max-width: 960px; }
.product-shot,.case-shots { margin: 0; width: 100%; }
.product-shot img,.case-shots img { display: block; width: 100%; max-width: 100%; height: auto; }
.product-shot figcaption,.case-shots figcaption { margin-top: 16px; font-size: 13px; color: var(--ink-soft); }
.case-shot-grid { display: grid; grid-template-columns: minmax(0,3fr) minmax(0,1fr); gap: 32px; align-items: end; }
.case-shot-grid > picture { min-width: 0; }
.case-gallery { display: grid; gap: clamp(64px,8vw,96px); }
.case-shots h3 { margin: 24px 0 8px; font-size: 22px; }
.case-shots figcaption { margin-top: 0; max-width: 38em; }
.case-gallery-note { margin: 32px 0 0; max-width: none; font-size: 13px; color: var(--ink-soft); }
.feature-list { width: 100%; max-width: 38em; margin: 0 0 32px; padding: 0; list-style: none; }
.feature-list li { padding-block: 16px; border-top: 1px solid var(--rule); }
.feature-list li:last-child { border-bottom: 1px solid var(--rule); }
.case-details { margin-bottom: 64px; }
.case-details .feature-list { margin-bottom: 0; }
.case-details .feature-list li:first-child { padding-top: 0; border-top: 0; }
.case-details .feature-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.todo { color: var(--ink); background: var(--status); border-bottom: 1px dashed var(--ink-soft); border-radius: 2px; padding-inline: 4px; font-size: inherit; font-weight: 400; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.muted { color: var(--ink-soft); margin-top: 24px; }
.index-list,.service-list,.industry-list { display: block; }
.index-list .card,.service-list .card { display: grid; grid-template-columns: 4fr 7fr; gap: 32px; border-top: 1px solid var(--rule); padding-block: 32px; }
.index-list .card:last-child,.service-list .card:last-child,.industry-list .card:last-child { border-bottom: 1px solid var(--rule); }
.index-list h3,.service-list h3 { margin: 0; }
.service-list h3 { font-size: clamp(1.75rem,3.2vw,2.6rem); }
.service-list .card { align-items: baseline; }
.hero-note .intro-note { font-size: 16px; }
.service-list .card:hover h3 { color: var(--accent); text-decoration: underline; text-underline-offset: .25em; }
.industry-list a { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; padding-block: 24px; border-top: 1px solid var(--rule); text-decoration: none; transition: transform 200ms; }
.industry-list a:hover { transform: translateX(4px); }
.industry-list a:hover h3 { color: var(--accent); }
.industry-list h3 { margin: 0; color: var(--ink); }
.steps { grid-template-columns: repeat(var(--columns,3),minmax(0,1fr)); gap: 32px; }
.steps .card { border-top: 1px solid var(--rule); padding-top: 24px; }
.step-number { display: block; font: 500 clamp(1.75rem,3.2vw,2.6rem)/1.4 var(--font-display); margin-bottom: 32px; color: var(--ink-soft); }
.steps-note { margin-top: 32px; }
details { padding: 16px; margin-bottom: 16px; }
details[open] { background: var(--panel); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 48px; list-style: none; cursor: pointer; font-weight: 500; }
summary::-webkit-details-marker { display: none; }
.chevron { transition: transform 200ms; stroke-width: 2; }
details[open] .chevron { transform: rotate(180deg); }
details p { margin: 16px 0 8px; }
blockquote { max-width: 38em; margin: 48px 0 48px auto; border-left: 2px solid var(--accent); padding: 8px 0 8px 24px; }
blockquote p { font: 500 22px/1.8 var(--font-display); }
cite { color: var(--ink-soft); font-style: normal; }
.table-wrap { width: 100%; }
table { border-collapse: collapse; width: 100%; text-align: left; font-variant-numeric: tabular-nums; }
caption { text-align: left; color: var(--ink-soft); padding-bottom: 24px; }
th,td { padding: 24px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; font-weight: 400; }
thead th { font-size: 13px; color: var(--ink-soft); }
tbody th { font-weight: 500; }
th:last-child,td:last-child { text-align: right; white-space: nowrap; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.notice { padding: 24px; background: var(--panel); }
form label { display: block; margin: 24px 0 8px; font-weight: 500; }
input,select,textarea { display: block; width: 100%; min-height: 48px; padding: 12px 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 2px; }
input:focus,select:focus,textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; }
.consent { display: flex; align-items: start; gap: 12px; font-weight: 400; }
.consent input { flex-shrink: 0; width: 24px; min-height: 24px; height: 24px; margin-top: 4px; accent-color: var(--accent); }
form .button { margin-top: 24px; }
#form-status { margin-top: 24px; padding: 16px; background: var(--panel); }
.contact-grid aside .placeholder { margin-bottom: 32px; }
.cta,footer { background: var(--ink); color: var(--paper); }
.cta .muted,footer p,footer small { color: var(--inverse-soft); }
.cta .button { background: var(--paper); color: var(--ink); }
.cta .button:hover { background: var(--panel); }
.cta h2 { max-width: 18em; }
footer { padding-top: 64px; overflow: hidden; }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; padding-bottom: 64px; border-top: 1px solid rgba(244,245,242,.16); padding-top: 32px; font-size: 13px; }
footer a { color: var(--paper); }
footer p { margin-bottom: 8px; }
.footer-wordmark { font: 500 clamp(7rem,24vw,20rem)/.9 var(--font-display); letter-spacing: .02em; white-space: nowrap; width: calc(100% - var(--gutter) * 2); max-width: 1240px; margin: 0 auto; color: rgba(244,245,242,.88); transform: translateY(24%); user-select: none; }
.mobile-cta { display: none; }
.skip { position: fixed; top: 12px; left: 20px; padding: 12px 24px; background: var(--paper); z-index: 50; transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }
/* pages */
.hero { padding-block: max(96px,18vh); }
.hero-inner { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 24px; align-items: center; }
.hero-inner > :first-child { grid-column: 1 / 8; }
.hero h1 { font-size: clamp(2.6rem,6.4vw,5.25rem); line-height: 1.12; margin-bottom: 32px; }
.title-line { display: block; overflow: hidden; padding-bottom: .12em; }
.title-line > span { display: block; }
.hero .lead { max-width: 30em; font-size: clamp(1.125rem,1.5vw,1.375rem); line-height: 1.7; }
.lead { color: var(--ink-soft); }
.hero-note { grid-column: 9 / 13; border-left: 1px solid var(--rule); padding-left: 32px; }
.hero-note h2 { font-size: 22px; }
.hero-note p { font-size: 13px; }
.balance { width: 100%; height: auto; margin-top: 24px; overflow: visible; }
.balance-beam { stroke: var(--accent); stroke-width: 1.5; transform-origin: 180px 50px; }
.balance-pivot { stroke: var(--ink); stroke-width: 1.5; }
.product-panel h3 { font-size: clamp(1.75rem,3.2vw,2.6rem); }
.case-teaser { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--rule); }
.case-teaser > :first-child { grid-column: 1 / 8; }
.case-teaser > :last-child { grid-column: 9 / 13; }
.product-panel.case-teaser h3 { font-size: 22px; }
.page-hero { padding-block: 128px 96px; border-bottom: 1px solid var(--rule); }
.page-hero .lead { margin-bottom: 0; }
.anchor-nav { display: flex; flex-wrap: wrap; gap: 32px; padding-top: 32px; }
.anchor-nav a { min-height: 48px; display: inline-flex; align-items: center; }
.industries-page section[id] > .container > h2 { border-bottom: 1px solid var(--rule); padding-bottom: 32px; }
.cases-page .section:not(:has(.placeholder,.case-shots)) > .container,
.about-page .section:not(:has(.grid)):not(.cta) > .container,
.privacy-page .section:not(:has(.grid)) > .container { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 0 32px; }
.cases-page .section:not(:has(.placeholder,.case-shots)) h2,
.about-page .section:not(:has(.grid)):not(.cta) h2,
.privacy-page .section:not(:has(.grid)) h2 { grid-column: 1 / 5; grid-row: 1 / 5; }
.cases-page .section:not(:has(.placeholder,.case-shots)) .container > :not(h2),
.about-page .section:not(:has(.grid)):not(.cta) .container > :not(h2),
.privacy-page .section:not(:has(.grid)) .container > :not(h2) { grid-column: 6 / 13; justify-self: start; }
/* motion — opening composition + gentle scroll reveals; native content stays visible */
@keyframes title-rise { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes balance-level { 0% { transform: rotate(-6deg); } 80% { transform: rotate(.4deg); } 100% { transform: rotate(0); } }
@keyframes answer-reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes figure-scale { from { transform: scale(1.03); } to { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  html.js:not(.is-static) .title-line > span { animation: title-rise 1.2s cubic-bezier(.22,1,.36,1) both; }
  html.js:not(.is-static) .title-line:nth-child(2) > span { animation-delay: 110ms; }
  html.js:not(.is-static) .balance-beam { animation: balance-level 1.2s cubic-bezier(.22,1,.36,1) both; }
  details[open] p { animation: answer-reveal 300ms ease-out; }
  /* home hero — subtitle, buttons and side note ease in after the title */
  html.js:not(.is-static) .hero .lead { animation: rise-in .7s cubic-bezier(.22,1,.36,1) both; animation-delay: .28s; }
  html.js:not(.is-static) .hero .actions { animation: rise-in .7s cubic-bezier(.22,1,.36,1) both; animation-delay: .42s; }
  html.js:not(.is-static) .hero-note { animation: rise-in .7s cubic-bezier(.22,1,.36,1) both; animation-delay: .56s; }
  /* inner-page hero eases in on load */
  html.js:not(.is-static) .page-hero h1 { animation: rise-in .7s cubic-bezier(.22,1,.36,1) both; animation-delay: .08s; }
  html.js:not(.is-static) .page-hero .intro-note { animation: rise-in .7s cubic-bezier(.22,1,.36,1) both; }
  html.js:not(.is-static) .page-hero .lead { animation: rise-in .7s cubic-bezier(.22,1,.36,1) both; animation-delay: .2s; }
  html.js:not(.is-static) .page-hero .anchor-nav,
  html.js:not(.is-static) .page-hero .image-plate { animation: rise-in .7s cubic-bezier(.22,1,.36,1) both; animation-delay: .34s; }
  /* scroll reveals — the hidden state is added by JS, so content stays visible without JS */
  html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
  html.js .reveal.is-visible { opacity: 1; transform: none; }
}
/* very light one-time entrance zoom on the home hero figure — desktop only, transform only */
@media (prefers-reduced-motion: no-preference) and (min-width: 721px) {
  html.js:not(.is-static) .hero-note .image-plate { overflow: hidden; }
  html.js:not(.is-static) .hero-note .image-plate img { animation: figure-scale .9s cubic-bezier(.22,1,.36,1) both; animation-delay: .56s; }
}
/* responsive */
@media (max-width: 1100px) {
  nav { gap: 16px; }
  .header-inner { gap: 24px; }
  .hero-inner > :first-child { grid-column: 1 / 9; }
  .hero-note { grid-column: 9 / 13; padding-left: 24px; }
  .hero h1 { font-size: clamp(2.6rem,5.7vw,5.25rem); }
}
@media (max-width: 960px) {
  .header-inner { flex-wrap: wrap; gap: 0; min-height: 96px; }
  .js .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 12px; border: 1px solid var(--rule); border-radius: 2px; background: transparent; color: var(--ink); }
  nav { width: 100%; flex-direction: column; padding: 24px 0; gap: 8px; }
  .js nav { display: none; }
  .js nav.open { display: flex; max-height: calc(100dvh - 192px); overflow: auto; }
  nav a { align-self: stretch; font: 500 22px/1.4 var(--font-display); padding: 12px 0; }
  .menu-icon { transition: transform 200ms; }
  .menu-icon .bar { transform-box: fill-box; transform-origin: center; transition: transform 200ms cubic-bezier(.22,1,.36,1); }
  [aria-expanded="true"] .menu-icon .bar-1 { transform: translateY(4px) rotate(45deg); }
  [aria-expanded="true"] .menu-icon .bar-2 { transform: translateY(-4px) rotate(-45deg); }
  .hero-inner > :first-child { grid-column: 1 / 13; }
  .hero-note { grid-column: 5 / 13; margin-top: 48px; }
  .hero h1 { font-size: clamp(2.6rem,6.4vw,5.25rem); }
  .grid { gap: 32px; }
  .steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  body { padding-bottom: 0; }
  footer { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .header-inner { min-height: 96px; }
  .hero { padding-block: max(96px,18vh); }
  .hero-inner,.product-panel,.contact-grid,.faq-layout { display: flex; flex-direction: column; align-items: stretch; gap: 48px; }
  .hero h1 { font-size: clamp(2.6rem,6.4vw,5.25rem); }
  .hero-note { margin-top: 0; padding-left: 24px; }
  .actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .button { width: 100%; }
  .grid { grid-template-columns: 1fr; gap: 48px; }
  .index-list .card,.service-list .card { grid-template-columns: 1fr; gap: 16px; }
  .industry-list a { align-items: start; flex-direction: column; gap: 8px; }
  .contact-grid > aside { padding-left: 0; padding-top: 32px; border-left: 0; border-top: 1px solid var(--rule); }
  .page-hero { padding-block: 96px; }
  .faq-layout > h2 { margin-bottom: 0 !important; }
  details { padding-inline: 12px; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .mobile-cta { display: block; position: fixed; inset: auto 0 0; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--rule); box-shadow: 0 -8px 48px rgba(19,33,42,.08); z-index: 30; }
  .anchor-nav { gap: 8px 24px; }
  blockquote { margin-block: 32px; padding-left: 16px; }
  table,tbody,tr,td,tbody th { display: block; width: 100%; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tr { padding-block: 24px; border-top: 1px solid var(--rule); }
  th,td { padding: 8px 0; border: 0; }
  tbody th { font: 500 22px/1.4 var(--font-display); margin-bottom: 16px; }
  td::before { content: attr(data-label); display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 4px; }
  th:last-child,td:last-child { text-align: left; }
  .cases-page .section:not(:has(.placeholder,.case-shots)) > .container,
  .about-page .section:not(:has(.grid)):not(.cta) > .container,
  .privacy-page .section:not(:has(.grid)) > .container { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation: none !important; transition: none !important; }
}

/* Accessible icon labels and narrow-screen refinements. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.title-line > span { text-wrap: balance; }
footer a { display: inline-flex; align-items: center; min-height: 48px; }
@media (min-width: 601px) and (max-width: 960px) {
  body { padding-bottom: 0; }
  footer { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .mobile-cta { display: block; position: fixed; inset: auto 0 0; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--rule); box-shadow: 0 -8px 48px rgba(19,33,42,.08); z-index: 30; }
  .mobile-cta .button { width: 100%; }
}

/* Responsive plates and resilient text flow. */
body { overflow-wrap: break-word; }
a[href^="mailto:"], a[href^="http"], code { overflow-wrap: anywhere; }
img { display: block; max-width: 100%; height: auto; }
.hero-inner > *, .product-panel > *, .contact-grid > *, .faq-layout > *, .footer-inner > * { min-width: 0; }
.image-plate { margin: 0; width: 100%; }
.image-plate img { width: 100%; border-radius: 0; }
.image-plate figcaption { margin-top: 8px; font-size: 13px; color: var(--ink-soft); }
.plate-columns { display: grid; grid-template-columns: minmax(0,3fr) minmax(0,2fr); gap: 48px; align-items: center; }
.plate-columns .steps,.plate-columns .essays { grid-template-columns: minmax(0,1fr); }
.plate-columns .step-number { margin-bottom: 16px; font-size: 22px; }
.hero-note .image-plate { margin-bottom: 32px; }
.plate-banner { padding-top: 48px; }
.plate-banner img { max-height: 440px; object-fit: cover; }
.about-page .section > .container.about-intro { display: grid; grid-template-columns: minmax(0,3fr) minmax(0,2fr); gap: 48px; align-items: start; }
.about-page .about-intro > .about-copy, .about-page .about-intro > .image-plate { grid-column: auto; justify-self: stretch; }
.about-intro img { max-height: 640px; object-fit: cover; }
.table-wrap { min-width: 0; }
.site-header { padding-top: env(safe-area-inset-top); }
footer a, nav a, .button { min-width: 44px; }
form label { width: 100%; }
.consent { min-height: 44px; align-items: center; }
.consent input { width: 44px; height: 44px; min-height: 44px; margin: 0; }
.consent a { display: inline-flex; align-items: center; min-height: 44px; }
.contact-page .mobile-cta, body.menu-open .mobile-cta { display: none; }
@media (max-width: 960px) {
  body.menu-open { overflow: hidden; }
  .js nav.open { position: fixed; inset: var(--header-height, calc(96px + env(safe-area-inset-top))) 0 0; width: 100%; max-height: none; padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom)); background: var(--paper); overflow-y: auto; overscroll-behavior: contain; }
  .mobile-cta { box-shadow: none; }
  footer { padding-bottom: calc(73px + env(safe-area-inset-bottom)); }
  .contact-page footer { padding-bottom: 0; }
}
@media (max-width: 720px) {
  body { font-size: 16px; line-height: 1.75; }
  h1 { font-size: clamp(1.875rem,8.5vw,2.125rem); line-height: 1.2; }
  .hero h1 { font-size: clamp(2rem,9vw,2.5rem); line-height: 1.2; }
  h2, .service-list h3, .product-panel h3 { font-size: 1.5rem; line-height: 1.3; }
  .hero .lead { font-size: 16px; line-height: 1.75; }
  .hero { padding-block: 64px; }
  .hero-inner,.product-panel,.contact-grid,.faq-layout { display: flex; flex-direction: column; align-items: stretch; gap: 48px; }
  .hero-note { margin-top: 0; padding-left: 0; border-left: 0; }
  .case-shot-grid { grid-template-columns: minmax(0,1fr); }
  .case-shot-mobile { width: 100%; max-width: 240px; justify-self: center; }
  .balance { max-width: 100%; overflow: hidden; }
  .grid, .steps { grid-template-columns: minmax(0,1fr); }
  .index-list .card, .service-list .card { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .step-number { margin-bottom: 16px; }
  .contact-grid > aside { padding-left: 0; padding-top: 32px; border-left: 0; border-top: 1px solid var(--rule); }
  .footer-inner { flex-direction: column; }
  .footer-wordmark { font-size: min(38vw, 10rem); overflow: hidden; letter-spacing: 0; }
  input, select, textarea { font-size: 16px; max-width: 100%; }
  .about-page .section > .container.about-intro { display: flex; flex-direction: column; gap: 32px; }
  .about-intro img { max-height: none; }
  .plate-columns { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .plate-banner img { max-height: 280px; }
  table,tbody,tr,td,tbody th { display: block; width: 100%; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tr { padding-block: 24px; border-top: 1px solid var(--rule); }
  th,td { padding: 8px 0; border: 0; }
  tbody th { font: 500 22px/1.4 var(--font-display); margin-bottom: 16px; }
  td::before { content: attr(data-label); display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 4px; }
  th:last-child,td:last-child { text-align: left; white-space: normal; }
}
.anchor-nav a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
cite a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.nowrap { white-space: nowrap; }
@media (max-width: 720px) {
  caption { display: block; width: 100%; }
  h1, h2 { word-break: keep-all; overflow-wrap: break-word; }
}
/* Checkbox: the whole label is the 44px target; keep the box itself quiet. */
.consent { display: flex; gap: 12px; align-items: flex-start; padding-block: 10px; cursor: pointer; }
.consent input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; flex: none; accent-color: var(--ink); }
@media (max-width: 960px) { .contact-page footer { padding-bottom: calc(40px + env(safe-area-inset-bottom)); } }
@media (min-width: 961px) {
  .about-page .section:not(:has(.grid)):not(.cta) > .container.about-intro { align-items: center; }
  .about-page .section:not(:has(.grid)):not(.cta) > .container.about-intro > .about-copy { grid-column: 1 / 7; justify-self: stretch; }
  .about-page .section:not(:has(.grid)):not(.cta) > .container.about-intro > .image-plate { grid-column: 8 / 13; justify-self: stretch; }
  .about-intro .about-copy h2 { margin-bottom: 32px; }
}
