/* guzilab.com — 粟白科技 company homepage.
   Paper-white page, two deep-green panels (hero, partners), one serif for headings and the letter.
   The only unprompted motion is the hero millet growing once after load. */

@font-face {
  font-family: "Guzi Serif";
  src: url("./assets/fonts/guzi-serif.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --paper: #f8f4ea;
  --surface: #fffdf9;
  --band: #f1ebdc;
  --grain-tile: url("./assets/brand/paper-grain.png");
  --ink: #18261f;
  --muted: #56635b;
  --line: #e2e5dc;
  --mist: #efebe1;
  --accent-ink: #1e3b2f;
  --field: #1e3b2f;
  --field-ink: #f3eddb;
  --field-muted: #bdc9ba;
  --field-line: rgb(243 237 219 / .16);
  --grain: #c0953f;
  --button: #1e3b2f;
  --button-ink: #f8f5ea;
  --mark-leaf: #1e3b2f;
  --mark-grain: #c0953f;
  --shot-assistant: #f6ece0;
  --shot-scholar: #efebe3;
  --shot-graph: #e6eee8;
  --serif: "Guzi Serif", "Songti SC", "STSong", "Noto Serif SC", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --shell: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --inset: clamp(8px, 1vw, 14px);
  --panel-radius: clamp(20px, 2.2vw, 32px);
  --section: clamp(80px, 10vw, 144px);
  --h2: clamp(30px, 3.4vw, 44px);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #0f1713;
  --surface: #151f1a;
  --band: #131d18;
  --grain-tile: url("./assets/brand/paper-grain-light.png");
  --ink: #e6eae2;
  --muted: #a3aea5;
  --line: #27342d;
  --mist: #131c18;
  --accent-ink: #cfdcca;
  --field: #183129;
  --field-ink: #efe9d6;
  --field-muted: #aebbab;
  --field-line: rgb(239 233 214 / .14);
  --grain: #d3a54e;
  --button: #d3a54e;
  --button-ink: #14201a;
  --mark-leaf: #e6eae2;
  --mark-grain: #d3a54e;
  --shot-assistant: #231f19;
  --shot-scholar: #1f1e1a;
  --shot-graph: #17231d;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1713;
    --surface: #151f1a;
    --band: #131d18;
    --grain-tile: url("./assets/brand/paper-grain-light.png");
    --ink: #e6eae2;
    --muted: #a3aea5;
    --line: #27342d;
    --mist: #131c18;
    --accent-ink: #cfdcca;
    --field: #183129;
    --field-ink: #efe9d6;
    --field-muted: #aebbab;
    --field-line: rgb(239 233 214 / .14);
    --grain: #d3a54e;
    --button: #d3a54e;
    --button-ink: #14201a;
    --mark-leaf: #e6eae2;
    --mark-grain: #d3a54e;
    --shot-assistant: #231f19;
    --shot-scholar: #1f1e1a;
    --shot-graph: #17231d;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}
html[data-motion="off"] { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--paper) var(--grain-tile) 0 0 / 240px;
  color: var(--ink);
  font: 17px/1.85 var(--sans);
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p, ul, dl, dd { margin: 0; }
p { text-wrap: pretty; }
ul { padding: 0; list-style: none; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: .01em;
  text-wrap: balance;
}

button, select { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible { outline: 2px solid var(--grain); outline-offset: 3px; border-radius: 6px; }

.shell { width: min(100% - 2 * var(--gutter), var(--shell)); margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--button); color: var(--button-ink); text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Shared two-column rhythm: a heading column and a content column, used by every section. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px 48px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  /* Solid on purpose: a translucent bar let headings show through in Safari and turned grey over the green hero. */
  background: var(--paper) var(--grain-tile) 0 0 / 240px;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-bar { display: flex; align-items: center; gap: 32px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 36px; height: 36px; flex: none; overflow: visible; }
.mark-ear { transform-box: view-box; transform-origin: 36px 16px; }
.brand:hover .mark-ear { animation: ear-sway .9s cubic-bezier(.3, .6, .3, 1); }
@keyframes ear-sway { 0% { transform: rotate(0); } 35% { transform: rotate(9deg); } 70% { transform: rotate(-4deg); } 100% { transform: rotate(0); } }
.brand-name { font: 600 20px/1 var(--serif); letter-spacing: .08em; }
.brand-latin {
  margin-left: 2px; padding-left: 11px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font: 500 12px/1.2 var(--sans); letter-spacing: .08em;
}

.site-nav { display: flex; gap: 30px; margin-left: auto; font-size: 15px; }
.site-nav a { position: relative; color: var(--muted); text-decoration: none; padding: 8px 0; transition: color .2s; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px;
  background: var(--grain); transform: scaleX(0); transform-origin: left;
  transition: transform .28s cubic-bezier(.3, .7, .2, 1);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }

.header-tools { display: flex; align-items: center; gap: 8px; }

.theme-switch {
  --seg: 32px;
  position: relative; display: flex; padding: 3px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
}
.theme-switch button {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: var(--seg); height: var(--seg); padding: 0;
  border: 0; border-radius: 50%; background: none;
  color: var(--muted); cursor: pointer;
  transition: color .25s, background-color .2s;
}
.theme-switch button:hover { color: var(--ink); background: var(--band); }
.theme-switch button[aria-checked="true"], .theme-switch button[aria-checked="true"]:hover { color: var(--button-ink); background: none; }
.theme-switch svg { width: 18px; height: 18px; transition: transform .35s cubic-bezier(.3, .7, .2, 1.3); }
.theme-switch button:active svg { transform: scale(.85); }
.theme-switch button[data-theme-option="light"]:hover svg { transform: rotate(45deg); }
.theme-switch button[data-theme-option="dark"]:hover svg { transform: rotate(-18deg); }
/* the filled disc slides under whichever option is chosen */
.theme-thumb {
  position: absolute; top: 3px; left: 3px;
  width: var(--seg); height: var(--seg); border-radius: 50%;
  background: var(--button);
  transition: transform .35s cubic-bezier(.3, .7, .2, 1);
}
:root[data-theme-choice="light"] .theme-thumb { transform: translateX(var(--seg)); }
:root[data-theme-choice="dark"] .theme-thumb { transform: translateX(calc(2 * var(--seg))); }

.menu-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  border: 0; background: none; cursor: pointer;
  place-content: center; gap: 6px;
}
.menu-toggle span { display: block; width: 20px; height: 1.5px; background: var(--ink); transition: transform .2s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-nav {
  position: absolute; inset: 72px 0 auto;
  display: grid; padding: 4px var(--gutter) 20px;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 17px; }
.mobile-nav a:last-child { border-bottom: 0; }

/* ---------- Hero ---------- */

.hero { padding: var(--inset) var(--inset) 0; }

.hero-panel {
  position: relative; overflow: hidden;
  border-radius: var(--panel-radius);
  background: var(--field) url("./assets/brand/paper-grain-light.png") 0 0 / 240px;
  color: var(--field-ink);
}
/* faint furrows behind the plant, drawn rather than photographed */
.hero-panel::before {
  content: ""; position: absolute; inset: auto 0 0 auto;
  width: 62%; height: 70%;
  background: radial-gradient(120% 90% at 70% 100%, rgb(192 149 63 / .16), transparent 62%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 40px;
  min-height: clamp(580px, calc(100svh - 72px - 2 * var(--inset)), 800px);
}

.hero-copy { align-self: center; padding-block: clamp(64px, 8vw, 112px); }

.hero h1 {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.18;
  letter-spacing: .02em;
}

.hero-lead {
  max-width: 28em; margin-top: 28px; text-wrap: pretty;
  color: var(--field-muted);
  font-size: clamp(17px, 1.35vw, 19px); line-height: 1.85;
}

.hero-products {
  display: flex; flex-wrap: wrap; gap: 16px 40px;
  margin-top: clamp(40px, 5vw, 64px); padding-top: 28px;
  border-top: 1px solid var(--field-line);
}
.hero-products a { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.hero-products img { width: 40px; height: 40px; border-radius: 10px; flex: none; transition: transform .25s cubic-bezier(.3, .7, .2, 1.3), box-shadow .25s; }
.hero-products a:hover img { transform: translateY(-3px); box-shadow: 0 8px 18px -8px rgb(0 0 0 / .55); }
.hero-products strong { display: block; font-size: 16px; font-weight: 600; line-height: 1.35; }
.hero-products small { display: block; color: var(--field-muted); font-size: 13px; line-height: 1.4; }
.hero-products a:hover strong { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--grain); }

.hero-plant { position: relative; min-height: 320px; }
.hero-plant-image {
  position: absolute; left: 50%; bottom: -4%;
  width: auto; height: min(106%, 840px); max-width: none;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
}
.hero-seed {
  position: absolute; left: 44%; bottom: 6%;
  width: 46px; fill: var(--grain);
  transform: translateX(-50%); opacity: 0;
}

html[data-motion="on"] .hero-plant-image { animation: plant-grow 2.6s cubic-bezier(.3, .6, .2, 1) .45s both; }
html[data-motion="on"] .hero-seed { animation: seed-sink 1.5s ease .1s both; }

@keyframes plant-grow {
  from { clip-path: inset(100% 0 0 0); transform: translateX(-50%) scale(.8); }
  to { clip-path: inset(0 0 0 0); transform: translateX(-50%) scale(1); }
}
@keyframes seed-sink {
  0% { opacity: 0; transform: translateX(-50%) scale(.7); }
  20%, 55% { opacity: 1; transform: translateX(-50%) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) translateY(10px) scale(.5); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-plant-image, .hero-seed { animation: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-property: color, background-color, border-color, text-decoration-color, opacity !important; }
  .brand:hover .mark-ear { animation: none; }
  .product:hover .product-shot img, .button:hover, .feedback-links a:hover, .hero-products a:hover img,
  .schools a:hover img, .footer-cols a:hover, .product:hover .product-name img { transform: none; }
}
html[data-motion="off"] .brand:hover .mark-ear { animation: none; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

/* ---------- Section heads ---------- */

.section-head { align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2, .about h2, .letter h2, .partners h2 { font-size: var(--h2); line-height: 1.3; }
.section-head p { max-width: 32em; color: var(--muted); font-size: 18px; }

/* ---------- Products ---------- */

.products { padding-block: var(--section); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 40px);
}

.product { display: flex; flex-direction: column; }

.product-shot {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  background: var(--shot, var(--mist));
  transition: background-color .35s;
}
.product:hover .product-shot { background: color-mix(in srgb, var(--shot, var(--mist)) 82%, var(--grain)); }
#assistant .product-shot { --shot: var(--shot-assistant); }
#scholar .product-shot { --shot: var(--shot-scholar); }
#graph .product-shot { --shot: var(--shot-graph); }
.product-shot img {
  position: absolute; left: 9%; top: 11%;
  width: 122%; max-width: none; height: auto;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgb(24 38 31 / .08), 0 22px 44px -18px rgb(24 38 31 / .28);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s;
}
.product:hover .product-shot img {
  transform: translate(-10px, -12px);
  box-shadow: 0 2px 4px rgb(24 38 31 / .08), 0 34px 60px -20px rgb(24 38 31 / .38);
}
.product-name img { transition: transform .3s cubic-bezier(.3, .7, .2, 1.3); }
.product:hover .product-name img { transform: rotate(-6deg) scale(1.05); }
:root[data-theme="dark"] .product-shot img { filter: brightness(.92); }

.product-name { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.product-name img { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.product-name h3 { font-size: 22px; line-height: 1.3; }
.product-name p { color: var(--muted); font-size: 14px; line-height: 1.4; }

.product-text { margin-top: 16px; font-size: 16px; line-height: 1.85; }
.product-meta { margin-top: 10px; color: var(--muted); font-size: 14px; }

.product-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: auto; padding-top: 24px; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px;
  border-radius: 10px;
  background: var(--button); color: var(--button-ink);
  font-size: 15px; font-weight: 600; text-decoration: none;
}
.button { transition: background-color .2s, transform .2s, box-shadow .2s; }
.button:hover {
  background: color-mix(in srgb, var(--button) 88%, var(--paper));
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px color-mix(in srgb, var(--button) 80%, transparent);
}
.button:active { transform: translateY(0); box-shadow: none; }

.text-link {
  font-size: 15px;
  text-decoration: underline; text-decoration-thickness: 1.5px;
  text-decoration-color: var(--line); text-underline-offset: 6px;
}
.text-link { transition: text-decoration-color .2s, text-underline-offset .2s; }
.text-link:hover { text-decoration-color: var(--grain); text-underline-offset: 4px; }

/* ---------- About ---------- */

.about { background: var(--band) var(--grain-tile) 0 0 / 240px; }
.about > .shell { padding-block: var(--section); }
.partners { margin-top: var(--inset); }

.about-text p + p { margin-top: 16px; }
.about-lead {
  margin-bottom: 24px;
  font: 600 clamp(22px, 2.1vw, 28px)/1.55 var(--serif);
}

.name-story, .principles {
  margin-top: clamp(64px, 8vw, 104px);
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.name-story h3, .principles h3 { font-size: 20px; line-height: 1.5; }

.name-story dl { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; }
.name-story dl > div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; }
.glyph {
  color: var(--accent-ink);
  font: 600 clamp(76px, 8vw, 112px)/1 var(--serif);
}
/* 白 drawn as an outline: an overlap-free path, so the stroke shows only the outer contour */
.glyph-hollow svg { width: 1em; height: 1em; fill: none; stroke: var(--accent-ink); stroke-width: 1.6px; vector-effect: non-scaling-stroke; overflow: visible; }
.glyph-hollow svg path { vector-effect: non-scaling-stroke; }
.name-story dd { padding-top: 6px; color: var(--muted); font-size: 16px; }
.name-story dd strong { display: block; margin-bottom: 6px; color: var(--ink); font-size: 17px; font-weight: 600; }

.principles li {
  display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 24px;
  padding-block: 20px; border-bottom: 1px solid var(--line);
}
.principles li:first-child { padding-top: 0; }
.principles li:last-child { border-bottom: 0; padding-bottom: 0; }
.principles h4 { color: var(--accent-ink); font-size: 22px; line-height: 1.6; }
.principles li p { color: var(--muted); font-size: 16px; }

/* ---------- Partners ---------- */

.partners { padding-inline: var(--inset); }
.partners-panel {
  padding-block: clamp(64px, 8vw, 112px);
  border-radius: var(--panel-radius);
  background: var(--field) url("./assets/brand/paper-grain-light.png") 0 0 / 240px;
  color: var(--field-ink);
}

.partners-intro p { max-width: 30em; margin-top: 20px; color: var(--field-muted); }

.backers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.backers li {
  display: grid; align-content: space-between; gap: 28px;
  padding: 24px; border: 1px solid var(--field-line); border-radius: 16px;
  transition: background-color .25s, border-color .25s;
}
.backers li:hover { background: rgb(243 237 219 / .05); border-color: rgb(243 237 219 / .32); }
.backers span { color: var(--field-muted); font-size: 13px; }
.backers img { width: auto; height: auto; max-width: 100%; max-height: 46px; }

.schools { margin-top: clamp(48px, 6vw, 72px); padding-top: 32px; border-top: 1px solid var(--field-line); align-items: center; }
.schools h3 { font-size: 18px; line-height: 1.5; }
.schools ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; align-items: center; }
.schools a { display: block; }
.schools img { width: auto; height: auto; max-width: 100%; max-height: 42px; filter: brightness(0) invert(1); opacity: .72; transition: opacity .25s, transform .25s; }
.schools a:hover img { opacity: 1; transform: translateY(-2px); }

/* ---------- Letter ---------- */

.letter { padding-block: var(--section); }
.letter-side { display: grid; align-content: start; gap: 40px; }
.letter-plate {
  width: min(78%, 340px); height: auto;
  mix-blend-mode: multiply; opacity: .78;
}
:root[data-theme="dark"] .letter-plate { mix-blend-mode: normal; opacity: .42; filter: saturate(.8); }
.letter-body {
  max-width: 33em;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(18px, 1.45vw, 20px); line-height: 2;
}
.letter-body p + p { margin-top: 18px; }
.letter-body .signature {
  margin-top: 40px; text-align: right;
  font-weight: 600; font-size: 20px; letter-spacing: .3em;
}
.signature span { display: block; margin-top: 2px; color: var(--muted); font-weight: 400; font-size: 15px; letter-spacing: .12em; }

/* ---------- Contact ---------- */

.contact { overflow: hidden; text-align: center; }
.contact-inner { max-width: 760px; padding-top: clamp(72px, 8vw, 112px); border-top: 1px solid var(--line); }
.contact h2 { font-size: clamp(26px, 3.6vw, 48px); line-height: 1.3; }
.contact-inner > p { max-width: 32em; margin: 20px auto 0; color: var(--muted); }
.feedback-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.feedback-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); font-size: 15px; text-decoration: none;
}
.feedback-links a { transition: background-color .2s, border-color .2s, transform .2s; }
.feedback-links a:hover { border-color: var(--accent-ink); background: var(--band); transform: translateY(-2px); }
.contact-field {
  width: 100%; max-width: none;
  height: clamp(150px, 20vw, 280px);
  margin-top: clamp(40px, 6vw, 72px);
  object-fit: cover; object-position: 50% 100%;
  /* let the field rise out of the paper instead of starting at a hard crop line */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 38%);
  mask-image: linear-gradient(to bottom, transparent, #000 38%);
}
:root[data-theme="dark"] .contact-field { filter: brightness(.82) saturate(.9); }

/* ---------- Footer ---------- */

.site-footer { padding: 56px 0 28px; background: var(--mist) var(--grain-tile) 0 0 / 240px; border-top: 1px solid var(--line); font-size: 14px; }
.footer-top { align-items: start; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-cols h2 { margin-bottom: 10px; font: 600 14px/1.5 var(--sans); letter-spacing: .04em; }
.footer-cols a { display: block; padding: 4px 0; color: var(--muted); text-decoration: none; transition: color .2s, transform .2s; }
.footer-cols a:hover { color: var(--ink); transform: translateX(3px); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px;
  margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px;
}
.footer-bottom a { text-decoration-color: var(--line); text-underline-offset: 4px; }
.motion-toggle {
  margin-left: auto; padding: 8px 0;
  border: 0; background: none; color: inherit; font-size: 13px; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px;
}
.motion-toggle:disabled { cursor: default; opacity: .7; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .site-nav { gap: 22px; }
  .header-bar { gap: 24px; }
}

@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .section-head { align-items: start; }

  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 0; }
  .hero-copy { padding-block: 56px 8px; }
  .hero-plant { height: clamp(320px, 62vw, 460px); }
  .hero-plant-image { height: 108%; }
  .hero-panel::before { width: 100%; height: 50%; }

  .product-grid { grid-template-columns: minmax(0, 1fr); gap: 64px; max-width: 620px; }
  .letter-plate { display: none; }
  .backers { grid-template-columns: 1fr 1fr; }
  .schools ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { gap: 36px; }
}

@media (max-width: 760px) {
  .site-nav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: grid; }
  .theme-switch { --seg: 30px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero h1 { font-size: clamp(30px, 8.6vw, 40px); }
  .hero-lead { font-size: 15.5px; }
  .header-bar { height: 64px; }
  .mobile-nav { inset: 64px 0 auto; }
  html { scroll-padding-top: 76px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 18px; }
  .brand-latin { display: none; }

  .hero-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .hero-products a { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-products small { display: none; }
  .hero-products strong { font-size: 15px; }

  .name-story dl { grid-template-columns: minmax(0, 1fr); }
  .principles li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .backers { grid-template-columns: minmax(0, 1fr); }
  .backers li { grid-template-columns: 4.5em minmax(0, 1fr); align-items: center; gap: 16px; padding: 18px 20px; }
  .backers img { max-height: 38px; }
  .letter-body .signature { text-align: left; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols div:last-child { grid-column: 1 / -1; }
  .motion-toggle { margin-left: 0; }
}

/* Touch screens have no real hover: don't leave cards lifted after a tap. */
@media (hover: none) {
  .product:hover .product-shot { background: var(--shot, var(--mist)); }
  .product:hover .product-shot img { transform: none; box-shadow: 0 1px 2px rgb(24 38 31 / .08), 0 22px 44px -18px rgb(24 38 31 / .28); }
  .product:hover .product-name img, .button:hover, .feedback-links a:hover, .footer-cols a:hover { transform: none; }
}
