/* Julius Meinl — about page (from approved design) */
/* ---------- Tokens ---------- */
:root{
  --beige: #e8e2da;
  --beige-2: #f3efe9;
  --white: #ffffff;
  --red: #cf002c;
  --red-dark: #a8001f;
  --roast: #241411;
  --coffee: #4a2c22;
  --ink: #2a1814;
  --muted: #5f504a;
  --line: #d9d0c5;
  --gold: #d9b27c;
  --cream: #fcf8f3;
  --on-dark: rgba(252,248,243,.78);
  --container: 86rem;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section: clamp(4.5rem, 8vw, 7rem);
  --gap: clamp(1rem, 2vw, 1.5rem);
  --r: 2px;
  --shadow: 0 1px 2px rgba(36,20,17,.04), 0 10px 30px rgba(36,20,17,.07);
  --ease: cubic-bezier(.16,1,.3,1);
}
/* ---------- Base ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: 5rem; }
body{ margin: 0; background: var(--beige); color: var(--ink); font: 400 1rem/1.6 Pluto, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img{ display: block; max-width: 100%; }
a{ color: inherit; }
p, figure, blockquote{ margin: 0; }
h1, h2, h3, h4{ margin: 0; line-height: 1.08; letter-spacing: -.02em; font-weight: 700; }
ul{ margin: 0; padding: 0; list-style: none; }
::selection{ background: var(--red); color: #fff; }
:focus-visible{ outline: 2px solid var(--red-dark); outline-offset: 3px; }
.on-dark :focus-visible, .red-box :focus-visible, .cta-band :focus-visible{ outline-color: #fff; }
.container{ width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section{ padding-block: var(--section); position: relative; }
.eyebrow{ margin-bottom: .9rem; color: var(--red); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; display: flex; align-items: center; gap: .9em; }
.eyebrow::before{ content: ""; width: 2.6em; height: 1px; background: currentColor; }
.lead{ margin-top: 1.1rem; max-width: 34rem; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); }
.on-dark{ color: var(--cream); }
.on-dark .eyebrow{ color: var(--gold); }
.on-dark .lead{ color: var(--on-dark); }
/* ---------- Buttons ---------- */
.btn{ position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.1rem; padding: .8rem 1.5rem; border: 1.5px solid transparent; border-radius: var(--r); font: 700 .98rem/1 Pluto, system-ui, sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .35s, color .35s var(--ease), border-color .35s, transform .2s var(--ease); }
.btn:active{ transform: scale(.98); }
.btn-primary{ background: var(--red); color: #fff; }
.btn-primary::before{ content: ""; position: absolute; inset: 0; z-index: -1; background: var(--roast); transform: translateY(101%); transition: transform .45s var(--ease); }
.btn-primary:hover{ background: var(--red); }
.btn-primary:hover::before{ transform: none; }
.btn-outline{ border-color: rgba(252,248,243,.7); color: var(--cream); }
.btn-outline:hover{ background: var(--cream); color: var(--roast); border-color: var(--cream); }
.btn-light{ background: #fff; color: var(--red); }
.btn-light:hover{ background: var(--roast); color: #fff; }
.btn-row{ display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.text-link{ display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--red); text-decoration: none; width: max-content; }
.text-link:hover{ text-decoration: underline; text-underline-offset: .22em; }
body::after{ content: ""; position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: .06; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* ---------- Hero (dark, like the contact page) ---------- */
.hero{ position: relative; isolation: isolate; overflow: hidden; background: var(--roast); min-height: clamp(36rem, 84vh, 46rem); display: flex; align-items: center; padding-block: clamp(5rem, 9vw, 7rem); }
.hero-bg{ position: absolute; inset: 0 0 0 auto; width: 62%; z-index: -2; -webkit-mask-image: linear-gradient(to left, #000 55%, transparent 96%); mask-image: linear-gradient(to left, #000 55%, transparent 96%); }
.hero-bg img{ width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; animation: slowzoom 16s var(--ease) both; }
@keyframes slowzoom{ from { transform: scale(1.07); } to { transform: scale(1); } }
.hero::before{ content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--roast) 0%, var(--roast) 34%, rgba(36,20,17,.72) 46%, rgba(36,20,17,.18) 62%, rgba(36,20,17,.25) 100%),
              linear-gradient(0deg, rgba(36,20,17,.55) 0%, rgba(36,20,17,0) 26%); }
.hero-inner{ position: relative; width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.hero-copy{ max-width: 40rem; }
.hero h1{ color: var(--cream); font-size: clamp(3.4rem, 8vw, 7rem); letter-spacing: -.045em; line-height: .95; }
.hero .lead{ font-size: clamp(1.15rem, 1.7vw, 1.4rem); max-width: 32rem; }
/* the flipping word: "us." → "Julius Meinl." */
.flip{ display: inline-grid; color: var(--red); }
.flip > span{ grid-area: 1 / 1; display: inline-block; transition: transform .85s var(--ease), opacity .55s; will-change: transform; }
.flip .b{ transform: rotateX(-88deg) translateY(.18em); transform-origin: bottom; opacity: 0; }
.flip.swapped .a{ transform: rotateX(88deg) translateY(-.18em); transform-origin: top; opacity: 0; }
.flip.swapped .b{ transform: none; opacity: 1; }
@media (max-width: 1024px){.hero{ display: block; min-height: 0; padding-top: 0; }
.hero-bg{ position: relative; inset: auto; width: 100%; height: clamp(16rem, 52vw, 26rem); -webkit-mask-image: none; mask-image: none; }
.hero-inner{ margin-top: -2.5rem; }

}
/* ---------- Intro + stats ---------- */
.intro{ text-align: center; }
.intro .eyebrow{ justify-content: center; }
.intro .eyebrow::after{ content: ""; width: 2.6em; height: 1px; background: currentColor; }
.intro h2{ font-size: clamp(2.4rem, 4.6vw, 3.7rem); letter-spacing: -.035em; max-width: 58rem; margin-inline: auto; text-wrap: balance; }
.intro p{ max-width: 44rem; margin: 1.25rem auto 0; color: var(--muted); font-size: 1.1rem; }
.stats{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 62rem; margin: clamp(2.25rem, 4vw, 3.25rem) auto 0; border-top: 1px solid rgba(42,24,20,.18); }
.stats > div{ padding: 1.5rem .5rem 0; }
.stats b{ display: block; font-size: clamp(1.9rem, 3.4vw, 3rem); letter-spacing: -.03em; line-height: 1; color: var(--red); }
.stats small{ display: block; margin-top: .55rem; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 640px){.stats{ grid-template-columns: repeat(2, 1fr); }
 }
/* ---------- Red box (signature block) ---------- */
.red-box{ position: relative; isolation: isolate; overflow: hidden; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 1 / 1; padding: clamp(1.75rem, 3.2vw, 3rem); background: var(--red); color: #fff; box-shadow: 0 34px 60px -34px rgba(90,0,20,.55), 0 14px 26px -16px rgba(90,0,20,.35); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.red-box:hover{ transform: translateY(-5px); box-shadow: 0 48px 80px -36px rgba(90,0,20,.6), 0 18px 30px -16px rgba(90,0,20,.4); }
.red-box::before{ content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,.13) 46%, rgba(255,255,255,.26) 50%, rgba(255,255,255,.13) 54%, transparent 68%); transform: translateX(-130%); animation: rbshine 7s 2.5s var(--ease) infinite; }
@keyframes rbshine{ 0% { transform: translateX(-130%); } 40%, 100% { transform: translateX(130%); } }
.red-box::after{ content: ""; position: absolute; inset: auto -8% -14% auto; width: 82%; aspect-ratio: 1; z-index: -1; background: rgba(255,255,255,.22); -webkit-mask: url(../img/red-portafilter-cup.svg) center / contain no-repeat; mask: url(../img/red-portafilter-cup.svg) center / contain no-repeat; pointer-events: none; }
.red-box h2, .red-box h3{ color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.7rem); line-height: 1.08; }
.red-box p{ margin-top: .9rem; color: rgba(255,255,255,.9); }
.red-box .eyebrow{ color: rgba(255,255,255,.85); }
/* ---------- Feature rows (coffee / tea / culture / service) ---------- */
.feature{ position: relative; }
.feature .container{ display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.feature .ph{ position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--roast); box-shadow: var(--shadow); border: clamp(.9rem, 1.8vw, 1.4rem) solid var(--roast); }
.feature .ph img{ position: absolute; inset: -11% 0; width: 100%; height: 122%; object-fit: cover; will-change: transform; }
.feature.rev .ph{ order: 2; }
.feature h2{ font-size: clamp(2.4rem, 4.6vw, 3.7rem); letter-spacing: -.035em; }
.feature .body p{ margin-top: 1.1rem; color: var(--muted); font-size: 1.08rem; max-width: 32rem; }
.feature .text-link{ margin-top: 1.6rem; }
.dark .feature .body p, .feature.on-dark .body p{ color: var(--on-dark); }
@media (max-width: 860px){.feature .container{ grid-template-columns: 1fr; }
.feature.rev .ph{ order: 0; }

}
/* ---------- Heritage ---------- */
.heritage{ background: var(--white); }
.heritage .container{ display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.heritage .shot{ margin: 0; border: 1px solid var(--line); padding: .7rem; background: var(--beige-2); box-shadow: var(--shadow); }
.heritage .shot img{ width: 100%; height: auto; }
.heritage .shot figcaption{ padding: .8rem .2rem .2rem; font-size: .82rem; color: var(--muted); }
.heritage .red-box{ margin-top: clamp(2rem, 4vw, 3.5rem); margin-bottom: clamp(-6rem, -6vw, -3rem); aspect-ratio: auto; min-height: 22rem; }
.timeline{ margin-top: 1.6rem; border-top: 1px solid var(--line); }
.timeline li{ display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.timeline b{ color: var(--red); font-size: 1.25rem; letter-spacing: -.02em; }
.timeline span{ color: var(--muted); font-size: .98rem; }
@media (max-width: 860px){.heritage .container{ grid-template-columns: 1fr; }
.heritage .red-box{ margin: 0; aspect-ratio: auto; min-height: 15rem; }
 }
/* ---------- Culture (dark) ---------- */
.culture{ background: var(--roast); color: var(--cream); overflow: hidden; position: relative; isolation: isolate; }
.culture::before{ content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50rem 26rem at 100% 0%, rgba(217,178,124,.16), transparent 60%), radial-gradient(40rem 24rem at 0% 100%, rgba(207,0,44,.14), transparent 60%); }
/* ---------- Illustrations (fill the quiet corners) ---------- */
.ill{ position: absolute; z-index: 0; pointer-events: none; width: var(--w, 10rem); height: auto; opacity: 0; transform: rotate(var(--ir, 0deg)) translateY(1rem); transition: opacity 1.4s, transform 1.4s var(--ease); }
.ill.on{ opacity: var(--o, .18); transform: rotate(var(--ir, 0deg)); animation: illbob 9s ease-in-out var(--bd, 0s) infinite alternate; }
@keyframes illbob{ to { translate: 0 -9px; } }
.section > .container{ position: relative; z-index: 1; }
@media (max-width: 1000px){.ill{ display: none; }
 }
/* ---------- Heritage: full-width sketch, text top-right on a darkened patch ---------- */
.heritage{ position: relative; padding-block: 0; background: var(--white); }
.heritage .hbg{ position: relative; margin: 0; overflow: hidden; }
.heritage .hbg img{ width: 100%; height: auto; }
.heritage .hscrim{ position: absolute; inset: 0; pointer-events: none; background: linear-gradient(245deg, rgba(36,20,17,.78) 0%, rgba(36,20,17,.45) 24%, rgba(36,20,17,0) 48%); }
.heritage .hcopy{ position: absolute; z-index: 3; top: clamp(1.5rem, 4vw, 3.5rem); right: var(--gutter); width: min(27rem, 44%); color: var(--cream); }
.heritage .hcopy .eyebrow{ color: var(--gold); }
.heritage .hcopy h2{ color: #fff; font-size: clamp(1.9rem, 3.4vw, 3rem); }
.heritage .hcopy p{ margin-top: .9rem; color: rgba(252,248,243,.92); font-size: .98rem; }
@media (max-width: 860px){.heritage .hbg img{ height: 60svh; }
.heritage .hscrim{ background: linear-gradient(0deg, rgba(36,20,17,.55), rgba(36,20,17,0) 60%); }
.heritage .hcopy{ position: static; width: 100%; padding: 1.5rem var(--gutter) 0; color: var(--ink); }
.heritage .hcopy h2{ color: var(--ink); }
.heritage .hcopy p{ color: var(--muted); }

}
/* ---------- Our history: horizontal timeline pinned while you scroll (scoped to #jm-history) ---------- */
#jm-history{
  --red:#CF002C; --red-d:#A30022; --cream:#F5EDE3; --paper:#FCF8F3; --ink:#1C1314; --blush:#F7DCDD; --line:rgba(28,19,20,.14);
  --display:Pluto,"Trebuchet MS",system-ui,sans-serif; --sans:Pluto,"Trebuchet MS",system-ui,sans-serif;
  --back:cubic-bezier(.34,1.56,.64,1); --out:cubic-bezier(.16,1,.3,1); --io:cubic-bezier(.65,0,.35,1);
}
#jm-history *,#jm-history *::before,#jm-history *::after{box-sizing:border-box}
#jm-history{--jm-fs:clamp(12px,1.111vw,22px);font-size:var(--jm-fs);-webkit-text-size-adjust:100%;scrollbar-width:thin;scrollbar-color:rgba(28,19,20,.28) transparent}
#jm-history{margin:0;background:var(--cream);color:var(--ink);font-family:var(--sans);-webkit-font-smoothing:antialiased;overflow-x:clip}
#jm-history img{display:block;max-width:100%}
#jm-history a{color:inherit;text-decoration:none}
#jm-history button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
#jm-history h1,#jm-history h2,#jm-history h3,#jm-history p{margin:0}
#jm-history{--sp:9em}
#jm-history .label{font-family:var(--sans);font-weight:600;font-size:1em;letter-spacing:.12em;text-transform:uppercase;color:var(--ink);display:flex;align-items:center;justify-content:center;gap:.9em;width:min(46em,100%)}
#jm-history .label::before,#jm-history .label::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,transparent,currentColor);opacity:.28}
#jm-history .label::after{background:linear-gradient(90deg,currentColor,transparent)}
#jm-history .label b{display:inline-grid;place-items:center;min-width:2.3em;height:2.3em;border-radius:50%;background:var(--red);color:var(--paper);font-size:.82em;letter-spacing:0;font-weight:700}
#jm-history .h-big{font-family:var(--display);font-weight:800;text-transform:uppercase;color:var(--red);letter-spacing:-.025em;line-height:.88;font-size:min(4.4em,9svh);text-align:center}
#jm-history .ln{display:block;overflow:hidden;padding-bottom:.16em;margin-bottom:-.16em}
#jm-history .ln>span{display:block;transform:translateY(105%);transition:transform 1s var(--out)}
#jm-history .in .ln>span,#jm-history .ln.in>span{transform:none}
#jm-history .sec-head{position:relative;display:flex;flex-direction:column;align-items:center;gap:1.3em;padding:0 1.25em;margin-bottom:4em;min-height:13em;justify-content:center}
#jm-history .sec-head>.label,#jm-history .sec-head>.h-big{position:relative;z-index:1}
#jm-history .h-big{text-transform:none}
#jm-history .h-big{letter-spacing:-.02em;line-height:1}
#jm-history em,#jm-history i{font-style:normal}
@media (max-width:991px){#jm-history{--jm-fs:1.6vw;font-size:var(--jm-fs)}}
@media (max-width:600px){#jm-history{--jm-fs:3.6vw;font-size:var(--jm-fs)}
#jm-history{--sp:5em}
#jm-history .sec-head{min-height:0;margin-bottom:2.6em}
#jm-history .label{font-size:.85em}
#jm-history .h-big{font-size:2.5em}}
#jm-history .lede{position:relative;z-index:1;max-width:31em;margin:0 auto;text-align:center;font-size:1.2em;line-height:1.45;color:rgba(28,19,20,.68);text-wrap:balance}
#jm-history .sec-head .lede{margin-top:-.2em}
@media (max-width:600px){#jm-history .lede{font-size:1.05em}}
@media (prefers-reduced-motion:reduce){#jm-history *,#jm-history *::before,#jm-history *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;transition-delay:0s!important}}
#jm-history{--coffee:#4A2C20;--espresso:#1F120D;--latte:#EADCCA;--gold:#E0B649}
#jm-history .ill-svg{display:block;width:100%;height:auto;overflow:visible}
#jm-history .ill-svg path[stroke-width]{stroke-width:1.15px}
#jm-history .orn{display:block;width:5.4em;color:var(--coffee);opacity:.7;margin:0 auto -.4em}
#jm-history .tl{position:relative;padding-top:calc(var(--sp) * .7);background:linear-gradient(180deg,var(--cream),var(--latte) 70%,var(--cream))}
#jm-history .tl .sec-head{margin-bottom:0}
#jm-history .tl-pin{position:relative}
#jm-history .tl-stick{position:sticky;top:var(--jm-sticky-top,0px);height:calc(100svh - var(--jm-sticky-top,0px));overflow:hidden;display:flex;flex-direction:column;justify-content:center}
#jm-history .tl-track{display:flex;align-items:flex-start;gap:2.6em;padding:0 9vw;width:max-content;will-change:transform}
#jm-history .tc{flex:none;position:relative;width:20em;display:flex;flex-direction:column;gap:1em;transform-origin:50% 100%;will-change:transform}
#jm-history .tc:nth-child(even){margin-top:5.5em}
#jm-history .tc-y{display:block;font-family:var(--display);font-weight:800;font-size:5.4em;line-height:.84;letter-spacing:-.055em;color:var(--red)}
#jm-history .tc figure{margin:0;position:relative;height:13.5em;border-radius:1em;overflow:hidden;background:var(--paper);box-shadow:0 1em 2em rgba(28,19,20,.08)}
#jm-history .tc figure img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:translateX(var(--px,0%)) scale(1.18)}
#jm-history .tc figure.fit{background:#fff}
#jm-history .tc figure.fit img{object-fit:contain;transform:none;padding:1em}
#jm-history .tc p{font-size:1.06em;line-height:1.42;color:rgba(28,19,20,.76)}
#jm-history .tc p b{color:var(--ink)}
#jm-history .tc.solid{background:var(--red);color:var(--paper);border-radius:1.2em;padding:1.7em 1.6em;min-height:25em;justify-content:space-between;box-shadow:0 1.2em 2.4em rgba(207,0,44,.22)}
#jm-history .tc.solid .tc-y{color:var(--paper)}
#jm-history .tc.solid p{color:rgba(252,248,243,.9)}
#jm-history .tc.solid p b{color:var(--paper)}
#jm-history .tc.paper{background:var(--paper);border-radius:1.2em;padding:1.7em 1.6em;min-height:22em;justify-content:space-between;border:1px solid var(--line)}
#jm-history .tc-mark{width:9em;align-self:flex-start}
#jm-history .tc-mark svg{width:100%;overflow:visible}
#jm-history .tc-mark path{fill:var(--red)}
#jm-history .tc.solid .tc-mark path{fill:var(--paper)}
#jm-history .tc-big{font-family:var(--display);font-weight:800;font-size:8em;line-height:.8;letter-spacing:-.06em;color:var(--paper);opacity:.95}
#jm-history .tc.feat{width:34em;flex-direction:row;gap:1.6em;background:var(--ink);color:var(--paper);border-radius:1.2em;padding:1.4em;align-items:stretch}
#jm-history .tc.feat figure{flex:none;width:14em;height:auto;min-height:19em;background:#2A2122}
#jm-history .tc.feat figure img{filter:grayscale(1) contrast(1.05)}
#jm-history .tc.feat .tx{display:flex;flex-direction:column;justify-content:space-between;gap:1em;padding:.4em .2em}
#jm-history .tc.feat small{font-size:.72em;font-weight:600;letter-spacing:.3em;text-transform:uppercase;color:#E9B9A6}
#jm-history .tc.feat h3{font-family:var(--display);font-weight:700;font-size:2.3em;line-height:.98;letter-spacing:-.03em}
#jm-history .tc.feat p{color:rgba(252,248,243,.78)}
#jm-history .tc.feat .street{display:inline-flex;align-self:flex-start;align-items:center;gap:.6em;background:#fff;color:var(--ink);border-radius:.3em;padding:.4em .8em;font-weight:700;font-size:.9em;border:2px solid var(--ink);box-shadow:0 0 0 2px #fff}
#jm-history .tc.end{width:24em}
#jm-history .tc.end .tc-y{font-size:3.6em;line-height:.92;letter-spacing:-.04em}
#jm-history .tc.end .tc-y b{color:var(--ink)}
#jm-history .tl-rail{position:relative;margin:3.2em 9vw 0;height:2px;background:rgba(28,19,20,.12);border-radius:2px}
#jm-history .tl-fill{position:absolute;inset:0;background:var(--red);transform-origin:0 50%;transform:scaleX(var(--f,0));border-radius:2px}
#jm-history .tl-rail span{position:absolute;top:.9em;transform:translateX(-50%);font-size:.74em;font-weight:700;letter-spacing:.06em;color:rgba(28,19,20,.38);transition:color .3s}
#jm-history .tl-rail span::before{content:"";position:absolute;left:50%;top:-1.25em;width:.55em;height:.55em;margin-left:-.275em;border-radius:50%;background:var(--cream);box-shadow:inset 0 0 0 2px rgba(28,19,20,.25);transition:background .3s,box-shadow .3s}
#jm-history .tl-rail span.on{color:var(--red)}
#jm-history .tl-rail span.on::before{background:var(--red);box-shadow:none}
@media (max-width:600px){#jm-history .tl-rail span{display:none}
#jm-history .tc{width:17em}
#jm-history .tc.feat{width:19em;flex-direction:column}
#jm-history .tc.feat figure{width:100%;min-height:12em}
#jm-history .tc:nth-child(even){margin-top:3em}}
#jm-history .sec-head>.orn{position:relative;z-index:1}
@media (max-width:1279px){#jm-history #since .tx small{font-size:max(11px,.72em)}
#jm-history #since .street{font-size:max(11px,.9em)}
#jm-history .label b{font-size:max(11px,.82em)}}
@media (max-width:700px){#jm-history .label{font-size:max(11px,.85em)}}
@media (min-width:1280px) and (max-width:1439px){#jm-history #since .tx small{font-size:max(11px,.72em)}}
@media (max-width:1279px){#jm-history #since .tl-rail span{font-size:max(11px,.74em)}}
@media (min-width:1280px) and (max-width:1439px){#jm-history #since .tl-rail span{font-size:max(11px,.74em)}}

/* ---------- Complete Coffee Solution (replaces "Coffee expertise") ---------- */
.solution .container{ align-items: center; }
.solution h2{ color: var(--red); font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1.02; letter-spacing: -.04em; }
.solution .body p{ max-width: 34rem; }
.solution .btn{ margin-top: 2rem; }

/* ---------- Hospitality: full red section, white frame with cup + beans corners (the old companies-wall border) ---------- */
.hospitality{ background: var(--red); color: #fff; }
.hospitality .ill{ display: none; }
.hwrap{ --cw: 9rem; --bw: 7rem; --line: rgba(255,255,255,.92);
  position: relative; background: var(--red); border: 1.2px solid var(--line);
  margin: calc(var(--cw) * .35) calc(var(--bw) * .15) calc(var(--bw) * .15) calc(var(--cw) * .25);
  padding: clamp(3.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem) clamp(4.5rem, 7vw, 6rem); text-align: center; }
.hwrap .pcorner{ position: absolute; display: block; z-index: 1; pointer-events: none; background: var(--red); }
.hwrap .pcorner img{ position: absolute; display: block; max-width: none; filter: brightness(0) invert(1); }
.hwrap .pcup{ left: -1.5px; top: -1.5px; width: calc(var(--cw) * 70 / 224); height: calc(var(--cw) * 144 / 180 * .8035); }
.hwrap .pcup img{ width: var(--cw); height: calc(var(--cw) * 180 / 224); left: calc(var(--cw) * -47 / 224); top: calc(var(--cw) * -2 / 224 * 1.2); }
.hwrap .pbeans{ right: -1.5px; bottom: -1.5px; width: calc(var(--bw) * 121 / 168); height: calc(var(--bw) * 148 / 168); }
.hwrap .pbeans img{ width: var(--bw); height: calc(var(--bw) * 160 / 168); right: calc(var(--bw) * -20 / 168); bottom: calc(var(--bw) * -16 / 168); }
.hwrap h2{ position: relative; z-index: 2; color: var(--cream); font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.12; letter-spacing: -.025em; margin-bottom: clamp(2.2rem, 4.5vw, 3.6rem); }
.hcols{ position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3.5vw, 3rem); align-items: start; max-width: 62rem; margin-inline: auto; }
.hcols figure{ overflow: hidden; aspect-ratio: 1.23 / 1; background: rgba(255,255,255,.1); }
.hcols img{ width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.hcols li:hover img{ transform: scale(1.05); }
.hcols p{ margin: 1.25rem auto 0; max-width: 17rem; color: var(--cream); font-size: clamp(1rem, 1.35vw, 1.2rem); font-weight: 700; line-height: 1.3; letter-spacing: -.005em; text-wrap: balance; }
@media (max-width: 860px){
  .hwrap{ --cw: 6.5rem; --bw: 5rem; padding-inline: 1.25rem; }
}
@media (max-width: 700px){
  .hcols{ grid-template-columns: 1fr; max-width: 22rem; gap: 2rem; }
}
@media (max-width: 520px){ .hwrap h2{ padding-top: calc(var(--cw) * .35); } }
/* ---------- CTA band ---------- */
.cta-band{ position: relative; isolation: isolate; overflow: hidden; background: var(--red); /* solid, edge-to-edge red */ color: #fff; text-align: center; padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.cta-band h2{ color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.6rem); letter-spacing: -.035em; max-width: 22ch; margin-inline: auto; }
.cta-band p{ max-width: 36rem; margin: 1rem auto 0; color: rgba(255,255,255,.9); font-size: 1.08rem; }
.cta-band .btn{ margin-top: 2rem; }
/* ---------- Reveal + word-rise headings ---------- */
.reveal{ opacity: 0; transform: translateY(1.5rem); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in{ opacity: 1; transform: none; }
.sw{ display: inline-block; overflow: hidden; vertical-align: top; padding: .06em .03em .14em; margin: -.06em -.03em -.14em; }
.sw > i{ display: inline-block; font-style: normal; transform: translateY(112%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * .05s); }
.split.in .sw > i{ transform: none; }
@media (prefers-reduced-motion: reduce){html{ scroll-behavior: auto; }
*, *::before, *::after{ animation: none !important; transition: none !important; }
.reveal{ opacity: 1; transform: none; }
.ill{ opacity: var(--o, .18); transform: rotate(var(--ir, 0deg)); }
.flip .b{ position: static; }

}

