/* Hallmark companion audit / SYRIVA: custom direction owned by Gridgeist.
   Direction: translate the supplied organic reference into a useful ingredient and specification catalogue.
   Shared tokens govern the company homepage, Documents centre and ingredient details. */
@font-face {
  font-family: Manrope;
  src: url("./assets/manrope-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Thai";
  src: url("./assets/noto-sans-thai.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --white: oklch(1 0 0);
  --ink: oklch(.266 .033 356);
  --muted: oklch(.447 .032 354);
  --rose: oklch(.455 .108 356);
  --rose-hover: oklch(.385 .097 356);
  --rose-deep: oklch(.332 .084 354);
  --blush: oklch(.971 .012 358);
  --tint: oklch(.939 .027 357);
  --line: oklch(.887 .021 355);
  --paper: oklch(.985 .01 63);
  --canvas: oklch(.895 .026 5);
  --rose-wash: oklch(.86 .04 4);
  --rose-petal: oklch(.92 .027 4);
  --rose-silk: oklch(.954 .018 4);
  --rose-rule: oklch(.805 .035 4);
  --backdrop: oklch(.2 .035 356 / .65);
  --nav-shadow: oklch(.266 .033 356 / .1);
  --type: Manrope, "Segoe UI", sans-serif;
  --type-thai: "Noto Sans Thai", Tahoma, sans-serif;
  --text-meta: .8125rem;
  --text-ui: .9375rem;
  --text-body: 1rem;
  --text-lead: 1.0625rem;
  --text-item: 1.125rem;
  --text-heading: clamp(1.7rem, 2.7vw, 2.5rem);
  --text-display: clamp(2.3rem, 4.2vw, 3.875rem);
  --side: clamp(17px, 4.15vw, 64px);
  --frame-gutter: clamp(7px, 1.4vw, 22px);
  --frame-radius: clamp(20px, 2.1vw, 32px);
  --panel-inset: clamp(5px, .8vw, 12px);
  --panel-radius: clamp(22px, 2.5vw, 36px);
  --card-radius: 16px;
  --control-radius: 10px;
  --speed: 220ms cubic-bezier(.22, 1, .36, 1);
  --z-menu: 2;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: clip; scroll-behavior: smooth; background: var(--canvas); scrollbar-color: var(--rose) var(--canvas); }
body { overflow-x: clip; display: flow-root; width: min(calc(100% - var(--frame-gutter) * 2), 1460px); margin: var(--frame-gutter) auto; border-radius: var(--frame-radius); background: var(--paper); color: var(--ink); font: 400 var(--text-body)/1.6 var(--type); font-kerning: normal; }
button, input, select { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
a { color: inherit; text-underline-offset: 4px; }
img { display: block; max-width: 100%; }
figure, p, h1, h2, h3, dl, dd { margin: 0; }
::selection { color: var(--white); background: var(--rose); }
:is(a, button, input, select, summary):focus-visible { outline: 2px solid var(--rose); outline-offset: 4px; }
:is(section, footer)[id] { scroll-margin-top: 24px; }
h1, h2, h3 { min-width: 0; overflow-wrap: break-word; text-wrap: balance; }
h2 { font-size: var(--text-heading); line-height: 1.16; font-weight: 700; letter-spacing: -.03em; }
p { text-wrap: pretty; }
.wrap { width: min(100% - var(--side) * 2, 1280px); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: absolute; z-index: var(--z-menu); top: 12px; left: var(--side); padding: 10px 16px; background: var(--paper); }
.icon { display: block; flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }

.site-header { position: relative; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 78px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; flex: 0 0 auto; }
.brand img { width: clamp(119px, 12.2vw, 166px); height: auto; mix-blend-mode: multiply; }
.site-nav, .header-actions { display: flex; align-items: center; }
.site-nav { gap: clamp(20px, 2.8vw, 41px); }
.site-nav :is(a, summary) { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: var(--text-ui); font-weight: 650; white-space: nowrap; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--rose); text-decoration: underline; }
.industry-nav { position: relative; }
.industry-nav summary { gap: 7px; border-radius: var(--control-radius); list-style: none; cursor: pointer; }
.industry-nav summary::-webkit-details-marker { display: none; }
.industry-nav summary:hover, .industry-nav[open] summary, .industry-nav:has(a[aria-current="page"]) summary { color: var(--rose); }
.industry-nav-chevron { flex: 0 0 14px; width: 14px; height: 14px; transition: transform var(--speed); }
.industry-nav[open] .industry-nav-chevron { transform: rotate(180deg); }
.industry-nav-list {
  position: absolute;
  z-index: var(--z-menu);
  inset: calc(100% + 4px) auto auto 0;
  width: max-content;
  min-width: 250px;
  max-width: min(320px, calc(100vw - var(--side) * 2));
  max-height: min(400px, calc(100dvh - 90px));
  margin: 0;
  padding: 7px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--paper);
  box-shadow: 0 10px 24px var(--nav-shadow);
  list-style: none;
}
.site-nav .industry-nav-list a {
  display: flex;
  min-height: 44px;
  padding: 8px 12px;
  border-inline-start: 2px solid transparent;
  border-radius: 8px;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}
.site-nav .industry-nav-list a:hover { background: var(--rose-silk); }
.site-nav .industry-nav-list a:focus-visible { outline-offset: -2px; }
.site-nav .industry-nav-list a[aria-current="page"] {
  border-inline-start-color: var(--rose);
  background: var(--tint);
  text-decoration: none;
}
.site-nav .mobile-contact { display: none; }
.header-actions { gap: 12px; }
.header-contact { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 23px; border: 1px solid transparent; border-radius: 999px; background: var(--rose); color: var(--white); font-size: var(--text-ui); font-weight: 700; white-space: nowrap; text-decoration: none; transition: background-color var(--speed), transform var(--speed); }
.header-contact:hover { background: var(--rose-hover); transform: translateY(-1px); }
.header-contact:active { transform: translateY(1px); }
.menu-toggle { display: none; }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(10px, 1.5vw, 22px); margin-inline: var(--panel-inset); padding: clamp(20px, 2.35vw, 34px) clamp(22px, 3.6vw, 53px) clamp(52px, 5vw, 72px); border-radius: var(--panel-radius) var(--panel-radius) 0 0; background: var(--rose-wash); }
.hero-copy { padding: clamp(15px, 2vw, 29px) 0 clamp(15px, 2vw, 29px) clamp(2px, .7vw, 10px); }
.hero h1 { font-size: var(--text-display); line-height: 1.07; font-weight: 700; letter-spacing: -.035em; }
.hero h1 span { display: block; }
.hero-description { max-width: 37ch; margin-top: 23px; color: var(--rose-deep); font-size: var(--text-lead); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.hero-figure { position: relative; align-self: stretch; min-width: 0; min-height: clamp(337px, 30.3vw, 450px); }
.hero-clip { position: absolute; pointer-events: none; }
.hero-photo-window { position: absolute; inset: 0; display: block; overflow: hidden; border-radius: var(--panel-radius); clip-path: url(#ingredient-photo); }
.hero-photo-window > img { width: 100%; height: 100%; object-fit: cover; object-position: 59% 51%; }
.hero-wave { position: absolute; inset: auto 0 -1px; display: block; width: 100%; height: clamp(36px, 4.6vw, 68px); pointer-events: none; }
.wave-tint { fill: var(--rose-petal); }
.wave-paper { fill: var(--paper); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 10px 19px; border: 1px solid transparent; border-radius: 999px; font-size: var(--text-ui); font-weight: 700; line-height: 1.4; text-decoration: none; transition: background-color var(--speed), color var(--speed), border-color var(--speed), transform var(--speed); }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(1px); }
.primary-button { color: var(--white); background: var(--rose); }
.primary-button:hover { background: var(--rose-hover); }
.secondary-button { color: var(--rose); background: var(--paper); border-color: var(--line); }
.secondary-button:hover { background: var(--blush); border-color: var(--rose); }
.text-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--rose); font-size: var(--text-ui); font-weight: 700; text-decoration: none; }
.text-link:hover { color: var(--rose-hover); text-decoration: underline; }

.industries { padding-block: clamp(20px, 2.5vw, 36px) clamp(36px, 5vw, 72px); }
.industries-intro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 4px 24px; margin-bottom: clamp(16px, 1.7vw, 24px); scroll-margin-top: 24px; }
.industries-intro h2 { line-height: 1.3; }
.industries-intro p { margin-top: 4px; color: var(--muted); font-size: var(--text-ui); }
.industry-list, .industry-tags, .family-list { padding: 0; margin: 0; list-style: none; }
.industry-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.5vw, 24px); }
.industry-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; align-items: center; height: 100%; border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--blush); text-decoration: none; transition: border-color var(--speed), transform var(--speed); }
.industry-card:hover { transform: translateY(-2px); border-color: var(--rose); }
.industry-card:hover strong { color: var(--rose); }
.industry-photo { grid-column: 1 / -1; display: block; aspect-ratio: 2.85; border-radius: calc(var(--card-radius) - 1px) calc(var(--card-radius) - 1px) 0 0; background: var(--tint) url("./assets/industry-applications.webp") var(--photo-x) var(--photo-y) / 300% auto no-repeat; }
.industry-photo-beverages { --photo-x: 0%; --photo-y: 20%; }
.industry-photo-nutrition { --photo-x: 50%; --photo-y: 20%; }
.industry-photo-bakery { --photo-x: 100%; --photo-y: 20%; }
.industry-photo-plant { --photo-x: 0%; --photo-y: 80%; }
.industry-photo-dairy { --photo-x: 50%; --photo-y: 80%; }
.industry-photo-sauces { --photo-x: 100%; --photo-y: 80%; }
.industry-card .industry-photo { aspect-ratio: 1; background-size: 300% 200%; }
.industry-card :is(.industry-photo-beverages, .industry-photo-nutrition, .industry-photo-bakery) { background-position-y: 0%; }
.industry-card :is(.industry-photo-plant, .industry-photo-dairy, .industry-photo-sauces) { background-position-y: 100%; }
.industry-card-copy { display: grid; gap: 2px; padding: 12px 12px 12px clamp(12px, 1.35vw, 20px); }
.industry-card strong { font-size: clamp(1.02rem, 1.33vw, 1.2rem); line-height: 1.45; text-wrap: balance; overflow-wrap: break-word; }
.industry-card-copy > span { color: var(--muted); font-size: var(--text-meta); line-height: 1.4; }
.industry-arrow, .family-arrow { color: var(--rose); font-weight: 700; }
.industry-arrow { margin-inline-end: clamp(13px, 1.35vw, 20px); }
.industry-technical { grid-column: 1 / -1; }
.industry-technical .industry-card { grid-template-rows: auto; min-height: 62px; background: var(--rose-silk); }
.family-list a:hover strong { color: var(--rose); text-decoration: underline; text-underline-offset: 4px; }

.ingredient-families { display: grid; grid-template-columns: minmax(210px, 1fr) minmax(0, 2.8fr); gap: clamp(12px, 2.5vw, 36px); align-items: center; border-radius: var(--panel-radius); padding: clamp(24px, 2.8vw, 41px); background: var(--rose-petal); }
.families-intro h2 { font-size: clamp(1.65rem, 2.3vw, 2.25rem); }
.families-intro p { max-width: 24ch; margin-top: 10px; color: var(--rose-deep); font-size: var(--text-ui); }
.families-intro .button { margin-top: 18px; }
.family-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.family-list li { border-inline-start: 1px solid var(--rose-rule); }
.family-list a { display: flex; flex-direction: column; align-items: center; gap: 9px; height: 100%; padding: 0 13px; border-radius: var(--card-radius); text-align: center; text-decoration: none; }
.family-photo { display: block; width: min(100%, clamp(94px, 10vw, 146px)); aspect-ratio: 1; flex: 0 0 auto; border-radius: 50%; background-color: var(--paper); background-repeat: no-repeat; box-shadow: 0 0 0 4px var(--paper); transition: transform var(--speed); }
.family-photo-protein { background-image: url("./assets/ingredients.webp"); background-size: 430% auto; background-position: 42% 3%; }
.family-photo-fruit { background-image: url("./assets/fruit-ingredients.webp"); background-size: 230% auto; background-position: 30% 35%; }
.family-photo-grain { background-image: url("./assets/ingredients.webp"); background-size: 405% auto; background-position: 64% 76%; }
.family-list strong { display: block; margin-top: 5px; font-size: var(--text-body); line-height: 1.35; font-weight: 700; }
.family-description { display: block; margin-top: 4px; color: var(--rose-deep); font-size: var(--text-meta); line-height: 1.45; }
.family-list a:hover .family-photo { transform: translateY(-3px); }
.family-arrow { margin-top: auto; }

.spotlight { padding-block: clamp(35px, 4.3vw, 62px) 0; }
.spotlight-intro { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: space-between; margin-bottom: 19px; }
.spotlight-intro h2 { font-size: clamp(1.5rem, 2.35vw, 2.2rem); }
.spotlight-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.spotlight-card { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.1fr); gap: 15px; align-items: center; min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--paper); transition: border-color var(--speed), transform var(--speed); }
.spotlight-card:hover { border-color: var(--rose); transform: translateY(-2px); }
.spotlight-photo { align-self: center; min-width: 0; width: 100%; overflow: hidden; border-radius: var(--control-radius); aspect-ratio: .87; background: var(--blush); }
.spotlight-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--speed); }
.spotlight-card:hover .spotlight-photo img { transform: scale(1.025); }
.spotlight-copy h3 { font-size: clamp(1rem, 1.35vw, 1.1875rem); font-weight: 700; line-height: 1.28; letter-spacing: -.02em; }
.spotlight-name { text-decoration: none; }
.spotlight-name::after { content: ""; position: absolute; inset: 0; border-radius: var(--card-radius); }
.spotlight-name:focus-visible { outline: none; }
.spotlight-name:focus-visible::after { outline: 2px solid var(--rose); outline-offset: 4px; }
.spotlight-copy > p { margin-top: 6px; font-size: var(--text-meta); color: var(--muted); line-height: 1.45; }
.spotlight-pdf { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin-top: 10px; color: var(--rose); font-size: var(--text-meta); font-weight: 700; text-decoration: none; }
.spotlight-pdf:hover { text-decoration: underline; }

.section { padding-block: clamp(42px, 5.1vw, 74px); }
.section-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, .7fr); gap: 28px; align-items: end; margin-bottom: 25px; }
.section-intro p, .about p { max-width: 58ch; color: var(--muted); font-size: var(--text-ui); }
.catalog-controls { display: flex; align-items: center; gap: 20px; }
.industry-filter { flex: 0 1 245px; min-width: 0; }
.industry-filter select { width: 100%; min-height: 54px; padding: 12px; border: 1px solid var(--line); border-radius: var(--control-radius); background: var(--paper); color: var(--ink); font-size: var(--text-ui); cursor: pointer; }
.industry-filter select:hover { border-color: var(--rose); }
.search-field { display: flex; align-items: center; flex: 1; gap: 12px; min-width: 0; min-height: 54px; padding-inline: 16px; border: 1px solid var(--line); border-radius: var(--control-radius); background: var(--white); color: var(--rose); }
.search-field:focus-within { border-color: var(--rose); outline: 1px solid var(--rose); }
.search-field svg { flex: 0 0 auto; }
.search-field input { width: 100%; min-width: 0; padding: 12px 0; border: 0; background: transparent; color: var(--ink); caret-color: var(--rose); outline: 0; }
.search-field input::placeholder { color: var(--muted); }
.spec-filter { display: flex; align-items: center; flex: 0 0 auto; gap: 9px; min-height: 44px; padding-inline: 5px; font-size: var(--text-ui); cursor: pointer; }
.spec-filter input { width: 18px; height: 18px; margin: 0; accent-color: var(--rose); }
.category-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.category-filter { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: var(--text-ui); font-weight: 600; line-height: 1.3; transition: color var(--speed), background-color var(--speed), border-color var(--speed); }
.category-filter:hover { border-color: var(--rose); background: var(--blush); }
.category-filter[aria-pressed="true"] { border-color: var(--rose); background: var(--rose); color: var(--white); }
.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; margin-top: 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: var(--text-meta); }
#clear-filters { min-height: 44px; padding: 6px 0 6px 10px; border: 0; background: transparent; color: var(--rose); text-decoration: underline; text-underline-offset: 4px; }
.ingredient-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 87px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.ingredient-heading { min-width: 0; }
.ingredient-type { color: var(--rose); font-size: var(--text-meta); font-weight: 600; line-height: 1.45; }
.industry-tags { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 8px; }
.industry-tags a { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 8px; border-radius: 8px; background: var(--rose-silk); color: var(--rose-deep); font-size: var(--text-meta); line-height: 1.35; text-decoration: none; }
.industry-tags a:hover { color: var(--rose); text-decoration: underline; }
#detail-industries { margin-top: 8px; }
.ingredient-name { margin-top: 3px; font-size: var(--text-item); font-weight: 650; line-height: 1.35; letter-spacing: -.015em; }
.ingredient-actions, .detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ingredient-actions { flex: 0 0 auto; justify-content: flex-end; }
.details-button, .spec-link { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 8px 13px; border: 1px solid var(--line); border-radius: var(--control-radius); background: var(--paper); color: var(--rose); font-size: var(--text-ui); font-weight: 650; line-height: 1.25; text-decoration: none; transition: background-color var(--speed), border-color var(--speed); }
.details-button:hover { border-color: var(--rose); background: var(--blush); }
.spec-link { border-color: transparent; background: var(--rose-silk); }
.spec-link:hover { border-color: var(--rose); background: var(--blush); }
.show-more { display: flex; width: fit-content; margin: 22px auto 0; background: var(--paper); border-color: var(--line); color: var(--rose); }
.show-more:hover { border-color: var(--rose); background: var(--blush); }
.empty-state { padding: 32px 20px; border-radius: var(--card-radius); background: var(--blush); color: var(--muted); text-align: center; }
.empty-title { font-weight: 700; color: var(--ink); }
.empty-help { font-size: var(--text-ui); }
.catalog-note { margin-top: 18px; color: var(--muted); font-size: var(--text-meta); }

.about { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 4vw, 58px); margin-bottom: clamp(34px, 4.9vw, 70px); padding: clamp(14px, 1.65vw, 24px); border-radius: var(--panel-radius); background: var(--rose-silk); }
.about-copy { padding: clamp(10px, 1.8vw, 27px) 0 clamp(10px, 1.8vw, 27px) clamp(10px, 2.4vw, 35px); }
.about h2 { margin-bottom: 18px; }
.about p + p { margin-top: 12px; }
.about .button { margin-top: 22px; }
.about > img { width: 100%; height: clamp(285px, 26vw, 385px); object-fit: cover; object-position: center 43%; border-radius: 42% 18px 18px 30% / 45% 18px 18px 55%; background: var(--blush); }
.site-footer { margin: 0 var(--panel-inset) var(--panel-inset); border-radius: var(--panel-radius); background: var(--rose-deep); color: var(--white); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: end; padding-block: clamp(36px, 4.8vw, 69px) 27px; }
.site-footer h2 { max-width: 11ch; margin-bottom: 16px; font-size: clamp(2rem, 3.5vw, 3.3rem); }
.footer-grid p { max-width: 37ch; color: var(--blush); font-size: var(--text-ui); }
.footer-button { margin-top: 22px; background: var(--paper); color: var(--rose-deep); }
.footer-button:hover { background: var(--tint); }
address { display: grid; gap: 7px; color: var(--blush); font-size: var(--text-ui); font-style: normal; overflow-wrap: anywhere; }
address a { display: inline-flex; align-items: center; min-height: 36px; width: fit-content; text-decoration: none; }
address a:hover { text-decoration: underline; }
.phone-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 9px; }
.imagery-note { padding-bottom: 20px; color: var(--blush); font-size: .75rem; }
.footer-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; min-height: 57px; padding-block: 8px; border-top: 1px solid var(--rose-rule); color: var(--blush); font-size: var(--text-meta); }
.footer-base a { display: inline-flex; align-items: center; min-height: 36px; }
.site-footer a:focus-visible { outline-color: var(--white); }

dialog { width: min(650px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 0; border: 1px solid var(--line); border-radius: var(--panel-radius); background: var(--paper); color: var(--ink); }
dialog::backdrop { background: var(--backdrop); }
html:has(dialog[open]) { overflow-y: hidden; }
.dialog-inner { position: relative; padding: clamp(23px, 4.5vw, 42px); }
.detail-close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--rose); font-size: 1.5rem; line-height: 1; }
.detail-close:hover { background: var(--blush); }
.dialog-inner > .ingredient-type { padding-right: 34px; margin-bottom: 8px; }
#detail-title { font-size: clamp(1.55rem, 4.2vw, 2.55rem); }
.detail-description { margin-top: 13px; color: var(--muted); }
.dialog-inner h3 { margin-top: 22px; font-size: var(--text-body); }
#detail-applications { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 10px 0 16px; list-style: none; }
#detail-applications li { padding: 5px 11px; border-radius: 999px; background: var(--rose-silk); font-size: var(--text-ui); }
.detail-note { color: var(--muted); font-size: var(--text-ui); }
.detail-actions { gap: 10px 17px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }

@media (max-width: 1100px) {
  .header-inner { gap: 18px; }
  .site-nav { gap: 20px; }
  .hero { padding-inline: 27px; }
  .hero-actions .button { padding-inline: 14px; }
  .spotlight-products { gap: 12px; }
  .spotlight-card { grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); gap: 11px; padding: 10px; }
}
@media (max-width: 820px) {
  .header-inner { min-height: 67px; }
  .site-nav { position: absolute; z-index: var(--z-menu); display: none; align-items: stretch; gap: 0; inset: 100% var(--panel-inset) auto; max-height: calc(100dvh - 82px); padding: 7px var(--side) 12px; overflow-y: auto; overscroll-behavior: contain; border-radius: var(--card-radius); background: var(--paper); box-shadow: 0 10px 24px var(--nav-shadow); }
  .site-nav.is-open { display: flex; flex-direction: column; }
  .site-nav > * { flex: 0 0 auto; }
  .site-nav :is(a, summary) { min-height: 46px; padding-block: 9px; }
  .industry-nav summary { display: flex; justify-content: space-between; width: 100%; padding-inline-end: 4px; }
  .industry-nav-list {
    position: static;
    width: auto;
    min-width: 0;
    max-width: none;
    max-height: none;
    margin-bottom: 6px;
    padding: 4px;
    overflow: visible;
    border-radius: var(--control-radius);
    background: var(--blush);
    box-shadow: none;
  }
  .menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--rose); }
  .hero { grid-template-columns: minmax(0, .94fr) minmax(0, 1fr); gap: 7px; padding: 24px 22px 50px; }
  .hero h1 { font-size: clamp(2.05rem, 4.3vw, 2.4rem); }
  .hero-copy { padding: 12px 0; }
  .hero-description { margin-top: 17px; font-size: var(--text-ui); }
  .hero-actions { margin-top: 20px; gap: 9px; }
  .hero-figure { min-height: 322px; }
  .industry-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-controls { flex-wrap: wrap; gap: 12px; }
  .industry-filter { flex-basis: 205px; }
  .ingredient-families { grid-template-columns: 1fr; gap: 24px; }
  .families-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 18px; align-items: center; }
  .families-intro p { grid-row: 2; max-width: none; margin: 0; }
  .families-intro .button { grid-column: 2; grid-row: 1 / 3; margin: 0; }
  .family-list li:first-child { border: 0; }
  .family-photo { width: 113px; }
  .spotlight-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spotlight-card { display: flex; flex-direction: column; gap: 13px; align-items: stretch; padding: 11px; }
  .spotlight-photo { aspect-ratio: 1.1; }
  .spotlight-copy { display: flex; flex-direction: column; height: 100%; }
  .spotlight-copy h3 { font-size: var(--text-body); }
  .spotlight-pdf { margin-top: auto; padding-top: 8px; align-self: flex-start; }
  .section-intro { grid-template-columns: 1fr; gap: 10px; }
  .footer-grid { align-items: start; }
}
@media (max-width: 620px) {
  .header-contact { display: none; }
  .site-nav .mobile-contact { display: flex; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 27px 21px 42px; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(1.95rem, 7.7vw, 2.9rem); }
  .hero-description { max-width: 36ch; margin-top: 16px; font-size: var(--text-body); }
  .hero-actions { margin-top: 22px; }
  .hero-actions .button { min-height: 46px; padding-inline: 15px; }
  .hero-figure { min-height: 0; aspect-ratio: 1.4; }
  .hero-photo-window > img { object-position: 63% center; }
  .hero-wave { height: 35px; }
  .industry-list { grid-template-columns: minmax(0, 1fr); }
  .industry-card { grid-template-columns: clamp(90px, 27vw, 116px) minmax(0, 1fr) auto; grid-template-rows: 1fr; min-height: 76px; }
  .industry-photo { grid-column: auto; align-self: stretch; aspect-ratio: auto; border-radius: calc(var(--card-radius) - 1px) 0 0 calc(var(--card-radius) - 1px); background-size: 300% 200%; }
  .industry-photo-beverages, .industry-photo-nutrition, .industry-photo-bakery { --photo-y: 0%; }
  .industry-photo-plant, .industry-photo-dairy, .industry-photo-sauces { --photo-y: 100%; }
  .industry-card .industry-photo { align-self: center; margin: 7px 0 7px 7px; border-radius: var(--control-radius); }
  .industry-card-copy { padding: 8px 8px 8px 12px; }
  .industry-arrow { margin-inline-end: 12px; }
  .industry-technical .industry-card { grid-template-columns: minmax(0, 1fr) auto; }
  .ingredient-families { padding: 23px 20px; gap: 23px; }
  .families-intro { display: block; }
  .families-intro p { margin-top: 8px; }
  .families-intro .button { margin-top: 16px; }
  .family-list { grid-template-columns: 1fr; }
  .family-list li, .family-list li:first-child { border-inline-start: 0; border-top: 1px solid var(--rose-rule); }
  .family-list a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 17px 0; text-align: start; }
  .family-list li:last-child a { padding-bottom: 0; }
  .family-photo { width: 64px; box-shadow: 0 0 0 3px var(--paper); }
  .family-list strong { margin-top: 0; }
  .family-arrow { margin: 0; }
  .spotlight-intro { gap: 5px; margin-bottom: 13px; }
  .spotlight-products { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .spotlight-card { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.1fr); gap: 17px; padding: 12px; }
  .spotlight-photo { aspect-ratio: .98; }
  .spotlight-copy { height: auto; justify-content: center; }
  .spotlight-copy h3 { font-size: 1.125rem; }
  .spotlight-pdf { margin-top: 9px; padding: 0; }
  .catalog-controls { flex-direction: column; align-items: stretch; gap: 8px; }
  .industry-filter { flex-basis: auto; }
  .spec-filter { width: fit-content; }
  .category-filters { gap: 6px; margin-top: 8px; }
  .category-filter { padding-inline: 13px; }
  .ingredient-row { flex-direction: column; align-items: start; gap: 11px; padding-block: 16px; }
  .ingredient-actions { justify-content: start; }
  .about, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .about { gap: 22px; }
  .about-copy { padding: 11px 8px 0; }
  .about > img { height: clamp(215px, 59vw, 330px); border-radius: 33% 14px 14px 14px / 38% 14px 14px 14px; }
  .footer-grid { gap: 28px; }
  address a, .footer-base a { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .button, .category-filter, .details-button, .spec-link, .spotlight-pdf, .industry-card, .industry-tags a { border: 1px solid ButtonText; }
  .category-filter[aria-pressed="true"] { outline: 2px solid Highlight; outline-offset: 2px; }
  .site-nav .industry-nav-list a[aria-current="page"] { border-inline-start-color: Highlight; }
}
