:root {
  color-scheme: light;
  --cream: #f2eadc;
  --cream-light: #f8f3e9;
  --ink: #241812;
  --ink-soft: #66554c;
  --gold: #b18a4a;
  --line: rgba(70, 49, 37, 0.18);
  --paper: rgba(250, 246, 238, 0.58);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #ddd3c3;
  color: var(--ink);
  font-family: var(--sans);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.mondi-banner {
  isolation: isolate;
  position: relative;
  min-height: 820px;
  overflow: hidden;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.48), transparent 43%),
    var(--cream);
}

.grain {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.17;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.ambient {
  position: absolute;
  z-index: -2;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(3px);
  animation: ambient-drift 11s ease-in-out infinite alternate;
}

.ambient--one {
  top: -28%;
  right: -8%;
  width: min(67vw, 930px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 252, 244, 0.94), rgba(220, 194, 157, 0.12) 58%, transparent 72%);
}

.ambient--two {
  bottom: -33%;
  left: -15%;
  width: min(43vw, 650px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(177, 138, 74, 0.18), transparent 68%);
  animation-delay: -5s;
}

.brandbar,
.banner-grid,
.banner-note {
  width: min(100% - 64px, 1380px);
  margin-inline: auto;
}

.brandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 104px;
  border-bottom: 1px solid var(--line);
}

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

.brand__mark {
  font: 500 clamp(2rem, 3vw, 2.85rem) / 1 var(--serif);
  letter-spacing: -0.055em;
}

.brand__dot {
  width: 7px;
  height: 7px;
  margin-top: -22px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(177, 138, 74, 0.11);
}

.brandbar__origin {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.68rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.banner-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(420px, 1.07fr);
  align-items: center;
  min-height: calc(min(820px, 100svh) - 155px);
}

.copy-column {
  z-index: 2;
  max-width: 660px;
  padding: 68px 30px 72px 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 24px;
  color: #7b633e;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--gold);
}

.headline {
  max-width: 640px;
  margin: 0;
  font: 400 clamp(3.65rem, 6vw, 7rem) / 0.88 var(--serif);
  letter-spacing: -0.058em;
  text-wrap: balance;
}

.headline em {
  display: block;
  margin-top: 0.14em;
  color: #8d6c3c;
  font-weight: 400;
}

.brand-promise {
  margin: 30px 0 0;
  color: var(--ink);
  font: 400 clamp(1rem, 1.4vw, 1.24rem) / 1.4 var(--serif);
  letter-spacing: 0.012em;
}

.intro {
  max-width: 520px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.72;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 34px;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-width: 228px;
  padding: 16px 19px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fffaf0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 220ms ease, background-color 220ms ease, color 220ms ease;
}

.primary-action:hover {
  transform: translateY(-2px);
  background: transparent;
  color: var(--ink);
}

.primary-action:focus-visible,
.motion-toggle:focus-visible,
.color-swatch:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid rgba(36, 24, 18, 0.28);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font: 600 0.67rem / 1 var(--sans);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.motion-toggle__icon {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: -0.22em;
}

.details {
  display: flex;
  gap: clamp(22px, 4vw, 48px);
  margin: 42px 0 0;
  padding-top: 21px;
  border-top: 1px solid var(--line);
}

.details div {
  display: grid;
  gap: 6px;
}

.details dt {
  color: #8f7e73;
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.details dd {
  margin: 0;
  color: var(--ink);
  font: 400 0.88rem / 1.2 var(--serif);
}

.product-column {
  position: relative;
  align-self: stretch;
  min-height: 590px;
  display: grid;
  place-items: center;
}

.product-column::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8%;
  bottom: 8%;
  width: 1px;
  background: linear-gradient(transparent, var(--line) 18%, var(--line) 82%, transparent);
}

.product-halo {
  position: absolute;
  left: 50%;
  top: 48%;
  width: min(38vw, 540px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(177, 138, 74, 0.24);
  border-radius: 50%;
  box-shadow:
    0 0 0 32px rgba(255, 255, 255, 0.13),
    inset 0 0 80px rgba(255, 255, 255, 0.32);
  animation: halo-breathe 6s ease-in-out infinite;
}

.edition {
  position: absolute;
  top: 68px;
  right: 12px;
  margin: 0;
  color: #9d8c7b;
  font: italic 0.72rem / 1 var(--serif);
  letter-spacing: 0.1em;
  writing-mode: vertical-rl;
}

model-viewer {
  width: min(52vw, 690px);
  height: min(68vh, 650px);
  min-height: 500px;
  background: transparent;
  --progress-bar-color: var(--gold);
  --progress-bar-height: 2px;
}

.loading-state {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 15px;
  width: 100%;
  height: 100%;
  color: #8c7b70;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.loading-state span {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(36, 24, 18, 0.18);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

.load-progress {
  position: absolute;
  left: 25%;
  right: 25%;
  bottom: 17%;
  height: 1px;
  overflow: hidden;
  background: rgba(36, 24, 18, 0.12);
}

.load-progress span {
  display: block;
  width: 45%;
  height: 100%;
  background: var(--gold);
  animation: loading-line 1.4s ease-in-out infinite;
}

.product-caption {
  position: absolute;
  right: 0;
  bottom: 50px;
  left: clamp(22px, 4vw, 70px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  pointer-events: none;
}

.product-name,
.product-subtitle,
.interaction-hint {
  margin: 0;
}

.product-name {
  font: 400 1.34rem / 1 var(--serif);
}

.product-subtitle {
  margin-top: 6px;
  color: #867469;
  font-size: 0.63rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.interaction-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8a776c;
  font-size: 0.61rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.interaction-hint span {
  color: var(--gold);
  font-size: 1rem;
}

.color-picker {
  position: absolute;
  z-index: 4;
  left: clamp(22px, 4vw, 70px);
  top: 62px;
  display: grid;
  grid-template-columns: auto auto;
  gap: 9px 13px;
  margin: 0;
  padding: 0;
  border: 0;
}

.color-picker legend {
  grid-column: 1 / -1;
  padding: 0;
  color: #8f7e73;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.color-picker__options {
  display: flex;
  gap: 8px;
}

.color-swatch {
  position: relative;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 3px solid var(--cream);
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 0 0 1px rgba(36, 24, 18, 0.17);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.color-swatch:hover,
.color-swatch.is-active {
  transform: scale(1.15);
  box-shadow: 0 0 0 1px var(--gold), 0 4px 12px rgba(59, 40, 29, 0.16);
}

.color-name {
  align-self: center;
  min-width: 58px;
  color: var(--ink-soft);
  font: italic 0.73rem / 1 var(--serif);
}

.banner-note {
  position: absolute;
  right: 0;
  bottom: 19px;
  left: 0;
  margin: 0 auto;
  color: #9a887d;
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal-up 900ms cubic-bezier(0.2, 0.72, 0.2, 1) forwards;
}

.reveal--first { animation-delay: 90ms; }
.reveal--second { animation-delay: 220ms; }
.reveal--third { animation-delay: 340ms; }
.reveal--fourth { animation-delay: 500ms; }
.reveal--fifth { animation-delay: 610ms; }
.reveal--sixth { animation-delay: 740ms; }
.reveal--product {
  transform: translateX(28px);
  animation-delay: 430ms;
}

.is-paused .ambient,
.is-paused .product-halo,
.is-paused .loading-state span,
.is-paused .load-progress span {
  animation-play-state: paused;
}

@keyframes reveal-up {
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@keyframes ambient-drift {
  to { transform: translate3d(-2.5%, 2%, 0) scale(1.03); }
}

@keyframes halo-breathe {
  50% {
    transform: translate(-50%, -50%) scale(1.025);
    border-color: rgba(177, 138, 74, 0.34);
  }
}

@keyframes spin {
  to { transform: rotate(1turn); }
}

@keyframes loading-line {
  from { transform: translateX(-125%); }
  to { transform: translateX(290%); }
}

@media (max-width: 980px) {
  .mondi-banner {
    min-height: 0;
  }

  .brandbar,
  .banner-grid,
  .banner-note {
    width: min(100% - 40px, 760px);
  }

  .banner-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .copy-column {
    max-width: 740px;
    padding: 54px 0 18px;
  }

  .headline {
    max-width: 720px;
    font-size: clamp(3.9rem, 10vw, 6.2rem);
  }

  .product-column {
    min-height: 620px;
  }

  .product-column::before {
    top: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
  }

  .product-halo {
    width: min(70vw, 530px);
  }

  model-viewer {
    width: min(92vw, 680px);
    height: 590px;
  }

  .banner-note {
    position: static;
    padding: 18px 0 26px;
  }
}

@media (max-width: 600px) {
  .brandbar,
  .banner-grid,
  .banner-note {
    width: min(100% - 30px, 500px);
  }

  .brandbar {
    min-height: 78px;
  }

  .brandbar__origin {
    max-width: 150px;
    font-size: 0.52rem;
    line-height: 1.5;
    text-align: right;
  }

  .copy-column {
    padding-top: 42px;
  }

  .eyebrow {
    margin-bottom: 18px;
  }

  .headline {
    font-size: clamp(3.15rem, 16.5vw, 5rem);
    line-height: 0.91;
  }

  .brand-promise {
    max-width: 330px;
    margin-top: 24px;
    font-size: 1.05rem;
  }

  .intro {
    margin-top: 13px;
    font-size: 0.87rem;
    line-height: 1.62;
  }

  .actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    margin-top: 27px;
  }

  .primary-action {
    width: 100%;
  }

  .details {
    justify-content: space-between;
    gap: 12px;
    margin-top: 32px;
  }

  .details dt {
    font-size: 0.54rem;
  }

  .details dd {
    font-size: 0.76rem;
  }

  .product-column {
    min-height: 500px;
    margin-top: 14px;
  }

  .product-halo {
    top: 47%;
    width: min(86vw, 430px);
  }

  .edition {
    top: 48px;
    right: 2px;
  }

  model-viewer {
    width: 100vw;
    max-width: 520px;
    height: 500px;
    min-height: 430px;
  }

  .color-picker {
    top: 42px;
    left: 4px;
  }

  .product-caption {
    right: 4px;
    bottom: 20px;
    left: 4px;
  }

  .interaction-hint {
    max-width: 105px;
    line-height: 1.45;
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
