/* OILIVE — one page per bottle. The bottle's own world sets the colours
   (--bp-paper, --bp-ink, --bp-pig, --bp-soft come from the body). The name is
   set huge; the bottle passes through it and turns as the page scrolls. */
:root { --r-out: cubic-bezier(.165,1,.32,1); --r-io: cubic-bezier(.76,0,.24,1); }
*, *::before, *::after { box-sizing: border-box; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
body.bp {
  --bg: var(--bp-paper); --ink: var(--bp-ink); --ink-65: color-mix(in srgb, var(--bp-ink) 66%, transparent);
  --ink-25: color-mix(in srgb, var(--bp-ink) 25%, transparent); --ink-12: color-mix(in srgb, var(--bp-ink) 12%, transparent); --ink-08: color-mix(in srgb, var(--bp-ink) 9%, transparent);
  margin: 0; background: var(--bp-paper); color: var(--bp-ink);
  font-family: 'Instrument Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
.skip-link { position: fixed; z-index: 100000; top: 12px; left: 12px; transform: translateY(-180%); padding: 12px 16px; background: var(--bp-paper); color: var(--bp-ink); font: 600 14px sans-serif; }
.skip-link:focus { transform: none; }
:focus-visible { outline: 2px solid var(--bp-pig); outline-offset: 3px; }
a { color: inherit; }
.oilive-logo-protect { -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
body.bp .s-top.is-solid { background: color-mix(in srgb, var(--bp-paper) 84%, transparent); }
body.bp .s-logo img { filter: var(--bp-logo, none); }
body.bp[style*="#0F1E3D"] { --bp-logo: invert(1) hue-rotate(180deg) brightness(1.08); }

/* ── hero: the name, the bottle through it, the name again behind ── */
.bp-hero { position: relative; padding: calc(118px + env(safe-area-inset-top, 0px)) 0 0; overflow: hidden; }
.bp-name {
  margin: 0; text-align: center; font: italic 400 clamp(64px, 13.5vw, 230px)/.86 'Playfair Display', serif; letter-spacing: -.04em; color: var(--bp-pig);
  padding: 0 12px; position: relative; z-index: 1;
}
.bp-stage { position: relative; height: min(118vh, 98vw); margin-top: clamp(-90px, -6vw, -30px); }
.bp-echo {
  position: absolute; left: 0; right: 0; top: 46%; margin: 0; text-align: center; white-space: nowrap; pointer-events: none;
  font: italic 400 clamp(64px, 13.5vw, 230px)/1 'Playfair Display', serif; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--bp-pig) 70%, transparent);
  transform: translate3d(calc(var(--k, 0) * -8%), 0, 0);
}
.bp-bottle {
  position: absolute; left: 50%; top: 0; height: 92%; width: auto; transform: translate3d(-50%, calc(var(--k, 0) * 6%), 0) rotate(calc(var(--k, 0) * -4deg));
  filter: drop-shadow(0 40px 50px rgba(30, 20, 10, .16)); -webkit-user-drag: none; user-select: none; z-index: 2;
}
.bp-side { position: absolute; top: 30%; margin: 0; display: grid; gap: 4px; font: italic 400 clamp(16px, 1.5vw, 22px)/1.25 'Playfair Display', serif; z-index: 3; }
.bp-side span:first-child { font: 500 10px/1 'Instrument Sans', sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-65); font-style: normal; margin-bottom: 6px; }
.bp-side-l { left: clamp(18px, 7vw, 120px); }
.bp-side-r { right: clamp(18px, 7vw, 120px); text-align: right; }

/* ── story ── */
.bp-story { max-width: 880px; margin: 0 auto; padding: clamp(40px, 6vw, 90px) 24px clamp(60px, 8vw, 110px); text-align: center; display: grid; justify-items: center; gap: clamp(22px, 3vw, 34px); }
.bp-leaf { width: 12px; height: 16px; background: var(--bp-pig); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 52'%3E%3Cpath d='M20 47C8.5 36 5 20 10.5 9.5 14 2.5 24.5 1 28.8 7 35 16.5 31 35 20 47Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 52'%3E%3Cpath d='M20 47C8.5 36 5 20 10.5 9.5 14 2.5 24.5 1 28.8 7 35 16.5 31 35 20 47Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.bp-note { margin: 0; font: italic 400 clamp(26px, 3.2vw, 46px)/1.22 'Playfair Display', serif; letter-spacing: -.01em; text-wrap: balance; }
.bp-craft { margin: 0; max-width: 56ch; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.75; color: var(--ink-65); text-wrap: pretty; }
[data-inview] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--r-out), transform 1.2s var(--r-out); }
[data-inview].is-in { opacity: 1; transform: none; }

/* ── facts: three quiet columns ── */
.bp-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; max-width: 1100px; margin: 0 auto; padding: 0 24px clamp(70px, 9vw, 130px); }
.bp-facts > div { padding: 6px clamp(18px, 3vw, 40px); border-left: 1px solid var(--ink-12); }
.bp-facts > div:first-child { border-left: 0; }
.bp-facts h2 { margin: 0 0 14px; font: 600 10px/1 'Instrument Sans', sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--bp-pig); }
.bp-facts p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--ink-65); }
.bp-word { font: italic 400 22px/1 'Playfair Display', serif; color: var(--bp-ink); }
.bp-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.bp-pills span { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border: 1px solid var(--ink-25); border-radius: 16px; font-size: 12px; color: var(--bp-ink); }

/* ── gallery: a row of cards you can swipe ── */
.bp-gallery { overflow: hidden; }
.bp-track {
  display: flex; gap: clamp(12px, 1.6vw, 22px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 clamp(18px, 6vw, 96px) 6px; scroll-padding: 0 clamp(18px, 6vw, 96px);
}
.bp-track::-webkit-scrollbar { display: none; }
.bp-card { position: relative; flex: none; margin: 0; height: clamp(320px, 42vw, 640px); border-radius: 26px; overflow: hidden; scroll-snap-align: start; background: var(--bp-soft); }
.bp-card img { display: block; height: 100%; width: auto; object-fit: cover; transition: transform 1.4s var(--r-out); -webkit-user-drag: none; user-select: none; }
.bp-card-wide img { width: auto; aspect-ratio: 1920 / 1072; }
.bp-card-studio { display: grid; place-items: end center; aspect-ratio: 3 / 4; }
.bp-card-studio img { height: 92%; width: auto; }
@media (hover: hover) { .bp-card:hover img { transform: scale(1.035); } }
.bp-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; display: grid; place-items: center; border-radius: 50%; background: rgba(250,250,247,.9); color: #2C2420; transition: transform .6s var(--r-out); }
.bp-play svg { width: 26px; height: 26px; margin-left: 4px; }
.bp-card-film:hover .bp-play { transform: scale(1.08); }

.bp-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: clamp(30px, 4vw, 54px) 24px clamp(80px, 10vw, 140px); }
.bp-cta {
  position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 26px 0 10px; border-radius: 26px;
  background: var(--bp-ink); color: var(--bp-paper); text-decoration: none; font: 600 11px/1 'Instrument Sans', sans-serif; letter-spacing: .18em; text-transform: uppercase;
}
.bp-cta svg { width: 34px; height: 34px; padding: 10px; border-radius: 50%; background: var(--bp-pig); color: #FAFAF7; }
.bp-dur { opacity: .6; letter-spacing: .08em; }
.bp-cta-line { background: transparent; color: var(--bp-ink); border: 1px solid var(--ink-25); padding: 0 26px; }
.bp-cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--bp-pig); transform: translateY(101%); transition: transform .55s var(--r-out); }
.bp-cta:hover::before { transform: none; }
.bp-cta-line:hover { color: #FAFAF7; border-color: var(--bp-pig); }

/* ── the other four ── */
.bp-others { padding: 0 clamp(18px, 6vw, 96px) clamp(70px, 9vw, 120px); }
.bp-others-title { margin: 0 0 clamp(28px, 4vw, 52px); text-align: center; font: italic 400 clamp(44px, 7vw, 112px)/1 'Playfair Display', serif; letter-spacing: -.03em; color: var(--bp-pig); }
.bp-others-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.bp-other {
  position: relative; display: grid; justify-items: center; align-content: end; gap: 6px; padding: 18px 12px 22px; border-radius: 22px; text-decoration: none;
  background: var(--op); color: var(--oi); aspect-ratio: 3 / 4; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(44,36,32,.06);
}
.bp-other img { width: 74%; height: auto; margin-bottom: 4px; transition: transform 1s var(--r-out); }
.bp-other:hover img { transform: translateY(-8px) rotate(-2deg); }
.bp-other-no { font: 500 10px/1 'Instrument Sans', sans-serif; letter-spacing: .22em; opacity: .65; }
.bp-other-name { font: italic 400 clamp(17px, 1.6vw, 24px)/1.1 'Playfair Display', serif; }
.bp-fine { margin: 0 0 clamp(50px, 6vw, 80px); text-align: center; font-size: 11px; color: var(--ink-65); }

@media (max-width: 760px) {
  .bp-hero { padding-top: calc(100px + env(safe-area-inset-top, 0px)); }
  .bp-name { font-size: clamp(54px, 16vw, 92px); }
  .bp-echo { font-size: clamp(54px, 16vw, 92px); top: 52%; }
  .bp-stage { height: 128vw; margin-top: -12px; }
  .bp-side { top: auto; bottom: 4%; font-size: 15px; }
  .bp-facts { grid-template-columns: 1fr; gap: 26px; }
  .bp-facts > div { border-left: 0; border-top: 1px solid var(--ink-12); padding: 22px 4px 0; }
  .bp-card { height: 380px; border-radius: 20px; }
  .bp-others-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  [data-inview] { opacity: 1; transform: none; transition: none; }
  .bp-bottle, .bp-echo { transform: translate3d(-50%, 0, 0); }
  .bp-echo { transform: none; }
}

/* ── chapters: a big roman numeral in the margin, the text in a calm column ── */
.bp-chapter { display: grid; grid-template-columns: minmax(80px, 1fr) minmax(0, 3.2fr); gap: clamp(20px, 4vw, 70px); max-width: 1240px; margin: 0 auto; padding: clamp(60px, 8vw, 120px) clamp(20px, 5vw, 64px); border-top: 1px solid var(--ink-12); }
.bp-ch-no { margin: 0; position: sticky; top: 110px; align-self: start; }
.bp-ch-no::before { content: attr(data-n); font: italic 400 clamp(56px, 7vw, 120px)/.8 'Playfair Display', serif; color: var(--bp-pig); opacity: .9; }
.bp-ch-title { margin: 0 0 clamp(22px, 3vw, 40px); font: italic 400 clamp(36px, 5vw, 76px)/1 'Playfair Display', serif; letter-spacing: -.025em; }
.bp-lead { margin: 0; max-width: 34ch; font: 400 clamp(20px, 2vw, 30px)/1.45 'Playfair Display', serif; text-wrap: pretty; }
.bp-body { margin: 0 0 1.2em; max-width: 62ch; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.8; color: var(--ink-65); text-wrap: pretty; }
.bp-facts-big { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); margin-top: clamp(30px, 4vw, 54px); }
.bp-fact { display: grid; align-content: start; gap: 12px; padding: clamp(18px, 2.4vw, 30px); border-radius: 22px; background: var(--bp-soft); }
.bp-fact-n { font: italic 400 clamp(34px, 3.6vw, 58px)/1 'Playfair Display', serif; letter-spacing: -.02em; color: var(--bp-pig); }
.bp-fact-t { font-size: 13px; line-height: 1.55; color: var(--ink-65); }

/* reading the bottle: numbered pins on the render, the list beside */
.bp-reading-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.bp-reading-fig { position: relative; margin: 0; border-radius: 28px; background: var(--bp-soft); aspect-ratio: 2 / 3; overflow: hidden; }
.bp-reading-fig img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bp-pin, .bp-pin-n {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--bp-pig); color: #FAFAF7; font: 600 12px/1 'Instrument Sans', sans-serif;
}
.bp-pin { position: absolute; transform: translate(-50%, -50%); box-shadow: 0 0 0 6px color-mix(in srgb, var(--bp-pig) 22%, transparent); animation: bp-pulse 2.8s ease-in-out infinite; }
.bp-pin:nth-child(3) { animation-delay: .4s } .bp-pin:nth-child(4) { animation-delay: .8s } .bp-pin:nth-child(5) { animation-delay: 1.2s }
@keyframes bp-pulse { 0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--bp-pig) 26%, transparent); } 50% { box-shadow: 0 0 0 11px color-mix(in srgb, var(--bp-pig) 6%, transparent); } }
.bp-reading-list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(18px, 2.4vw, 30px); }
.bp-reading-list li { display: grid; grid-template-columns: 30px 1fr; column-gap: 18px; row-gap: 6px; }
.bp-reading-list strong { font: italic 400 clamp(22px, 2vw, 30px)/1.1 'Playfair Display', serif; font-weight: 400; }
.bp-reading-list span:last-child { grid-column: 2; font-size: 15px; line-height: 1.65; color: var(--ink-65); }

/* the craft: one drawing per step */
.bp-craft { margin: 0 0 clamp(26px, 3vw, 44px); max-width: 60ch; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.8; color: var(--ink-65); }
.bp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: clamp(12px, 1.6vw, 20px); counter-reset: st; }
.bp-step { counter-increment: st; position: relative; display: grid; gap: 10px; align-content: start; padding: 22px 20px 24px; border-radius: 22px; border: 1px solid var(--ink-12); }
.bp-step::before { content: counter(st, decimal-leading-zero); position: absolute; top: 16px; right: 18px; font: 500 10px/1 'Instrument Sans', sans-serif; letter-spacing: .2em; color: var(--ink-65); }
.bp-step svg { width: 76px; height: 76px; color: var(--bp-ink); }
.bp-step strong { font: italic 400 24px/1.1 'Playfair Display', serif; font-weight: 400; }
.bp-step span { font-size: 14px; line-height: 1.6; color: var(--ink-65); }
.bp-step.is-in svg { animation: bp-draw 1.4s var(--r-out) both; }
@keyframes bp-draw { from { opacity: 0; transform: scale(.85) rotate(-6deg); } }

/* turn it in your hand */
.bp-3d { max-width: 1240px; margin: 0 auto; padding: clamp(60px, 8vw, 120px) clamp(20px, 5vw, 64px) 0; text-align: center; border-top: 1px solid var(--ink-12); }
.bp-3d-hint { margin: -10px auto 26px; font-size: 14px; color: var(--ink-65); }
.bp-3d-stage { border-radius: 30px; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, #fff 55%, var(--bp-soft)), var(--bp-soft)); }
.bp-3d-stage #vote-lightbox.bv { position: relative; inset: auto; display: block; width: 100%; max-width: none; max-height: none; height: clamp(460px, 70vh, 760px); border: 0; padding: 0; margin: 0; background: transparent; color: var(--bp-ink); }
.bp-3d-stage .bv-shell { padding: 12px clamp(14px, 3vw, 30px) 18px; }
.bp-3d-stage .bv-shell { height: 100%; background: transparent; box-shadow: none; }
.bp-3d-stage .bv-header { display: none; }

@media (max-width: 860px) {
  .bp-chapter { grid-template-columns: 1fr; gap: 6px; }
  .bp-ch-no { position: static; }
  .bp-ch-no::before { font-size: 54px; }
  .bp-facts-big { grid-template-columns: 1fr; }
  .bp-reading-grid { grid-template-columns: 1fr; }
  .bp-reading-fig { max-width: 420px; width: 100%; margin: 0 auto; }
  .bp-3d-stage .bv { height: 480px; }
}
@media (prefers-reduced-motion: reduce) { .bp-pin, .bp-step.is-in svg { animation: none; } }

/* the 3D viewer's controls in the bottle's own colours (the page defines no --green) */
body.bp { --green: var(--bp-pig); }
.bp-3d-stage .bv-views button { color: var(--bp-ink); }
.bp-3d-stage .bv-views button[aria-pressed="true"] { background: var(--bp-ink); color: var(--bp-paper); }
.bp-3d-stage .bv-modes button { color: var(--ink-65); }
.bp-3d-stage .bv-modes button[aria-pressed="true"] { color: var(--bp-ink); }
.bp-3d-stage .bv button:disabled { opacity: .45; }
@media (hover: hover) { .bp-3d-stage .bv button:not(:disabled):hover { color: var(--bp-pig); border-color: var(--bp-pig); } .bp-3d-stage .bv-views button[aria-pressed="true"]:hover { color: var(--bp-paper); } }

/* phones: the gallery stacks, each picture whole; spacing tightened, not cramped */
@media (max-width: 760px) {
  .bp-track { display: grid; gap: 14px; overflow: visible; padding: 0 16px; scroll-snap-type: none; }
  .bp-card { height: auto; width: 100%; border-radius: 18px; }
  .bp-card img, .bp-card-wide img { width: 100%; height: auto; }
  .bp-card-studio, .bp-track > .bp-card:last-child { display: none; }
  .bp-story { padding: 28px 22px 44px; gap: 18px; }
  .bp-chapter { padding: 44px 20px; }
  .bp-ch-title { font-size: clamp(32px, 9vw, 42px); margin-bottom: 16px; }
  .bp-lead { font-size: 19px; }
  .bp-facts-big { margin-top: 22px; gap: 10px; }
  .bp-fact { padding: 16px 18px; grid-template-columns: auto 1fr; align-items: baseline; gap: 14px; }
  .bp-fact-n { font-size: 30px; }
  .bp-reading-list { gap: 16px; }
  .bp-steps { grid-template-columns: 1fr 1fr; gap: 10px; }
  .bp-step { padding: 16px 14px 18px; }
  .bp-step svg { width: 56px; height: 56px; }
  .bp-step strong { font-size: 20px; }
  .bp-3d { padding: 44px 16px 0; }
  .bp-facts { padding: 0 20px 56px; }
  .bp-actions { padding: 26px 20px 60px; }
  .bp-others { padding: 0 16px 56px; }
  .bp-others-title { font-size: 40px; margin-bottom: 22px; }
}
