* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --text: #ffffff;
  --ink: #111111;
  --accent: #ffc320;
  --bg: #0a0a0a;
  --card: #ececec;
  --card-ink: #222222;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Poppins", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  overflow-y: auto;
  caret-color: transparent;
}

input,
textarea,
select,
[contenteditable="true"] {
  caret-color: auto;
}

img {
  display: block;
  max-width: 100%;
}

.page {
  transition: filter 0.22s ease;
}

.page.is-blurred {
  filter: blur(5px);
}

body.modal-open {
  overflow: hidden;
}

.dairy-hero {
  min-height: 100svh;
  height: auto;
  position: relative;
  background: url("bg-for-dairy.png") center center / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-bottom: clamp(10px, 1.8vh, 18px);
  isolation: isolate;
}

.dairy-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  
  z-index: -2;
}

.dairy-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow:
    inset 0 0 180px rgba(0, 0, 0, 0.58),
    inset 0 -40px 90px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: -1;
}

.dairy-header {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: clamp(92px, 11vh, 120px);
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.brand-panel {
  min-height: clamp(92px, 11vh, 120px);
  min-width: min(760px, 66vw);
  padding: 0 24px;
  display: flex;
  align-items: center;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.99) 0%,
    rgba(0, 0, 0, 0.97) 62%,
    rgba(0, 0, 0, 0.86) 74%,
    rgba(0, 0, 0, 0.46) 88%,
    rgba(0, 0, 0, 0) 100%);
  position: relative;
  z-index: 1;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--text);
}

.logo img {
  height: clamp(120px, 10.2vh, 300px);
  width: auto;
}

.pagetitle {
  font-size: clamp(1.7rem, 3.0vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.6px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.1vw, 40px);
  padding-right: 0;
  white-space: nowrap;
  margin-left: auto;
  position: relative;
  z-index: 1;
}

.nav-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  gap: clamp(8px, 1vw, 16px);
  padding-right: 2.4%;
  min-width: 0;
  position: relative;
  z-index: 3;
}

.header-cow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.header-cow img {
  width: clamp(86px, 15.2vw, 500px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35));
}

.dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav > a,
.nav .dropdown > a {
  color: #FFF;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(0.95rem, 1.05vw, 1.4rem);
  padding: 4px 1px;
  position: relative;
}

.nav > a::after,
.nav .dropdown > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav > a:hover::after,
.nav .dropdown > a:hover::after {
  transform: scaleX(1);
}

.nav > a:focus-visible,
.nav .dropdown > a:focus-visible {
  outline: 2px solid rgba(255, 195, 32, 0.7);
  outline-offset: 3px;
}

.dropdown-menu {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 190px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  display: grid;
  gap: 5px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 20;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown.is-open .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-menu a {
  text-decoration: none;
  color: #ffffff;
  font-size: 0.86rem;
  padding: 8px 9px;
  border-radius: 8px;
}

.dropdown-menu a:hover {
  background: rgba(255, 195, 32, 0.2);
}

.hero-main {
  position: relative;
  z-index: 3;
  flex: 1;
  min-height: 0;
  padding: clamp(14px, 2.2vh, 26px) 5% 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
}

.hero-content {
  max-width: 680px;
}

.hero-content h1 {
  font-size: clamp(2.1rem, 3.8vw, 4.0rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.hero-content p {
  margin-top: clamp(10px, 1.4vh, 16px);
  color: var(--accent);
  font-size: clamp(1rem, 1.55vw, 1.7rem);
  line-height: 1.28;
  font-weight: 500;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(12px, 1.8vh, 24px);
  border-radius: 999px;
  text-decoration: none;
  color: #121212;
  background: var(--accent);
  font-weight: 700;
  font-size: clamp(0.92rem, 0.96vw, 1.1rem);
  padding: clamp(9px, 1.1vh, 12px) clamp(20px, 2vw, 30px);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(255, 195, 32, 0.34);
}

.products-row {
  position: relative;
  z-index: 3;
  width: min(880px, 90%);
  margin: clamp(6px, 1.2vh, 12px) auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: clamp(10px, 1.35vw, 18px);
  justify-items: center;
  flex-shrink: 0;
}

.scale-pick {
  width: clamp(112px, 9.7vw, 158px);
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 28% 18%, #161616 0%, #030303 72%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 18px 24px rgba(0, 0, 0, 0.42);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.28s cubic-bezier(0.22, 1.3, 0.36, 1), box-shadow 0.24s ease;
}

.scale-pick:hover {
  transform: translateY(-50px) scale(1.04);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 30px 36px rgba(0, 0, 0, 0.56);
}

.scale-pick:focus-visible {
  outline: 2px solid rgba(255, 195, 32, 0.8);
  outline-offset: 3px;
}

.scale-pick img {
  width: 74%;
  height: 74%;
  object-fit: contain;
}

.stats-row {
  position: relative;
  z-index: 3;
  width: min(860px, 62%);
  margin: clamp(10px, 1.5vh, 22px) auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: clamp(6px, 0.8vw, 10px);
  flex-shrink: 0;
}

.stat-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: clamp(92px, 6.5vh, 125px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.34);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.44);
}

.stat-photo-image {
  width: 100%;
  height: 100%;
  min-height: clamp(92px, 6.5vh, 125px);
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.stat-card:hover .stat-photo-image {
  transform: scale(1.06);
}

.stat-card.is-swapping .stat-photo-image {
  opacity: 0.45;
}

.stat-photo-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 8px 8px 6px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.82));
}

.stat-photo-title {
  color: #ffd372;
  font-size: clamp(0.72rem, 0.78vw, 0.9rem);
  line-height: 1.2;
  font-weight: 700;
}

.stat-photo-desc {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.62rem, 0.66vw, 0.74rem);
  line-height: 1.3;
}

.scale-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 18px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.scale-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.scale-modal {
  width: min(1160px, 96vw);
  max-height: min(88vh, 760px);
  overflow: auto;
  background: rgba(8, 8, 8, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.6);
  padding: 18px 18px 14px;
}

.scale-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.scale-expand-title {
  color: #ffd372;
  font-size: 1.1rem;
  font-weight: 700;
}

.scale-modal-close {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: var(--accent);
  color: #121212;
  padding: 6px 14px;
  font-weight: 700;
  cursor: pointer;
}

.scale-expand {
  margin-top: 12px;
}

.scale-expand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.scale-expand-item {
  display: flex;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 10px 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.scale-expand-item[hidden] {
  display: none !important;
}

.scale-expand-item img {
  width: clamp(58px, 6.6vw, 94px);
  height: clamp(58px, 6.6vw, 94px);
  object-fit: contain;
  border-radius: 50%;
  background: #050505;
  padding: 6px;
  cursor: pointer;
}

.scale-expand-copy {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scale-name {
  color: #ffd372;
  font-size: 0.94rem;
  font-weight: 700;
}

.scale-desc {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  line-height: 1.35;
  min-height: 3.3em;
}

.scale-more-toggle {
  margin-top: auto;
  border: 0;
  background: transparent;
  color: #ffc95a;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding-top: 8px;
}

.scale-more {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8rem;
  line-height: 1.35;
}

.scale-pick.is-active {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 0 0 4px rgba(255, 195, 32, 0.28),
    0 24px 32px rgba(0, 0, 0, 0.55);
}

@media (max-width: 1100px) {
  .brand-panel {
    min-width: min(600px, 70vw);
  }

  .logo img {
    height: 58px;
  }

  .hero-main {
    padding-top: clamp(12px, 1.8vh, 22px);
  }
}

@media (max-width: 900px) {
  body.nav-open {
    overflow: hidden;
  }

  .dairy-hero {
    height: auto;
    min-height: auto;
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  }

  .dairy-header {
    min-height: auto;
    padding: 10px 4%;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    overflow: visible;
  }

  .brand-panel {
    min-width: 100%;
    min-height: 86px;
    border-radius: 10px;
    padding: 0 14px;
  }

  .logo img {
    height: 52px;
  }

  .pagetitle {
    font-size: clamp(1.6rem, 4.8vw, 2.4rem);
  }

  .nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    width: auto;
    padding: 16px;
    gap: 8px;
    justify-content: flex-start;
    white-space: normal;
    display: grid;
    background: rgba(0, 0, 0, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-panel {
    width: 100%;
    flex: 1 0 100%;
    padding-right: 0;
    position: relative;
    justify-content: flex-end;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .header-cow {
    display: flex;
    left: auto;
    right: clamp(78px, 12vw, 116px);
    top: 18px;
    transform: none;
    opacity: 0.72;
    z-index: 2;
  }

  .header-cow img {
    width: clamp(54px, 11vw, 82px);
  }

  .dropdown {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav > a,
  .nav .dropdown > a {
    color: #ffffff;
    font-size: 0.95rem;
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
  }

  .nav > a::after,
  .nav .dropdown > a::after {
    display: none;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    transform: none;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .dropdown.is-open .dropdown-menu {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
  }

  .dropdown-menu a {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
  }

  .hero-main {
    padding-top: 20px;
    flex: 0 0 auto;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .hero-content {
    max-width: min(100%, 720px);
  }

  .products-row {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 18px;
    width: min(660px, 100%);
    margin-top: 18px;
    align-content: start;
    padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px));
  }

  .scale-pick {
    width: min(180px, 24vw);
  }

  .stats-row {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    width: min(640px, 100%);
    margin-top: 28px;
    gap: 12px;
  }

  .scale-expand-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }

  .scale-modal-head {
    flex-wrap: wrap;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .hero-content h1 {
    font-size: clamp(1.8rem, 10vw, 2.9rem);
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-cta {
    padding: 10px 22px;
    font-size: 0.95rem;
  }

  .products-row {
    width: min(420px, 94%);
  }

  .scale-pick {
    width: min(146px, 38vw);
  }

  .stats-row {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    width: min(420px, 94%);
    gap: 8px;
  }

  .stat-card {
    min-height: 84px;
  }

  .stat-photo-image {
    min-height: 84px;
  }

  .scale-expand-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

@media (max-width: 360px) {
  .products-row {
    grid-template-columns: 1fr;
    width: min(220px, 90%);
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }

  .stats-row {
    grid-template-columns: 1fr;
    width: min(280px, 90%);
  }
}

/* Desktop-style mobile layout */
@media (max-width: 900px) {
  body.nav-open {
    overflow-y: auto;
  }

  .dairy-hero {
    min-height: 100svh;
  }

  .dairy-header {
    min-height: clamp(74px, 14vw, 96px);
    padding: 0 clamp(12px, 4vw, 26px);
    flex-wrap: nowrap;
    overflow: visible;
  }

  .brand-panel {
    min-width: min(430px, 34vw);
    min-height: clamp(74px, 14vw, 96px);
    padding: 0 clamp(12px, 2vw, 24px);
  }

  .logo img {
    height: clamp(58px, 11vw, 86px);
  }

  .pagetitle {
    font-size: clamp(1rem, 3vw, 1.9rem);
  }

  .header-cow {
    display: flex;
    left: 50%;
    right: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.9;
  }

  .header-cow img {
    width: clamp(66px, 11vw, 150px);
  }

  .nav-panel {
    width: auto;
    flex: 1;
    padding-right: 2.4%;
  }

  .nav-toggle {
    display: none !important;
  }

  .nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: clamp(10px, 2.4vw, 22px);
    width: auto;
    max-height: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    overflow: visible;
    white-space: nowrap;
  }

  .nav > a,
  .nav .dropdown > a {
    width: auto;
    padding: 8px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: clamp(0.72rem, 1.8vw, 0.9rem);
  }

  .nav > a::after,
  .nav .dropdown > a::after {
    display: block;
  }

  .dropdown {
    width: auto;
    flex-direction: row;
    align-items: center;
  }

  .dropdown-menu {
    position: absolute;
    min-width: 210px;
    margin-top: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.94);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
    max-height: none;
    overflow: visible;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
  }

  .dropdown.is-open .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero-main {
    flex-direction: row;
    align-items: center;
    padding-top: clamp(16px, 3vh, 34px);
  }

  .hero-content {
    max-width: min(48vw, 760px);
  }

  .products-row {
    grid-template-columns: repeat(4, minmax(96px, 1fr));
    width: min(880px, 90%);
    padding-bottom: 0;
  }

  .scale-pick {
    width: clamp(92px, 9.7vw, 150px);
  }

  .stats-row {
    grid-template-columns: repeat(4, minmax(100px, 1fr));
    width: min(860px, 70%);
  }
}
