:root {
  --milk: #eee6da;
  --ink: #090909;
  --line: rgba(9, 9, 9, 0.10);
  --content-max: 1440px;
  --viewport-width: 100vw;
  --edge: clamp(24px, 5vw, 72px);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --weight-display: 430;
  --weight-body: 400;
  --weight-ui: 480;
  --header-height: 88px;
  --copy-width: 390px;
}

* { box-sizing: border-box; }

html {
  background: var(--milk);
  color: var(--ink);
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: "Inter", sans-serif;
  font-synthesis: none;
  font-weight: var(--weight-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, p { text-wrap: pretty; }
::selection { color: var(--ink); background: #d8c6b2; }

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
a:focus-visible,
button:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  font-size: 14px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-shell {
  width: var(--viewport-width);
  max-width: var(--viewport-width);
  min-width: 0;
  overflow: hidden;
  background: var(--milk);
}

.hero {
  position: relative;
  height: 100svh;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 76% 40%, rgba(255,255,255,.38), transparent 28%),
    linear-gradient(112deg, #eee6da 0%, #f3ebe1 54%, #e9dfd2 100%);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 9999;
  height: var(--header-height);
  display: flex;
  align-items: center;
  width: var(--viewport-width);
  max-width: var(--viewport-width);
  padding-inline: var(--edge);
  background: #eee6da;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.wordmark img { display: block; width: 82px; height: auto; }

.events-link {
  margin-left: auto;
  font-size: 15px;
  font-weight: var(--weight-ui);
  position: relative;
  padding-block: 10px;
}

.events-link::after {
  content: "";
  position: absolute;
  inset: auto 0 5px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 360ms var(--ease-soft);
}

.events-link:hover::after,
.events-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.pill {
  min-height: 42px;
  padding: 0 25px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  font-size: 14px;
  font-weight: var(--weight-ui);
  line-height: 1;
  transition: background-color 400ms var(--ease-soft), color 400ms var(--ease-soft), transform 400ms var(--ease-soft);
}

.pill:hover { transform: translateY(-1px); }
.pill-dark { background: var(--ink); color: white; }
.pill-dark:hover { background: #282828; }
.pill-outline { background: transparent; }
.pill-outline:hover { background: rgba(255,255,255,.35); }
.hero-content {
  position: relative;
  height: 100%;
  width: var(--viewport-width);
  max-width: var(--viewport-width);
}

.hero-copy {
  position: absolute;
  inset: var(--header-height) 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: calc(var(--viewport-width) / 2);
  margin: 0;
  padding-left: max(48px, calc(var(--viewport-width) / 4 - 215px));
  padding-bottom: 12px;
  animation: copy-in 700ms 100ms var(--ease-soft) both;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(78px, 8.25vw, 119px);
  font-weight: var(--weight-display);
  letter-spacing: -0.072em;
  line-height: 0.88;
}

.hero-copy > p {
  margin: 28px 0 33px;
  font-size: clamp(25px, 2.25vw, 32px);
  font-weight: var(--weight-ui);
  letter-spacing: -0.045em;
}

.hero-actions { display: flex; gap: 17px; }

.hero-media {
  position: absolute;
  top: var(--header-height);
  bottom: 0;
  left: 0;
  width: calc(var(--viewport-width) / 2);
  margin: 0;
  min-height: 0;
  overflow: hidden;
  animation: media-in 900ms 180ms var(--ease-soft) both;
}

.hero-copy,
.hero-media { min-width: 0; }

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  max-width: 100%;
  transform: scale(1.025) translateY(var(--drift, 0));
  will-change: transform;
}

.photo-placeholder {
  width: min(70%, 470px);
  aspect-ratio: 0.72;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  color: rgba(9,9,9,.42);
  border: 1px solid rgba(9,9,9,.16);
  background: rgba(255,255,255,.13);
}

.photo-placeholder span { font-size: 14px; }
.photo-placeholder small { font-size: 11px; letter-spacing: .02em; }

.placeholder {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 67% 32%, rgba(255,255,255,.46), transparent 18%),
    linear-gradient(135deg, #e9ded0, #f4ede4 48%, #ddd0c0);
}

.placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.18) 48%, transparent 72%);
  transform: translateX(-100%);
  transition: transform 1.1s var(--ease-soft);
}

.placeholder:hover::after { transform: translateX(100%); }
.placeholder > span {
  position: absolute;
  left: 50%; top: 50%;
  translate: -50% -50%;
  color: rgba(9,9,9,.36);
  font-size: 12px;
  letter-spacing: .02em;
  white-space: nowrap;
}

.milk-story {
  width: var(--viewport-width);
  max-width: var(--viewport-width);
  height: 150svh;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, calc(var(--viewport-width) / 2));
  grid-template-rows: 1fr 1fr;
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.milk-panel {
  min-height: 0;
  display: grid;
  border-bottom: 1px solid var(--line);
}

.milk-panel-philosophy { grid-column: 1; grid-row: 1; }
.milk-panel-fresh { grid-column: 1; grid-row: 2; }

.milk-story-media {
  grid-column: 2;
  grid-row: 1 / 3;
  min-width: 0;
  overflow: hidden;
}

.story-copy {
  align-self: center;
  justify-self: center;
  width: min(var(--copy-width), 72%);
}

.story-copy h2,
.product-copy h2,
.detail h2 {
  margin: 0;
  font-size: clamp(26px, 2.15vw, 34px);
  font-weight: var(--weight-display);
  line-height: 1.05;
  letter-spacing: -.042em;
}

.story-copy p {
  margin: 28px 0 0;
  font-size: 16px;
  max-width: 31ch;
  line-height: 1.58;
}

.story-copy strong { display: block; margin-top: 17px; font-size: 16px; font-weight: 650; line-height: 1.55; }
.story-copy i { display: block; width: 34px; height: 1px; margin-top: 27px; background: var(--ink); }
.milk-story-media img,
.product-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.milk-story-media img {
  object-position: center;
  transform: translateY(var(--drift, 0px)) scale(1);
  transform-origin: center;
  will-change: transform;
}

.placeholder-bottle {
  background:
    radial-gradient(ellipse at 65% 64%, rgba(255,255,255,.8) 0 7%, transparent 7.5%),
    linear-gradient(128deg, #efe7db, #f5eee6 55%, #e1d5c6);
}

.products {
  width: var(--viewport-width);
  max-width: var(--viewport-width);
}

.product {
  width: var(--viewport-width);
  max-width: var(--viewport-width);
  height: 75svh;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, calc(var(--viewport-width) / 2));
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.product-cone { min-height: 0; }
.product > * { min-width: 0; }
.product-media { height: 100%; overflow: hidden; }
.product-media img {
  transform: translateY(var(--drift, 0));
  scale: 1.025;
  transition: scale 1400ms var(--ease-soft);
  will-change: transform, scale;
}
.product:hover .product-media img { scale: 1.032; }
.product-cone .product-media img {
  object-fit: cover;
  object-position: center;
}
.product-cone:hover .product-media img { scale: 1.025; }
.product-copy {
  display: grid;
  align-content: center;
  justify-content: center;
  text-align: left;
  padding: 42px clamp(42px, 6vw, 88px);
}
.product-copy > * { width: min(var(--copy-width), 100%); }
.product-copy h2 { font-size: clamp(24px, 2vw, 31px); }
.product-copy p { max-width: 24ch; margin: 15px 0 0; font-size: 16px; line-height: 1.5; }
.product-cone .product-copy p { max-width: 30ch; }

.details {
  width: 100%;
  height: 25svh;
  min-height: 0;
}

.detail { height: 100%; padding: 38px var(--edge); display: grid; align-content: center; }
.detail h2 { font-size: 22px; font-weight: var(--weight-display); letter-spacing: -.035em; }
.detail p { margin: 12px 0 19px; font-size: 16px; line-height: 1.5; }
.detail a { width: max-content; font-size: 14px; font-weight: var(--weight-ui); border-bottom: 1px solid; transition: opacity 300ms var(--ease-soft); }
.detail a:hover { opacity: .58; }

.site-footer {
  min-height: 86px;
  padding-inline: var(--edge);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  border-top: 1px solid var(--line);
}
.site-footer .wordmark img { width: 74px; }
.site-footer p { margin: 0; text-align: center; font-size: 14px; }
.socials { justify-self: end; display: flex; gap: 20px; font-size: 14px; }
.socials a { transition: opacity 300ms var(--ease-soft); }
.socials a:hover { opacity: .58; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 850ms var(--ease-soft) var(--reveal-delay, 0ms), transform 850ms var(--ease-soft) var(--reveal-delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.js .milk-story-media.reveal,
.js .product-media.reveal {
  transform: none;
  transition: opacity 1100ms var(--ease-soft) var(--reveal-delay, 0ms);
}

@keyframes copy-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes media-in {
  from { opacity: 0; transform: translateY(8px) scale(.995); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}

@media (hover: none) {
  .product:hover .product-media img { scale: 1.025; }
  .pill:hover { transform: none; }
}

@media (max-height: 700px) and (min-width: 901px) {
  .hero-copy h1 { font-size: clamp(68px, 7.2vw, 102px); }
  .hero-copy > p { margin: 20px 0 25px; font-size: clamp(23px, 2vw, 29px); }
  .story-copy h2,
  .product-copy h2 { font-size: clamp(23px, 1.8vw, 29px); }
  .story-copy p { margin-top: 20px; line-height: 1.48; }
  .story-copy i { margin-top: 20px; }
  .detail { padding-block: 24px; }
}

@media (max-width: 900px) {
  :root { --header-height: 76px; }
  .hero { height: 100svh; min-height: 0; }
  .site-header { height: var(--header-height); }
  .wordmark img { width: 75px; }

  .events-link { font-size: 14px; }

  .hero-content {
    height: 100%;
  }

  .hero-copy {
    z-index: 2;
    inset: var(--header-height) 0 52% 0;
    width: 100%;
    justify-content: flex-start;
    padding: clamp(52px, 11vh, 92px) var(--edge) 0;
  }

  .hero-copy h1 { font-size: clamp(70px, 20vw, 104px); }
  .hero-copy > p { margin: 20px 0 28px; font-size: 25px; }
  .hero-media { inset: 48% 0 0; width: 100%; min-height: 0; }
  .photo-placeholder { width: min(62%, 330px); }

  .milk-story {
    height: 150svh;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    position: relative;
  }
  .milk-panel { min-height: 0; position: relative; z-index: 2; }
  .milk-panel-philosophy { grid-column: 1; grid-row: 1; }
  .milk-panel-fresh { grid-column: 1; grid-row: 2; }
  .story-copy { width: auto; justify-self: stretch; padding: 44px var(--edge); }
  .milk-story-media {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: .34;
  }
  .milk-story-media img {
    object-position: center;
    transform: translateY(calc(-10% + var(--drift, 0px))) scale(1.18);
  }

  .products,
  .details { width: 100%; border-inline: 0; }
  .product,
  .product-cone { height: 75svh; min-height: 0; }
  .product-copy { padding: 32px var(--edge); }
  .details { height: 25svh; min-height: 0; }
}

@media (max-width: 480px) {
  :root { --edge: 24px; }
  .hero-actions { gap: 10px; }
  .pill { min-height: 40px; padding-inline: 19px; }
  .hero-media { justify-items: end; min-height: 0; }
  .photo-placeholder { width: 64%; }
  .product { grid-template-columns: 1fr; grid-template-rows: 61% 39%; }
  .product-media { order: 1; }
  .product-copy { order: 2; }
  .product-media { height: 100%; min-height: 0; }
  .product-copy { min-height: 0; }
  .details { height: 25svh; min-height: 0; }
  .detail { height: 100%; min-height: 0; padding: clamp(18px, 4svh, 30px) var(--edge); }
  .detail p { margin: 8px 0 12px; line-height: 1.4; }
  .site-footer { min-height: 110px; grid-template-columns: 1fr 1fr; }
  .site-footer p { display: none; }
}

/* October 2026: restrained hierarchy and closing-space refinement */
@media (min-width: 901px) {
  .milk-panel-philosophy .story-copy h2 {
    font-size: clamp(34px, 2.8vw, 43px);
    line-height: 1.08;
  }
  .story-copy p, .product-copy p { font-size: 17px; line-height: 1.55; }
  .detail { padding-block: 48px; }
  .detail p { font-size: 17px; }
  .site-footer { min-height: 112px; }
}
@media (min-width: 901px) and (max-height: 700px) {
  .milk-panel-philosophy .story-copy h2 { font-size: clamp(30px, 2.5vw, 37px); }
  .detail { padding-block: 24px; }
}
