:root {
  --charcoal: #1d1a16;
  --black: #050403;
  --cream: #f6f3ee;
  --cream-2: #eee9e2;
  --ink: #1c1511;
  --muted: #7c6c5d;
  --gold: #b88f3d;
  --green: #2d6239;
  --wine: #800020;
  --wine-2: #b13242;
  --line: rgba(28, 21, 17, 0.12);
  --sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--black);
  color: var(--cream);
  font-family: var(--sans);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--black);
}

button,
textarea {
  font: inherit;
}

.vinora-scene {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0.22;
  pointer-events: none;
  mix-blend-mode: screen;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding: 14px 16px;
  opacity: 0;
  transform: translateY(-12px);
  background: rgba(5, 4, 3, 0.86);
  border-bottom: 1px solid rgba(184, 143, 61, 0.24);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.topbar__slot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(64vw, 360px);
  height: 34px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
}

.topbar__brand {
  color: var(--cream);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.topbar__nav {
  position: absolute;
  right: 16px;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(-50%);
}

.topbar__nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(246, 243, 238, 0.2);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--cream);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  background: rgba(246, 243, 238, 0.08);
}

.scroll-stage {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  background: #000;
}

.hero-media__frame {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  filter: saturate(1.12) contrast(1.08);
}

.hero-media__sheen {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.04) 42%, rgba(0, 0, 0, 0.58) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.54) 0%, rgba(0, 0, 0, 0.08) 48%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-title {
  position: fixed;
  top: 48%;
  left: 50%;
  z-index: 35;
  width: calc(100vw - 32px);
  margin: 0;
  color: var(--cream);
  font-size: clamp(36px, 10vw, 44px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0;
  text-align: center;
  text-wrap: balance;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.72);
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  z-index: 4;
  width: min(38vw, 270px);
  color: var(--cream);
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.58);
  pointer-events: none;
}

.hero-copy--left {
  left: 18px;
  top: 116px;
}

.hero-copy--right {
  right: 18px;
  bottom: 98px;
  text-align: right;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy p:not(.eyebrow) {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}

@media (max-width: 759px) {
  .hero-copy {
    display: none;
  }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  transform: translateX(-50%);
}

.scroll-cue span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(246, 243, 238, 0.28);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--cream);
  background: rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(12px);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.experience-section {
  position: relative;
  z-index: 5;
  display: grid;
  gap: 28px;
  padding: 88px 10px 42px;
  background:
    linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%),
    radial-gradient(circle at 20% 15%, rgba(128, 0, 32, 0.1), transparent 24rem);
  color: var(--ink);
}

.experience-copy {
  width: min(100%, 640px);
  margin: 0 auto;
  padding: 0 6px;
}

.experience-copy h2 {
  margin: 0;
  font-size: clamp(34px, 9vw, 68px);
  line-height: 0.96;
  letter-spacing: 0;
  text-align: center;
}

.experience-copy > p:not(.eyebrow) {
  margin: 18px auto 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  text-align: center;
}

.experience-copy .eyebrow {
  text-align: center;
}

.copy-grid {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.copy-grid article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border-top: 1px solid rgba(28, 21, 17, 0.12);
  padding-top: 13px;
}

.copy-grid span {
  color: var(--wine);
  font-weight: 900;
}

.copy-grid p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.chat-shell {
  width: min(100%, 520px);
  height: min(78dvh, 720px);
  min-height: 640px;
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  justify-self: center;
  border: 1px solid rgba(28, 21, 17, 0.1);
  border-radius: 22px;
  background: rgba(246, 243, 238, 0.96);
  color: var(--ink);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.chat-shell__bar {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.chat-shell__bar > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(45, 98, 57, 0.12);
}

.chat-log {
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}

.message {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: 100%;
}

.message--user {
  align-self: flex-end;
}

.message--assistant {
  align-self: flex-start;
}

.message__avatar {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fffaf3;
  background: var(--wine);
  font-weight: 900;
}

.message div {
  max-width: calc(100% - 44px);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fffaf3;
}

.message--user div {
  color: #fffaf3;
  border-color: var(--wine);
  background: var(--wine);
}

.message p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: rgba(238, 233, 226, 0.76);
}

.composer textarea {
  width: 100%;
  min-height: 46px;
  max-height: 112px;
  resize: none;
  border: 1px solid rgba(28, 21, 17, 0.16);
  border-radius: 16px;
  outline: none;
  padding: 13px 14px;
  color: var(--ink);
  background: #fffaf3;
}

.composer textarea::placeholder {
  color: rgba(28, 21, 17, 0.46);
}

.composer textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45, 98, 57, 0.16);
}

.composer button {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 16px;
  color: #fffaf3;
  background: var(--green);
  cursor: pointer;
}

.composer button:disabled {
  opacity: 0.55;
  cursor: progress;
}

.composer svg {
  width: 20px;
  height: 20px;
}

.composer path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 760px) {
  .topbar {
    min-height: 76px;
    padding: 16px clamp(28px, 4vw, 56px);
  }

  .topbar__slot {
    width: min(46vw, 560px);
    height: 38px;
  }

  .topbar__brand {
    font-size: 22px;
  }

  .hero-media__frame {
    object-fit: contain;
    background: #000;
  }

  .hero-media__sheen {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.08) 42%, rgba(0, 0, 0, 0.62) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.06) 52%, rgba(0, 0, 0, 0.52) 100%);
  }

  .hero-title {
    width: min(86vw, 1100px);
    font-size: clamp(82px, 10vw, 154px);
    transform-origin: center center;
  }

  .hero-copy {
    width: min(26vw, 320px);
  }

  .hero-copy--left {
    left: clamp(28px, 5vw, 72px);
    top: clamp(104px, 14vh, 160px);
  }

  .hero-copy--right {
    right: clamp(28px, 5vw, 72px);
    bottom: clamp(86px, 12vh, 140px);
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .experience-section {
    grid-template-columns: minmax(0, 0.95fr) minmax(460px, 0.85fr);
    align-items: center;
    gap: clamp(36px, 6vw, 86px);
    padding: 112px clamp(32px, 6vw, 92px);
  }

  .experience-copy {
    margin: 0;
  }

  .experience-copy h2,
  .experience-copy > p:not(.eyebrow),
  .experience-copy .eyebrow {
    text-align: left;
  }

  .experience-copy > p:not(.eyebrow) {
    margin-left: 0;
  }

  .copy-grid {
    max-width: 620px;
  }

  .chat-shell {
    width: min(100%, 720px);
    height: min(78vh, 820px);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
