:root { --ink: #2b1a12; --honey: #ffe27a; --amber: #e9a03a; }
* { box-sizing: border-box; }
html { scroll-behavior: auto; overflow-anchor: none; }
body { margin: 0; font-family: Archivo, "Helvetica Neue", Arial, sans-serif; color: #fff; background: #2b1a12; overflow-x: hidden; }
a { color: inherit; }
.grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07;
  /* PERF: no mix-blend-mode. Multiplying grey noise n at opacity o == painting black at alpha o*(1-n) with normal blending,
     so the noise tile is pre-baked as black-with-alpha and the compositor no longer re-blends the whole viewport every frame */
  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%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -.267 -.267 -.267 0 .53'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* scenes */
.jscene { position: relative; background: var(--bg); }
.jstage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; overflow: clip; background: var(--bg); }
.jstage > svg.art { position: absolute; inset: 0; width: 100%; height: 100%; }
.jstage .layer { position: absolute; inset: 0; }

/* label overlay (K.label) */
.kb-label { position: absolute; z-index: 5; text-decoration: none; font-family: "Archivo Black", Archivo, sans-serif; font-size: clamp(34px, 4.2vw, 64px); line-height: .95; letter-spacing: -.01em; text-transform: uppercase; max-width: 32vw; }
.kb-label i { font-style: normal; display: inline-block; transition: transform .3s; }
.kb-label:hover i { transform: translateX(8px); }
.kb-label small { display: block; margin-top: 14px; font: 600 clamp(14px, 1.15vw, 18px)/1.45 Archivo, sans-serif; text-transform: none; letter-spacing: 0; max-width: 26em; }

/* ===== service line (K.svc): the one clear "what he does here" label per service scene =====
   kicker (Step 0X · brew step) + service title + one plain sentence, on a paper slip so it reads over any art.
   Desktop: the scene places it (left/top). Portrait phones: full-width slip at the top, under the header. */
.kb-label.svc { left: 6%; top: 14%; z-index: 6 !important; max-width: min(440px, 34vw); padding: 18px 22px 18px; border-radius: 4px;
  font-size: clamp(28px, 2.8vw, 44px); color: var(--svc-ink, #2b1a12); background: var(--svc-bg, rgba(255,250,240,.94)); text-shadow: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 3px 6px 0 rgba(20,10,0,.06), 10px 20px 34px rgba(20,10,0,.24); }
.kb-label.svc::before { content: ""; position: absolute; left: 50%; top: -8px; width: 70px; height: 18px; margin-left: -35px; rotate: -2deg; background: rgba(242,193,78,.75); } /* tape */
.svc-nw { white-space: nowrap; }
.svc-kick { display: block; margin-bottom: 10px; font: 800 12.5px/1.2 Archivo, sans-serif; letter-spacing: .16em; text-transform: uppercase; font-style: normal; color: var(--svc-kick, #b4481f); }
.kb-label.svc small { margin-top: 10px; max-width: 30em; color: var(--svc-sub, #4a3424); font-size: clamp(14px, 1.1vw, 17px); }
[data-theme="dark"] .kb-label.svc { --svc-bg: rgba(24,15,10,.9); --svc-ink: #fff6e2; --svc-sub: #ecdcc6; --svc-kick: #ffb366; text-shadow: none;
  box-shadow: 0 0 0 1px rgba(255,214,150,.14) inset, 10px 20px 34px rgba(0,0,0,.4); }
[data-theme="dark"] .kb-label.svc::before { background: rgba(242,193,78,.45); }
@media (max-height: 500px) and (min-aspect-ratio: 1/1) {
  .kb-label.svc { font-size: 22px; padding: 10px 13px 11px; max-width: 32vw; }
  .kb-label.svc small { font-size: 11.5px; margin-top: 6px; } .svc-kick { font-size: 9.5px; margin-bottom: 5px; } .kb-label.svc::before { display: none; }
}
@media (max-aspect-ratio: 1/1) {
  .kb-label.svc { left: 14px !important; right: 14px !important; top: 76px !important; bottom: auto !important; max-width: none !important; font-size: 27px !important; padding: 13px 16px 13px; }
  .kb-label.svc small { font-size: 14px !important; margin-top: 7px !important; max-width: none; } .svc-kick { font-size: 11px; margin-bottom: 7px; }
}

/* header */
.jh { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 28px; padding: 22px 5vw; transition: color .4s; color: #fff; }
.jh[data-tone="dark"] { color: var(--ink); }
.jh-logo { font-family: "Archivo Black", sans-serif; font-size: 34px; letter-spacing: -1.5px; text-decoration: none; color: #ffe39a; }
.jh-logo b { color: currentColor; font-weight: 400; }
.jh[data-tone="dark"] .jh-logo b { color: var(--ink); }
.jh[data-tone="dark"] .jh-logo { color: #b8650f; }
.jh-menu { display: flex; gap: 26px; font: 800 13px Archivo, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.jh-menu a { text-decoration: none; opacity: .9; } .jh-menu a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.jh-cta { margin-left: auto; display: flex; gap: 10px; }
.pill { padding: 10px 18px; font: 800 13px Archivo, sans-serif; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; box-shadow: 4px 8px 16px rgba(0,0,0,.18); }
.pill.y { background: var(--honey); color: #6a4300; } .pill.w { background: #fff; color: #c46a1f; }
.pill, .jh-menu a { white-space: nowrap; }
.jh-burger { display: none; border: 0; background: rgba(43,26,18,.82); color: #ffe39a; font: 800 12px Archivo, sans-serif; letter-spacing: .12em; text-transform: uppercase; padding: 10px 14px; cursor: pointer; }
.pill.w { color: #a4520f; }
/* soft scrim so the header stays readable over busy art */
.jh::before { content: ""; position: absolute; inset: 0 0 -30px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(20,12,6,.28), transparent); transition: opacity .4s; }
.jh[data-tone="dark"]::before { background: linear-gradient(180deg, rgba(255,248,232,.55), transparent); }
@media (max-width: 1100px) {
  .jh-menu { display: none; position: absolute; top: 100%; right: 20px; flex-direction: column; gap: 0; background: #2b1a12; color: #fff8ec; padding: 8px 0; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
  .jh-menu a { padding: 14px 22px; }
  .jh.open .jh-menu { display: flex; }
  .jh-burger { display: block; margin-left: auto; } .jh-cta { margin-left: 0; }
  .jh { padding: 16px 20px; gap: 12px; } .jh-logo { font-size: 26px; } .pill.w { display: none; }
}
@media (max-width: 420px) { .pill.y { padding: 10px 12px; font-size: 11px; } }
@media (max-height: 500px) { .jh { padding: 8px 20px; } .jh-logo { font-size: 22px; } .pill { padding: 6px 12px; } .kb-label { font-size: 28px; } }
a:focus-visible, button:focus-visible, textarea:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid #ffe27a; outline-offset: 3px; }
[data-theme="dark"] .jh[data-tone="dark"] { color: #fff; }
[data-theme="dark"] .jh[data-tone="dark"] .jh-logo { color: #ffe39a; }
[data-theme="dark"] .jh[data-tone="dark"] .jh-logo b { color: #fff; }
[data-theme="dark"] .jh::before { background: linear-gradient(180deg, rgba(8,6,14,.5), transparent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* progress keg */
.jprog { position: fixed; z-index: 40; right: 18px; top: 50%; width: 10px; height: 160px; margin-top: -80px; border-radius: 6px; background: rgba(0,0,0,.18); overflow: hidden; }
@media (max-width: 700px) { .jprog { right: 4px; width: 4px; } }
.jprog i { position: absolute; inset: 0; background: linear-gradient(#fff6e2 0 10px, #f2c14e 10px); transform: scaleY(0); transform-origin: 50% 100%; }

/* loader */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--amber); display: grid; place-content: center; text-align: center; gap: 18px; }
.loader-logo { font-family: "Archivo Black", sans-serif; font-size: 64px; letter-spacing: -2px; color: var(--honey); } .loader-logo b { color: #fff; font-weight: 400; }
.loader p { margin: 0; font: 600 16px/1.5 Archivo, sans-serif; color: #fff8ec; }
.loader-pint { position: relative; margin: 18px auto 0; width: 110px; height: 150px; background: rgba(255,255,255,.28); clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%); filter: drop-shadow(14px 22px 14px rgba(0,0,0,.25)); }
.loader-pint .beer { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: #f2c14e; }
.loader-pint .foam { position: absolute; left: 0; right: 0; top: 18%; height: 16px; background: #fff6e2; border-radius: 8px; opacity: .0; }
.loader-pct { font: 800 14px Archivo, sans-serif; letter-spacing: .12em; color: #fff; }

/* (reduce-motion no longer flattens the scenes: the scroll story is visitor-driven and runs for everyone) */


/* ===== v2: design box + photoreal sprites + cursor light ===== */
:root { --lx: 1; --ly: 1; --mx: 50vw; --my: 40vh; }
.kbox { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; transform-origin: 0 0; }
/* no blanket will-change: at DPR2 a 1100px sprite + drop-shadow layer can exceed tile limits and fail to paint.
   GSAP (force3D:auto) still promotes a sprite while it is actually tweening; scenes add will-change only where needed. */
.ks { position: absolute; display: block; height: auto; user-select: none; -webkit-user-drag: none; }
.kat { position: absolute; }
.d1 { filter: drop-shadow(calc(var(--lx) * 2px) calc(var(--ly) * 3px) 2px rgba(20,10,0,.32)) drop-shadow(calc(var(--lx) * 10px) calc(var(--ly) * 16px) 12px rgba(20,10,0,.22)); }
.d2 { filter: drop-shadow(calc(var(--lx) * 3px) calc(var(--ly) * 4px) 3px rgba(20,10,0,.34)) drop-shadow(calc(var(--lx) * 22px) calc(var(--ly) * 34px) 22px rgba(20,10,0,.26)); }
.d3 { filter: drop-shadow(calc(var(--lx) * 4px) calc(var(--ly) * 6px) 4px rgba(20,10,0,.34)) drop-shadow(calc(var(--lx) * 40px) calc(var(--ly) * 60px) 34px rgba(20,10,0,.28)); }
.ktag { display: inline-block; position: relative; padding: 8px 14px 8px 22px; isolation: isolate; color: #3a2414; font: 800 14px Archivo, sans-serif; letter-spacing: .04em; text-transform: uppercase; filter: drop-shadow(calc(var(--lx) * 6px) calc(var(--ly) * 9px) 6px rgba(0,0,0,.25)); }
.ktag::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tc); clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%); }
.ktag::before { content: ""; position: absolute; left: 9px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: rgba(0,0,0,.35); }

/* ===== bulb pull-cord (from the original site) ===== */
.cord-spot { width: 36px; height: 52px; flex: none; margin-left: 10px; }
.jh-cta { margin-left: auto; }

/* ===== Stout mode: lights out, your cursor is a lantern ===== */
.night { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0;
  background:
    radial-gradient(circle 240px at var(--mx) var(--my), rgba(255,190,110,.16) 0, rgba(255,170,90,.06) 45%, transparent 70%),
    radial-gradient(circle 300px at var(--mx) var(--my), transparent 0, rgba(8,6,18,.35) 55%, rgba(6,4,14,.78) 100%);
}
[data-theme="dark"] .night { opacity: 1; }
[data-theme="dark"] .jh { color: #fff; }
[data-theme="dark"] .kb-label { text-shadow: 0 2px 18px rgba(0,0,0,.6); }

/* stage text sits above the night layer so it stays readable */
.jstage > :not(.kbox):not(.night):not(svg) { z-index: 5; }
[data-theme="dark"] .jstage { --nightText: 1; }
[data-theme="dark"] .h-title, [data-theme="dark"] .h-txt { text-shadow: 0 2px 20px rgba(0,0,0,.45); }

/* ===== stacked paper sheets: torn top edge + the shade that falls on the sheet underneath ===== */
.jscene { isolation: isolate; }
/* while a sheet sinks back (scale .94, journey.js) its section shows round the edges: paint that gap in the same
   half-shaded tone the sheet gets (jshade #140a04 @ .5) instead of a bright --bg strip at the top and sides */
.jscene { background: color-mix(in srgb, var(--bg) 50%, #140a04); }
.jtear { position: absolute; left: 0; right: 0; top: -21px; height: 22px; z-index: 3; pointer-events: none; background: var(--bg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 22' preserveAspectRatio='none'%3E%3Cpath d='M0 22V12l14-5 11 6 16-8 9 7 18-4 12 5 15-9 10 8 20-6 8 4 17-7 13 9 11-5 16 3 9-8 19 6 12-3 14 7 10-9 18 6 15-4 9 5 17-8 12 7 20-5 11 4 13-7 16 8 10-4 18 2 9-8 14 6 19-5 11 7 16-6 12 5 15-9 10 8 17-4 13 6 18-7 9 5 16-3 8 10V22Z'/%3E%3C/svg%3E") 0 0 / 600px 22px repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 22' preserveAspectRatio='none'%3E%3Cpath d='M0 22V12l14-5 11 6 16-8 9 7 18-4 12 5 15-9 10 8 20-6 8 4 17-7 13 9 11-5 16 3 9-8 19 6 12-3 14 7 10-9 18 6 15-4 9 5 17-8 12 7 20-5 11 4 13-7 16 8 10-4 18 2 9-8 14 6 19-5 11 7 16-6 12 5 15-9 10 8 17-4 13 6 18-7 9 5 16-3 8 10V22Z'/%3E%3C/svg%3E") 0 0 / 600px 22px repeat-x; }
.jtear::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22px; background: linear-gradient(rgba(255,255,255,.35), transparent 60%); }
.jscene + .jscene::before { content: ""; position: absolute; left: 0; right: 0; top: -40px; height: 40px; z-index: 2; pointer-events: none; background: linear-gradient(transparent, rgba(20,10,0,.28)); }
.jshade { position: absolute; inset: 0; z-index: 7; background: #140a04; opacity: 0; pointer-events: none; }

/* the bulb is retired: the header pint is the light switch */
.cord-spot { width: 0 !important; margin: 0 !important; }
.pint { margin-left: 14px; }

/* PERF: promoted only while the sheet is being covered (journey.js toggles .jcover) */
.jstage.jcover { will-change: transform; }
.jstage.jcover > .jshade { will-change: opacity; }

/* header must always fit (the pint is the light switch, it can never be pushed off-screen) */
.jh .pint, .jh-cta, .jh-logo { flex: none; }
.jh-menu { min-width: 0; }
@media (min-width: 1101px) and (max-width: 1560px) {
  .jh { padding-left: 3vw; padding-right: 3vw; gap: 18px; }
  .jh-logo { font-size: 30px; }
  .jh-menu { gap: 15px; font-size: 12px; letter-spacing: .06em; }
  .jh .pill.w { display: none; }          /* "Tap list" duplicates "Recent work" in the menu */
  .jh .pill { padding-left: 14px; padding-right: 14px; }
}
@media (min-width: 1101px) and (max-width: 1240px) { .jh-menu a[href="stores.html"] { display: none; } }

/* header = logo + "Order a round" + "Tap list" + the pint switch (no menu) */
.jh-cta { margin-left: auto !important; }
.jh .pill.w { display: inline-block !important; }
@media (max-width: 480px) { .jh .pill { padding: 9px 11px; font-size: 10.5px; letter-spacing: .06em; } .jh-cta { gap: 6px; } }
@media (max-width: 360px) { .jh .pill.w { display: none !important; } }

/* ---------- animated logo: dark "code", "brew" pours full of beer, grows a foam head that overflows the w and drips ---------- */
.jh-logo { display: inline-flex; line-height: 0; --lg-code: #fff6e2; --lg-beer: #f2c14e; --lg-foam: #fffaf0; --lg-edge: rgba(120,80,30,.25); --lg-empty: rgba(255,255,255,.2); }
.jh[data-tone="dark"] .jh-logo { --lg-code: #2b1a12; --lg-beer: #e9a03a; --lg-edge: #e2d2ae; --lg-empty: rgba(43,26,18,.13); }
[data-theme="dark"] .jh .jh-logo { --lg-code: #fff; --lg-beer: #f2c14e; --lg-foam: #f3e6cf; --lg-edge: transparent; --lg-empty: rgba(255,255,255,.16); }
.jh-logo .lg { height: 1.9em; width: auto; overflow: visible; display: block; }
.lg-empty { fill: var(--lg-empty); } .lg-code { fill: var(--lg-code); } .lg-beer { fill: var(--lg-beer); }
.lg-foam { fill: var(--lg-foam); } .lg-edge { stroke: var(--lg-edge); stroke-width: 1.5px; } .lg-b { fill: var(--lg-foam); opacity: .85; }
.lg-lvl { transform: translateY(120px); animation: lg-fill 1.7s cubic-bezier(.45,0,.25,1) 1.6s forwards; }
.lg-wv { animation: lg-wave 1.5s linear infinite; }
.lg-crown { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; animation: lg-crown .7s ease-out 3.1s forwards; }
.lg-br { animation: lg-breathe 2.4s ease-in-out 3.8s infinite; }
.lg-d { transform-box: fill-box; transform-origin: 50% 0; animation: lg-dr 2.6s ease-in-out infinite; }
.lg-run { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); animation: lg-run 7s ease-in 3.4s infinite; }
.lg-drop { opacity: 0; transform-box: fill-box; animation: lg-drop 7s ease-in 3.4s infinite; }
.lg-spl { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; animation: lg-spl 7s ease-out 3.4s infinite; }
.lg-b { transform-box: fill-box; animation: lg-rise 2.4s linear infinite; }
.jh-logo.repour .lg-lvl { animation: lg-fill 1.5s cubic-bezier(.45,0,.25,1) forwards; }
.jh-logo.repour .lg-crown { animation: lg-crown .7s ease-out 1.3s both; }
@keyframes lg-fill { to { transform: translateY(0); } }
@keyframes lg-wave { to { transform: translateX(-120px); } }
@keyframes lg-crown { 0% { opacity: 0; transform: translateY(16px) scaleY(.3); } 70% { opacity: 1; transform: translateY(-3px) scaleY(1.08); } 100% { opacity: 1; transform: none; } }
@keyframes lg-breathe { 50% { transform: translateY(-2px); } }
@keyframes lg-dr { 50% { transform: scaleY(1.6); } }
@keyframes lg-run { 0%, 10% { transform: scaleY(0); } 40%, 85% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
@keyframes lg-drop { 0%, 42% { transform: translateY(0); opacity: 0; } 45% { opacity: 1; } 60% { transform: translateY(62px); opacity: 1; } 62%, 100% { transform: translateY(62px); opacity: 0; } }
@keyframes lg-spl { 0%, 59% { transform: scale(0); opacity: 0; } 62% { transform: scale(1); opacity: 1; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
@keyframes lg-rise { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: .85; } 100% { transform: translateY(-90px); opacity: 0; } }
/* phones: logo + both pills + the pint must fit on one row */
@media (max-width: 480px) { .jh { padding-left: 14px !important; padding-right: 14px !important; gap: 8px !important; } .jh-logo .lg { height: 36px; } .jh-cta { gap: 5px !important; } }
@media (max-width: 380px) { .jh-logo .lg { height: 32px; } }
