/* ── Roots: founders + team (horizontal pinned scene, after minemal.dental "About us") ── */
.roots{position:relative;background:var(--black);border-top:1px solid #1c1c1c;scroll-margin-top:68px;overflow-x:clip}
.roots-stage{position:relative}
.roots-track{display:flex;flex-direction:column;gap:72px;padding:110px 20px 90px}
.roots-kick{display:flex;align-items:center;gap:14px;margin:0 0 28px;font:500 11px/1 Montserrat,Arial,sans-serif;letter-spacing:.24em;text-transform:uppercase;color:#8d8c86}
.roots-kick i{width:6px;height:6px;border-radius:50%;background:var(--yellow);flex:none}
.roots-title{margin:0;font:400 clamp(64px,calc(7.4 * var(--vw)),136px)/.98 Montserrat,Arial,sans-serif;letter-spacing:-.04em;color:var(--white)}
.roots-title .ln{display:block;overflow:hidden;padding-bottom:.06em}
.roots-title .ln > span{display:block}
.roots-title em{font-style:normal;color:var(--yellow)}
.roots-lead{max-width:340px;margin:34px 0 0;color:#a7a6a0;font-size:15px;line-height:1.65}
.roots-lead b{color:var(--white);font-weight:500}
.roots-sign{margin:26px 0 0;font:500 10px/1.6 Montserrat,Arial,sans-serif;letter-spacing:.22em;text-transform:uppercase;color:#6f6e69}

.roots-shot{position:relative;margin:0;overflow:hidden;background:#141414}
.roots-shot img{width:100%;height:100%;object-fit:cover;transform-origin:50% 60%}
.roots-shot.is-founders{aspect-ratio:1400/2099;max-height:none}
.roots-shot.is-team{aspect-ratio:16/9}
.roots-shot.is-sm{aspect-ratio:9/13}

.roots-cap{display:grid;gap:10px;margin-top:14px}
.roots-cap p{margin:0;display:flex;flex-direction:column;gap:3px;font-size:13px;line-height:1.35;color:var(--white)}
.roots-cap p span{font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:#7b7a75}
.roots-cap p a{transition:color .3s}
.roots-cap p a:hover{color:var(--yellow)}

.roots-quote{margin:0;font:400 clamp(40px,calc(6.2 * var(--vw)),112px)/1 Montserrat,Arial,sans-serif;letter-spacing:-.04em;color:var(--white);text-transform:uppercase}
.roots-quote span{display:block;white-space:nowrap}
.roots-quote em{font-style:normal;color:var(--yellow)}
.roots-quote-note{margin:26px 0 0;max-width:320px;color:#8d8c86;font-size:13px;line-height:1.6}

.roots-team-head{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin-bottom:22px}
.roots-team-head h3{margin:0;font:400 clamp(34px,calc(3.4 * var(--vw)),62px)/1 Montserrat,Arial,sans-serif;letter-spacing:-.035em}
.roots-team-head h3 em{font-style:normal;color:var(--yellow)}


.roots-roles{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 0;padding:0;list-style:none}
.roots-roles li{border:1px solid #333;border-radius:99px;padding:8px 14px;font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:#bdbcb6}

.rp-end h3{margin:0;font:400 clamp(30px,calc(2.8 * var(--vw)),50px)/1.05 Montserrat,Arial,sans-serif;letter-spacing:-.03em}
.rp-end h3 em{font-style:normal;color:var(--yellow)}
.rp-end p{margin:22px 0 30px;max-width:300px;color:#8d8c86;font-size:14px;line-height:1.6}
.roots-go{display:inline-flex;align-items:center;gap:12px;border:1px solid #555;border-radius:99px;padding:14px 22px;font:500 11px/1 Montserrat,Arial,sans-serif;letter-spacing:.16em;text-transform:uppercase;transition:border-color .3s,color .3s,background .3s}
.roots-go:hover{border-color:var(--yellow);color:#111;background:var(--yellow)}

.roots-bar{display:none}

/* mobile / no-pin: gentle reveals */
.roots [data-rv]{opacity:0;transform:translate3d(0,40px,0);transition:opacity 1s cubic-bezier(.2,.7,.2,1),transform 1.2s cubic-bezier(.2,.7,.2,1)}
.roots [data-rv].is-in{opacity:1;transform:none}
.roots-title .ln > span{transform:translate3d(0,105%,0);transition:transform 1.2s cubic-bezier(.2,.8,.1,1) calc(var(--i,0)*.09s)}
.roots-title.is-in .ln > span{transform:none}
@media (prefers-reduced-motion: reduce){.roots [data-rv],.roots-title .ln > span{opacity:1!important;transform:none!important;transition:none}}

/* ── desktop pinned horizontal scene ── */
@media (min-width: 901px){
  .roots.is-pin .roots-stage{position:sticky;top:0;height:100svh;overflow:hidden}
  .roots.is-pin .roots-track{position:absolute;top:0;left:0;height:100%;flex-direction:row;align-items:stretch;gap:0;padding:0;will-change:transform}
  .roots.is-pin .roots-panel{position:relative;flex:none;height:100%}
  .roots.is-pin [data-rv]{opacity:1;transform:none;transition:none}

  .roots.is-pin .rp-intro{width:max(400px,calc(30 * var(--vw)));padding:calc(68px + 11vh) 0 0 calc(4 * var(--vw))}
  .roots.is-pin .rp-founders{width:auto;padding:calc(68px + 5vh) 0 0 calc(1 * var(--vw));display:flex;gap:calc(2 * var(--vw))}
  .roots.is-pin .rp-founders .roots-shot.is-founders{height:66vh;width:calc(66vh * 1400 / 2099)}
  .roots.is-pin .rp-founders .roots-col{display:flex;flex-direction:column;align-items:flex-start}
  .roots.is-pin .rp-founders .roots-cap{width:calc(66vh * 1400 / 2099)}
  .roots.is-pin .rp-founders .roots-col.is-side{padding-top:27vh;width:15vh}
  .roots.is-pin .rp-founders .roots-shot.is-sm{width:15vh;height:calc(15vh * 13 / 9)}
  .roots.is-pin .rp-quote{width:auto;padding:calc(68px + 26vh) calc(5 * var(--vw)) 0 calc(7 * var(--vw))}
  .roots.is-pin .rp-quote .roots-shot.is-sm{position:absolute;width:13vh;top:calc(68px + 4vh);right:calc(10 * var(--vw));height:calc(13vh * 13 / 9)}
  .roots.is-pin .rp-team{width:auto;padding:calc(68px + 9vh) 0 0 calc(2 * var(--vw))}
  .roots.is-pin .rp-team .roots-shot.is-team{height:52vh;width:calc(52vh * 16 / 9)}
  .roots.is-pin .rp-team{width:calc(52vh * 16 / 9 + calc(2 * var(--vw)))}
  .roots.is-pin .rp-end{width:max(340px,calc(26 * var(--vw)));padding:calc(68px + 28vh) calc(4 * var(--vw)) 0 calc(4 * var(--vw))}

  .roots.is-pin .roots-title{font-size:clamp(52px,calc(5.6 * var(--vw)),104px)}
  .roots.is-pin .roots-lead{margin-top:24px;max-width:320px;font-size:14px;line-height:1.6}
  .roots.is-pin .roots-sign{margin-top:16px}
  .roots.is-pin .roots-quote{font-size:clamp(46px,calc(5.8 * var(--vw)),110px)}
  .roots.is-pin .roots-quote-note{margin-top:20px}
  .roots.is-pin .roots-quote span:nth-child(2){padding-left:1.1em}
  .roots.is-pin .roots-quote span:nth-child(3){padding-left:.3em}
  .roots.is-pin .roots-quote span:nth-child(4){padding-left:2.2em}
  .roots.is-pin .roots-team-head{margin-bottom:16px}
  .roots.is-pin .roots-team-head h3{font-size:clamp(30px,calc(2.8 * var(--vw)),50px)}
  .roots.is-pin .roots-kick{margin-bottom:20px}
  .roots.is-pin .rp-end h3{font-size:clamp(28px,calc(2.4 * var(--vw)),44px)}
  .roots.is-pin .rp-end p{margin:16px 0 22px}

  .roots.is-pin .roots-bar{display:flex;align-items:center;gap:18px;position:absolute;left:calc(4 * var(--vw));right:calc(4 * var(--vw));bottom:4.2vh;font:500 10px/1 Montserrat,Arial,sans-serif;letter-spacing:.22em;text-transform:uppercase;color:#6f6e69;pointer-events:none}
  .roots-bar i{position:relative;flex:1;height:1px;background:#262626;overflow:hidden}
  .roots-bar i:after{content:"";position:absolute;inset:0;background:var(--yellow);transform-origin:0 50%;transform:scaleX(var(--p,0))}
  .roots-bar b{font-weight:500;color:var(--white);min-width:1.6em}
}
/* every screen: the ribbon is moved by the browser, tied to the scroll (no script, no one-frame lag) — roots.js adds .is-css.
   The held (sticky) stage itself moves, as wide as the ribbon and unclipped (the section clips it; on iPhone the page):
   on iPhone a scroll-linked transform on something inside a sticky box sprang back after every scrolled frame (11pt
   forward, 15pt over, then back, measured in the simulator), on the sticky box itself it follows the finger exactly.
   Its run is a length (roots.js --run), as the doctors' is: "contain 100%" moved with Safari's sliding toolbar */
@keyframes rootsRun{from{transform:translate3d(0,0,0)}to{transform:translate3d(calc(-1 * var(--dist,0px)),0,0)}}
@media all{
  .roots.is-css{view-timeline:--roots block}
  html body .roots.is-pin.is-css .roots-stage{width:max-content;overflow:visible!important;animation:rootsRun linear both;animation-timeline:--roots;animation-range:contain 0% contain var(--run,100%)}
  html body .roots.is-pin.is-css .roots-track{position:relative!important;width:max-content;will-change:auto}
}
@media (max-width: 900px){
  .roots-title{font-size:clamp(50px,calc(15 * var(--vw)),84px)}
  .roots-quote{font-size:clamp(34px,calc(10.4 * var(--vw)),64px)}
  .roots-quote span{white-space:normal}
  .roots-founders-row{display:grid;grid-template-columns:1fr;gap:18px}
  .roots-col.is-side{display:none}
  .rp-quote .roots-shot.is-sm{display:none}
  .roots-team-head{flex-direction:column;align-items:flex-start;gap:14px}
}

/* ── Reviews: intro head + full-width board ── */
.proof#reviews{display:block;height:auto;max-height:none;padding:clamp(110px,16vh,180px) calc(4 * var(--vw)) clamp(70px,10vh,120px);border-top:1px solid #1c1c1c}
.proof#reviews .proof-stage{max-width:none;width:100%;margin:0}
.proof#reviews .proof-list{width:100%}
.proof-head{display:flex;flex-direction:column;align-items:center;text-align:center;margin:0 auto clamp(70px,11vh,120px)}
.proof-kick{display:flex;align-items:center;gap:14px;margin:0 0 30px;font:500 11px/1 Montserrat,Arial,sans-serif;letter-spacing:.24em;text-transform:uppercase;color:#8d8c86}
.proof-kick i{width:6px;height:6px;border-radius:50%;background:var(--yellow)}
.proof-title{margin:0;font:400 clamp(52px,calc(7 * var(--vw)),128px)/.98 Montserrat,Arial,sans-serif;letter-spacing:-.045em;color:var(--white)}
.proof-title .ln{display:block;overflow:hidden;padding-bottom:.06em}
.proof-title .ln > span{display:block;transform:translate3d(0,105%,0);transition:transform 1.2s cubic-bezier(.2,.8,.1,1) calc(var(--i,0)*.1s)}
.proof-title em{font-style:normal;color:var(--yellow)}
.proof-rule{display:block;width:64px;height:1px;margin:52px 0 0;background:var(--yellow);transform:scaleX(0);transition:transform 1.1s cubic-bezier(.2,.8,.1,1) .35s}
.proof-big{position:relative;isolation:isolate;margin:40px 0 6px;display:flex;align-items:flex-start;font:300 clamp(96px,calc(12 * var(--vw)),210px)/.9 Montserrat,Arial,sans-serif;letter-spacing:-.06em;color:var(--white);font-variant-numeric:tabular-nums}
.proof-big:before{content:"";position:absolute;z-index:-1;inset:-35% -30%;background:radial-gradient(closest-side,rgba(214,180,76,.16),rgba(214,180,76,0));opacity:0;transform:scale(.8);transition:opacity 1.6s ease .4s,transform 2s cubic-bezier(.2,.8,.1,1) .4s;pointer-events:none}
.proof-head.is-in .proof-rule{transform:none}
.proof-head.is-in .proof-big:before{opacity:1;transform:none}
.proof-big span{color:var(--yellow);font-size:.5em;margin:.08em 0 0 .06em}
.proof-sub{margin:10px 0 22px;font-size:15px;color:#a7a6a0;letter-spacing:.01em}
.proof-sub em{font-style:normal;color:var(--yellow)}
.proof-head-stars{display:flex;gap:10px}
.proof-head .proof-head-stars span{width:26px;height:26px;opacity:.15;transform:scale(.4) rotate(-40deg);transition:opacity .4s ease calc(1s + var(--i)*.12s),transform .7s cubic-bezier(.2,1.5,.4,1) calc(1s + var(--i)*.12s)}
.proof-head.is-in .proof-title .ln > span{transform:none}
.proof-head.is-in .proof-head-stars span{opacity:1;transform:none}
@media (prefers-reduced-motion: reduce){.proof-head *{transition:none!important;transform:none!important;opacity:1!important}}
@media (max-width: 900px){
  .proof#reviews{padding:90px 20px 60px}
  .proof-rule{margin-top:40px}
  .proof-big{margin-top:30px}
  .proof-head-stars span{width:20px!important;height:20px!important}
}
/* board grows to the full lane */
@media (min-width: 901px){
  .proof#reviews .proof-list{gap:20px}
  .proof#reviews .proof-card blockquote{font-size:clamp(20px,calc(1.75 * var(--vw)),32px)}
  .proof#reviews .proof-card.is-lg blockquote{font-size:clamp(26px,calc(2.4 * var(--vw)),44px)}
  .proof#reviews .proof-card.is-sm blockquote{font-size:clamp(18px,calc(1.45 * var(--vw)),26px)}
}

/* founders: caption sits to the LEFT of the photo, "Founders" in a yellow frame */

.roots-meta{display:flex;flex-direction:column;align-items:flex-start}

.roots-meta .roots-cap{gap:0;margin-top:22px;width:100%}
.roots-meta .roots-cap p{gap:6px;padding:14px 0;font-size:15px}
@media (min-width: 901px){
  .roots.is-pin .rp-founders .roots-col:not(.is-side){flex-direction:row;align-items:flex-end;align-self:flex-start;gap:calc(2 * var(--vw))}
  .roots.is-pin .rp-founders .roots-meta{width:max(220px,calc(14 * var(--vw)));padding-bottom:4px}
  .roots.is-pin .rp-founders .roots-meta .roots-cap{width:100%}
}
@media (max-width: 900px){
  .roots-col:not(.is-side){display:flex;flex-direction:column}
  .roots-meta{order:2;margin-top:22px}
}

/* title: "Founders" set in a yellow frame instead of "roots." */
.roots-title .ln:has(.roots-box){padding:.1em 0 .12em;margin-top:.04em}
.roots-title em.roots-box{display:inline-block;padding:.06em .22em .1em;border:2px solid var(--yellow);font-size:.74em;line-height:1;letter-spacing:-.02em;color:var(--yellow)}
.roots-meta .roots-cap{margin-top:0}
html[lang="es"] .roots-title em.roots-box{font-size:.6em}

/* ── Name screen: the MonaSmile face mark as a small seal between Mona and Smile ── */

.name-mark{position:absolute;left:0;top:0;width:auto;height:var(--mh,58px);aspect-ratio:1370/1850;pointer-events:none;z-index:2;overflow:visible;opacity:0;will-change:transform,opacity,filter;--k:0}
.name-mark .nm-line{display:none}
.name-mark .nm-fill path{fill:#efeee9}
.name-mark.is-on{animation:nmGlow 6s ease-in-out infinite}
@keyframes nmGlow{0%,100%{filter:drop-shadow(0 0 10px rgba(239,238,233,.10))}50%{filter:drop-shadow(0 0 18px rgba(239,238,233,.24))}}
@media (max-width:800px){.name-mark{display:none}}
@media (prefers-reduced-motion:reduce){.name-mark{display:none}}
/* short / wide windows: the name scales with the screen height too, so Smile never runs into "stands for the face" */
@media (min-width:801px){
  .name-word{font-size:min(calc(15 * var(--vw)),26vh)!important}
  .name-expand span,.name-expand strong{font-size:min(calc(3 * var(--vw)),5.2vh)!important}
}

/* ── Tablets and touch screens wider than 900px: no sideways scene, a calm two-column story ── */
@media (min-width:901px){
  .roots:not(.is-pin) .roots-track{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(56px,8vh,96px) calc(5 * var(--vw));padding:clamp(100px,14vh,150px) calc(6 * var(--vw)) clamp(90px,12vh,130px)}
  .roots:not(.is-pin) .rp-intro{align-self:center}
  .roots:not(.is-pin) .rp-founders .roots-col.is-side,
  .roots:not(.is-pin) .rp-quote .roots-shot.is-sm{display:none}
  .roots:not(.is-pin) .rp-founders .roots-col{display:flex;flex-direction:column;gap:22px}
  .roots:not(.is-pin) .rp-founders .roots-meta{order:2}
  .roots:not(.is-pin) .roots-shot.is-founders{width:100%;max-height:72vh;aspect-ratio:4/5}
  .roots:not(.is-pin) .roots-shot.is-founders img{object-position:50% 20%}
  .roots:not(.is-pin) .rp-quote{grid-column:1 / -1}
  .roots:not(.is-pin) .roots-quote{font-size:clamp(40px,calc(5.4 * var(--vw)),84px)}
  .roots:not(.is-pin) .roots-quote span{white-space:normal}
  .roots:not(.is-pin) .rp-team{grid-column:1 / -1}
  .roots:not(.is-pin) .rp-end{grid-column:1 / -1}
}

/* founders: the sideways ribbon also on phones, one panel per screen with the next one peeking in */
@media (max-width:900px){
  html body .roots.is-pin .roots-stage{position:sticky;top:0;height:100svh;overflow:hidden}
  html body .roots.is-pin .roots-track{position:absolute!important;top:0;left:0;height:100%;display:flex!important;flex-direction:row!important;align-items:stretch;gap:0!important;padding:0!important;will-change:transform}
  html body .roots.is-pin .roots-panel{flex:none!important;width:86vw!important;height:100%!important;box-sizing:border-box;padding:calc(64px + 5svh) 6vw 7svh 6vw!important;display:flex!important;flex-direction:column!important;justify-content:center;border:0!important;margin:0!important}
  html body .roots.is-pin .rp-intro{width:92vw!important;padding:calc(64px + 2svh) 8vw 7svh 6vw!important;display:flex!important;flex-direction:column!important;justify-content:flex-start!important;align-items:flex-start!important}
  html body .roots.is-pin .rp-intro > *{grid-column:auto!important;grid-row:auto!important;margin-left:0!important;align-self:flex-start!important;text-align:left!important}
  html body .roots.is-pin .rp-intro .roots-kick{margin-bottom:18px!important}
  html body .roots.is-pin .rp-intro .roots-title{font-size:clamp(52px,15vw,96px)!important}
  html body .roots.is-pin .rp-intro .roots-lead{margin-top:22px!important;max-width:36ch}
  html body .roots.is-pin .rp-intro .roots-sign{margin-top:auto!important}
  html body .roots.is-pin .rp-founders .roots-col.is-side{display:none!important}
  html body .roots.is-pin .rp-founders .roots-col{width:100%!important;display:flex!important;flex-direction:column-reverse!important;gap:18px!important}
  html body .roots.is-pin .rp-founders .roots-shot.is-founders{aspect-ratio:auto!important;width:100%!important;height:52svh!important}
  html body .roots.is-pin .rp-founders .roots-shot.is-founders img{object-position:50% 30%}
  html body .roots.is-pin .roots-meta .roots-cap p{padding:10px 0!important}
  html body .roots.is-pin .rp-quote .roots-quote{font-size:clamp(30px,9vw,46px)!important;line-height:1.05}
  html body .roots.is-pin .rp-quote .roots-quote span{padding-left:0!important;display:block}
  html body .roots.is-pin .rp-quote .roots-shot.is-sm{width:26vw!important;height:calc(26vw * 13 / 9)!important;margin:0 0 22px!important;order:-1}
  html body .roots.is-pin .rp-team .roots-shot.is-team{width:100%!important;max-width:none!important;aspect-ratio:4/3;height:auto!important}
  html body .roots.is-pin .rp-end{display:flex!important;width:92vw!important;padding-right:8vw!important}
  html body .roots.is-pin .rp-end h3{font-size:clamp(34px,10vw,52px)!important}
  html body .roots.is-pin .rp-end h3 br{display:inline!important}
  html body .roots.is-pin .rp-end .roots-go{width:auto!important;align-self:flex-start}
  html body .roots.is-pin [data-rv]{opacity:1!important;transform:none!important}
}

/* reviews: the cards in the map's dark grey; text only, no portraits */
html body .proof#reviews .proof-card{background:#393939;border-color:#393939}
html body .proof#reviews .proof-card figcaption{padding-top:8px}
html body .proof#reviews .proof-card figcaption b{color:var(--white)}
@media (hover:hover) and (pointer:fine){
  html body .proof#reviews .proof-card:hover{background:#3f3f3f;border-color:var(--yellow)}
}

/* reels: the site's black (no grey canvas, no grain) and the same small caps label as the other chapters */
html body .kit.is-canvas,html body .kit.is-canvas .kit-pin{background:var(--black)!important}
html body .kit.is-canvas .kit-pin:after{display:none}
html body .kit-rail .rl-head .rl-label{gap:14px!important;font:500 11px/1 Montserrat,Arial,sans-serif!important;letter-spacing:.24em!important;text-transform:uppercase;color:#8d8c86!important}
html body .kit-rail .rl-head .rl-label i{width:6px!important;height:6px!important}

/* the founders ribbon, read in order (roots.js): the quote's lines turn white one after another as the panel slides in,
   its gold words glow, then the note appears; the team and closing headings fade back around their gold words once
   they are on their way out. Plain colours (no currentColor mixing), so nothing flickers while it changes. */
.roots-quote span{color:rgba(239,238,233,.22);transition:color .7s ease}
.roots-quote span.is-on{color:var(--white)}
.roots-quote em{transition:color .7s ease,text-shadow .7s ease}
.roots-quote span:not(.is-on) em{color:rgba(214,180,76,.35)}
.roots-quote span.is-on em{color:var(--yellow);text-shadow:0 0 22px rgba(214,180,76,.5)}
.roots-quote-note{color:rgba(167,166,160,.25);transition:color .8s ease}
.roots-quote-note.is-on{color:#a7a6a0}
.roots-team-head h3,.roots-team-head .roots-kick,.rp-end h3,.rp-end p{transition:color .9s ease}
.roots-team-head h3 em,.rp-end h3 em{transition:text-shadow .9s ease}
.roots.is-pin .rp-team.is-lit .roots-team-head h3,.roots.is-pin .rp-end.is-lit h3,.roots.is-pin .rp-end.is-lit p{color:rgba(239,238,233,.2)}
.roots.is-pin .rp-team.is-lit .roots-team-head .roots-kick{color:rgba(141,140,134,.3)}
.roots.is-pin .rp-team.is-lit .roots-team-head h3 em,.roots.is-pin .rp-end.is-lit h3 em{color:var(--yellow);text-shadow:0 0 22px rgba(214,180,76,.55)}
@media (prefers-reduced-motion:reduce){.roots-quote span,.roots-quote-note{color:var(--white);transition:none}.roots-quote-note{color:#a7a6a0}.roots .is-lit *{transition:none}}
