/* Material studies use photographed or illustrated surfaces as decorative layers.
   All labels, links and controls remain selectable HTML. */
.intro-open { overflow: hidden; }
#brand-intro {
  position: fixed; inset: 0; width: 100%; height: 100%;
  max-width: none; max-height: none; margin: 0; padding: 0; overflow: hidden;
  border: 0; border-radius: 0; background: #cdd7e4;
  background-image: linear-gradient(145deg,#e2eaf3,#cad5e2 43%,#bdcddb 74%,#d8e2ed);
}
#brand-intro::backdrop { background: #cdd7e4; backdrop-filter: none; }
#brand-intro video { width: 100%; height: 100%; display: block; object-fit: cover; }
#brand-intro button {
  position: absolute; bottom: max(24px,env(safe-area-inset-bottom)); left: max(24px,env(safe-area-inset-left));
  border: 1px solid #8c9eac; border-radius: 6px; background: #eef4f8ec; color: #183b54;
  padding: 9px 18px; min-height: 44px; font: inherit; font-size: 13px; cursor: pointer;
}
#brand-intro button span { margin-inline-start: 8px; }
@media (min-aspect-ratio: 4/3) and (max-aspect-ratio: 2/1) {
  #brand-intro video { object-fit: cover; }
}
:root {
  --film: url("/assets/surfaces/film.webp");
  --flow: url("/assets/surfaces/home.webp");
  --supply: url("/assets/surfaces/trade.webp");
  --recovery: url("/assets/surfaces/recycle.webp");
  --surface: var(--flow);
  --paper: #eef5f9;
  --edge: #aec4d1;
}
[data-surface="film"] { --surface: var(--film); }
[data-surface="trade"] { --surface: var(--supply); }
[data-surface="recycle"] { --surface: var(--recovery); --paper: #eff6f2; }
[data-surface="factory"] {
  --surface: linear-gradient(100deg, #f1f7faac, #f1f7faf5 65%), url("/assets/images/edited/factory-wide-1280.webp");
}
[data-surface="sample"] {
  --surface: linear-gradient(100deg, #eff6fb94, #f3f8fbf5 65%), var(--sample);
}
.story-sticky {
  background: linear-gradient(0deg, #f1f7faba, transparent 16%), var(--flow) center bottom / cover no-repeat, var(--paper);
}
.hero-atmosphere .orbit { opacity: .25; }
.scene-caption p, .object-labels small { color: #466277; }
.page-hero, .recycling-page .page-hero, .product-hero, .material-hero, .contact-page-hero, .policy-page {
  background-color: var(--paper);
  background-image: var(--surface);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center bottom;
}
.page-hero, .product-hero, .material-hero { padding-bottom: clamp(66px, 7.5vw, 125px); }
.page-hero, .recycling-page .page-hero, .product-hero, .contact-page-hero {
  background-image: linear-gradient(to bottom, var(--paper) 0%, color-mix(in srgb,var(--paper) 94%,transparent) 48%, color-mix(in srgb,var(--paper) 84%,transparent) 68%, transparent 95%), var(--surface);
}
.page-actions .button-outline, .home-recycling .button-outline { background-color: #f4f9fce8; }
.gallery .image-caption { display: inline-block; background: #f5f9fce8; padding: 2px 7px; border-radius: 3px; }
.image-caption, .micro-note { color: #38556a; }
.photo-product-card .photo-product-copy {
  background: linear-gradient(105deg,#f4f9fce3,#f4f9fcf5 40%,#f9fbfc 78%), var(--sample) left center / cover;
}
.policy-page {
  background-image: linear-gradient(#f6fafce6, #f6fafcda 75%, #f6fafc88), var(--surface);
}
.home-recycling, .contact-section, .compact-cta {
  background-position: center bottom;
  background-size: cover;
}
.home-recycling { background-image: linear-gradient(#f0f7f177 62%, #f0f7f1ad), var(--recovery); }
.contact-section, .compact-cta { background-image: linear-gradient(100deg,#f3f8fada,#f3f8faf2), var(--flow); }
.compact-cta > .container { position: relative; }
.material-symbol {
  background: var(--sample) center / cover no-repeat, var(--paper);
  align-items: flex-start;
  justify-content: flex-end;
  padding: 26px;
  box-shadow: 0 14px 36px #183f5812;
}
.material-symbol i, .material-symbol small { display: none; }
.material-symbol > span, .material-family-grid > a > span {
  background: #f7fbfbed;
  border: 1px solid #c9d8df;
  border-radius: 5px;
  color: #19415a;
  padding: .2em .45em;
  font-family: Arial, sans-serif;
  overflow-wrap: anywhere;
}
.material-symbol > span { font-size: clamp(20px, 2.3vw, 36px); }
.material-family-grid > a, .material-family-grid > a:hover {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 210px;
  padding: 18px;
  background: linear-gradient(to top,#f1f7fb 1%,#f1f7fbf7 16%,#f1f7fbbd 32%,transparent 57%), var(--sample) center / cover;
  border-color: #cedee6;
  overflow: hidden;
}
.material-family-grid > a > span {
  align-self: flex-start;
  margin: 0 0 auto;
  direction: ltr;
  font-size: 17px;
  max-width: 100%;
}
.material-family-grid h3 { color: #15394f; }
.material-family-grid small { color: #425f71; }
.material-family-grid i { bottom: 16px; color: #694728; }
.material-family-grid > a:hover, .contact-route-grid button:hover { border-color: #7798ad; }
.catalog-toolbar { display: grid; grid-template-columns: minmax(0,1fr); justify-content: stretch; gap: 20px; }
.catalog-toolbar .search-field { width: 100%; max-width: 440px; }
.filter-pills { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; }
.filter-pills button, .filter-pills button[aria-pressed="true"] {
  position: relative;
  min-height: 105px;
  padding: 14px;
  display: flex;
  align-items: flex-end;
  text-align: start;
  border: 1px solid #a6bdcc;
  border-radius: 8px;
  background: linear-gradient(0deg, #0c263ae8, #11324c55 42%, transparent 68%), var(--sample) center / cover;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.filter-pills button[aria-pressed="true"] { outline: 2px solid #254f67; outline-offset: 2px; }
.filter-pills button[aria-pressed="true"]::after {
  content: "✓"; position: absolute; top: 8px; right: 8px;
  width: 21px; height: 21px; border-radius: 50%; color: white; background: #183c52;
  display: grid; place-items: center; font-size: 12px;
}
.trading-families { gap: 10px; }
.trading-families button, .trading-families button:hover {
  min-height: 94px;
  padding: 13px 15px;
  align-items: flex-end;
  color: white;
  border: 1px solid #829aa9;
  border-radius: 7px;
  background: linear-gradient(0deg, #0b263bf2, #15384e66 50%, #12344808), var(--sample) center / cover;
}
.trading-families button span { color: white; }
.business-switch { border: 0; gap: 14px; }
.business-switch > a, .business-switch > a:last-child, .contact-route-grid button, .contact-route-grid button:hover {
  padding: 26px 22px;
  border: 1px solid #becfd9;
  margin: 0;
  border-radius: 8px;
  background: linear-gradient(to left,#f4f9fcfa 5%,#f4f9fce8 48%,#f4f9fc38), var(--sample) left center / cover;
}
.contact-route-grid i { color: #254b62; background: #f6fafce8; border-radius: 50%; width: 27px; line-height: 27px; text-align: center; }
.contact-route-grid span { color: #425c6f; }
.contact-route-grid button { padding-inline-end: 53px; }
.recycling-output-grid article {
  background: linear-gradient(to left,#f1f7f4 12%,#f1f7f4ed 65%,#f1f7f49e), var(--sample) left center / cover;
  padding: 26px; border: 1px solid #c4d6cd; border-radius: 8px;
}
.route-number { color: #5f594d; }
.filter-pills button:focus-visible, .trading-families button:focus-visible,
.material-family-grid a:focus-visible { outline: 3px solid #aa5c28; outline-offset: 4px; }
@media screen {
  .print-cover { background: linear-gradient(#f8fbfcbb,#f8fbfce6), var(--flow) center bottom / cover; }
}
@media (max-width: 760px) {
  :root {
    --film: url("/assets/surfaces/film-mobile.webp");
    --flow: url("/assets/surfaces/home-mobile.webp");
    --supply: url("/assets/surfaces/trade-mobile.webp");
    --recovery: url("/assets/surfaces/recycle-mobile.webp");
  }
  .page-hero, .product-hero, .material-hero { padding-bottom: 53px; }
  .story-sticky { background-position: center, 42% bottom; }
  .scene-caption { background: linear-gradient(90deg,transparent,#f2f7facf 24%,#f2f7facf 76%,transparent); align-items: center; }
  .filter-pills { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .filter-pills button, .filter-pills button[aria-pressed="true"] { min-height: 82px; font-size: 12px; }
  .filter-pills button:first-child { grid-column: 1 / -1; background-position: center, center 55%; min-height: 74px; }
  .material-family-grid > a, .material-family-grid > a:hover { min-height: 164px; padding: 12px; }
  .material-family-grid > a > span { font-size: 14px; }
  .material-family-grid i { left: 10px; bottom: 10px; }
  .business-switch > a, .business-switch > a:last-child { padding: 20px 15px; }
  .material-symbol { padding: 15px; }
  .trading-families button { font-size: 12px; }
}
@media print {
  .print-catalog, .print-cover, .print-product { background: white; }
}

/* Shared specimens connect category controls to their material pages. */
[data-sample="abs"] { --sample: url("/assets/surfaces/abs.webp"); }
[data-sample="bag"] { --sample: url("/assets/surfaces/bag.webp"); }
[data-sample="collection"] { --sample: url("/assets/surfaces/collection.webp"); }
[data-sample="eva"] { --sample: url("/assets/surfaces/eva.webp"); }
[data-sample="flakes"] { --sample: url("/assets/surfaces/recycle.webp"); }
[data-sample="glass-fiber"] { --sample: url("/assets/surfaces/glass-fiber.webp"); }
[data-sample="granules"] { --sample: url("/assets/images/edited/blue-resin-640.webp"); }
[data-sample="mineral"] { --sample: url("/assets/surfaces/mineral.webp"); }
[data-sample="pa"] { --sample: url("/assets/surfaces/pa.webp"); }
[data-sample="pc"] { --sample: url("/assets/surfaces/pc.webp"); }
[data-sample="pe"] { --sample: url("/assets/surfaces/pe.webp"); }
[data-sample="pet"] { --sample: url("/assets/surfaces/pet.webp"); }
[data-sample="petrochemical"] { --sample: url("/assets/surfaces/petrochemical.webp"); }
[data-sample="pmma"] { --sample: url("/assets/surfaces/pmma.webp"); }
[data-sample="poe"] { --sample: url("/assets/surfaces/poe.webp"); }
[data-sample="polyol"] { --sample: url("/assets/surfaces/polyol.webp"); }
[data-sample="pom"] { --sample: url("/assets/surfaces/pom.webp"); }
[data-sample="pp"] { --sample: url("/assets/surfaces/pp.webp"); }
[data-sample="printing"] { --sample: url("/assets/surfaces/printing.webp"); }
[data-sample="pvc"] { --sample: url("/assets/surfaces/pvc.webp"); }
[data-sample="roll"] { --sample: url("/assets/surfaces/roll.webp"); }
[data-sample="sourcing"] { --sample: url("/assets/surfaces/trade.webp"); }
[data-sample="titanium-dioxide"] { --sample: url("/assets/surfaces/titanium-dioxide.webp"); }

/* A single short scroll carries one pile of resin into the three product silhouettes. */
.trade-globe { width: min(100%, 570px); margin: 0 auto; }
.globe-surface {
  position: relative; width: 100%; aspect-ratio: 1;
  background: radial-gradient(ellipse at center,#5d9eb744 34%,#41788e21 61%,transparent 74%);
}
.globe-surface canvas, .globe-surface img { position: absolute; inset: 0; width: 100%; height: 100%; }
.globe-surface canvas { touch-action: none; cursor: grab; border-radius: 50%; }
.globe-surface canvas:active { cursor: grabbing; }
.globe-surface canvas:focus-visible, .trade-globe button:focus-visible { outline: 2px solid #f4ca97; outline-offset: 2px; }
.trade-globe.ready img { visibility: hidden; }
.trade-globe figcaption { display: none; }
.trade-globe.ready figcaption {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 16px;
  margin-top: 4px; color: #d6e6eb; font-size: 11px; text-align: center; line-height: 1.9;
}
.trade-globe button { min-height: 36px; padding: 5px 12px; font: inherit; color: #f5d1a7; border: 1px solid #86a7b760; border-radius: 5px; background: #143447; }
@media (orientation: portrait) and (max-width: 1400px) {
  .home-page .story-sticky { background: #d7e1eb url("/assets/surfaces/landing-tablet.webp") center / cover no-repeat; }
}
@media (max-aspect-ratio: 5/8) and (max-width: 900px) {
  .home-page .story-sticky { background-image: url("/assets/surfaces/landing-phone.webp"); }
}
.home-page .story {
  --hero-height: max(550px, 100svh);
  --travel: clamp(135px, 24svh, 230px);
  height: var(--hero-height);
  min-height: 0;
}
.home-page .story-sticky {
  height: var(--hero-height);
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.production-scene {
  position: relative;
  width: min(88%, 900px);
  margin: 0 auto;
  flex: 1;
  min-height: 0;
  display: grid;
  align-items: center;
}
.production-lineup {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  align-items: end;
  gap: clamp(4px, 2vw, 32px);
}
.production-lineup figure {
  margin: 0;
  text-align: center;
}
.production-lineup img {
  display: block;
  width: min(100%, 240px, 27svh);
  height: auto;
  margin: 0 auto;
  opacity: var(--product-opacity, 1);
  filter: drop-shadow(0 9px 6px #28506a25);
}
.production-lineup figcaption {
  margin-top: 4px;
  color: #163950;
  font-size: clamp(12px, 1.15vw, 17px);
  font-weight: 600;
  text-shadow: 0 1px 5px white;
  opacity: var(--label-opacity, 1);
}
.production-scene canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.home-page .story-bottom {
  flex: none;
  position: relative;
  bottom: auto;
  min-height: 58px;
  padding-bottom: 12px;
}
.story:not(.production-ready) :is(.story-steps,.motion-toggle,.story-progress) { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .home-page .production-ready { height: calc(var(--hero-height) + var(--travel)); }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .story :is(.story-steps,.motion-toggle,.story-progress,.production-scene canvas) { display: none; }
  .home-page .scroll-hint { visibility: visible; }
}
@media (max-width:760px) {
  .production-scene { width: 96%; }
  .home-page .story-bottom { padding-bottom: 14px; }
  .home-page .hero-copy h1 { font-size: clamp(34px, 8vw, 48px); }
  .home-page .hero-copy h1 br { display: none; }
}
@media (max-height:550px) and (min-width:550px) {
  .home-page .story { --hero-height: max(380px, 100svh); --travel: 120px; }
  .home-page .hero-copy { padding-top: 75px; }
  .home-page .hero-copy h1 { font-size: 34px; }
  .home-page .hero-copy > p { margin-top: 3px; }
  .home-page .hero-copy .hero-links { margin-top: 6px; }
  .home-page .story-bottom { min-height: 40px; padding-bottom: 6px; }
}
