/* Iris enhancement of the live Leovolution site (19 Nov 2026). Same content, same pictures in the same places.
   Changes: heading font Cabinet Grotesk (self-hosted), every gold line straight, slanted section edges, gold ribbon,
   round floating Leo, a straight gold progress line, and a motion layer (iris.js) that rewards curiosity.
   Motion follows Emil Kowalski's rules: strong ease-out, transform/opacity/clip-path only, hover only on a real mouse,
   nothing hidden if the script fails, and a calm version for anyone who asks their device for reduced motion. */
:root{
  --head:'Cabinet Grotesk',system-ui,-apple-system,'Segoe UI',sans-serif;
  --body:'Figtree',system-ui,-apple-system,'Segoe UI',sans-serif;
  --ease-out-strong:cubic-bezier(.23,1,.32,1);
  --slant:clamp(22px,3.6vw,56px);
  --ribbon-w:clamp(0px,calc((100vw - 1120px)/2 - 18px),52px);
}

/* Type: a confident grotesk for headings, Figtree stays for reading. */
h1,h2,h3,.lead-in,main .statement,.idea-line,.foot h3{font-family:var(--head)}
h1{font-weight:800;letter-spacing:-.03em;line-height:1}
h2{font-weight:800;letter-spacing:-.025em;line-height:1.02}
h3{font-weight:700;letter-spacing:-.012em}
.lead-in{font-weight:700;letter-spacing:-.005em}
.idea-line{font-weight:700;letter-spacing:-.02em}

/* Every gold line is straight. The marked word gets a straight gold bar that draws from the left. */
.mark::after{background:var(--gold)!important;height:.09em!important;bottom:.02em!important;left:0!important;right:0!important;z-index:-1}
.mark{isolation:isolate}
/* it travels in from the left, then stays still under the word */
.js:not(.calm) .mark::after{transform-origin:0 50%;transform:translateX(var(--from,-110%)) scaleX(.35);opacity:0;transition:transform 1.3s var(--ease-out-strong),opacity .35s ease-out}
.js:not(.calm) .mark.drawn::after{transform:none;opacity:1}

/* A straight gold line under the header shows how far you have read. */
.read-line{position:fixed;left:0;right:0;top:0;height:3px;background:var(--gold);transform:scaleX(0);transform-origin:0 50%;z-index:70;pointer-events:none}

/* Slanted, asymmetric section edges. */
main>.idea,main>.opener.split-open+.chapter{clip-path:polygon(0 var(--slant),100% 0,100% 100%,0 100%);margin-top:calc(var(--slant) * -1);padding-top:calc(var(--slant) + clamp(40px,5vw,72px))}
main>.next{clip-path:polygon(0 0,100% var(--slant),100% 100%,0 100%);padding-top:calc(var(--slant) + clamp(56px,7vw,104px))}
footer{position:relative;clip-path:polygon(0 var(--slant),100% 0,100% 100%,0 100%);margin-top:calc(var(--slant) * -1);padding-top:calc(var(--slant) + 2.5rem)}
main>.opener{padding-bottom:calc(var(--slant) + clamp(40px,5vw,72px))}
main{overflow-x:clip}

/* Buttons answer the press; the arrow leans forward on a mouse. */
.btn{transition:transform .16s var(--ease-out-strong),background-color .2s ease,border-color .2s ease,color .2s ease}
.btn:active{transform:scale(.97)}


/* The four ways: lift and tilt under the mouse, a straight gold line grows under the heading. */
.routes.four{perspective:1400px}
.route{position:relative}
.route h3{position:relative;display:inline-block}
.route h3::after{content:"";position:absolute;left:0;right:0;bottom:-8px;height:3px;background:currentColor;opacity:.9;transform:scaleX(0);transform-origin:0 50%;transition:transform .45s var(--ease-out-strong)}
.route[data-tone=navy] h3::after,.route[data-tone=navy-3] h3::after{background:var(--gold-light)}
@media (hover:hover) and (pointer:fine){.route:hover h3::after{transform:scaleX(1)}}
.route:focus-within h3::after{transform:scaleX(1)}
.route.paper{will-change:transform}
.route.paper.lifted{z-index:2}

/* The idea line lights up word by word as you read down (iris.js); readable if the script fails. */
.idea-line .w{display:inline-block;white-space:pre}
.idea-line span.w:last-child{color:inherit}

/* Headline words rise from behind their own line. */
.js:not(.calm) .iris-split .wm{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.12em;margin-bottom:-.12em}
.iris-split .wi{display:inline-block}

/* Gold ribbon in the right margin, only where the margin is wide enough to never sit over text. */
.ribbon{position:fixed;top:0;right:0;bottom:0;width:var(--ribbon-w);z-index:30;pointer-events:none;opacity:0;transition:opacity 1s ease-out}
.ribbon.on{opacity:1}
.ribbon canvas{display:block;width:100%;height:100%;opacity:.92}
@media (max-width:1219px){.ribbon{display:none}}

/* Leo: round, navy, a little bigger, a gentle float for about ten seconds, then rests. */
html body .leo .leo-launcher{width:72px;height:72px;padding:9px;border:2px solid var(--cream,#FFF3D1);border-radius:50%;background:var(--navy,#06243C);overflow:visible}
html body .leo .leo-launcher svg{width:100%;height:100%}
@media (max-width:700px){html body .leo .leo-launcher{width:58px;height:58px;padding:7px}}
html.js:not(.calm) body .leo .leo-launcher:not(.is-hop):not(.is-tilt){animation:leo-float 3.4s ease-in-out 3}
@keyframes leo-float{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-6px) rotate(-3deg)}}

/* 0 to 100 opening (once per visit, any tap skips it): the sheet folds away. */
.v3-open{position:fixed;inset:0;z-index:300;pointer-events:none}
.v3-open .half{position:absolute;left:0;right:0;height:50.5%;background:#fff;backface-visibility:hidden}
.v3-open .top{top:0;transform-origin:50% 0}
.v3-open .bottom{bottom:0;transform-origin:50% 100%}
.v3-open .count{position:absolute;left:max(20px,calc((100vw - 1120px)/2));bottom:clamp(36px,7vw,72px);margin:0;font:800 clamp(6rem,26vw,18rem)/.8 var(--head);letter-spacing:-.04em;color:var(--navy);font-variant-numeric:tabular-nums lining-nums}
.v3-open .bar{position:absolute;left:max(20px,calc((100vw - 1120px)/2));right:max(20px,calc((100vw - 1120px)/2));bottom:clamp(16px,3vw,32px);height:3px;background:var(--gold);transform:scaleX(0);transform-origin:0 50%}
.v3-open .crease{position:absolute;left:0;right:0;top:50%;height:2px;background:var(--gold);transform:scaleX(0)}

@media (prefers-reduced-motion:reduce){
  .mark::after{transform:none!important;opacity:1!important;transition:none}
  .read-line,.ribbon,.v3-open{display:none}
  .leo .leo-launcher{animation:none!important}
  .btn,.route h3::after{transition:none}
}
.calm .mark::after{transform:none!important;opacity:1!important}

/* Hidden from the first paint while the movement script loads (the head line has a 3.5 s safety net). */
.pre .opener h1,.pre .opener .lead-in,.pre .opener .lead,.pre .opener .note,.pre .opener .cta-row .btn{opacity:0}
.opening body::after{content:"";position:fixed;inset:0;z-index:299;background:#fff}

/* Menu links: a straight gold line grows from the left on hover, and stays under the page you are on. */
@media (min-width:1081px){
  .nav ul a{position:relative;border-bottom-color:transparent!important}
  .nav ul a::after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:2px;background:var(--gold);transform:scaleX(0);transform-origin:0 50%;transition:transform .35s var(--ease-out-strong)}
  .nav ul a:hover::after,.nav ul a[aria-current=page]::after{transform:scaleX(1)}
}

/* Round 3 */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.opener .lead-in .caret{display:inline-block;width:.09em;height:1em;margin-left:.08em;vertical-align:-.12em;background:var(--gold)}
.calm .opener .lead-in .caret{display:none}
.lead-line{position:relative;padding-left:0}
.lead-line::before{content:"";display:inline-block;width:1.6em;height:2px;margin-right:.55em;vertical-align:.32em;background:currentColor;transform:scaleX(var(--lead-line,1));transform-origin:0 50%}
.gold-under{position:relative;display:inline-block}
.gold-under::after{content:"";position:absolute;left:0;right:0;bottom:-.08em;height:.09em;background:var(--gold);transform:scaleX(0);transform-origin:0 50%;transition:transform 1.1s var(--ease-out-strong)}
.gold-under.drawn::after,.calm .gold-under::after{transform:scaleX(1)}
@media (prefers-reduced-motion:reduce){.gold-under::after{transform:scaleX(1);transition:none}.opener .lead-in .caret{display:none}}

/* Round 4: light over polished gold. Leslie asked for this shine on the headline, so it is kept as her brief even though
   the house rules avoid coloured text: the words stay navy, and only a narrow band of warm light passes across them. */
@supports ((-webkit-background-clip:text) or (background-clip:text)){ /* taste-skill-ignore: Leslie asked for the gold light shine */
  .js:not(.calm) .shine .wi{
    color:transparent;-webkit-text-fill-color:transparent;
    background-image:linear-gradient(100deg,var(--navy) 0%,var(--navy) 44%,#6E5320 47%,#E9BD70 49%,#FFF3D1 50%,#E9BD70 51%,#6E5320 53%,var(--navy) 56%,var(--navy) 100%); /* taste-skill-ignore: the moving band of light, by brief */
    background-size:calc(var(--sw,800px) * 3) 100%;background-repeat:no-repeat;
    /* the bright band sits at the middle of a background three headings wide; --sp moves it from left (-.35) to right (1.35) */
    background-position:calc((var(--sp,-.35) - 1.5) * var(--sw,800px) - var(--ox,0px)) 0;
    -webkit-background-clip:text;background-clip:text} /* taste-skill-ignore: by brief */
}

/* Study cases: the Christmas badge sits in the clear space above the headline (it covered "caso" in Spanish),
   stands straight, and uses the heading font. */
.xmas-badge-t{font-family:var(--head)!important;font-weight:800!important;letter-spacing:-.01em}
@media (min-width:901px){.split-open .xmas-badge{top:-178px!important;rotate:0deg;transform:none}}

/* Round 6: the same light on the pictures (Leslie's brief; titles and pictures only). Blended with soft light, so white stays white and the
   artwork keeps its exact colours whenever the light is not passing. */
.glint{position:absolute;inset:0;pointer-events:none;overflow:hidden;mix-blend-mode:overlay;z-index:1}
.glint::before{content:"";position:absolute;top:-10%;bottom:-10%;left:0;width:42%;
  background:linear-gradient(100deg,transparent 0%,rgba(255,244,214,0) 18%,rgba(255,244,214,.95) 50%,rgba(255,244,214,0) 82%,transparent 100%); /* taste-skill-ignore: the moving band of light, by brief */
  transform:translateX(calc(var(--gp,-.4) * 238% - 50%)) skewX(-12deg)}
.art-face .glint,.art-girl .glint{-webkit-mask-image:inherit}
@media (prefers-reduced-motion:reduce){.glint{display:none}}

/* Round 7 (Leslie) */
.round-glint .glint{border-radius:50%}

/* The "Book a free call" button at the top is a rounded button, not an arrow. */
.nav .btn{clip-path:none!important;border-radius:999px;padding:11px 22px!important}

/* English and Spanish: two small round flags. The page you are on has a gold ring. */
.langs{display:flex;gap:0;align-items:center;border:0!important;background:none!important}
.langs .lang{position:relative;width:44px;height:44px;min-width:0!important;min-height:0!important;padding:5px!important;border-radius:50%;display:block;border:0!important;background:none!important;opacity:.6;transition:opacity .2s ease,transform .16s var(--ease-out-strong)}
.langs .lang svg{width:34px;height:34px;display:block;clip-path:circle(50%)}
.langs .lang.on{opacity:1}
.langs .lang.on::before{content:"";position:absolute;inset:2px;border-radius:50%;border:2px solid var(--gold)}
.langs a.lang:hover,.langs a.lang:focus-visible{opacity:1}
.langs a.lang:active{transform:scale(.94)}
.langs .lang::after{content:none!important}

/* Round 8 (Leslie, 19 Nov): the word "Menu" on its own, no box around it. */
.nav .menu-btn{border:0!important;background:none!important;padding:10px 6px!important;font:700 1rem var(--body);color:inherit;text-decoration:underline;text-decoration-color:transparent;text-decoration-thickness:2px;text-underline-offset:.35em}
.nav .menu-btn[aria-expanded=true]{text-decoration-color:var(--gold)}

/* Contact (Leslie, 19 Nov): email and WhatsApp as two round icons that move a little; email opens the form on the page. */
.reach{display:flex;gap:28px;margin-top:28px;flex-wrap:wrap}
.reach-btn{display:flex;flex-direction:column;align-items:center;gap:10px;text-decoration:none;color:inherit;font:700 1rem var(--body)}
.reach-ico{display:grid;place-items:center;width:84px;height:84px;border-radius:50%;background:var(--navy);color:var(--cream,#FFF3D1);transition:transform .25s var(--ease-out-strong),background-color .2s ease}
.reach-ico svg{width:38px;height:38px}
.reach-ico.wa{background:#1F8F4E;color:#fff}
.reach-ico.wa svg{fill:currentColor}
.js:not(.calm) .reach-btn .reach-ico{animation:reach-bob 3.6s ease-in-out infinite}
.js:not(.calm) .reach-btn:nth-child(2) .reach-ico{animation-delay:-1.8s}
@keyframes reach-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@media (hover:hover) and (pointer:fine){.reach-btn:hover .reach-ico{transform:scale(1.08) rotate(-4deg);animation-play-state:paused}}
.reach-btn:focus-visible .reach-ico{outline:3px solid var(--gold);outline-offset:4px}
.reach-btn.pressed .reach-ico{animation:reach-press .45s var(--ease-out-strong) 1}
@keyframes reach-press{0%{transform:scale(1)}35%{transform:scale(.88)}100%{transform:scale(1)}}

.msg-wrap{grid-column:1 / -1;width:100%}
.msg-form{margin-top:40px;max-width:640px;padding:clamp(24px,3vw,40px);background:var(--white,#fff);display:grid;gap:18px}
.msg-form.just-opened{animation:form-in .5s var(--ease-out-strong) 1}
@keyframes form-in{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
.msg-form h3{font-size:1.5rem}
.msg-form .f{display:grid;gap:8px}
.msg-form label,.msg-form legend{font-weight:700}
.msg-form input:not([type=radio]):not([type=checkbox]),.msg-form select,.msg-form textarea{font:inherit;padding:12px 14px;border:2px solid #C7D2DC;border-radius:8px;background:#fff;color:var(--navy);min-height:48px;width:100%}
.msg-form input:focus,.msg-form select:focus,.msg-form textarea:focus{outline:3px solid var(--gold);outline-offset:1px;border-color:var(--navy)}
.msg-form .bad input,.msg-form .bad select,.msg-form .bad textarea{border-color:#B3261E}
.msg-form .yn{border:0;display:flex;gap:22px;align-items:center;flex-wrap:wrap}
.msg-form .yn legend{margin-bottom:8px;width:100%}
.msg-form .yn label{display:flex;gap:8px;align-items:center;font-weight:500;min-height:44px}
.msg-form input[type=radio],.msg-form input[type=checkbox]{width:22px;height:22px;accent-color:var(--navy);flex:none}
.msg-form .tick label{display:flex;gap:12px;align-items:flex-start;font-weight:500;line-height:1.5}
.msg-form .tick.bad span{color:#B3261E}
.msg-form small{color:var(--muted,#3F566A)}
.msg-form .hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.msg-form .btn{justify-self:start}
.msg-status{font-weight:600;min-height:1.5em}
.msg-status.ok{color:#1F6B3A}
.msg-status.err{color:#B3261E}
@media (prefers-reduced-motion:reduce){.reach-btn .reach-ico,.msg-form.just-opened,.reach-btn.pressed .reach-ico{animation:none!important}}

/* Home: the problems we solve (Clara, from the pain-point research). */
.solve .pains{list-style:none;margin-top:24px;display:grid;gap:14px}
.solve .pains li{position:relative;padding-left:30px;font-size:1.12rem;line-height:1.45}
.solve .pains li::before{content:"";position:absolute;left:0;top:.72em;width:18px;height:3px;background:var(--gold)}
.solve .get{font:700 1.3rem/1.35 var(--head);letter-spacing:-.01em}
.solve .why{margin-top:16px}
.solve .cta-row{margin-top:24px;gap:14px;flex-wrap:wrap}
.form-sub{margin-top:-8px;color:var(--muted,#3F566A)}
.promise .promise-sub{margin-top:10px;font-weight:600}
.method-note,.build-intro{margin-top:14px}

/* Services: a round ⊕ that opens the details of each way to buy. */
.route .more{margin-top:16px}
.route .more summary{list-style:none;display:inline-flex;align-items:center;gap:10px;cursor:pointer;font-weight:700;min-height:44px}
.route .more summary::-webkit-details-marker{display:none}
.route .more .plus{position:relative;width:32px;height:32px;border-radius:50%;border:2px solid currentColor;flex:none;transition:transform .3s var(--ease-out-strong),background-color .2s ease}
.route .more .plus::before,.route .more .plus::after{content:"";position:absolute;left:50%;top:50%;width:14px;height:2px;background:currentColor;transform:translate(-50%,-50%)}
.route .more .plus::after{transform:translate(-50%,-50%) rotate(90deg);transition:transform .3s var(--ease-out-strong)}
.route .more[open] .plus{transform:rotate(180deg)}
.route .more[open] .plus::after{transform:translate(-50%,-50%) rotate(0deg)}
@media (hover:hover){.route .more summary:hover .plus{transform:scale(1.08)}}
.route .more summary:focus-visible{outline:3px solid currentColor;outline-offset:3px;border-radius:999px}
.route .more-body{margin-top:12px;font-size:.98rem;line-height:1.55}
.route .more-body ul{margin:6px 0 10px 1.1em}
.route .more-body p+p,.route .more-body ul+p{margin-top:8px}
.route .more[open] .more-body{animation:more-in .35s var(--ease-out-strong) 1}
@keyframes more-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.route .more[open] .more-body{animation:none}.route .more .plus,.route .more .plus::after{transition:none}}

/* hidden parts of the form stay hidden (display:grid above must not override it) */
.msg-form[hidden],.msg-form [hidden]{display:none!important}

.msg-form .form-note{font-size:.88rem;color:var(--muted,#3F566A)}
.msg-form .form-note a{color:inherit}

/* The ⊕ panels take the card's own text colour (they were unreadable on the dark cards) and have no outline. */
.route .more,.route .more summary,.route .more-body,.route .more-body p,.route .more-body li,.route .more-body b{color:var(--ink)!important}
.route .more{border:0!important;padding:0!important;background:none!important}
.route .more summary{border:0!important;padding:0!important}
.route .more-body a{color:inherit}
/* the three problem lines: one simple list, no columns, no rule above */
main .solve ul.pains{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important;border:0!important;padding:0!important;margin-top:24px}
main .solve ul.pains li{border:0!important;padding:0 0 0 30px!important;margin:0!important;max-width:34ch}
main .solve ul.pains li::after{content:none!important}
.route .more summary::after,.route .more summary::before{content:none!important;display:none!important}
