/* Team Boom — sage editorial style. Tokens: bg #e5ebda, ink #44394c, red #c22112, lines #c0c3b6 */
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:#e5ebda}
body{font-family:'Space Grotesk',sans-serif;color:#44394c;font-size:16px;line-height:1.5;letter-spacing:0.02em}
a{color:#44394c;text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%}
button{font-family:'Space Grotesk',sans-serif}
::placeholder{color:rgba(68,57,76,0.5)}
.anton{font-family:'Anton',sans-serif;text-transform:uppercase}
.wrap{max-width:1440px;margin:0 auto;padding:0 clamp(14px,3vw,20px)}
.wrap-narrow{max-width:1100px;margin:0 auto;padding:0 clamp(14px,3vw,20px)}

/* Header */
.tb-head{display:flex;align-items:center;justify-content:space-between;gap:14px 20px;padding:18px 0;flex-wrap:wrap;position:sticky;top:0;z-index:30;background:#e5ebda;transition:transform .28s ease}
.tb-head.hd-hide{transform:translateY(-100%)}
.tb-brand{display:flex;align-items:center;gap:12px}
.tb-brand:hover{text-decoration:none}
.tb-brand img{width:36px;height:auto;display:block}
.tb-brand span{font-family:'Anton',sans-serif;font-size:19px;letter-spacing:0.04em;text-transform:uppercase}
.tb-brand .star{color:#c22112}
.tb-nav{display:flex;gap:12px 26px;font-size:15px;flex-wrap:wrap}
.tb-meta{display:flex;align-items:center;gap:20px;font-size:13px}
.tb-lang{background:none;border:1px solid #b0b2a9;border-radius:4px;color:#44394c;font-size:13px;letter-spacing:0.05em;cursor:pointer;padding:4px 10px;display:inline-block}
.tb-lang:hover{text-decoration:none;background:rgba(68,57,76,0.06)}
.tb-burger{background:#44394c;border:none;border-radius:4px;color:#fff;font-size:17px;line-height:1;cursor:pointer;padding:9px 13px;display:none}
.tb-cross{border-bottom:1px solid #44394c;padding-bottom:1px}
.tb-cross:hover{text-decoration:none;opacity:0.8}
.tb-drop{display:none;position:fixed;left:14px;right:14px;top:76px;z-index:40;background:#44394c;border-radius:4px;padding:10px;flex-direction:column;max-height:calc(100vh - 100px);overflow:auto}
.tb-drop a{color:#fff;font-size:19px;padding:14px;border-bottom:1px solid rgba(255,255,255,0.14)}
.tb-drop a:last-child{border-bottom:none}
.tb-drop a.snack{color:#ffe845}
@media(max-width:860px){
  .tb-nav,.tb-meta .clockbox{display:none}
  .tb-burger{display:block}
  .tb-drop.open{display:flex}
}

/* Hero */
.hero{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:40px;align-items:start;padding:20px 0 40px 0}
.hero-kicker{font-size:14px;margin:0 0 24px}
.hero-title{font-size:clamp(84px,11vw,156px);line-height:0.84;letter-spacing:0.01em;margin:0}
.hero-photo{background:#fff;border-radius:4px;overflow:hidden;position:relative;min-height:480px}
.hero-photo>img.ph{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.hero-logo{position:absolute;inset:0;pointer-events:none}
.hero-logo img{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:260px;height:auto;filter:drop-shadow(0 2px 10px rgba(0,0,0,0.4))}
.hero-photo>video.ph{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 45%;display:block;opacity:0;transition:opacity .5s}
.hero-photo>video.ph.on{opacity:1}
@media(prefers-reduced-motion:reduce){.hero-photo>video.ph{display:none}}
.hero-tag{position:absolute;left:20px;bottom:20px;background:#fff;border-radius:4px;padding:10px 14px;font-size:13px}
@media(min-width:861px){.hero-tag{display:none}}

/* Cards & photo strip */
.card{background:#fff;border-radius:4px}
.photo-wide{background:#fff;border-radius:4px;overflow:hidden}
.photo-wide img{width:100%;display:block;aspect-ratio:21/9;object-fit:cover}
/* slideshow: first img keeps the box, the others are stacked on top; team.js moves .on every few seconds */
.photo-wide .slides{position:relative}
.photo-wide .slides img{opacity:0;transition:opacity .9s ease}
.photo-wide .slides img+img{position:absolute;inset:0}
.photo-wide .slides img.on{opacity:1}
.caption{background:#fff;padding:14px 16px;font-size:14px;line-height:1.4}

/* Sections */
.sec{padding:80px 0 0 0}
.sec-100{padding:100px 0 0 0}
.sec-h{font-size:clamp(46px,7vw,80px);line-height:0.82;margin:0 0 30px 0}
.sec-h-sm{font-size:clamp(28px,4vw,40px);line-height:0.9;margin:0}
.sec-head{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin-bottom:20px}
.manifest{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:40px 60px}
.manifest .big{font-size:clamp(29px,4.5vw,43px);line-height:1.15;text-wrap:pretty}
.manifest .txt{display:flex;flex-direction:column;gap:16px;max-width:560px}

/* Rails */
.rail-btns{display:flex;gap:20px}
.rail-btns button{background:none;border:none;color:#44394c;font-size:16px;cursor:pointer}
.rail{display:flex;align-items:flex-start;gap:20px;overflow-x:auto;scrollbar-width:none;padding-bottom:8px}
.rail::-webkit-scrollbar{display:none}
.rail-card{flex:0 0 min(480px,86vw);background:#fff;border-radius:4px;overflow:hidden}
.rail-card img{width:100%;height:min(500px,110vw);object-fit:cover;display:block}
.rail-card.h430 img{height:min(430px,110vw)}
.rail-card.h460 img{height:min(460px,110vw)}
.rail-card.w640{flex-basis:min(640px,86vw)}
.rail-card.w400{flex-basis:min(400px,86vw)}

/* Schedule + pricing */
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:60px}
.sched-row{display:flex;justify-content:space-between;gap:20px;padding:14px 0;border-top:1px solid #c0c3b6;font-size:16px}
.sched-row b{font-weight:500;text-align:right}
.sched-row.last{border-bottom:1px solid #c0c3b6;opacity:0.6}
.note{font-size:13px;opacity:0.6;margin-top:14px}
.plans{display:flex;flex-direction:column;gap:12px}
.plan{background:#fff;border:1.5px solid #fff;border-radius:4px;padding:16px 20px;display:flex;justify-content:space-between;align-items:center;gap:20px;cursor:pointer}
.plan.on{border-color:#44394c}
.plan .l{display:flex;align-items:center;gap:14px}
.plan .dot{width:18px;height:18px;border-radius:50%;border:1.5px solid #44394c;background:#fff;flex-shrink:0}
.plan.on .dot{background:#44394c}
.plan .sub{font-size:13px;opacity:0.6}
.plan .price{font-size:27px;white-space:nowrap}
.ask{background:#44394c;border-radius:4px;padding:18px 20px;margin-top:12px;display:none;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.ask.show{display:flex}
.ask .q{color:#fff;font-size:15px}
.ask button{background:transparent;color:#fff;border:1px solid #fff;border-radius:4px;padding:8px 18px;font-size:14px;cursor:pointer}
.ask button.on{background:#fff;color:#44394c}
.total{display:none;justify-content:space-between;align-items:baseline;gap:20px;margin-top:12px;padding:14px 20px;border:1px dashed #44394c;border-radius:4px}
.total.show{display:flex}
.total .v{font-size:24px;font-weight:500}
.btn{background:#44394c;color:#fff;border:none;border-radius:4px;padding:14px 24px;font-size:15px;letter-spacing:0.02em;cursor:pointer;display:inline-block}
.btn:hover{text-decoration:none;opacity:0.88}
.btn-ghost{background:none;color:#44394c;border:1px solid #44394c;border-radius:4px;padding:13px 22px;font-size:14px;cursor:pointer;display:inline-block}
.plan-note{font-size:13px;opacity:0.6}

/* Journal cards */
.jgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px}
.jcard{background:#fff;border-radius:4px;padding:28px;display:flex;flex-direction:column;gap:14px}
.jcard .cat{font-size:12px;letter-spacing:0.1em;opacity:0.55}
.jcard .t{font-size:24px;line-height:1.15;text-wrap:pretty}
.jcard .d{font-size:14px;opacity:0.7}
.jcard .more{font-size:14px;border-bottom:1px solid #44394c;align-self:start;padding-bottom:1px;margin-top:auto}

/* Find us */
.find{background:#fff;border-radius:4px;display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));overflow:hidden}
.find .fl{padding:clamp(28px,4vw,48px);display:flex;flex-direction:column;gap:16px;justify-content:center}
.find .fh{font-size:clamp(34px,4.5vw,52px);line-height:0.9}
.find .map{min-height:340px;background:#dfe5d3;display:flex;align-items:center;justify-content:center;font-size:13px;opacity:0.6}

/* Trial form */
.trial{padding:100px 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:60px;align-items:start}
.trial-h{font-size:clamp(54px,9vw,110px);line-height:0.82}
.trial form{display:flex;flex-direction:column;gap:24px;padding-top:14px}
.trial input{background:none;border:none;border-bottom:1px solid #b0b2a9;border-radius:0;padding:12px 2px;font-size:14px;font-family:'Space Grotesk',sans-serif;color:#44394c;letter-spacing:0.02em;outline:none}
.trial .cta{background:none;border:none;color:#44394c;font-size:16px;cursor:pointer;border-bottom:1px solid #44394c;padding:0 0 2px 0;align-self:start}

/* Footer */
.tb-foot{background:#44394c;margin-top:0}
.tb-foot .in{max-width:1440px;margin:0 auto;padding:48px 20px;display:flex;align-items:center;justify-content:space-between;gap:32px;flex-wrap:wrap}
.tb-foot img{width:88px;height:auto}
.tb-foot .t{color:#fff;font-size:14px}
.tb-foot .s{color:rgba(255,255,255,0.6);font-size:13px;margin-top:4px}
.tb-foot a.snack{display:flex;align-items:center;gap:14px;color:#ffe845}
.tb-foot a.snack:hover{text-decoration:none;opacity:0.85}
.tb-foot .bagel{font-family:'Bagel Fat One',cursive;font-size:22px}
.tb-foot a.dg{display:flex;align-items:center;gap:12px;color:#fff;font-size:13px;line-height:1.25}
.tb-foot a.dg img{width:40px;height:40px;border-radius:50%}
.tb-foot a.dg b{font-weight:600}
.tb-foot a.dg:hover{text-decoration:none;opacity:0.85}
.tb-foot .partners{display:flex;align-items:center;gap:40px;flex-wrap:wrap}
@media(max-width:860px){
  .tb-foot .partners{display:grid;grid-template-columns:1fr 1fr;gap:20px;width:100%}
  .tb-foot a.snack,.tb-foot a.dg{flex-direction:column;align-items:flex-start;gap:8px}
  .tb-foot a.snack .bagel{line-height:40px}
  .tb-foot a.dg{justify-self:end}
  .tb-foot a.snack span:last-child,.tb-foot a.dg b{line-height:1.25;height:17px}
  .tb-foot a.snack span:last-child{font-size:13px!important;color:rgba(255,255,255,0.75)}
  .tb-foot a.dg b{font-weight:400;color:rgba(255,255,255,0.75);font-size:13px}
}
.tb-foot.slim .in{padding:28px clamp(14px,3vw,20px);font-size:13px;color:rgba(255,255,255,0.75)}
@media(max-width:860px){
  .hero{gap:20px;padding-top:0}
  .hero-photo{min-height:440px}
  .hero-photo.has-video{aspect-ratio:auto;height:54vh;min-height:0;width:100%;justify-self:stretch}
  .hero-logo img{width:200px}
  .hero-kicker{display:none}
  .hero-title{font-size:min(21vw,150px);line-height:0.86;margin-top:0}
  .tb-foot .in{padding:28px 20px;gap:18px}
  .tb-foot.slim .in{flex-direction:column;align-items:flex-start;gap:6px;padding:22px 20px}
}

/* Article pages */
.art{background:#fff;border-radius:4px;padding:clamp(24px,5vw,56px);margin-bottom:24px}
.art .cat{font-size:12px;letter-spacing:0.1em;opacity:0.55;margin-bottom:14px}
.art h1{font-family:'Anton',sans-serif;font-size:clamp(28px,4.5vw,52px);line-height:1;text-transform:uppercase;margin:0 0 24px 0;text-wrap:pretty;font-weight:400}
.art .body{max-width:720px;font-size:16px;line-height:1.6}
.art .body p{margin:0 0 16px 0}
.art .body h2{font-family:'Anton',sans-serif;font-weight:400;text-transform:uppercase;font-size:22px;letter-spacing:0.03em;margin:30px 0 14px 0}
.art .body h3{font-family:'Anton',sans-serif;font-weight:400;font-size:18px;letter-spacing:0.02em;margin:22px 0 6px 0}
.art .body ul{margin:0 0 16px 0;padding-left:20px}
.art .body li{margin-bottom:6px}
.art .btn{margin-top:10px}
.page-title{font-size:clamp(46px,9vw,110px);line-height:0.82;margin:0}
.page-sub{font-size:15px;margin-top:16px;opacity:0.7}
.page-head{padding:clamp(30px,6vw,60px) 0 30px 0}

/* Contact cards */
.cgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));gap:20px;padding-bottom:60px}
.ccard{background:#fff;border-radius:4px;padding:clamp(24px,4vw,36px);display:flex;flex-direction:column;gap:18px}
.ccard .ch{font-family:'Anton',sans-serif;font-size:26px;text-transform:uppercase}
.ccard .tel{font-size:clamp(24px,4vw,32px)}
.ccard .row{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-top:1px solid #d5d9c9;font-size:15px}
.ccard .row b{font-weight:500;text-align:right}
.ccard .row.last{border-bottom:1px solid #d5d9c9;opacity:0.6}

/* Gallery */
.gal{columns:4 260px;column-gap:14px;padding-bottom:60px}
.gal a{display:block;margin-bottom:14px;background:#fff;border-radius:4px;overflow:hidden}
.gal img{width:100%;display:block}
.gal-videos{display:flex;flex-wrap:wrap;gap:20px;margin-bottom:40px}
.gal-videos>div{flex:1 1 160px;max-width:300px;min-width:0}
.gal-videos video{width:100%;aspect-ratio:9/16;height:auto;object-fit:cover;border-radius:4px;display:block;background:#000}
.gal-best{columns:3 300px}
.gal-sec-best{margin-bottom:56px}
.gal-filter{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 32px;position:sticky;top:0;z-index:5;background:#e5ebda;padding:12px 0}
.gal-filter .back{margin-left:auto;font-size:13px;border-bottom:1px solid #44394c;padding-bottom:1px;white-space:nowrap}
.gal-filter button{background:none;color:#44394c;border:1px solid #44394c;border-radius:4px;padding:9px 14px;font:inherit;font-size:13px;line-height:1;cursor:pointer}
.gal-filter button span{opacity:0.6;margin-left:4px}
.gal-filter button.on{background:#44394c;color:#fff}
.gal-filter button.on span{opacity:0.75}
.gal-sec[hidden]{display:none}
@media(max-width:600px){.gal,.gal-best{columns:2;column-gap:8px}.gal a{margin-bottom:8px}}
dialog.lb{border:none;background:rgba(20,17,23,0.92);max-width:100vw;max-height:100vh;width:100vw;height:100vh;margin:0;padding:0;display:none;align-items:center;justify-content:center}
dialog.lb[open]{display:flex}
body:has(dialog.lb[open]){overflow:hidden}
dialog.lb img{max-width:94vw;max-height:92vh;border-radius:4px}
dialog.lb .x{position:fixed;top:16px;right:20px;background:none;border:none;color:#fff;font-size:28px;cursor:pointer;z-index:2}
dialog.lb .nav{position:fixed;top:50%;transform:translateY(-50%);background:rgba(255,255,255,0.12);border:none;color:#fff;font-size:34px;line-height:1;cursor:pointer;border-radius:4px;padding:14px 16px}
dialog.lb .nav:hover{background:rgba(255,255,255,0.25)}
dialog.lb .nav.prev{left:16px}
dialog.lb .nav.next{right:16px}
dialog.lb .count{position:fixed;bottom:18px;left:0;right:0;text-align:center;color:rgba(255,255,255,0.8);font-size:13px;letter-spacing:0.05em}
.gal-sec{margin-bottom:44px}

/* Short pages: pin footer to bottom */
body.page{display:flex;flex-direction:column;min-height:100vh}
body.page>.wrap,body.page>.wrap-narrow{flex:1;width:100%}

/* Map: static preview, Google embed on tap (team.js) */
.map-ph{position:relative;display:block;width:100%;overflow:hidden;background:#dfe5d3}
.map-ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.map-ph .map-go{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:#44394c;color:#fff;padding:12px 18px;border-radius:4px;font-size:14px;white-space:nowrap;box-shadow:0 4px 18px rgba(0,0,0,0.25)}
.map-ph:hover{text-decoration:none}

/* journal cards as a horizontal rail (arrows: [data-rail] in team.js) */
.jrail{align-items:stretch}
.jrail .jcard{flex:0 0 min(360px,84vw)}
