/* Chen Lab · Vfold static page
   Palette: forest #111916, gold #f1b82d, warm paper #f6f6f2.
   Type: system sans-serif with Georgia italic accents; no web fonts. */

:root {
  --ink: #20251f;
  --muted: #646a60;
  --faint: #8a8f80;
  --paper: #f6f6f2;
  --sage: #edefe7;
  --white: #fff;
  --line: #e0e3d9;
  --gold: #f1b82d;
  --gold-dark: #a87800;
  --gold-light: #fcf3d9;
  --forest: #111916;
  --green: #4e6a52;
  --font-sans: Inter, "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-mono: "SFMono-Regular", Consolas, Menlo, monospace;
  --header-height: 4.75rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
/* Sizes are in rem, so this one line scales the page: 16px up to 1280px-wide
   windows, then growing to 22px on very wide screens (e.g. 19px at 1920px). */
html { font-size: clamp(100%, 62.5% + 0.46875vw, 137.5%); }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 1rem); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: #f1b82d66; color: var(--forest); }
:focus-visible { outline: 0.1875rem solid var(--gold-dark); outline-offset: 0.25rem; border-radius: 2px; }
[hidden] { display: none !important; }
code { font-family: var(--font-mono); font-size: .9em; padding: 1px 0.3125rem; border-radius: 0.25rem; background: #0000000d; }

.container { width: min(80.5rem, 100%); margin-inline: auto; padding-inline: 2rem; }
.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: 0.5rem; left: 1rem; z-index: 100; padding: 0.75rem 1.25rem; background: var(--gold); color: var(--forest); font-weight: 600; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.icon-sprite { display: none; }
.icon { width: 1.125rem; height: 1.125rem; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Loading and error states */
.page { transition: opacity .25s ease; }
.is-loading .page { opacity: 0; visibility: hidden; }
.load-error { max-width: 47.5rem; margin: 12vh auto; padding: 1.5rem 1.75rem; border: 1px solid #e2cf96; border-left: 0.3125rem solid var(--gold); border-radius: 0.5rem; background: var(--white); font-size: 0.9375rem; line-height: 1.7; }
.load-error pre { overflow-x: auto; margin: 0.875rem 0 0; padding: 0.75rem 0.875rem; border-radius: 0.375rem; background: var(--paper); font: 0.8125rem/1.5 var(--font-mono); }
.load-error pre:empty { display: none; }

/* Shared pieces */
.eyebrow { margin: 0 0 0.875rem; color: #6f7566; font-size: 0.75rem; font-weight: 700; line-height: 1.4; letter-spacing: 2px; text-transform: uppercase; }
.section { padding-block: 5.5rem; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 3rem; margin-bottom: 2.5rem; }
.section-title { margin: 0; font-size: clamp(2rem, 3.4vw, 2.875rem); font-weight: 500; line-height: 1.15; letter-spacing: -1.4px; }
.section-title em { font-family: var(--font-serif); font-weight: 400; letter-spacing: -1px; }
.section-text { max-width: 30rem; margin: 0; color: var(--muted); font-size: 1.0312rem; line-height: 1.75; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.875rem; min-height: 3rem; padding: 0.75rem 1.375rem; border: 1px solid transparent; border-radius: 0.375rem; font-size: 0.9375rem; font-weight: 650; line-height: 1.3; transition: background .2s, border-color .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button-gold { background: var(--gold); color: var(--ink); }
.button-gold:hover { background: #ffca46; }
.button-dark { background: var(--forest); color: var(--white); }
.button-dark:hover { background: #2b3830; }
.button-outline { border-color: #cfccb7; background: transparent; }
.button-outline:hover { border-color: #a9a68f; background: #ebe6d2; }

/* Header (sticky, CSS only) */
.site-header { position: sticky; top: 0; z-index: 50; border-top: 0.25rem solid var(--gold); background: #fffffff2; box-shadow: 0 1px 0 var(--line); backdrop-filter: saturate(1.4) blur(0.5rem); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.75rem; height: var(--header-height); }
.brand { display: inline-flex; align-items: center; gap: 0.8125rem; flex-shrink: 0; }
.brand-mark { width: 2.75rem; height: 2.75rem; }  /* the same image as the browser-tab icon */
.brand-text { font-size: 1.0625rem; font-weight: 750; line-height: 1.3; letter-spacing: 0.15rem; text-transform: uppercase; }
.brand-text small { display: block; padding-top: 0.1875rem; color: #686e65; font-size: 0.625rem; font-weight: 600; letter-spacing: 1.4px; }
.site-nav { display: flex; align-items: center; align-self: stretch; gap: 1.875rem; }
.site-nav a { position: relative; display: flex; align-items: center; color: #5b6257; font-size: 0.9375rem; font-weight: 550; white-space: nowrap; }
.site-nav a::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 0.1875rem; background: var(--gold); transform: scaleX(0); transition: transform .2s; }
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: none; }

/* Banner */
.hero { position: relative; overflow: hidden; background: var(--forest); color: var(--white); }
.hero::before { content: ""; position: absolute; inset: 0 0 0 38%; background: radial-gradient(ellipse at 50% 46%, #33453155 0%, transparent 68%); pointer-events: none; }
.hero-layout { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; min-height: 33.75rem; }
.hero-copy { position: relative; z-index: 2; padding-block: 4.5rem 3.75rem; }
.hero-eyebrow { display: flex; align-items: center; gap: 0.75rem; color: #e8c66e; }
.hero-eyebrow .rule { width: 1.625rem; height: 1px; background: var(--gold); }
.hero h1 { margin: 1.625rem 0 1.5rem; font-size: clamp(2.875rem, 5.6vw, 5rem); font-weight: 450; line-height: 1.04; letter-spacing: -.045em; }
.hero h1 em { color: #edc35e; font-family: var(--font-serif); font-weight: 400; letter-spacing: -.035em; }
.hero-text { max-width: 32.5rem; margin: 0; color: #b4bcb2; font-size: 1.125rem; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.125rem 1.875rem; margin-top: 2.125rem; }
.hero-link { display: inline-flex; align-items: center; gap: 0.75rem; color: #e3e8e0; font-size: 0.9375rem; }
.hero-link:hover { color: var(--gold); }
.hero-link .play { display: grid; place-items: center; width: 2.125rem; height: 2.125rem; border: 1px solid #5d6558; border-radius: 50%; }
.hero-link .play .icon { width: 0.8125rem; height: 0.8125rem; fill: currentColor; }
.hero-visual { position: relative; align-self: stretch; min-width: 0; }
.hero-visual img { position: absolute; top: -1%; left: -6%; width: 114%; max-width: none; height: 104%; object-fit: contain; filter: drop-shadow(0 0.75rem 2.1875rem #0003); }
.orbit { position: absolute; top: 48%; left: 52%; width: 22.5rem; height: 22.5rem; border: 1px solid #a4bc9524; border-radius: 50%; transform: translate(-50%, -50%); }
.orbit-two { width: 31.25rem; height: 31.25rem; border-style: dashed; border-color: #a4bc9512; }
.hero-coordinate { position: absolute; right: 0.25rem; bottom: 2.75rem; color: #b0bfa6; font: 0.6875rem var(--font-mono); letter-spacing: 0.3125rem; }
.hero-bottom { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.75rem; }
.hero-bottom::before { content: ""; position: absolute; top: 0; right: 2rem; left: 2rem; height: 1px; background: #c6d1b31f; }
.highlights { display: flex; flex-wrap: wrap; gap: 0.625rem 2.75rem; margin: 0; padding: 0; list-style: none; color: #bcc5b6; font-size: 0.9062rem; }
.highlights li { display: flex; align-items: center; gap: 0.6875rem; }
.highlights li::before { content: ""; width: 0.4375rem; height: 0.4375rem; background: var(--gold); transform: rotate(45deg); opacity: .85; }
.hero-about { display: inline-flex; align-items: center; gap: 0.625rem; flex-shrink: 0; color: #e0c881; font-size: 0.9062rem; }
.hero-about:hover { text-decoration: underline; text-underline-offset: 0.25rem; }
.hero-about .icon { width: 1rem; height: 1rem; }

/* Research tools */
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; counter-reset: tool; }
.tool-card { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 0.625rem; background: var(--white); transition: border-color .2s, box-shadow .2s; scroll-margin-top: calc(var(--header-height) + 1.5rem); }
.tool-card:hover { border-color: #c3c9b9; box-shadow: 0 0.5rem 1.5rem #2430150d; }
.tool-card:target { border-color: var(--gold); box-shadow: 0 0 0 0.1875rem #f1b82d55; }
.card-art { position: relative; overflow: hidden; aspect-ratio: 480 / 230; border-bottom: 1px solid #e6eade; border-radius: 0.5625rem 0.5625rem 0 0; background: #f0f3e9; }
.card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.tool-card:hover .card-art img { transform: scale(1.03); }
.art-index { position: absolute; top: 0.75rem; left: 1rem; padding: 0.1875rem 0.5rem; border-radius: 0.25rem; background: #ffffffd9; color: #5f6e57; font: 600 0.6875rem/1.4 var(--font-mono); letter-spacing: 1px; text-transform: uppercase; counter-increment: tool; }
.art-index::before { content: counter(tool, decimal-leading-zero) " / "; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 1.25rem 1.375rem 0; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 0.625rem; min-height: 1.375rem; margin-bottom: 0.5rem; }
.card-label { color: #68705e; font-size: 0.7188rem; font-weight: 700; letter-spacing: 1.2px; line-height: 1.3; text-transform: uppercase; }
.card-badge { padding: 0.1875rem 0.5rem; border-radius: 0.25rem; background: #f1f2eb; color: #5f6852; font-size: 0.75rem; white-space: nowrap; }
.tool-card h3 { margin: 0 0 0.5rem; font-size: 1.5rem; font-weight: 600; line-height: 1.2; letter-spacing: -.6px; }
.card-summary { margin: 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.7; }
.io-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.625rem; margin-top: 1.125rem; color: #56634f; font: 600 0.75rem/1.4 var(--font-mono); letter-spacing: .4px; text-transform: uppercase; }
.io-line .icon { width: 0.9375rem; height: 0.9375rem; color: #a7af96; }
.card-method { margin: 0.625rem 0 1.125rem; color: var(--muted); font-size: 0.8438rem; line-height: 1.55; }
.card-method > span:first-child { margin-right: 0.25rem; color: var(--faint); font-size: 0.7188rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.card-footer { position: relative; min-height: 3.25rem; margin-top: auto; border-top: 1px solid #eceee7; }
.card-papers summary { display: flex; align-items: center; gap: 0.5rem; min-height: 3.25rem; padding-right: 7.25rem; color: #3e4b36; font-size: 0.875rem; font-weight: 600; cursor: pointer; list-style: none; }
.card-papers summary::-webkit-details-marker { display: none; }
.card-papers summary:hover { color: #92710f; }
.card-papers summary .icon { width: 1rem; height: 1rem; }
.card-papers .count { display: grid; place-items: center; min-width: 1.3125rem; height: 1.3125rem; padding-inline: 0.3125rem; border-radius: 0.6875rem; background: #eef0e8; font-size: 0.7188rem; }
.card-papers .chevron { transition: transform .2s; }
.card-papers[open] .chevron { transform: rotate(180deg); }
/* The open list floats over the cards below, so the grid rows keep their height. */
.tool-card:has(.card-papers[open]) { z-index: 5; }
.card-papers ol { position: absolute; top: calc(100% - 0.375rem); right: -1.4375rem; left: -1.4375rem; z-index: 5; display: grid; gap: 0.75rem; max-height: min(28.75rem, 60vh); overflow-y: auto; margin: 0; padding: 1.125rem 1.375rem 1.125rem 2.75rem; border: 1px solid #d6dacd; border-radius: 0.625rem; background: var(--white); box-shadow: 0 1.125rem 2.5rem #1119161f; font-size: 0.8438rem; line-height: 1.5; }
.card-papers li::marker { color: var(--faint); font-size: 0.75rem; }
.card-papers li a { color: var(--ink); font-weight: 550; }
.card-papers li a[href] { text-decoration: underline; text-decoration-color: #c9ccbf; text-underline-offset: 0.1875rem; }
.card-papers li a[href]:hover { text-decoration-color: var(--gold-dark); }
.paper-meta { display: block; margin-top: 2px; color: var(--faint); font-size: 0.7812rem; }
.card-link { position: absolute; top: 0; right: 0; display: inline-flex; align-items: center; gap: 0.4375rem; height: 3.25rem; color: #3e4b36; font-size: 0.875rem; font-weight: 650; }
.card-link:hover { color: #92710f; }
.card-link .icon { width: 0.9375rem; height: 0.9375rem; }
.card-footer:not(:has(.card-papers)):not(:has(.card-link)) { display: none; }

@media (min-width: 1081px) {
  /* A last card alone on its row spans the full width. */
  .tool-card:last-child:nth-child(3n + 1) { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 2fr; }
  .tool-card:last-child:nth-child(3n + 1) .card-art { aspect-ratio: auto; min-height: 15.625rem; height: 100%; border-right: 1px solid #e6eade; border-bottom: 0; border-radius: 0.5625rem 0 0 0.5625rem; }
  .tool-card:last-child:nth-child(3n + 1) .card-body { padding: 1.625rem 2rem 0; }
  .tool-card:last-child:nth-child(3n + 1) .card-papers ol { right: -2.0625rem; left: -2.0625rem; }
  .tool-card:last-child:nth-child(3n + 1) .card-summary { max-width: 40rem; }
}

.collection-note { margin: 1.625rem 0 0; color: var(--muted); font-size: 0.9375rem; }

/* Featured method */
.workflow-section { border-block: 1px solid #e2e6d8; background: var(--sage); }
.workflow-figure { margin: 0; overflow: hidden; border: 1px solid #dde1d3; border-radius: 0.75rem; background: #fbfbf7; }
.workflow-figure img { width: 100%; }
.workflow-figure figcaption { padding: 0.75rem 1.25rem; border-top: 1px solid #e6e8df; color: var(--faint); font-size: 0.8125rem; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem; margin: 2.5rem 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 1.125rem; border-top: 1px solid #d3d9c8; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 0.625rem; color: #89967b; font: 1.75rem/1 var(--font-serif); }
.steps h3 { margin: 0 0 0.5rem; font-size: 1.0625rem; font-weight: 650; letter-spacing: -.2px; }
.steps p { margin: 0; color: #5d6a54; font-size: 0.9375rem; line-height: 1.7; }

/* Publications */
.pub-heading { align-items: flex-end; }
.pub-heading .section-text { margin-top: 1.125rem; }
.pub-chart { flex: 0 1 28.75rem; min-width: 0; margin: 0; padding: 1.125rem 1.25rem 2.125rem; border: 1px solid var(--line); border-radius: 0.625rem; background: var(--white); }
.pub-chart figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; margin-bottom: 1.125rem; color: var(--faint); font-size: 0.8125rem; }
.pub-chart figcaption strong { color: var(--ink); font-size: 0.875rem; font-weight: 650; }
.pub-plot { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; align-items: end; min-height: 4.75rem; border-bottom: 1px solid #c9cdbf; }
.pub-col { position: relative; display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; height: 100%; padding-bottom: 0.25rem; }
.pub-col::after { content: ""; position: absolute; bottom: -0.3125rem; left: 50%; width: 1px; height: 0.25rem; background: #c9cdbf; }
.dot { display: grid; place-items: center; width: 1.125rem; height: 1rem; }
.dot::before { content: ""; width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--gold-dark); box-shadow: 0 0 0 2px var(--white); transition: transform .15s, background .15s; }
.dot:hover::before, .dot:focus-visible::before { background: #6f5000; transform: scale(1.35); }
.pub-tick { position: absolute; top: calc(100% + 0.5625rem); left: 50%; color: var(--faint); font-size: 0.75rem; transform: translateX(-50%); }
.pub-tick:empty { display: none; }

.pub-list { border-top: 1px solid var(--line); }
.pub-year { display: grid; grid-template-columns: 8.75rem minmax(0, 1fr); gap: 1.5rem; padding-block: 0.5rem; border-bottom: 1px solid var(--line); }
.pub-year h3 { position: sticky; top: calc(var(--header-height) + 1.5rem); align-self: start; margin: 1rem 0; color: #9aa08f; font: 400 1.875rem/1 var(--font-serif); }
.pub-year ol { margin: 0; padding: 0; list-style: none; }
.pub { padding-block: 1rem; scroll-margin-top: calc(var(--header-height) + 1.5rem); }
.pub + .pub { border-top: 1px dashed #dfe2d7; }
.pub:target { margin-inline: -1rem; padding-inline: 1rem; border-radius: 0.5rem; background: var(--gold-light); }
.pub-journal { margin: 0 0 0.25rem; color: #6f7566; font-size: 0.7812rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.pub-details { margin-left: 0.625rem; color: var(--faint); font-weight: 500; letter-spacing: .2px; text-transform: none; }
.pub h4 { margin: 0 0 0.375rem; font-size: 1.125rem; font-weight: 600; line-height: 1.4; letter-spacing: -.2px; }
.pub h4 a[href] { background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 2px no-repeat; transition: background-size .25s; }
.pub h4 a[href]:hover { background-size: 100% 2px; }
.pub h4 a[href]::after { content: " ↗"; color: var(--faint); font-size: .8em; }
.pub-authors { margin-right: 0.375rem; color: var(--muted); font-size: 0.9375rem; }
.pub-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem 0.5rem; margin: 0; }
.pub-doi { margin-right: 0.375rem; color: var(--faint); font: 0.7812rem var(--font-mono); }
.chip { padding: 2px 0.625rem; border: 1px solid #d6dccb; border-radius: 1.25rem; background: #f3f5ee; color: var(--green); font-size: 0.8125rem; font-weight: 600; }
.chip:hover { border-color: var(--green); background: #e7eddf; }

/* About the lab */
.about-section { padding-top: 0; }
.about-panel { display: flex; align-items: center; gap: 2.5rem; padding: 2.5rem 2.75rem; border: 1px solid #e6dfc9; border-radius: 0.75rem; background: #f2eedf; }
.about-seal { flex-shrink: 0; width: 7rem; height: 7rem; object-fit: cover; }
.about-copy { flex: 1; min-width: 0; }
.about-copy .eyebrow { margin-bottom: 0.5rem; color: #8b7c55; }
.about-copy h2 { margin: 0 0 0.625rem; font-size: 1.875rem; font-weight: 500; letter-spacing: -.6px; line-height: 1.2; }
.about-copy h2 em { font-family: var(--font-serif); font-weight: 400; }
.about-text { max-width: 40rem; margin: 0; color: #6d705f; font-size: 1.0312rem; line-height: 1.75; }
.people { margin-top: 1.375rem; }
.people h3 { margin: 0 0 0.625rem; color: #8b7c55; font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.people ul { display: flex; flex-wrap: wrap; gap: 0.625rem; margin: 0; padding: 0; list-style: none; }
.people li { display: flex; flex-direction: column; padding: 0.625rem 1rem; border: 1px solid #e0d7bb; border-radius: 0.5rem; background: #faf7ec; font-size: 0.8438rem; line-height: 1.45; }
.people li strong { font-size: 1rem; font-weight: 650; }
.people li span { color: #7d806f; }
.about-actions { display: flex; flex-direction: column; align-items: stretch; gap: 0.625rem; flex-shrink: 0; min-width: 14.375rem; }
.about-actions .button { justify-content: space-between; }
.about-contact { display: grid; gap: 0.375rem; margin: 0.5rem 0 0; color: #6d705f; font-size: 0.875rem; }
.about-contact > span { display: flex; align-items: center; gap: 0.5rem; overflow-wrap: anywhere; }
.about-contact .icon { width: 0.9375rem; height: 0.9375rem; color: #a19674; }

/* Footer */
.site-footer { background: var(--forest); color: #c3cbbf; }
.footer-top { display: flex; align-items: center; gap: 2.5rem; padding-block: 2.75rem 2.25rem; }
.footer-brand { color: var(--white); font-size: 1.875rem; font-weight: 650; line-height: 1.15; letter-spacing: -1px; }
.footer-brand span { display: block; margin-top: 0.25rem; color: #e0c881; font-size: 0.6875rem; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; }
.footer-top > p { margin: 0; padding-left: 1.75rem; border-left: 1px solid #ffffff1f; color: #9aa596; font-size: 0.9062rem; line-height: 1.7; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.625rem; margin-left: auto; font-size: 0.9062rem; }
.footer-links a:hover, .footer-bottom a:hover { color: var(--gold); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; min-height: 4rem; padding-block: 1rem; border-top: 1px solid #ffffff14; color: #8d988a; font-size: 0.8125rem; }
.footer-bottom a { display: inline-flex; align-items: center; gap: 0.375rem; }
.footer-bottom .icon { width: 0.875rem; height: 0.875rem; }

/* Responsive */
@media (max-width: 1080px) {
  .site-nav { gap: 1.375rem; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-card:last-child:nth-child(2n + 1) { grid-column: 1 / -1; }
  .tool-card:last-child:nth-child(2n + 1) .card-art { aspect-ratio: 960 / 300; }
  .tool-card:last-child:nth-child(2n + 1) .card-art img { object-fit: contain; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .pub-chart { flex-basis: auto; width: 100%; max-width: 35rem; }
  .about-panel { flex-wrap: wrap; gap: 1.75rem; }
  .about-actions { flex-direction: row; flex-wrap: wrap; align-items: center; width: 100%; padding-left: 8.75rem; }
  .about-contact { width: 100%; }
}

@media (max-width: 900px) {
  .workflow-figure picture { display: block; max-width: 26.25rem; margin-inline: auto; }
}

@media (max-width: 860px) {
  :root { --header-height: 6.75rem; }
  .header-inner { flex-wrap: wrap; align-content: center; gap: 0.25rem 1.25rem; padding-block: 0.625rem; }
  .site-nav { order: 3; width: 100%; height: 2.5rem; gap: 1.375rem; overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .hero-layout { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding-block: 3.5rem 0; }
  .hero-visual { height: 21.25rem; margin-inline: -2rem; }
  .hero-visual img { top: 0; left: 0; width: 100%; height: 100%; }
  .orbit-one { width: 16.25rem; height: 16.25rem; }
  .orbit-two { width: 21.25rem; height: 21.25rem; }
  .hero-coordinate { bottom: 1rem; right: 2rem; }
  .hero-bottom { flex-direction: column; align-items: flex-start; padding-block: 1.375rem; }
  .highlights { flex-direction: column; gap: 0.625rem; }
  .footer-top { flex-wrap: wrap; gap: 1.25rem 2.5rem; }
  .footer-top > p { padding-left: 1.5rem; }
  .footer-links { width: 100%; margin-left: 0; }
}

@media (max-width: 640px) {
  .container { padding-inline: 1rem; }
  .section { padding-block: 4rem; }
  .brand-mark { width: 2.5rem; height: 2.5rem; }
  .site-nav { gap: 0.875rem; }
  .site-nav a { font-size: 0.875rem; }
  .brand-text { font-size: 0.9375rem; letter-spacing: 2px; }
  .hero-visual { height: 17.5rem; margin-inline: -1rem; }
  .hero-text { font-size: 1rem; }
  .hero-coordinate { right: 1rem; }
  .hero-bottom::before { right: 1rem; left: 1rem; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card:last-child:nth-child(2n + 1) .card-art { aspect-ratio: 480 / 230; }
  .tool-card:last-child:nth-child(2n + 1) .card-art img { object-fit: cover; }
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .pub-chart { padding-inline: 0.875rem; }
  .dot { width: 0.875rem; }
  .dot::before { width: 0.5625rem; height: 0.5625rem; }
  .pub-year { grid-template-columns: 1fr; gap: 0; }
  .pub-year h3 { position: static; margin: 1.375rem 0 0; font-size: 1.625rem; }
  .pub { padding-block: 1rem; }
  .pub h4 { font-size: 1.0625rem; }
  .about-panel { padding: 1.75rem 1.375rem; }
  .about-seal { display: none; }
  .about-actions { padding-left: 0; }
  .about-actions .button { flex: 1 1 13.75rem; }
  .footer-top > p { padding-left: 0; border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
