:root{
  --bg:#101a22; --panel:#182631; --line:#25384a; --text:#eaefec; --mute:#9fb0ba;
  --z2:#3fbfad; --z4:#f2a93b; --z5:#e5484d;
  --head:"Archivo",system-ui,sans-serif; --body:"Source Sans 3",system-ui,sans-serif;
}
*{box-sizing:border-box;margin:0}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--text);font:400 1.125rem/1.6 var(--body);-webkit-font-smoothing:antialiased}
h1,h2,h3{font-family:var(--head);line-height:1.05;letter-spacing:-.01em}
a{color:inherit}
:focus-visible{outline:3px solid var(--z4);outline-offset:3px}

.bar{position:sticky;top:0;z-index:5;display:flex;justify-content:space-between;align-items:center;padding:.9rem clamp(1rem,4vw,3rem);background:rgba(16,26,34,.92);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.brand{font:800 1.1rem var(--head);text-decoration:none}
.brand img{display:block;height:58px;width:auto;margin:-10px 0 -10px -12px}
@media (max-width:820px){.brand img{height:50px;margin:-8px 0 -8px -10px}}
.bar nav{display:flex;gap:1.5rem;align-items:center}
.bar nav a{text-decoration:none;color:var(--mute);font-size:1rem}
.bar nav a:hover{color:var(--text)}

.btn{display:inline-block;padding:.85rem 1.6rem;border-radius:6px;background:var(--z2);color:#06231f;font:700 1rem var(--body);text-decoration:none;transition:background .2s}
.btn:hover{background:#5fd6c4}
.btn.small{padding:.5rem 1rem;color:#06231f!important}
.btn.ghost{background:none;color:var(--text);border:2px solid var(--line);margin-left:.5rem}
.btn.ghost:hover{border-color:var(--z2)}

.hero{position:relative;padding:clamp(2.5rem,6vw,5rem) clamp(1rem,4vw,3rem) 11rem;overflow:hidden}
.hero h1{font-size:clamp(3rem,10vw,8.5rem);font-weight:900;font-stretch:112%;max-width:12ch;margin-bottom:1.5rem}
.hero-grid{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:clamp(1.5rem,4vw,4rem);align-items:center;max-width:80rem}
.hero-copy h1{font-size:clamp(3rem,7.4vw,7rem)}
.hero-photo{margin:0;position:relative;border-radius:12px;overflow:hidden;border:1px solid var(--line);background:var(--panel);aspect-ratio:1/1;max-height:min(70vh,600px);justify-self:end;width:100%}
.hero-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 40%}
/* soft fade at the bottom so the photo sits into the page and the trace runs over it */
.hero-photo::after{content:"";position:absolute;inset:auto 0 0 0;height:35%;background:linear-gradient(to top,rgba(16,26,34,.85),rgba(16,26,34,0));pointer-events:none}
.coach-photo{object-position:40% 50%}
@media (max-width:820px){
  .hero-grid{grid-template-columns:1fr}
  .hero-photo{aspect-ratio:4/3;max-height:none;order:2}
  .hero-photo img{object-position:50% 35%}
}

.lead{max-width:34rem;color:var(--mute);font-size:1.3rem;margin-bottom:2rem}
.trace{position:absolute;left:0;right:0;bottom:1.5rem;width:100%;height:140px}
#ecg{stroke-dasharray:var(--len,3000);stroke-dashoffset:var(--len,3000);animation:draw 3.2s cubic-bezier(.4,0,.2,1) .3s forwards}
@keyframes draw{to{stroke-dashoffset:0}}

.wrap{max-width:70rem;margin:0 auto;padding:clamp(3.5rem,8vw,6rem) clamp(1rem,4vw,3rem);border-top:1px solid var(--line)}
.wrap h2{font-size:clamp(1.9rem,4.5vw,3.2rem);font-weight:800;max-width:20ch;margin-bottom:2.5rem}
.split{display:grid;grid-template-columns:1.1fr 1fr;gap:clamp(1.5rem,5vw,4rem);align-items:start}
.flip{grid-template-columns:1fr 1.1fr}
.copy p{margin-bottom:1.5rem;max-width:36rem}
.points{list-style:none;padding:0;display:grid;gap:1.1rem;max-width:36rem}
.points li{padding-left:1rem;border-left:3px solid var(--z2)}
.points strong{display:block;font-family:var(--head);font-size:1.15rem}

.report{background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:1.5rem}
.report figcaption{font:700 1rem var(--head);margin-bottom:1rem}
.row{display:grid;grid-template-columns:4rem 1fr 3rem;gap:.8rem;align-items:center;margin-bottom:.7rem;font-size:.95rem}
.row b{text-align:right;font-weight:600}
.row .meter{height:10px;background:var(--line);border-radius:5px;overflow:hidden}
.row .meter i{display:block;height:100%;width:var(--w);background:var(--c);border-radius:5px}
.report svg{width:100%;margin-top:1rem}
.note{color:var(--mute);font-size:.9rem}

.split img{width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;border-radius:10px;background:var(--panel);border:1px solid var(--line)}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;border-top:1px solid var(--line);padding-top:1.5rem}
.stats dt{color:var(--mute);font-size:.95rem}
.stats dd{font:800 clamp(1.6rem,3.5vw,2.6rem) var(--head);margin-top:.2rem}

.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem;margin-bottom:3.5rem}
.cards article{background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:1.5rem}
.cards article:nth-child(1){border-top:4px solid var(--z2)}
.cards article:nth-child(2){border-top:4px solid var(--z4)}
.cards article:nth-child(3){border-top:4px solid var(--z5)}
.cards h3{font-size:1.4rem;margin-bottom:.6rem}
.cards p{color:var(--mute)}

.steps{list-style:none;padding:0;counter-reset:s;display:grid;grid-template-columns:repeat(4,1fr);gap:1.25rem}
.steps li{counter-increment:s;border-top:2px solid var(--line);padding-top:.9rem;color:var(--mute)}
.steps li::before{content:counter(s);display:block;font:800 1.8rem var(--head);color:var(--z2);margin-bottom:.3rem}
.steps b{color:var(--text)}

.cta p{max-width:34rem;margin-bottom:1.75rem;color:var(--mute)}
.cta .note{margin-top:1.5rem}
footer{padding:2rem clamp(1rem,4vw,3rem);border-top:1px solid var(--line);color:var(--mute);font-size:.95rem}

@media (max-width:820px){
  .split,.flip,.cards{grid-template-columns:1fr}
  .steps{grid-template-columns:1fr 1fr}
  .bar nav a:not(.btn){display:none}
  .hero{padding-bottom:9rem}
  .btn.ghost{margin:.75rem 0 0}
}
@media (prefers-reduced-motion:reduce){
  #ecg{animation:none;stroke-dashoffset:0}
  html{scroll-behavior:auto}
}
