:root {
  --dairy-backdrop: #8fd9dc;
  --dairy-action: #123d70;
  --dairy-on-action: #fff;
  --dairy-accent: #438ac7;
  --dairy-surface: #fff;
  --dairy-ink: #14263d;
  --hero-fill: var(--dairy-backdrop);
  --hero-ink: var(--dairy-ink);
  --hero-type-color: var(--hero-ink);
  --hero-type-scale: 1;
  --hero-type-opacity: .78;
  --hero-product-scale: 1;
  --hero-product-offset: 0%;
  --hero-product-room: 100%;
  --hero-splash-scale: 1;
  --hero-splash-opacity: 1;
  --hero-motion-distance: 10px;
  --hero-motion-duration: 6s;
}

.storefront {
  --font-body: Inter, "Segoe UI", Arial, sans-serif;
  --primary: var(--dairy-action);
  --accent: var(--dairy-accent);
  font-family: var(--font-body);
}

:root:not([data-theme="dark"]) .storefront {
  --bg: var(--dairy-surface);
  --surface: var(--dairy-surface);
  --surface-muted: color-mix(in srgb, var(--dairy-backdrop) 13%, var(--dairy-surface));
  --soft: color-mix(in srgb, var(--dairy-backdrop) 23%, var(--dairy-surface));
  --ink: var(--dairy-ink);
  --text: color-mix(in srgb, var(--dairy-ink) 82%, var(--dairy-surface));
  --muted: color-mix(in srgb, var(--dairy-ink) 70%, var(--dairy-surface));
  --line: color-mix(in srgb, var(--dairy-action) 15%, var(--dairy-surface));
  --primary-hover: color-mix(in srgb, var(--dairy-action) 85%, black);
  --catalog-bg: var(--surface-muted);
  --focus-ring: var(--dairy-link, var(--dairy-action));
}

.storefront .btn-primary,
.storefront .btn-primary:hover:not(:disabled) {
  background: var(--dairy-action);
  color: var(--dairy-on-action);
}

.storefront .btn-primary:hover:not(:disabled) { filter: brightness(1.12); }
.storefront .btn-primary:active:not(:disabled) { filter: brightness(.92); }
.storefront .product-card.is-featured { border-color: color-mix(in srgb, var(--dairy-accent) 34%, var(--line)); }
:root:not([data-theme="dark"]) .storefront :is(.product-price,.modal-price strong,.total-line strong:last-child) {
  color: var(--dairy-link, var(--dairy-action));
}
.storefront .footer { background: color-mix(in srgb, var(--dairy-action) 34%, #071728); }
.storefront .footer-grid { grid-template-columns: repeat(auto-fit, minmax(min(230px,100%),1fr)); }

.hero.hero-showcase {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-block-size: max(0px, calc(100svh - var(--site-navbar-height, 72px)));
  color: var(--hero-ink);
  background: var(--hero-fill);
  border: 0;
}

.showcase-inner {
  display: grid;
  justify-items: center;
  padding-block: clamp(20px, 4svh, 52px) clamp(65px, 8svh, 110px);
  gap: clamp(4px, 1svh, 14px);
}

.showcase-stage {
  --hero-image-width: calc(clamp(242px, min(53vw, 48svh), 510px) * var(--hero-product-scale));
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  row-gap: 6px;
  container-type: inline-size;
  inline-size: 100%;
  min-inline-size: 0;
  pointer-events: auto;
}

.showcase-visual {
  position: relative;
  inline-size: 100%;
  block-size: clamp(224px, min(59vw, 52svh), 560px);
}

.showcase-visual::before {
  content: "";
  position: absolute;
  inset: 0 -8% -8%;
  z-index: -1;
  background: radial-gradient(ellipse closest-side at 50% 64%, rgb(255 255 255 / .24), transparent);
  pointer-events: none;
}

.showcase-type {
  position: relative;
  z-index: 4;
  inline-size: 100%;
  color: var(--hero-type-color);
  opacity: var(--hero-type-opacity);
  font: 800 calc(clamp(1.875rem, 11cqi, 5.5rem) * var(--hero-type-scale))/1.02 var(--font-head);
  letter-spacing: -.04em;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: anywhere;
  text-transform: uppercase;
  pointer-events: none;
}

@media (min-width: 900px) {
  .showcase-stage:has([data-split]) > * { grid-area: 1 / 1; }
  .showcase-type:has([data-split]) {
    --hero-type-gap: min(52cqi, calc(var(--hero-image-width) * .72 + 2.75rem));
    font-size: min(calc(clamp(3rem, 11cqi, 9rem) * var(--hero-type-scale)), calc((100cqi - var(--hero-type-gap)) / 7.4));
  }
  .showcase-type [data-split] {
    display: grid;
    grid-template-columns: minmax(0,1fr) var(--hero-type-gap) minmax(0,1fr);
    align-items: center;
  }
  .showcase-type [data-split] > :first-child { justify-self: end; }
  .showcase-type [data-split] > :last-child { grid-column: 3; justify-self: start; }
}

.showcase-product {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
  translate: var(--hero-parallax-x, 0px) var(--hero-parallax-y, 0px);
}

.showcase-product-motion {
  display: grid;
  place-items: center;
  inline-size: min(100%, var(--hero-image-width));
  block-size: var(--hero-product-room);
  min-block-size: 0;
  position: relative;
  inset-block-start: var(--hero-product-offset);
}

.showcase-product img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  min-block-size: 0;
  object-fit: contain;
  filter: drop-shadow(0 22px 20px rgb(16 50 62 / .26));
}

.showcase-splash {
  position: absolute;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: end;
  inset: auto 0 5%;
  block-size: 64%;
  opacity: var(--hero-splash-opacity);
  pointer-events: none;
  translate: calc(var(--hero-parallax-x, 0px) * 1.3) calc(var(--hero-parallax-y, 0px) * .35);
}

.showcase-splash img {
  display: block;
  inline-size: min(100%, calc(clamp(336px, 67vw, 790px) * var(--hero-splash-scale)));
  block-size: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 7px 8px rgb(30 70 76 / .13));
}

.hero.hero-showcase .hero-copy {
  position: relative;
  z-index: 4;
  min-inline-size: 0;
  text-align: center;
}

.hero.hero-showcase h1 {
  max-inline-size: 31ch;
  margin: 0 auto 10px;
  color: var(--hero-ink);
  font-size: clamp(1.75rem, 1.2rem + 2.1vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.hero.hero-showcase .hero-description {
  max-inline-size: 59ch;
  margin: 0 auto;
  color: var(--hero-ink);
}

.hero.hero-showcase .hero-cta { justify-content: center; margin-block-start: clamp(16px, 2.6svh, 25px); }
.hero.hero-showcase .hero-cta .btn { min-block-size: 48px; }
.hero.hero-showcase .btn-outline { border-color: var(--hero-ink); }
.hero.hero-showcase :is(a,button):focus-visible { outline-color: var(--hero-ink); }

.showcase-motion-toggle {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-block-size: 44px;
  margin-block-start: 5px;
  padding-inline: 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--hero-ink);
  font-size: var(--text-caption);
}

.showcase-motion-toggle:hover { background: rgb(255 255 255 / .23); }
.showcase-motion-toggle:focus-visible { outline-color: var(--hero-ink); }

.showcase-wave {
  position: absolute;
  inset: auto 0 -1px;
  inline-size: 100%;
  block-size: clamp(30px, 5vw, 75px);
  fill: var(--surface);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-showcase[data-motion="true"] .showcase-product img {
    animation: dairy-float var(--hero-motion-duration) ease-in-out infinite;
  }
  .hero-showcase[data-motion="true"] .showcase-splash img {
    animation: dairy-splash var(--hero-motion-duration) ease-in-out infinite;
  }
  .hero-showcase[data-paused="true"] :is(.showcase-product img, .showcase-splash img) {
    animation-play-state: paused;
  }
  .hero-showcase[data-motion="true"] :is(.showcase-product, .showcase-splash) {
    transition: translate .4s cubic-bezier(.2,.65,.3,1);
  }
  .hero-showcase[data-entering] .showcase-type { animation: dairy-arrive .95s both; }
  .hero-showcase[data-entering] .showcase-product { animation: dairy-arrive 1.15s .12s both; }
  .hero-showcase[data-entering] .showcase-splash { animation: dairy-arrive .9s .28s both; }
  .hero-showcase[data-entering] .hero-copy { animation: dairy-arrive .75s .42s both; }
}

@media (prefers-reduced-motion: reduce) {
  .showcase-motion-toggle { display: none; }
}

@keyframes dairy-arrive {
  from { opacity: .1; transform: translateY(14px) scale(.985); }
}

@keyframes dairy-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(calc(-1 * var(--hero-motion-distance))) rotate(-1deg); }
}

@keyframes dairy-splash {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(calc(var(--hero-motion-distance) * -.45)); }
}

@media (max-width: 560px) {
  .showcase-visual { block-size: clamp(204px, 61vw, 285px); }
  .hero.hero-showcase .hero-cta { gap: 8px; }
  .hero.hero-showcase .hero-cta .btn { padding-inline: 12px; }
  .showcase-inner { padding-block-start: 18px; }
}

.inquiry-note { margin-block-start: 12px; color: var(--muted); font-size: var(--text-control); }

@media (max-height: 535px) and (orientation: landscape) {
  .hero.hero-showcase { min-block-size: 0; }
  .showcase-inner { padding-block-start: 18px; }
}

.partnership-section { background: var(--surface-muted); }
.application-section h2, .production-section h2 {
  font-size: var(--text-section);
  margin-block-end: clamp(18px,3vw,35px);
}
.applications-list, .production-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px),1fr));
  gap: var(--space-gap);
}
.applications-list > div, .production-steps > li {
  border-block-start: 2px solid var(--accent);
  padding-block: 14px 6px;
}
.applications-list dt, .production-steps h3 {
  color: var(--ink);
  font: 700 var(--text-card)/1.3 var(--font-head);
  margin-block-end: 5px;
}
.production-steps { padding-inline-start: 1.4em; }
.production-steps > li::marker { font-weight: 700; }
.partnership-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px 46px;
}
.partnership-inner h2, .inquiry-copy h2 {
  font-size: var(--text-section);
  line-height: 1.16;
  margin-block-end: .4em;
}
.partnership-inner p, .inquiry-copy p { max-inline-size: var(--reading-measure); }
.storefront .contact-section { background: var(--surface-muted); }
.inquiry-grid { display: grid; grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); gap: clamp(20px, 5vw, 70px); align-items: start; }
.inquiry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
  padding: clamp(16px, 2.8vw, 30px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.inquiry-form label { display: grid; gap: 5px; color: var(--ink); font: 600 var(--text-control)/1.45 var(--font-body); }
.inquiry-form :is(input, select, textarea) {
  inline-size: 100%;
  min-block-size: 44px;
  padding: 9px 10px;
  border: 1px solid var(--muted);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.45 var(--font-body);
}
.inquiry-form textarea { resize: vertical; }
.inquiry-form .inquiry-wide { grid-column: 1 / -1; }
.inquiry-form .inquiry-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.inquiry-status { font-size: var(--text-control); }
.inquiry-status:empty { display: none; }
.inquiry-copy .inquiry-links { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 18px; }
@media (max-width: 760px) {
  .partnership-inner, .inquiry-grid { grid-template-columns: minmax(0,1fr); }
  .partnership-inner .btn { justify-self: start; }
}
@media (max-width: 480px) {
  .inquiry-form { grid-template-columns: minmax(0,1fr); }
}
