:root {
  color-scheme: dark;
  --burgundy-950: #16070a;
  --burgundy-900: #24090f;
  --burgundy-800: #3c0e18;
  --burgundy-700: #551523;
  --brass: #c6a15b;
  --gold: #dfc27a;
  --cream: #f5ecd9;
  --muted: #cbbda7;
  --line: rgba(223, 194, 122, 0.28);
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--burgundy-950);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--burgundy-950);
  color: var(--cream);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  transform: translateY(-150%);
  border: 1px solid var(--gold);
  background: var(--cream);
  color: var(--burgundy-900);
  font: 700 0.8rem/1 var(--sans);
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(29rem, 0.75fr);
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--burgundy-900);
}

.visual {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: #160d07;
  isolation: isolate;
}

.visual::after {
  position: absolute;
  z-index: 2;
  inset: 1.15rem;
  border: 1px solid rgba(223, 194, 122, 0.18);
  content: "";
  pointer-events: none;
}

.visual__media {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100svh;
  object-fit: cover;
  object-position: 57% center;
  background: #160d07 url("assets/wine-cellar.png") 57% center / cover no-repeat;
}

.visual__veil {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 5, 7, 0.04) 35%, rgba(23, 6, 10, 0.78) 100%),
    linear-gradient(0deg, rgba(20, 7, 8, 0.55), transparent 45%);
  pointer-events: none;
}

.visual__caption {
  position: absolute;
  z-index: 3;
  bottom: 3rem;
  left: 3rem;
  margin: 0;
  color: rgba(245, 236, 217, 0.82);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.motion-toggle {
  position: absolute;
  z-index: 4;
  right: 2.5rem;
  bottom: 2.5rem;
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(223, 194, 122, 0.32);
  border-radius: 999px;
  background: rgba(22, 7, 10, 0.58);
  color: rgba(245, 236, 217, 0.82);
  cursor: pointer;
  font: 700 0.57rem/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(0.65rem);
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.motion-toggle:hover {
  border-color: var(--gold);
  background: rgba(22, 7, 10, 0.78);
  color: var(--cream);
}

.motion-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.motion-toggle__icon {
  position: relative;
  width: 0.72rem;
  height: 0.72rem;
  flex: 0 0 auto;
}

.motion-toggle__icon::before,
.motion-toggle__icon::after {
  position: absolute;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--gold);
  content: "";
}

.motion-toggle__icon::before { left: 0.12rem; }
.motion-toggle__icon::after { right: 0.12rem; }

.motion-toggle[data-state="paused"] .motion-toggle__icon::before {
  top: 0;
  left: 0.08rem;
  width: 0;
  height: 0;
  border-top: 0.36rem solid transparent;
  border-bottom: 0.36rem solid transparent;
  border-left: 0.58rem solid var(--gold);
  background: transparent;
}

.motion-toggle[data-state="paused"] .motion-toggle__icon::after {
  display: none;
}

.content {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  min-height: 100%;
  padding: clamp(1.5rem, 3vw, 3.5rem) clamp(1.75rem, 5vw, 5.75rem) clamp(1.4rem, 2.8vw, 3rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(129, 43, 54, 0.35), transparent 34%),
    radial-gradient(circle at 15% 78%, rgba(95, 24, 35, 0.28), transparent 31%),
    linear-gradient(145deg, var(--burgundy-800), var(--burgundy-900) 48%, #1c080d);
}

.content::before,
.content::after {
  position: absolute;
  border: 1px solid rgba(223, 194, 122, 0.08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.content::before {
  width: 28rem;
  height: 28rem;
  right: -18rem;
  bottom: -12rem;
}

.content::after {
  width: 19rem;
  height: 19rem;
  right: -13rem;
  bottom: -7.5rem;
}

.topbar,
.footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--cream);
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border: 1px solid var(--brass);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1;
}

.brand__name {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-family: var(--serif);
  letter-spacing: 0.02em;
}

.brand__name strong {
  font-size: 1.12rem;
  font-weight: 600;
}

.brand__name span {
  color: var(--brass);
  font-size: 0.75rem;
}

.brand__name em {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: normal;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: rgba(223, 194, 122, 0.46);
}

.language-button {
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0.35rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(245, 236, 217, 0.55);
  cursor: pointer;
  font: 700 0.65rem/1 var(--sans);
  letter-spacing: 0.14em;
  transition: color 180ms ease, background-color 180ms ease;
}

.language-button:hover,
.language-button.is-active {
  color: var(--gold);
}

.language-button.is-active {
  background: rgba(223, 194, 122, 0.08);
}

.language-button:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.message {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 33rem;
  padding: clamp(4rem, 8vh, 7rem) 0 clamp(3rem, 7vh, 5.5rem);
  animation: content-arrive 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eyebrow {
  margin: 0 0 clamp(1.5rem, 3vh, 2.4rem);
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(4.35rem, 7.1vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.76;
}

h1 span {
  color: var(--brass);
}

.ornament {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(100%, 19rem);
  margin: clamp(2.2rem, 5vh, 3.5rem) 0 clamp(1.7rem, 4vh, 2.7rem);
  color: var(--brass);
}

.ornament span {
  width: 100%;
  height: 1px;
  overflow: hidden;
  background: linear-gradient(90deg, transparent, var(--line));
}

.ornament span:last-child {
  background: linear-gradient(90deg, var(--line), transparent);
}

.ornament i {
  font-size: 0.48rem;
  font-style: normal;
}

.lead {
  margin: 0;
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.5vw, 2.7rem);
  font-style: italic;
  line-height: 1.13;
}

.supporting {
  max-width: 29rem;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: clamp(0.78rem, 0.9vw, 0.92rem);
  font-weight: 400;
  line-height: 1.8;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 2.2rem;
  color: rgba(245, 236, 217, 0.68);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.status__dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(223, 194, 122, 0.45);
  animation: status-pulse 2.8s ease-out infinite;
}

.footer {
  color: rgba(203, 189, 167, 0.56);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer p {
  margin: 0;
}

@keyframes content-arrive {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(223, 194, 122, 0.38); }
  55%, 100% { box-shadow: 0 0 0 0.65rem rgba(223, 194, 122, 0); }
}

@media (max-width: 1080px) {
  .page-shell {
    grid-template-columns: minmax(0, 1fr) minmax(24rem, 0.9fr);
  }

  .content {
    padding-inline: clamp(1.75rem, 4.5vw, 3.75rem);
  }

  h1 {
    font-size: clamp(4rem, 7.6vw, 6.2rem);
  }
}

@media (max-width: 780px) {
  .page-shell {
    display: block;
    min-height: 100svh;
    overflow: visible;
  }

  .visual {
    position: absolute;
    inset: 0;
    min-height: 100%;
  }

  .visual::after {
    inset: 0.75rem;
  }

  .visual__media {
    min-height: 100%;
    object-position: 62% center;
  }

  .visual__veil {
    background:
      linear-gradient(0deg, rgba(25, 7, 12, 0.97) 0%, rgba(31, 8, 14, 0.9) 40%, rgba(20, 6, 9, 0.24) 100%),
      linear-gradient(90deg, rgba(17, 5, 7, 0.24), rgba(17, 5, 7, 0.08));
  }

  .visual__caption {
    display: none;
  }

  .motion-toggle {
    right: 1.35rem;
    bottom: 1.35rem;
  }

  .content {
    min-height: 100svh;
    padding: 1.35rem clamp(1.45rem, 6vw, 3.5rem) 1.4rem;
    background: transparent;
  }

  .content::before,
  .content::after {
    display: none;
  }

  .message {
    align-self: end;
    padding: 10rem 0 3.4rem;
  }

  h1 {
    font-size: clamp(4.2rem, 18vw, 7rem);
  }

  .supporting {
    max-width: 31rem;
  }
}

@media (max-width: 460px) {
  .brand__name em,
  .brand__name span {
    display: none;
  }

  .message {
    padding-bottom: 2.35rem;
  }

  .eyebrow {
    letter-spacing: 0.22em;
  }

  .footer {
    align-items: flex-end;
    gap: 0.5rem;
  }

  .footer p:last-child {
    max-width: 8rem;
    text-align: right;
  }
}

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

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