/* ═══════════════════════════════════════════════════════════════════════
   The Grapevine — one stylesheet for the app and the SEO pages.
   Photo-first, documentary travel-magazine: full-bleed frames with captions,
   big serif statements, and photographs on every card.
   Earth (clay, soil, wood, sage) + jewel accents (burgundy, emerald, navy).
   Brygada 1918 (a revived 1918 Polish book face) for display, Familjen Grotesk
   for everything you read.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --color-bg: #f3ece0;
  --color-surface: #fbf7f0;
  --color-surface-2: #ece2d2;
  --color-text: #2b211a;
  --color-text-muted: #6b5a4c;
  --clay: #b5654a;
  --soil: #3b2a20;
  --wood: #8a5a3b;
  --sage: #8c9a7b;
  --sage-deep: #56643f;
  --burgundy: #6e1f2f;
  --emerald: #1f5b45;
  --navy: #1e2a44;
  --cream: #fbf3ea;
  --peach: #f1c9a2;
  --color-primary: var(--burgundy);
  --color-accent: var(--clay);
  --line: rgba(59, 42, 32, 0.14);
  --shadow: 0 1px 2px rgba(43, 33, 26, .06), 0 8px 24px rgba(43, 33, 26, .08);
  --shadow-lift: 0 2px 4px rgba(43, 33, 26, .08), 0 22px 48px rgba(43, 33, 26, .18);
  --radius: 14px;
  --radius-photo: 6px;
  --font-display: 'Brygada 1918', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Familjen Grotesk', 'Avenir Next', 'Segoe UI', sans-serif;
  --step--1: clamp(.82rem, .79rem + .15vw, .9rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.1rem + .5vw, 1.45rem);
  --step-2: clamp(1.6rem, 1.35rem + 1.1vw, 2.2rem);
  --step-3: clamp(1.9rem, 1.45rem + 1.9vw, 3.2rem);
  --step-4: clamp(2.5rem, 1.5rem + 4.4vw, 5.6rem);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --scrim: linear-gradient(180deg, rgba(24, 17, 13, 0) 35%, rgba(24, 17, 13, .78) 100%);
  /* Earth-tone stand-in under every photo, so a missing file never shows a broken box */
  --photo-fallback: linear-gradient(140deg, var(--sage-deep) 0%, var(--wood) 60%, var(--clay) 100%);
}

/* ── Reset + base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font: 400 var(--step-0)/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: var(--burgundy); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; margin: 0 0 .4em; letter-spacing: -.02em; }
h1 { font-size: var(--step-4); line-height: 1.02; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h2 em, h1 em { color: var(--wood); }
p { margin: 0 0 1em; }
em { font-style: italic; }
.eyebrow { font-size: var(--step--1); letter-spacing: .18em; text-transform: uppercase; font-weight: 500; color: var(--wood); margin: 0 0 .8em; }
.muted { color: var(--color-text-muted); }
.fine { font-size: var(--step--1); opacity: .85; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 4px; }

/* Photo captions, magazine style: small italic serif, set against the frame */
.caption { font: italic 400 .95rem/1.3 var(--font-display); letter-spacing: .01em; color: rgba(251, 243, 234, .82); margin: 0; }
.caption::before { content: ''; display: inline-block; width: 18px; height: 1px; background: currentColor; vertical-align: middle; margin-right: .55em; opacity: .7; }

/* Shared section header */
.section-head { max-width: 1280px; margin: 0 auto clamp(28px, 4vw, 56px); }
.section-head h2 { max-width: 18ch; margin: 0; }

/* ── Buttons ── */
.btn {
  --bg: var(--burgundy);
  display: inline-flex; align-items: center; gap: .6em; border: 0; cursor: pointer;
  background: var(--bg); color: var(--cream); font: 500 var(--step-0) var(--font-body);
  padding: .85em 1.5em; border-radius: 999px; text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
  box-shadow: 0 6px 18px rgba(110, 31, 47, .25); will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(110, 31, 47, .35); background: #7d2638; }
.btn span { transition: transform .35s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn-big { font-size: var(--step-1); padding: 1em 1.9em; }
.btn-small { padding: .55em 1.1em; font-size: var(--step--1); }
.btn-light { --bg: var(--cream); color: var(--soil); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.btn-light:hover { background: #fff; }
.btn-ghost { --bg: transparent; color: var(--color-text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--wood); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.link { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: .4em .2em; text-decoration: underline; text-underline-offset: 3px; }

/* ── Nav ── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; gap: 1rem;
  padding: 14px var(--gutter); color: var(--cream); transition: background .4s, color .4s, box-shadow .4s;
}
.nav::before { content: ''; position: absolute; inset: 0 0 -40px; z-index: -1; background: linear-gradient(180deg, rgba(24, 17, 13, .45), transparent); transition: opacity .4s; pointer-events: none; }
.nav.solid { background: rgba(243, 236, 224, .92); color: var(--color-text); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav.solid::before { opacity: 0; }
.wordmark { display: inline-flex; align-items: center; gap: .5rem; color: inherit; text-decoration: none; font: 500 1.4rem var(--font-display); margin-right: auto; }
.wordmark svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; margin-top: -2px; }
.nav-links { display: none; gap: 1.8rem; }
.nav-links a { color: inherit; text-decoration: none; position: relative; font-size: var(--step--1); letter-spacing: .04em; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); }
@media (min-width: 760px) { .nav-links { display: flex; } }

/* ── Hero: the land sells it ── */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; color: var(--cream); overflow: hidden; background: var(--soil); }
.hero-art { position: absolute; inset: 0; }
.hills { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo { position: absolute; inset: -4% 0 0; background: var(--hero-img, none) 62% center/cover no-repeat; transform: scale(1.08); animation: settle 2.6s var(--ease) forwards; will-change: transform; }
.hero-art::after { content: ''; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(24, 17, 13, .62) 0%, rgba(24, 17, 13, .28) 45%, rgba(24, 17, 13, 0) 70%),
  linear-gradient(180deg, rgba(24, 17, 13, .3) 0%, rgba(24, 17, 13, 0) 30%, rgba(24, 17, 13, .2) 60%, rgba(24, 17, 13, .82) 100%); }
.grain { position: absolute; inset: -50%; opacity: .12; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); z-index: 1; }
.hero-copy { position: relative; z-index: 2; padding: 0 var(--gutter) clamp(72px, 13vh, 140px); max-width: 1040px; }
.hero h1 { text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.hero h1 em { color: var(--peach); }
.hero .eyebrow { color: #e9c8a6; }
.lede { font-size: var(--step-1); font-weight: 400; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.hero-link { color: var(--cream); font-size: var(--step--1); letter-spacing: .06em; text-decoration: none; border-bottom: 1px solid rgba(251, 243, 234, .45); padding-bottom: 2px; transition: border-color .3s; }
.hero-link:hover { border-color: var(--cream); }
.hero-caption { position: absolute; z-index: 2; right: var(--gutter); bottom: 22px; }
@keyframes settle { to { transform: scale(1); } }

/* Staggered load reveal */
.reveal { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }
/* Scroll reveal */
.io { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.io.in { opacity: 1; transform: none; }

/* ── Statement: one big, plain serif sentence ── */
.statement { padding: clamp(80px, 14vw, 180px) var(--gutter) clamp(60px, 9vw, 120px); max-width: 1280px; margin: 0 auto; }
.statement p { font: 400 clamp(1.7rem, 1.1rem + 2.8vw, 3.8rem)/1.18 var(--font-display); letter-spacing: -.015em; margin: 0; max-width: 30ch; }
@media (min-width: 900px) { .statement p { text-indent: 2.2em; } }
.statement em { color: var(--wood); }

/* ── How we work: three big frames ── */
.how { padding: 0 var(--gutter) clamp(80px, 12vw, 160px); }
.frames { list-style: none; padding: 0; margin: 0 auto; max-width: 1280px; display: grid; gap: clamp(28px, 4vw, 40px); }
.frame h3 { font-size: var(--step-2); margin: 1rem 0 .3rem; }
.frame p { color: var(--color-text-muted); margin: 0; max-width: 36ch; }
.frame-img { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-photo); overflow: hidden; background: var(--img) center/cover, var(--photo-fallback); transition: transform 1.2s var(--ease); }
.frame-img::before { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(24, 17, 13, .5) 0%, rgba(24, 17, 13, 0) 35%); }
.frame-img .num { position: absolute; left: 1rem; top: .6rem; font: italic 500 clamp(2.4rem, 2rem + 2vw, 4rem)/1 var(--font-display); color: var(--cream); text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.frame:hover .frame-img { transform: translateY(-4px); }
@media (min-width: 760px) {
  .frames { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .frame:nth-child(2) { margin-top: 90px; }
  .frame:nth-child(3) { margin-top: 180px; }
}

/* ── Pours: a horizontal strip of the first question ── */
.pours { padding: 0 0 clamp(80px, 12vw, 160px); }
.pours .section-head { padding: 0 var(--gutter); box-sizing: content-box; }
/* Phones: a continuous loop (app.js appends a hidden second copy so it wraps
   seamlessly). Touch pauses it; reduced motion turns it back into a swipe row. */
.pours { overflow: hidden; }
.pour-track { display: flex; gap: 12px; width: max-content; padding: 0 0 10px; animation: pour-loop 46s linear infinite; }
.pour-track.paused { animation-play-state: paused; }
.pour-track .pour { width: 58vw; max-width: 260px; flex: none; }
@keyframes pour-loop { to { transform: translateX(calc(-50% - 6px)); } }
.pour { position: relative; aspect-ratio: 3 / 4; border: 0; padding: 0; cursor: pointer; border-radius: var(--radius-photo); overflow: hidden; background: var(--img) center/cover, var(--photo-fallback); color: var(--cream); text-align: left; font: inherit; isolation: isolate; transition: transform .8s var(--ease); }
.pour::after { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--scrim); }
.pour span { position: absolute; left: 1rem; right: 1rem; bottom: .9rem; font: 500 var(--step-2)/1.05 var(--font-display); }
.pour:hover { transform: translateY(-6px); }
@media (min-width: 900px) {
  .pours { overflow: visible; }
  .pour-track { display: grid; width: auto; animation: none; grid-template-columns: repeat(8, 1fr); max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter) 10px; box-sizing: content-box; }
  .pour-track .pour { width: auto; max-width: none; }
  .pour.clone { display: none; }
  .pour { aspect-ratio: 2 / 3; }
  .pour:nth-child(even) { margin-top: 48px; }
  .pour span { font-size: var(--step-1); }
}

/* ── Regions: full-bleed spreads ── */
.regions { display: grid; gap: clamp(14px, 2vw, 24px); padding-bottom: clamp(80px, 12vw, 160px); }
.spread { position: relative; display: grid; min-height: 82svh; color: var(--cream); text-decoration: none; overflow: hidden; isolation: isolate; }
.spread-img { position: absolute; inset: 0; z-index: -2; background: var(--img) center/cover, var(--photo-fallback); transform: scale(1.04); transition: transform 1.6s var(--ease); }
.spread:hover .spread-img { transform: scale(1); }
.spread::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(24, 17, 13, 0) 30%, rgba(24, 17, 13, .8) 100%); }
.spread-text { align-self: end; padding: 0 var(--gutter) clamp(56px, 8vw, 96px); max-width: 640px; }
.spread-text h2 { font-size: var(--step-4); margin: 0 0 .15em; }
.spread-text .eyebrow { color: #e9c8a6; }
.spread-text p { max-width: 38ch; font-weight: 400; font-size: var(--step-1); }
.more { display: inline-flex; gap: .5em; font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid rgba(251, 243, 234, .5); padding-bottom: 3px; }
.more span { transition: transform .4s var(--ease); }
.spread:hover .more span { transform: translateX(5px); }
.spread .caption { position: absolute; right: var(--gutter); bottom: 22px; }
@media (min-width: 900px) {
  .spread::after { background: linear-gradient(90deg, rgba(24, 17, 13, .72) 0%, rgba(24, 17, 13, .2) 50%, rgba(24, 17, 13, 0) 70%); }
  .spread.flip::after { background: linear-gradient(270deg, rgba(24, 17, 13, .72) 0%, rgba(24, 17, 13, .2) 50%, rgba(24, 17, 13, 0) 70%); }
  .spread-text { align-self: center; padding-bottom: 0; }
  .spread.flip .spread-text { justify-self: end; text-align: right; }
  .spread.flip .spread-text p { margin-left: auto; }
  .spread.flip .caption { right: auto; left: var(--gutter); }
}

/* ── Gallery: a full rectangle, no holes ── */
.gallery-wrap { padding: 0 var(--gutter) clamp(80px, 12vw, 160px); }
.gallery { display: grid; gap: 10px; max-width: 1280px; margin: 0 auto; grid-template-columns: 1fr 1fr; grid-auto-rows: 44vw;
  grid-template-areas: "lunch lunch" "cellar dog" "picnic picnic" "bubbles winter" "views views"; }
.s-lunch { grid-area: lunch; } .s-cellar { grid-area: cellar; } .s-dog { grid-area: dog; } .s-picnic { grid-area: picnic; }
.s-bubbles { grid-area: bubbles; } .s-winter { grid-area: winter; } .s-views { grid-area: views; }
.shot { position: relative; border-radius: var(--radius-photo); overflow: hidden; color: var(--cream); text-decoration: none; isolation: isolate; }
.shot::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--img) center/cover, var(--photo-fallback); transition: transform 1.2s var(--ease); }
.shot::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 50%, rgba(24, 17, 13, .72) 100%); }
.shot span { position: absolute; left: 1rem; bottom: .8rem; font: 500 var(--step-1) var(--font-display); }
.shot:hover::before { transform: scale(1.04); }
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(200px, 17vw, 250px);
    grid-template-areas: "lunch lunch cellar dog" "lunch lunch picnic picnic" "bubbles winter views views"; }
  .shot span { font-size: var(--step-2); left: 1.3rem; bottom: 1rem; }
}

/* ── Promise band ── */
.promise { max-width: 1280px; margin: 0 auto clamp(80px, 12vw, 160px); padding: clamp(28px, 4vw, 44px) var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-sizing: content-box; }
.promise div { display: grid; gap: .2rem; }
.promise b { font: 500 var(--step-2)/1.1 var(--font-display); color: var(--burgundy); }
.promise span { font-size: var(--step--1); color: var(--color-text-muted); }
@media (min-width: 900px) { .promise { grid-template-columns: repeat(4, 1fr); margin-left: var(--gutter); margin-right: var(--gutter); } }
@media (min-width: 1392px) { .promise { margin-left: auto; margin-right: auto; } }

/* ── Popular guides: photo cards, then chips ── */
.guides-strip { padding: 0 var(--gutter) clamp(80px, 12vw, 160px); }
.guide-cards { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 12px; }
.guide-cards > .chips { grid-column: 1 / -1; margin-top: .6rem; }
.guide-card { display: grid; gap: .7rem; align-content: start; color: inherit; text-decoration: none; }
.guide-img { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-photo); background: var(--img) center/cover, var(--photo-fallback); transition: transform .9s var(--ease), box-shadow .9s var(--ease); }
.guide-title { font: 500 var(--step-1)/1.15 var(--font-display); }
.guide-card:hover .guide-img { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.guide-card:hover .guide-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
@media (min-width: 900px) { .guide-cards { grid-template-columns: repeat(3, 1fr); gap: 2.4rem 20px; } }

/* ── Chips ── */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-block; padding: .5em 1em; border-radius: 999px; background: var(--color-surface); color: var(--color-text); text-decoration: none; font-size: var(--step--1); box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, box-shadow .3s, transform .3s var(--ease); cursor: pointer; border: 0; font-family: inherit; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--wood); transform: translateY(-1px); }
.chip[aria-pressed="true"], .chip.on { background: var(--soil); color: var(--cream); box-shadow: none; }

/* ── Closer: one more photo, one action ── */
.closer { position: relative; min-height: 78svh; display: grid; place-items: center; text-align: center; color: var(--cream); padding: 80px var(--gutter); isolation: isolate; overflow: hidden; }
.closer::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--img) center/cover, var(--photo-fallback); }
.closer::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(24, 17, 13, .55) 0%, rgba(24, 17, 13, .3) 60%, rgba(24, 17, 13, .45) 100%); }
.closer h2 { font-size: var(--step-4); margin-bottom: .5em; }
.closer h2 em { color: var(--peach); }
.closer .caption { position: absolute; right: var(--gutter); bottom: 22px; }

/* ── Quiz ── */
.quiz { position: fixed; inset: 0; z-index: 50; background: var(--color-bg); overflow-y: auto; display: flex; flex-direction: column; }
.quiz::before { content: ''; position: fixed; inset: 0; background: radial-gradient(1200px 600px at 100% 0%, rgba(140, 154, 123, .22), transparent 60%), radial-gradient(900px 600px at 0% 100%, rgba(181, 101, 74, .15), transparent 60%); pointer-events: none; }
.quiz-top { position: sticky; top: 0; display: flex; align-items: center; gap: 1rem; padding: 14px var(--gutter); background: rgba(243, 236, 224, .9); backdrop-filter: blur(8px); z-index: 2; }
.progress { flex: 1; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--burgundy); transition: width .6s var(--ease); }
.quiz-body { position: relative; padding: clamp(24px, 6vh, 70px) var(--gutter) 60px; width: 100%; max-width: 1120px; margin: 0 auto; flex: 1; }
.q-title { font-size: var(--step-3); max-width: 18ch; }
.q-hint { color: var(--color-text-muted); margin-bottom: 1.6rem; }
.options { display: grid; gap: .7rem; margin-bottom: 1.6rem; }
@media (min-width: 640px) { .options { grid-template-columns: 1fr 1fr; } }
.opt {
  text-align: left; border: 0; cursor: pointer; font: inherit; color: inherit;
  background: var(--color-surface); padding: 1.05rem 1.2rem; border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: .1rem;
  background-image: linear-gradient(135deg, rgba(140, 154, 123, .22) 0%, rgba(140, 154, 123, .08) 40%, transparent 100%);
  background-size: 220% 220%; background-position: 100% 100%;
  transition: background-position .8s var(--ease), box-shadow .3s, transform .4s var(--ease);
  animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms);
}
.opt:hover { background-position: 0 0; box-shadow: inset 0 0 0 1px var(--sage); transform: translateY(-2px); }
.opt b { font-weight: 500; }
.opt small { color: var(--color-text-muted); font-size: var(--step--1); }
.opt[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--burgundy); background-color: #fff; }
.opt[aria-pressed="true"] b::after { content: ' ✓'; color: var(--burgundy); }

/* Photo tiles: the photo is the option, the label sits under it */
.options.photo-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 900px) { .options.photo-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } .options.photo-grid[data-group="crew"] { grid-template-columns: repeat(5, 1fr); } }
.opt.has-img { padding: 0; background: none; box-shadow: none; gap: .55rem; align-content: start; }
.opt.has-img:hover { transform: translateY(-3px); }
.opt-img { display: block; aspect-ratio: 1; border-radius: 10px; background: var(--img) center/cover, var(--photo-fallback); position: relative; overflow: hidden; transition: transform .6s var(--ease), box-shadow .4s; }
.opt-img::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 0 var(--burgundy); transition: box-shadow .3s; }
.opt.has-img[aria-pressed="true"] { box-shadow: none; background: none; }
.opt.has-img[aria-pressed="true"] .opt-img::after { box-shadow: inset 0 0 0 4px var(--burgundy); }
.opt.has-img[aria-pressed="true"] .opt-img::before { content: '✓'; position: absolute; z-index: 1; right: 10px; top: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--burgundy); color: var(--cream); display: grid; place-items: center; font-size: .85rem; }
.opt.has-img[aria-pressed="true"] b::after { content: ''; }
.opt-text { display: grid; gap: .05rem; padding: 0 .1rem; }
.opt.has-img b { font: 500 var(--step-1)/1.15 var(--font-display); }

.q-sub { font: 500 var(--step-2) var(--font-display); margin: 2rem 0 .8rem; }
.trip-fields { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; margin-bottom: 1.6rem; max-width: 560px; }
.field { display: grid; gap: .35rem; font-size: var(--step--1); color: var(--color-text-muted); }
.field input, .field textarea, .field select { font: inherit; font-size: 16px; color: var(--color-text); background: var(--color-surface); border: 1px solid var(--line); border-radius: 10px; padding: .75em .9em; width: 100%; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(181, 101, 74, .15); }
.field .err, .check .err { color: #a3262d; font-style: normal; font-size: .8rem; min-height: 1em; }
.field.bad input { border-color: #a3262d; }
.q-actions { display: flex; justify-content: flex-end; }

/* Thinking state: skeleton, not a spinner */
.thinking { display: grid; gap: 1rem; }
.thinking p { font: italic 500 var(--step-2) var(--font-display); }
.skel { height: 84px; border-radius: var(--radius); background: linear-gradient(90deg, var(--color-surface-2) 0%, var(--color-surface) 50%, var(--color-surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Result ── */
.result { padding: 110px var(--gutter) 80px; max-width: 1120px; margin: 0 auto; }
.result-head h2 { font-size: var(--step-3); }
.read p { font-size: var(--step-1); font-weight: 400; max-width: 52ch; margin-bottom: .4em; }
.read p:first-child { font: italic 500 var(--step-2)/1.25 var(--font-display); }
.tweaks { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.6rem 0 2.4rem; }
.days { display: grid; gap: 2.4rem; }
.day { background: var(--color-surface); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 120ms); }
.day-photo { position: relative; min-height: clamp(220px, 36vw, 380px); display: grid; align-content: end; color: var(--cream); isolation: isolate; }
.day-photo::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--img) center/cover, var(--photo-fallback); }
.day-photo::after { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--scrim); }
.day-head { padding: 1.4rem 1.5rem 1.2rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; }
.day-head h3 { margin: 0; font-size: var(--step-3); }
.day-head .eyebrow { margin: 0; width: 100%; color: #e9c8a6; }
.day-head .blurb { margin: 0; width: 100%; max-width: 60ch; opacity: .9; }
.day-head .swap { margin-left: auto; background: rgba(251, 243, 234, .16); color: var(--cream); box-shadow: inset 0 0 0 1px rgba(251, 243, 234, .4); backdrop-filter: blur(6px); }
.day-head .swap:hover { background: rgba(251, 243, 234, .28); }
.stops { list-style: none; margin: 0; padding: .8rem 0; }
.stop { display: grid; grid-template-columns: 64px 1fr; gap: .2rem 1rem; padding: 1rem 1.5rem; position: relative; }
.stop + .stop::before { content: ''; position: absolute; left: calc(1.5rem + 30px); top: -14px; height: 28px; border-left: 1px dashed var(--wood); opacity: .5; }
.stop time { font: 500 var(--step-1) var(--font-display); color: var(--wood); }
.stop h4 { margin: 0; font: 500 var(--step-1) var(--font-body); }
.stop h4 a { color: inherit; text-decoration: none; }
.stop h4 a:hover { text-decoration: underline; }
.stop .why { grid-column: 2; margin: .15rem 0 .2rem; color: var(--color-text-muted); }
.stop .meta { grid-column: 2; display: flex; flex-wrap: wrap; gap: .35rem; }
.tag { font-size: .74rem; letter-spacing: .05em; padding: .2em .7em; border-radius: 999px; background: var(--color-surface-2); color: var(--soil); }
.tag.fee { background: var(--burgundy); color: var(--cream); font-weight: 500; }
.tag.lunch { background: var(--emerald); color: #eef5ef; }
.tag.res { background: rgba(30, 42, 68, .1); color: var(--navy); }
.transport { padding: 1rem 1.5rem 1.4rem; border-top: 1px solid var(--line); display: grid; gap: .3rem; font-size: var(--step--1); color: var(--color-text-muted); }
.transport b { color: var(--color-text); font-weight: 500; }
.lunch-note { padding: 0 1.5rem 1rem; font-size: var(--step--1); color: var(--wood); }

.book-panel { position: relative; margin: 2.6rem 0; border-radius: 18px; padding: clamp(1.8rem, 4vw, 3rem) clamp(1.6rem, 4vw, 3rem); color: var(--cream); display: grid; gap: 1rem; overflow: hidden; isolation: isolate; background: var(--navy); }
.book-panel::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--book-img, none) center/cover; opacity: .9; }
.book-panel::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(30, 42, 68, .96) 0%, rgba(30, 42, 68, .82) 55%, rgba(30, 42, 68, .45) 100%); }
.book-panel h3 { margin: 0; font-size: var(--step-3); }
.book-panel > p { max-width: 52ch; }
.book-panel .btn { --bg: var(--peach); color: var(--soil); justify-self: start; box-shadow: none; }
.book-panel .btn:hover { background: #f6d6b6; }
.book-panel .nums { display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem; }
.book-panel .nums div { display: grid; }
.book-panel .nums b { font: 500 var(--step-3)/1 var(--font-display); }
.book-panel .nums span { font-size: var(--step--1); opacity: .8; }
.book-panel .notes { font-size: var(--step--1); opacity: .85; margin: 0; padding-left: 1.1em; max-width: 60ch; }
.email-capture { background: var(--color-surface); border-radius: 18px; padding: 1.6rem; box-shadow: var(--shadow); }
.email-capture h3 { font-size: var(--step-2); }
.field-row { display: flex; gap: .6rem; align-items: end; flex-wrap: wrap; }
.field-row .field { flex: 1 1 220px; }
.form-msg { margin: .8rem 0 0; font-size: var(--step--1); color: var(--emerald); min-height: 1.2em; }
.form-msg.bad { color: #a3262d; }

/* ── Booking dialog ── */
.book-dialog { border: 0; border-radius: 20px; padding: 0; max-width: 520px; width: calc(100% - 32px); background: var(--color-bg); color: var(--color-text); box-shadow: var(--shadow-lift); }
.book-dialog::backdrop { background: rgba(30, 22, 18, .55); backdrop-filter: blur(3px); }
.book-form { padding: 1.6rem; display: grid; gap: .8rem; }
.book-form h3 { margin: 0; }
.check { display: flex; gap: .6rem; align-items: start; font-size: var(--step--1); flex-wrap: wrap; }
.check input { margin-top: .3em; accent-color: var(--burgundy); }
.dialog-actions { display: flex; justify-content: space-between; align-items: center; }

/* ── Content pages (winery + guide pages, rendered server-side) ── */
.page { padding: 0 0 80px; }
.page-inner { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.page.plain { padding-top: 110px; }

/* Full-bleed photo header with the title set on it */
.page-cover { position: relative; min-height: clamp(420px, 70svh, 680px); display: grid; align-content: end; color: var(--cream); isolation: isolate; margin-bottom: clamp(36px, 5vw, 64px); }
.page-cover::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--img) center/cover, var(--photo-fallback); }
.page-cover::after { content: ''; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(24, 17, 13, .55) 0%, rgba(24, 17, 13, .15) 55%, rgba(24, 17, 13, 0) 80%),
  linear-gradient(180deg, rgba(24, 17, 13, .45) 0%, rgba(24, 17, 13, .05) 30%, rgba(24, 17, 13, .25) 55%, rgba(24, 17, 13, .85) 100%); }
.page-cover .page-inner { width: 100%; padding-bottom: clamp(32px, 5vw, 64px); }
.page-cover h1 { max-width: 18ch; margin-bottom: .25em; }
.page-cover .eyebrow { color: #e9c8a6; }
.page-cover .lede { max-width: 56ch; opacity: .92; margin-bottom: 1rem; }
.page-cover .crumbs, .page-cover .crumbs a { color: rgba(251, 243, 234, .8); }
.page-cover .chips .chip { background: rgba(251, 243, 234, .14); color: var(--cream); box-shadow: inset 0 0 0 1px rgba(251, 243, 234, .35); backdrop-filter: blur(6px); }
.page-hero { margin-bottom: 2.4rem; }
.page-hero h1 { max-width: 18ch; }
.page-hero .lede { color: var(--color-text-muted); max-width: 56ch; }
.crumbs { font-size: var(--step--1); color: var(--color-text-muted); margin-bottom: 1.2rem; }
.crumbs a { color: inherit; }
.page h2 { margin-top: 1.6em; }

/* Winery cards: photo on top, details under, DTW-style */
.cards { display: grid; gap: 1.6rem 16px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .cards { grid-template-columns: 1fr 1fr 1fr; } }
.card { display: grid; align-content: start; border-radius: var(--radius); background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: inherit; overflow: hidden; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(181, 101, 74, .3), var(--shadow-lift); }
.card-img { aspect-ratio: 16 / 10; background: var(--img) center/cover, var(--photo-fallback); position: relative; overflow: hidden; }
.card-img::after { content: ''; position: absolute; inset: 0; background: var(--img) center/cover; transition: transform 1.2s var(--ease); }
.card:hover .card-img::after { transform: scale(1.04); }
.card-img .tag.fee { position: absolute; z-index: 1; left: .8rem; bottom: .8rem; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.card-body { display: grid; gap: .3rem; padding: 1.1rem 1.2rem 1.2rem;
  background-image: linear-gradient(135deg, rgba(181, 101, 74, .12) 0%, rgba(181, 101, 74, .04) 40%, transparent 100%);
  background-size: 220% 220%; background-position: 100% 100%; transition: background-position .8s var(--ease); }
.card:hover .card-body { background-position: 0 0; }
.card .eyebrow { margin: 0; }
.card h3 { font-size: var(--step-2); margin: 0; }
.card p { margin: 0; color: var(--color-text-muted); font-size: var(--step--1); }
.card .meta { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .5rem; }

/* Wineries index: room to breathe between areas */
.jump { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 clamp(48px, 7vw, 96px); }
.region-block { padding-top: clamp(24px, 4vw, 48px); }
.region-block + .region-block { margin-top: clamp(72px, 10vw, 140px); border-top: 1px solid var(--line); padding-top: clamp(56px, 8vw, 110px); }
.region-block > h2 { font-size: var(--step-4); margin: 0 0 .2em; }
.area-block { margin-top: clamp(56px, 8vw, 104px); scroll-margin-top: 90px; }
.area-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .4rem 2rem; padding-bottom: 1.1rem; margin-bottom: clamp(20px, 2.6vw, 32px); border-bottom: 1px solid var(--line); }
.area-head h3 { font-size: var(--step-3); margin: 0 0 .15em; }
.area-head p { margin: 0; color: var(--color-text-muted); max-width: 46ch; }
.area-head .area-meta { font-size: var(--step--1); letter-spacing: .04em; white-space: nowrap; }
.cards-row { gap: 2.2rem 24px; }
@media (max-width: 639px) {
  /* Phones: each area is a swipe row, not a 6,000px column */
  .cards-row { grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; scrollbar-width: none; }
  .jump { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .jump::-webkit-scrollbar { display: none; }
  .jump .chip { flex: none; }
  .cards-row::-webkit-scrollbar { display: none; }
  .cards-row > .card { scroll-snap-align: start; }
  .area-head .area-meta { white-space: normal; }
}

.facts { display: grid; gap: .5rem 1.6rem; grid-template-columns: max-content 1fr; margin: 0 0 1.2rem; font-size: var(--step-0); padding: 1.6rem; background: var(--color-surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); }
.facts dt { color: var(--color-text-muted); font-size: var(--step--1); letter-spacing: .06em; text-transform: uppercase; padding-top: .2em; }
.facts dd { margin: 0; }
.winery-layout { display: grid; gap: 2rem; }
.winery-layout .cta-band { margin: 0; flex-direction: column; align-items: flex-start; min-height: 320px; justify-content: flex-end; }
@media (min-width: 900px) { .winery-layout { grid-template-columns: 7fr 5fr; align-items: start; } .winery-layout aside { position: sticky; top: 100px; } }

.cta-band { position: relative; margin: clamp(48px, 7vw, 88px) 0; padding: clamp(2rem, 5vw, 3.4rem); border-radius: 18px; color: var(--cream); display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; justify-content: space-between; overflow: hidden; isolation: isolate; background: var(--emerald); }
.cta-band::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--img, none) center/cover; }
.cta-band::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(24, 17, 13, .78) 0%, rgba(24, 17, 13, .45) 60%, rgba(24, 17, 13, .2) 100%); }
.cta-band h2 { font-size: var(--step-3); margin: 0; max-width: 16ch; }
.cta-band .btn { --bg: var(--cream); color: var(--soil); box-shadow: none; }
.prose { max-width: 66ch; }
.prose h2 { font-size: var(--step-2); margin-top: 1.6em; }
.prose h3 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 500; margin-top: 1.4em; }
.unverified { font-size: var(--step--1); color: var(--wood); }
.page-nav { color: var(--color-text); }
.page-nav.over { background: transparent; color: var(--cream); box-shadow: none; backdrop-filter: none; }
.page-nav.over::before { opacity: 1; }

/* ── Footer + utilities ── */
.foot { padding: clamp(56px, 8vw, 96px) var(--gutter) 40px; background: var(--soil); color: #e6d9c8; font-size: var(--step--1); }
.foot-inner { max-width: 1280px; margin: 0 auto; display: grid; gap: 1.6rem; }
.foot a { color: var(--peach); }
.wordmark-sm { font: 500 var(--step-3) var(--font-display); color: var(--cream); margin-bottom: .1em; }
.foot-tag { font: italic 400 var(--step-1) var(--font-display); color: #d9c6b0; max-width: 34ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.to-top { position: fixed; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--soil); color: var(--cream); font-size: 1.1rem; cursor: pointer; opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s var(--ease); z-index: 20; pointer-events: none; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* ── Custom cursor (desktop pointers only) ── */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
  .cursor { display: block; position: fixed; top: 0; left: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--burgundy); z-index: 100; pointer-events: none; transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), background .25s; mix-blend-mode: multiply; will-change: transform; }
  .cursor.big { width: 40px; height: 40px; margin: -20px 0 0 -20px; background: rgba(181, 101, 74, .35); }
}

/* ── Reduced motion: everything still, everything visible ── */
@media (prefers-reduced-motion: reduce) and (max-width: 899px) {
  .pours { overflow: visible; }
  .pour-track { width: auto; overflow-x: auto; padding: 0 var(--gutter) 10px; scrollbar-width: none; }
  .pour.clone { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .io { opacity: 1; transform: none; }
  .cursor { display: none !important; }
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: auto; }
}

/* ── Print: the itinerary is the thing people print ── */
@media print {
  .nav, .tweaks, .book-panel, .email-capture, .foot, .to-top, .cursor, .day-head .swap { display: none !important; }
  .result { padding-top: 0; }
  .day { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .day-photo { min-height: 0; color: var(--color-text); }
  .day-photo::before, .day-photo::after { display: none; }
}
