/* Local, freely redistributable fonts; no third-party requests. */
@font-face {
  font-family: "Quicksand";
  src: url("../assets/fonts/quicksand-latin-500-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Quicksand";
  src: url("../assets/fonts/quicksand-latin-700-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-latin-600-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #152321;
  --gold: #bb842d;
  --burgundy: #690b08;
  --page-gutter: clamp(25px, 3.5vw, 72px);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { background: #fffcf3; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Quicksand", "Segoe UI", Arial, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
  background: linear-gradient(180deg, #f8fbfc, #fffdf4 58%, #fff3d1);
}

h1, p { margin: 0; }
button { font: inherit; }
[hidden] { display: none !important; }

/* Desktop: a cinematic landscape, with real HTML above the artwork. */
.scene {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
}

.scene-pan { position: relative; width: 100%; height: 100%; transform-origin: center bottom; }

.scene-image {
  display: block;
  position: absolute;
  bottom: 0;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
  mask-image: linear-gradient(180deg, transparent, #000 17%);
}

.sunlight {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(ellipse at 7% 67%, #ffdf6a20 0, transparent 36%);
  opacity: 0.5;
}

.site-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(1640px, calc(100% - var(--page-gutter) * 2));
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  padding-block: 35px 35px;
}

.eyebrow {
  display: inline-block;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.eyebrow::after {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  margin-top: 10px;
  background: var(--gold);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 4vw, 75px);
  padding: 24px 15px clamp(115px, 14vh, 170px);
}

/* Blend the source JPEG's white into the pale sky without changing its pixels. */
.brand-block {
  width: min(100%, 580px, calc(100svh - 390px));
  justify-self: center;
  mix-blend-mode: multiply;
}

.brand-float { transform-origin: center; }

/* The original artwork and divider stay intact. Replace only its small baked-in
   tagline with larger, accessible HTML lettering below the same artwork. */
.brand-artwork {
  width: 100%;
  aspect-ratio: 1328 / 1305;
  overflow: hidden;
}

.brand-logo { display: block; width: 100%; height: auto; }

.brand-tagline {
  position: relative;
  isolation: isolate;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 7px 8px;
  color: var(--burgundy);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(25px, 2.65vw, 44px);
  line-height: 1.2;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-tagline::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -8px -15px -4px;
  border-radius: 50%;
  background: radial-gradient(ellipse, #ffe79488 0, #fff0b43d 48%, transparent 72%);
}

.hero-copy { min-width: 0; padding-bottom: 12px; }

.status-badge {
  display: inline-block;
  max-width: 100%;
  padding: 11px 22px;
  border: 1px solid #b88635;
  border-radius: 99px;
  background: #fffdf450;
  font-family: "Manrope", sans-serif;
  font-size: clamp(8px, 0.73vw, 12px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 3px;
  text-align: center;
  text-transform: uppercase;
}

.headline {
  margin-top: 29px;
  font-size: clamp(38px, 4.25vw, 74px);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -0.055em;
}

.headline-line { display: block; }

.headline-accent {
  color: #bc7f25;
  background: linear-gradient(120deg, #c48b2f, #dda849 48%, #ac6b18);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.description {
  margin-top: 27px;
  font-size: clamp(17px, 1.7vw, 28px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.035em;
}

.site-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 44px;
  padding-bottom: clamp(32px, 4vh, 55px);
}

.footer-message {
  margin-left: auto;
  margin-right: 25%;
  padding: 5px 9px;
  border-radius: 3px;
  background: #fff8d955;
  font-family: "Manrope", sans-serif;
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.footer-message::after {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  margin: 8px 0 0 auto;
  background: var(--gold);
}

.motion-toggle {
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid #c5b58099;
  border-radius: 99px;
  color: #3e4930;
  background: #fffdf2e8;
  font-family: "Manrope", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
  cursor: pointer;
}

.motion-toggle:hover { background: #fff; }
.motion-toggle:focus-visible { outline: 3px solid #805e21; outline-offset: 4px; }
.motion-toggle:disabled { cursor: default; opacity: 0.8; }

/* A few very quiet sunlit motes, kept away from the main message. */
.motes { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.motes span { position: absolute; bottom: 16%; left: 8%; width: 3px; height: 3px; border-radius: 50%; background: #fff7cf; opacity: 0; }
.motes span:nth-child(2) { left: 17%; bottom: 12%; }
.motes span:nth-child(3) { left: 26%; bottom: 20%; }
.motes span:nth-child(4) { left: 48%; bottom: 14%; }
.motes span:nth-child(5) { left: 61%; bottom: 10%; }
.motes span:nth-child(6) { left: 91%; bottom: 32%; }

/* Entrance animation and independent, low-amplitude ambient loops. */
.is-ready .reveal { animation: enter 1.3s var(--ease-out) both; }
.is-ready .brand-block { animation-name: logo-enter; animation-duration: 1.6s; }
.is-ready .status-badge { animation-delay: 0.2s; }
.is-ready .headline-line:first-child { animation-delay: 0.35s; }
.is-ready .headline-line:last-child { animation-delay: 0.5s; }
.is-ready .description { animation-delay: 0.7s; }
.is-ready .site-footer { animation-delay: 0.9s; }
.is-ready .scene-pan { animation: landscape-drift 30s ease-in-out infinite alternate; }
.is-ready .brand-float { animation: brand-breathe 8s 1.7s ease-in-out infinite; }
.is-ready .brand-tagline::before { animation: tagline-glow 7s ease-in-out infinite; }
.is-ready .sunlight { animation: sunlight-breathe 12s ease-in-out infinite alternate; }
.is-ready .motes span { animation: mote-rise 12s linear infinite; }
.is-ready .motes span:nth-child(2) { animation-delay: 2s; }
.is-ready .motes span:nth-child(3) { animation-delay: 4s; }
.is-ready .motes span:nth-child(4) { animation-delay: 6s; }
.is-ready .motes span:nth-child(5) { animation-delay: 8s; }
.is-ready .motes span:nth-child(6) { animation-delay: 10s; }

body.motion-paused .scene-pan,
body.motion-paused .brand-float,
body.motion-paused .brand-tagline::before,
body.motion-paused .sunlight,
body.motion-paused .motes span,
body.tab-hidden *, body.tab-hidden *::before, body.tab-hidden *::after { animation-play-state: paused !important; }

@keyframes enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes logo-enter { from { opacity: 0; transform: scale(0.84); } to { opacity: 1; transform: scale(1); } }
@keyframes landscape-drift { from { transform: scale(1); } to { transform: scale(1.018); } }
@keyframes brand-breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes tagline-glow { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@keyframes sunlight-breathe { from { opacity: 0.25; } to { opacity: 0.75; } }
@keyframes mote-rise { 0% { opacity: 0; transform: translate(0, 0); } 20%, 70% { opacity: 0.5; } 100% { opacity: 0; transform: translate(18px, -120px); } }

@media (min-width: 1900px) {
  .hero { gap: 90px; }
  .brand-block { width: min(620px, calc(100svh - 390px)); }
  .headline { font-size: 80px; }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .hero { gap: 28px; padding-inline: 0; padding-bottom: 120px; }
  .status-badge { font-size: 8px; letter-spacing: 1.8px; padding: 9px 13px; }
  .headline { font-size: 4.05vw; }
  .description { font-size: 18px; }
  .brand-tagline { font-size: 28px; }
  .footer-message { font-size: 8px; letter-spacing: 2px; }
}

/* Show the full countryside and product scene as a bottom panorama on mobile,
   rather than cropping its milk bottle and cows in a tall portrait viewport. */
@media (max-width: 900px) {
  body { position: relative; }
  .scene { position: absolute; inset: auto 0 0; height: auto; aspect-ratio: 1672 / 941; }
  .scene-image { height: auto; object-fit: contain; }
  .sunlight { position: absolute; }
  .site-shell { width: min(680px, calc(100% - 56px)); padding-block: 25px 0; }
  .eyebrow { font-size: 9px; letter-spacing: 3px; }
  .hero { grid-template-columns: 1fr; gap: 35px; padding: 24px 0 32px; }
  .brand-block { width: min(100%, 410px); }
  .brand-tagline { font-size: 32px; letter-spacing: 0.055em; }
  .hero-copy { width: 100%; padding: 0; text-align: center; }
  .status-badge { font-size: 9px; letter-spacing: 2px; }
  .headline { margin-top: 24px; font-size: clamp(34px, 6.5vw, 55px); }
  .description { margin-top: 23px; font-size: 20px; }
  .site-footer { flex-wrap: wrap; justify-content: center; align-content: flex-start; padding-bottom: calc(100vw * 0.43); gap: 14px; }
  .motion-toggle { order: 2; }
  .footer-message { flex-basis: 100%; margin: 0; text-align: center; font-size: 9px; letter-spacing: 2px; background: transparent; }
  .footer-message::after { margin-inline: auto; }
  .motes { position: absolute; }
}

@media (max-width: 480px) {
  .site-shell { width: calc(100% - 40px); padding-top: 22px; }
  .eyebrow { font-size: 8px; letter-spacing: 2.5px; }
  .hero { gap: 27px; padding-top: 21px; }
  .brand-block { width: min(100%, 330px); }
  .brand-tagline { font-size: clamp(20px, 6.1vw, 27px); letter-spacing: 0.035em; padding-inline: 0; }
  .status-badge { font-size: 7px; padding: 9px 12px; letter-spacing: 1.3px; }
  .headline { font-size: clamp(30px, 8.3vw, 39px); line-height: 1.17; }
  .description { font-size: 16px; line-height: 1.6; }
  .footer-message { font-size: 8px; }
  .site-footer { padding-bottom: calc(100vw * 0.44); }
}

@media (max-height: 650px) and (min-width: 901px) {
  .site-shell { padding-block: 20px; }
  .hero { padding-top: 12px; padding-bottom: 60px; }
  .brand-block { width: min(100%, 360px); }
  .brand-tagline { font-size: 27px; }
  .headline { font-size: clamp(39px, 4.1vw, 60px); }
  .description { font-size: 18px; margin-top: 20px; }
  .site-footer { padding-bottom: 20px; }
}

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