:root {
  --wine: #721b24;
  --wine-dark: #3e0e15;
  --saffron: #f1b82d;
  --red: #d73c2c;
  --green: #215c3b;
  --cream: #fff7e8;
  --paper: #f7eddc;
  --ink: #241819;
  --white: #fffdf8;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.6; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .8rem 1rem; background: #fff; color: #000; }
.skip-link:focus { top: 1rem; }

.site-header { min-height: 84px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; padding: .75rem clamp(1.25rem, 4vw, 4rem); border-bottom: 1px solid rgba(62,14,21,.18); position: relative; z-index: 10; background: rgba(255,247,232,.94); backdrop-filter: blur(12px); }
.brand { width: 150px; display: inline-flex; }
.brand img { width: 100%; height: 58px; object-fit: contain; mix-blend-mode: multiply; }
nav { display: flex; gap: clamp(1.25rem,3vw,2.5rem); }
nav a { font-size: .88rem; font-weight: 600; text-decoration: none; }
nav a:hover { color: var(--wine); }
.install-button { justify-self: end; border: 1px solid var(--wine); border-radius: 999px; padding: .65rem 1rem; background: transparent; color: var(--wine); font: 700 .82rem var(--sans); cursor: pointer; }
.install-button:hover { background: var(--wine); color: var(--white); }

.hero { min-height: min(780px, calc(100svh - 84px)); position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(3rem,7vw,8rem); padding: clamp(4rem,8vw,7rem) clamp(1.25rem,6vw,7rem); background: radial-gradient(circle at 76% 18%, rgba(241,184,45,.35), transparent 25%), linear-gradient(135deg, #fff8eb 0%, #f6ead4 100%); }
.hero::before { content: ""; position: absolute; width: 330px; height: 330px; border: 1px solid rgba(114,27,36,.14); border-radius: 50%; left: -120px; top: -100px; box-shadow: 0 0 0 45px rgba(114,27,36,.035), 0 0 0 90px rgba(114,27,36,.025); }
.hero-copy, .hero-card { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 1rem; color: var(--wine); font-size: .75rem; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
h1, h2 { font-family: var(--serif); margin: 0; line-height: .98; letter-spacing: -.035em; }
h1 { font-size: clamp(3.7rem, 8vw, 7.6rem); color: var(--wine-dark); }
h1 em, h2 em { color: var(--red); font-weight: 600; }
.hero-intro { max-width: 35rem; margin: 2rem 0; font-size: clamp(1.06rem,1.7vw,1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: .7rem; padding: .8rem 1.25rem; border: 1px solid transparent; border-radius: 4px; font-weight: 700; font-size: .9rem; text-decoration: none; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--wine); color: #fff; }
.button-secondary { border-color: rgba(62,14,21,.45); color: var(--wine-dark); }

.hero-card { max-width: 430px; justify-self: end; padding: clamp(1.5rem,3.5vw,2.5rem); border-radius: 12px; background: var(--wine-dark); color: var(--white); box-shadow: 0 28px 70px rgba(62,14,21,.25); transform: rotate(1.3deg); }
.card-topline { display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: #e6c9bd; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.live-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: .45rem; border-radius: 50%; background: var(--saffron); box-shadow: 0 0 0 4px rgba(241,184,45,.12); }
.monogram { width: 84px; height: 84px; margin: 2.4rem 0 1.8rem; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: var(--saffron); font: italic 600 3rem var(--serif); }
.hero-card h2 { max-width: 8em; font-size: clamp(2.2rem,4vw,3.3rem); }
.hero-card p { color: #e6c9bd; }
.reports-button { width: 100%; justify-content: space-between; margin-top: 1.2rem; background: var(--saffron); color: var(--wine-dark); font-size: 1rem; }
.hero-card small { display: block; margin-top: .75rem; color: #be9d94; }
.hero-word { position: absolute; bottom: -4.5vw; left: -.8vw; color: rgba(114,27,36,.045); font: 700 clamp(7rem,18vw,18rem)/1 var(--serif); white-space: nowrap; pointer-events: none; }

.marquee { overflow: hidden; padding: .85rem 0; background: var(--saffron); color: var(--wine-dark); font-weight: 800; letter-spacing: .15em; white-space: nowrap; }
.marquee div { width: max-content; animation: crawl 24s linear infinite; }
.marquee span { margin: 0 1.5rem; color: var(--red); }
@keyframes crawl { to { transform: translateX(-40%); } }

.story { display: grid; grid-template-columns: 60px 1.2fr 1fr; gap: clamp(1.5rem,5vw,5rem); padding: clamp(5rem,10vw,9rem) clamp(1.25rem,6vw,7rem); border-bottom: 1px solid rgba(62,14,21,.18); }
.section-number { color: var(--wine); font-weight: 700; }
.story h2, .visit h2 { font-size: clamp(2.7rem,5.5vw,5.6rem); color: var(--wine-dark); }
.story-copy { align-self: end; max-width: 37rem; font-size: 1.08rem; }
.story-copy p:first-child { font-size: clamp(1.15rem,1.8vw,1.35rem); }

.visit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem,8vw,9rem); padding: clamp(5rem,10vw,9rem) clamp(1.25rem,6vw,7rem); background: var(--green); color: var(--white); }
.visit .eyebrow { color: #f4d984; }
.visit h2 { color: var(--white); }
.visit h2 em { color: #f4d984; }
.visit-main > p:last-child { max-width: 34rem; color: #d9e8df; font-size: 1.08rem; }
.visit-actions { border-top: 1px solid rgba(255,255,255,.3); }
.visit-link { display: grid; grid-template-columns: 1fr auto 24px; gap: 1rem; align-items: center; padding: 1.4rem .25rem; border-bottom: 1px solid rgba(255,255,255,.3); text-decoration: none; }
.visit-link span { color: #bdd3c6; font-size: .82rem; }
.visit-link strong { font-family: var(--serif); font-size: 1.15rem; }
.visit-link b { transition: transform .2s; }
.visit-link:hover b { transform: translate(3px,-3px); }

footer { display: grid; grid-template-columns: 1fr auto auto auto; gap: 2rem; align-items: center; padding: 2rem clamp(1.25rem,4vw,4rem); background: var(--wine-dark); color: #d8bab2; font-size: .8rem; }
footer img { width: 125px; height: 55px; object-fit: contain; filter: brightness(0) invert(1); opacity: .9; }
.copyright { color: #aa8982; }

.install-tip { position: fixed; inset: 0; z-index: 100; display: grid; place-items: end center; padding: 1rem; background: rgba(28,8,11,.65); }
.install-tip[hidden] { display: none; }
.install-tip > div { position: relative; width: min(520px,100%); padding: 2rem; border-radius: 16px; background: var(--cream); box-shadow: 0 25px 70px rgba(0,0,0,.3); }
.install-tip h2 { color: var(--wine-dark); font-size: 2.5rem; }
.close { position: absolute; right: 1rem; top: .7rem; border: 0; background: none; color: var(--wine); font-size: 2rem; cursor: pointer; }
.offline-toast { position: fixed; left: 50%; bottom: 1rem; z-index: 80; transform: translateX(-50%); width: min(90%,520px); padding: .8rem 1rem; border-radius: 999px; background: var(--ink); color: white; text-align: center; font-size: .86rem; }

@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 72px; }
  nav { display: none; }
  .brand { width: 125px; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 3rem; padding-top: 3.5rem; }
  .hero-card { justify-self: stretch; max-width: none; transform: none; }
  .story { grid-template-columns: 1fr; }
  .section-number { display: none; }
  .story-copy { align-self: auto; }
  .visit { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; gap: .5rem; text-align: center; }
  footer img { margin: 0 auto .75rem; }
}

@media (max-width: 480px) {
  .site-header { padding: .55rem 1rem; }
  .install-button { padding: .58rem .8rem; }
  h1 { font-size: clamp(3.25rem,17vw,4.6rem); }
  .hero-actions .button { width: 100%; }
  .visit-link { grid-template-columns: 1fr 24px; }
  .visit-link span { grid-column: 1; }
  .visit-link strong { grid-column: 1; }
  .visit-link b { grid-column: 2; grid-row: 1 / 3; }
}

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