/* ═══════════ TOKENS ═══════════ */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}

:root{
  /* Brand */
  --red:#E8192C;
  --red-ink:#B8121F;
  --navy:#012169;
  --navy-ink:#00133F;

  /* Neutrals — warm, not cold grey */
  --ink:#12151C;
  --ink-2:#3D4351;
  --ink-3:#6E7684;
  --line:#E8E4DE;
  --paper:#FFFFFF;
  --paper-2:#F8F2E7;   /* warm cream */
  --paper-3:#EFE7D9;

  /* Accents */
  --sky:#EAF2FF;
  --blush:#FFEFEF;
  --mint:#EAF7EF;
  --sun:#FFF6E0;

  /* Motion */
  --spring:cubic-bezier(.34,1.4,.64,1);
  --out:cubic-bezier(.16,1,.3,1);
  --smooth:cubic-bezier(.32,.72,0,1);

  /* Rhythm */
  --pad:clamp(1.5rem,5vw,5.5rem);
  --section:clamp(5rem,11vh,9rem);
}

html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:'Plus Jakarta Sans',system-ui,sans-serif;
  background:var(--paper);
  color:var(--ink);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  font-size:16px;line-height:1.6;
}
img{display:block;max-width:100%}
a{color:inherit}

/* Display type */
.display{
  font-family:'Bricolage Grotesque',sans-serif;
  font-weight:800;
  letter-spacing:-.03em;
  line-height:.98;
  text-wrap:balance;
}
.typewriter{font-family:'Special Elite',serif;letter-spacing:-.01em}

/* ═══════════ NAV ═══════════ */
.nav-shell{
  position:fixed;inset:0 0 auto 0;z-index:800;
  padding:14px var(--pad);pointer-events:none;
}
.nav-shell .nav{transition:transform .5s var(--smooth),background .4s var(--smooth),box-shadow .4s var(--smooth),border-color .4s var(--smooth)}
.nav-shell.scrolled .nav{transform:translateY(-4px)}
.nav{
  max-width:1180px;margin:0 auto;
  display:flex;align-items:center;justify-content:space-between;gap:2rem;
  padding:9px 9px 9px 14px;
  background:rgba(255,255,255,.72);
  backdrop-filter:blur(24px) saturate(180%);
  -webkit-backdrop-filter:blur(24px) saturate(180%);
  border:1px solid rgba(18,21,28,.07);
  border-radius:100px;
  box-shadow:0 1px 2px rgba(18,21,28,.04),0 8px 28px -12px rgba(18,21,28,.14);
  pointer-events:auto;
  transition:background .4s var(--smooth),box-shadow .4s var(--smooth),border-color .4s var(--smooth);
}
.nav-shell.scrolled .nav{
  background:rgba(255,255,255,.9);
  box-shadow:0 1px 2px rgba(18,21,28,.05),0 14px 40px -14px rgba(18,21,28,.2);
}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;flex-shrink:0}
.brand-mark{
  width:40px;height:40px;border-radius:12px;overflow:hidden;flex-shrink:0;
  outline:1px solid rgba(18,21,28,.08);outline-offset:-1px;
  background:#fff;
}
.brand-mark img{width:100%;height:100%;object-fit:cover;transform:scale(1.05)}
.brand-name{
  font-family:'Special Elite',serif;font-size:.9rem;line-height:1.1;
  letter-spacing:-.02em;white-space:nowrap;
}
.brand-name i{font-style:normal;color:var(--red)}

.nav-menu{display:flex;gap:.25rem;list-style:none}
.nav-menu a{
  display:block;padding:8px 14px;border-radius:100px;
  font-size:.82rem;font-weight:600;color:var(--ink-2);text-decoration:none;
  transition:background .25s var(--out),color .25s var(--out);
}
.nav-menu a:hover{background:rgba(18,21,28,.05);color:var(--ink)}

.nav-right{display:flex;align-items:center;gap:.5rem}
.lang-pill{
  display:flex;align-items:center;gap:5px;
  padding:7px 11px;border-radius:100px;
  border:1px solid var(--line);background:#fff;
  font-size:.72rem;font-weight:700;color:var(--ink-3);
  cursor:pointer;letter-spacing:.02em;
  transition:border-color .25s var(--out),color .25s var(--out);
}
.lang-pill:hover{border-color:var(--ink-3);color:var(--ink)}

/* Pill button system */
.btn{
  --bg:var(--ink);--fg:#fff;
  display:inline-flex;align-items:center;gap:9px;
  padding:11px 11px 11px 20px;
  background:var(--bg);color:var(--fg);
  border:none;border-radius:100px;
  font-family:'Plus Jakarta Sans',sans-serif;
  font-size:.84rem;font-weight:700;letter-spacing:-.01em;
  text-decoration:none;cursor:pointer;white-space:nowrap;
  transition:transform .3s var(--spring),filter .25s var(--out),box-shadow .3s var(--out);
  will-change:transform;
}
.btn:hover{transform:translateY(-2px);filter:brightness(1.08)}
.btn:active{transform:scale(.96)}
.btn .chip{
  width:26px;height:26px;border-radius:100px;flex-shrink:0;
  background:rgba(255,255,255,.2);
  display:grid;place-items:center;
  transition:transform .3s var(--spring);
}
.btn:hover .chip{transform:translate(2px,-2px)}
.btn svg{width:12px;height:12px;stroke:currentColor;stroke-width:2.4;fill:none;stroke-linecap:round;stroke-linejoin:round}

.btn--red{--bg:var(--red);box-shadow:0 2px 4px rgba(232,25,44,.16),0 10px 28px -10px rgba(232,25,44,.6)}
.btn--navy{--bg:var(--navy);box-shadow:0 2px 4px rgba(1,33,105,.16),0 10px 28px -10px rgba(1,33,105,.55)}
.btn--sm{padding:9px 9px 9px 16px;font-size:.78rem}
.btn--sm .chip{width:24px;height:24px}
.btn--ghost{
  --bg:transparent;--fg:var(--ink);
  padding:12px 22px;border:1.5px solid var(--line);
  box-shadow:none;
}
.btn--ghost:hover{border-color:var(--ink);filter:none}
.btn--white{--bg:#fff;--fg:var(--ink)}
.btn--white .chip{background:rgba(18,21,28,.07)}

/* ═══════════ HERO ═══════════ */
.hero{
  position:relative;
  padding:calc(84px + clamp(2rem,6vh,5rem)) var(--pad) clamp(3rem,7vh,5.5rem);
  overflow:hidden;
}
/* soft brand wash */
.hero::before{
  content:'';position:absolute;
  top:-30%;right:-10%;width:70vw;height:70vw;max-width:900px;max-height:900px;
  background:radial-gradient(circle at 50% 50%,rgba(232,25,44,.055),transparent 64%);
  pointer-events:none;
}
.hero::after{
  content:'';position:absolute;
  bottom:-30%;left:-15%;width:55vw;height:55vw;max-width:700px;max-height:700px;
  background:radial-gradient(circle at 50% 50%,rgba(232,25,44,.05),transparent 62%);
  pointer-events:none;
}
.hero-grid{
  position:relative;z-index:2;
  max-width:1180px;margin:0 auto;
  display:grid;grid-template-columns:1.02fr .98fr;
  gap:clamp(2rem,5vw,4.5rem);align-items:center;
}

/* — Hero copy — */
/* The hero eyebrow (flag pill + credential line) was removed: it duplicated
   the Union Jack that the brand logo already owns, with a worse drawing, and
   it put the awarding body above the school's own name. The brand lockup
   below takes its place. */
.hero-brand{
  display:block;
  width:clamp(86px,8.4vw,118px);
  margin-bottom:clamp(1.4rem,3vh,2rem);
}
.hero-brand img{width:100%;height:auto}

.hero h1{
  font-size:clamp(2.9rem,6vw,4.7rem);
  margin-bottom:1.4rem;
}

.hero-lede{
  font-size:clamp(1rem,1.15vw,1.09rem);
  color:var(--ink-3);line-height:1.72;
  max-width:34ch;text-wrap:pretty;
  margin-bottom:2.1rem;
}
.hero-lede b{color:var(--ink-2);font-weight:700}

.hero-cta{display:flex;gap:.7rem;flex-wrap:wrap;margin-bottom:2.6rem}

/* Trust row with avatars */
.stars{color:#F5A623;letter-spacing:1px;font-size:.72rem}

/* — Hero visual — */
.hero-visual{position:relative;aspect-ratio:1/1.03}

.frame{
  position:absolute;border-radius:28px;overflow:hidden;
  background:var(--paper-3);
  box-shadow:0 1px 2px rgba(18,21,28,.05),0 24px 60px -22px rgba(18,21,28,.3);
  outline:1px solid rgba(18,21,28,.07);outline-offset:-1px;
}
.frame-main{inset:0 36% 0 0;z-index:1}
.frame-sub{right:0;bottom:0;width:44%;height:56%;z-index:3;border-radius:24px}

/* Photo placeholder styling */
.ph{
  width:100%;height:100%;position:relative;
  display:grid;place-items:center;text-align:center;padding:1.5rem;
}
.ph-a{background:linear-gradient(150deg,#EAF2FF 0%,#D6E6FF 55%,#C3DAFF 100%)}
.ph-b{background:linear-gradient(150deg,#FFEFEF 0%,#FFDCDC 100%)}
.ph-c{background:linear-gradient(150deg,#EAF7EF 0%,#D3EEDF 100%)}
.ph-d{background:linear-gradient(150deg,#FFF6E0 0%,#FFE9B8 100%)}
.ph::after{
  content:'';position:absolute;inset:0;
  background-image:radial-gradient(circle,rgba(1,33,105,.09) 1px,transparent 1px);
  background-size:20px 20px;opacity:.6;
}
.ph-inner{position:relative;z-index:2;color:var(--navy);opacity:.55}
.ph-inner svg{width:34px;height:34px;margin:0 auto .5rem;stroke:currentColor;stroke-width:1.5;fill:none}
.ph-inner span{font-size:.75rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase}

/* Logo badge overlapping frames */
@keyframes bob{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-13px) rotate(-2deg)}}

/* ═══════════ CREDENTIAL CHIP ═══════════ */

/* ═══════════ EXAM LADDER ═══════════ */
.exams{background:var(--paper-2);border-top:1px solid var(--line)}
.ladder{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin-bottom:1.6rem}
.rung{
  background:#fff;border:1px solid var(--line);border-radius:20px;
  padding:1.5rem 1.4rem;position:relative;overflow:hidden;
  transition:transform .4s var(--spring),box-shadow .4s var(--out),border-color .4s var(--out);
}
.rung:hover{transform:translateY(-5px);border-color:transparent;box-shadow:0 24px 55px -26px rgba(18,21,28,.3)}
.rung::before{
  content:'';position:absolute;top:0;left:0;right:0;height:3px;
}
.rung-1::before{background:#5CC98F}
.rung-2::before{background:#5B8DEF}
.rung-3::before{background:#F5A623}
.rung-4::before{background:var(--red)}
.rung-lvl{
  font-family:'Bricolage Grotesque',sans-serif;font-weight:800;
  font-size:1.9rem;line-height:1;letter-spacing:-.04em;margin-bottom:.5rem;
}
.rung-1 .rung-lvl{color:#1E7A4C}
.rung-2 .rung-lvl{color:var(--navy)}
.rung-3 .rung-lvl{color:#B07B12}
.rung-4 .rung-lvl{color:var(--red)}
.rung-name{font-size:.95rem;font-weight:800;letter-spacing:-.015em;margin-bottom:.35rem}
.rung-desc{font-size:.8rem;color:var(--ink-3);line-height:1.6;text-wrap:pretty}
.rung-age{
  display:inline-block;margin-top:.9rem;
  font-size:.73rem;font-weight:700;color:var(--ink-3);
  padding:3px 10px;border-radius:100px;background:var(--paper-3);
}
.yle-note{
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  background:#fff;border:1px solid var(--line);border-radius:18px;
  padding:1.1rem 1.4rem;
}
.yle-note strong{font-size:.86rem;font-weight:800;letter-spacing:-.01em;white-space:nowrap}
.yle-note span{font-size:.84rem;color:var(--ink-3);line-height:1.6}
.yle-tags{display:flex;gap:.4rem;flex-wrap:wrap}
.yle-tag{
  font-size:.75rem;font-weight:700;padding:4px 11px;border-radius:100px;
  background:var(--sun);color:#8A5B00;
}
@media (max-width:940px){.ladder{grid-template-columns:1fr 1fr}}
@media (max-width:600px){.ladder{grid-template-columns:1fr}}

/* ═══════════ MARQUEE ═══════════ */
.marquee{
  border-top:1px solid var(--line);border-bottom:1px solid var(--line);
  background:var(--paper-2);
  padding:16px 0;overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent);
}
.marquee-track{
  display:flex;width:max-content;
  animation:slide 42s linear infinite;
}
.marquee-track:hover{animation-play-state:paused}
@keyframes slide{to{transform:translateX(-50%)}}
.marquee-item{
  display:flex;align-items:center;gap:11px;
  padding:0 2rem;
  font-size:.86rem;font-weight:700;color:var(--ink-2);
  letter-spacing:-.01em;white-space:nowrap;
}
.marquee-item i{
  width:5px;height:5px;border-radius:100px;background:var(--red);
  flex-shrink:0;display:block;
}

/* ═══════════ SECTION SCAFFOLD ═══════════ */
.section{padding:var(--section) var(--pad)}
.wrap{max-width:1180px;margin:0 auto}
.sec-head{max-width:640px;margin-bottom:clamp(2.5rem,5vh,4rem)}
.sec-head.center{margin-inline:auto;text-align:center}
/* Section kickers removed. A small uppercase label above every heading is
   the single most reliable sign of a templated page; the headings carry
   themselves. */
.sec-head h2{font-size:clamp(2rem,4vw,3.1rem);margin-bottom:.9rem}
.sec-head p{color:var(--ink-3);font-size:1.02rem;line-height:1.72;text-wrap:pretty}

/* ═══════════ COURSES — editorial rows ═══════════ */
.courses{background:var(--paper-2)}
.course-list{display:flex;flex-direction:column;border-top:1px solid var(--line)}
.course{
  display:grid;
  grid-template-columns:56px 1fr 1.25fr auto;
  gap:clamp(1rem,3vw,2.5rem);align-items:center;
  padding:clamp(1.6rem,3.5vh,2.4rem) 0;
  border-bottom:1px solid var(--line);
  position:relative;
  transition:transform .45s var(--out);
}
.course::before{
  content:'';position:absolute;inset:0 -1.5rem;border-radius:20px;
  background:#fff;opacity:0;z-index:0;
  box-shadow:0 20px 50px -24px rgba(18,21,28,.28);
  transition:opacity .4s var(--out);
}
.course:hover{transform:translateX(1.4rem)}
.course:hover::before{opacity:1}
.course > *{position:relative;z-index:1}

.course-idx{
  font-family:'Bricolage Grotesque',sans-serif;font-weight:700;
  font-size:.9rem;color:var(--ink-3);
  font-variant-numeric:tabular-nums;
}
.course-title{display:flex;flex-direction:column;gap:.4rem}
.course-title h3{
  font-family:'Bricolage Grotesque',sans-serif;font-weight:700;
  font-size:clamp(1.25rem,2.1vw,1.65rem);letter-spacing:-.025em;line-height:1.1;
}
.course-tag{
  align-self:flex-start;
  font-size:.73rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;
  padding:4px 11px;border-radius:100px;
}
.tag-red{background:var(--blush);color:var(--red-ink)}
.tag-navy{background:var(--sky);color:var(--navy)}
.tag-sun{background:var(--sun);color:#8A5B00}
.tag-mint{background:var(--mint);color:#1E7A4C}
.course-desc{color:var(--ink-3);font-size:.92rem;line-height:1.7;text-wrap:pretty}
.course-go{
  width:44px;height:44px;border-radius:100px;flex-shrink:0;
  border:1.5px solid var(--line);background:#fff;
  display:grid;place-items:center;
  transition:background .3s var(--out),border-color .3s var(--out),transform .35s var(--spring);
}
.course-go svg{width:15px;height:15px;stroke:var(--ink);stroke-width:2.2;fill:none;stroke-linecap:round;stroke-linejoin:round;transition:stroke .3s}
.course:hover .course-go{background:var(--red);border-color:var(--red);transform:translate(3px,-3px)}
.course:hover .course-go svg{stroke:#fff}

/* ═══════════ METHOD — split ═══════════ */
.method-grid{
  display:grid;grid-template-columns:.95fr 1.05fr;
  gap:clamp(2rem,5vw,5rem);align-items:center;
}
.method-visual{position:relative;aspect-ratio:1/1.02}
.method-frame{
  position:absolute;inset:0 12% 12% 0;
  border-radius:28px;overflow:hidden;
  box-shadow:0 1px 2px rgba(18,21,28,.05),0 26px 60px -24px rgba(18,21,28,.3);
  outline:1px solid rgba(18,21,28,.06);outline-offset:-1px;
}
.method-frame-2{
  position:absolute;right:0;bottom:0;width:52%;height:46%;
  border-radius:24px;overflow:hidden;
  box-shadow:0 1px 2px rgba(18,21,28,.05),0 20px 44px -18px rgba(18,21,28,.28);
  outline:1px solid rgba(18,21,28,.06);outline-offset:-1px;
  border:5px solid #fff;
}

.pillars{display:flex;flex-direction:column;gap:.5rem;margin-top:2rem}
.pillar{
  display:flex;gap:16px;align-items:flex-start;
  padding:1.15rem;border-radius:18px;
  transition:background .3s var(--out);
}
.pillar:hover{background:var(--paper-2)}
.pillar-ico{
  width:42px;height:42px;border-radius:13px;flex-shrink:0;
  display:grid;place-items:center;
}
.pillar-ico svg{width:19px;height:19px;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
.i-red{background:var(--blush)} .i-red svg{stroke:var(--red)}
.i-navy{background:var(--sky)} .i-navy svg{stroke:var(--navy)}
.i-mint{background:var(--mint)} .i-mint svg{stroke:#1E7A4C}
.i-sun{background:var(--sun)} .i-sun svg{stroke:#B07B12}
.pillar-txt h3{font-size:.97rem;font-weight:800;letter-spacing:-.015em;margin-bottom:.25rem}
.pillar-txt p{font-size:.86rem;color:var(--ink-3);line-height:1.65;text-wrap:pretty}

/* ═══════════ NUMBERS BAND ═══════════ */
.band{
  background:var(--navy);color:#fff;
  padding:clamp(3rem,7vh,4.5rem) var(--pad);
  position:relative;overflow:hidden;
}
.band::before{
  content:'';position:absolute;top:-40%;right:-5%;
  width:520px;height:520px;
  background:radial-gradient(circle,rgba(232,25,44,.3),transparent 62%);
  pointer-events:none;
}
.band-grid{
  position:relative;z-index:2;max-width:1180px;margin:0 auto;
  display:grid;grid-template-columns:repeat(4,1fr);gap:1px;
  background:rgba(255,255,255,.13);
  border-radius:22px;overflow:hidden;
}
.band-cell{background:var(--navy);padding:1.9rem 1.5rem;text-align:center}
.band-n{
  font-family:'Bricolage Grotesque',sans-serif;font-weight:800;
  font-size:clamp(2rem,3.6vw,2.9rem);line-height:1;letter-spacing:-.04em;
  font-variant-numeric:tabular-nums;
}
.band-n.r{color:#FF6B7A}
.band-l{font-size:.75rem;font-weight:600;color:rgba(255,255,255,.55);margin-top:.5rem;letter-spacing:.01em}

/* ═══════════ TESTIMONIALS ═══════════ */
.testi-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.1rem}
.testi{
  background:#fff;border:1px solid var(--line);
  border-radius:24px;padding:1.9rem;
  display:flex;flex-direction:column;
  transition:transform .4s var(--spring),box-shadow .4s var(--out),border-color .4s var(--out);
}
.testi:hover{
  transform:translateY(-5px);
  border-color:transparent;
  box-shadow:0 24px 55px -26px rgba(18,21,28,.33);
}
.testi .stars{font-size:.85rem;margin-bottom:1rem;letter-spacing:2px}
.testi q{
  font-size:.95rem;line-height:1.72;color:var(--ink-2);
  quotes:none;flex:1;text-wrap:pretty;margin-bottom:1.5rem;
}
.testi-who{display:flex;align-items:center;gap:11px;padding-top:1.2rem;border-top:1px solid var(--line)}
.testi-av{
  width:40px;height:40px;border-radius:100px;flex-shrink:0;
  display:grid;place-items:center;
  font-size:.85rem;font-weight:800;color:#fff;
}
.av-1{background:linear-gradient(140deg,#F76B7E,#E8192C)}
.av-2{background:linear-gradient(140deg,#5B8DEF,#012169)}
.av-3{background:linear-gradient(140deg,#5CC98F,#1E7A4C)}
.testi-who b{display:block;font-size:.87rem;font-weight:800;letter-spacing:-.01em}
.testi-who span{font-size:.76rem;color:var(--ink-3)}

/* ═══════════ INSTAGRAM ═══════════ */
.insta{background:var(--paper-2)}
.insta-head{
  display:flex;align-items:flex-end;justify-content:space-between;gap:2rem;
  margin-bottom:2.2rem;flex-wrap:wrap;
}
.insta-head .sec-head{margin-bottom:0}
.ig-btn{
  --bg:linear-gradient(125deg,#F58529,#DD2A7B 52%,#8134AF);
  display:inline-flex;align-items:center;gap:9px;
  padding:12px 22px;border-radius:100px;
  background:var(--bg);color:#fff;
  font-size:.84rem;font-weight:700;text-decoration:none;
  box-shadow:0 2px 4px rgba(221,42,123,.18),0 12px 30px -12px rgba(221,42,123,.62);
  transition:transform .3s var(--spring),filter .25s var(--out);
}
.ig-btn:hover{transform:translateY(-2px);filter:brightness(1.07)}
.ig-btn:active{transform:scale(.96)}
.ig-btn svg{width:17px;height:17px;stroke:#fff;stroke-width:2;fill:none}

.ig-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.75rem}
.ig-cell{
  border-radius:16px;overflow:hidden;position:relative;
  outline:1px solid rgba(18,21,28,.06);outline-offset:-1px;
  transition:transform .4s var(--spring);
}
.ig-cell:hover{transform:scale(1.045);z-index:2}
.ig-cell::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(150deg,rgba(221,42,123,0),rgba(129,52,175,.16));
  opacity:0;transition:opacity .35s var(--out);
}
.ig-cell:hover::after{opacity:1}
.ig-note{
  margin-top:1.4rem;font-size:.8rem;color:var(--ink-3);
  display:flex;align-items:center;gap:8px;
}
.ig-note svg{width:14px;height:14px;stroke:var(--ink-3);stroke-width:2;fill:none;flex-shrink:0}

/* ═══════════ CTA ═══════════ */
.cta-sec{padding:0 var(--pad) var(--section)}
.cta{
  max-width:1180px;margin:0 auto;
  background:var(--ink);color:#fff;
  border-radius:36px;
  padding:clamp(2.5rem,6vw,4.5rem);
  display:grid;grid-template-columns:1.15fr .85fr;
  gap:clamp(2rem,4vw,4rem);align-items:center;
  position:relative;overflow:hidden;
}
.cta::before{
  content:'';position:absolute;top:-45%;right:-8%;
  width:600px;height:600px;
  background:radial-gradient(circle,rgba(232,25,44,.26),transparent 62%);
  pointer-events:none;
}
.cta::after{
  content:'';position:absolute;bottom:-55%;left:-10%;
  width:520px;height:520px;
  background:radial-gradient(circle,rgba(1,33,105,.5),transparent 64%);
  pointer-events:none;
}
.cta > *{position:relative;z-index:2}
.cta h2{font-size:clamp(1.9rem,3.6vw,2.9rem);margin-bottom:1rem}
.cta p{color:rgba(255,255,255,.6);font-size:1rem;line-height:1.72;max-width:40ch;margin-bottom:2rem;text-wrap:pretty}
.cta-btns{display:flex;gap:.7rem;flex-wrap:wrap}
.cta .btn--ghost{--fg:#fff;border-color:rgba(255,255,255,.22)}
.cta .btn--ghost:hover{border-color:#fff;background:rgba(255,255,255,.07)}

.cta-card{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.11);
  border-radius:24px;padding:1.75rem;
  backdrop-filter:blur(10px);
}
.cta-row{
  display:flex;align-items:flex-start;gap:13px;
  padding:.85rem 0;border-bottom:1px solid rgba(255,255,255,.08);
}
.cta-row:last-child{border-bottom:none;padding-bottom:0}
.cta-row:first-child{padding-top:0}
.cta-ico{
  width:36px;height:36px;border-radius:11px;flex-shrink:0;
  background:rgba(255,255,255,.08);display:grid;place-items:center;
}
.cta-ico svg{width:16px;height:16px;stroke:#fff;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
.cta-row dt{font-size:.75rem;font-weight:700;color:rgba(255,255,255,.45);text-transform:uppercase;letter-spacing:.06em;margin-bottom:2px}
.cta-row dd p,.cta-row p{color:#fff;font-size:.88rem;margin:0;line-height:1.55;max-width:none}
.cta-row a{color:#fff;text-decoration:none;font-size:.88rem;transition:color .25s}
.cta-row a:hover{color:#FF6B7A}

/* ═══════════ MAP ═══════════ */
.map-sec{padding:0 var(--pad) var(--section)}
.map-shell{
  max-width:1180px;margin:0 auto;
  border-radius:28px;overflow:hidden;
  border:1px solid var(--line);
  box-shadow:0 20px 50px -28px rgba(18,21,28,.28);
}
.map-shell iframe{width:100%;height:380px;border:0;display:block;filter:saturate(.85)}

/* ═══════════ FOOTER ═══════════ */
footer{
  border-top:1px solid var(--line);
  padding:clamp(2.5rem,5vh,3.5rem) var(--pad) 2rem;
}
.foot-grid{
  max-width:1180px;margin:0 auto;
  display:flex;justify-content:space-between;align-items:flex-start;
  gap:2.5rem;flex-wrap:wrap;
  padding-bottom:2rem;border-bottom:1px solid var(--line);
}
.foot-brand{max-width:290px}
.foot-brand .brand{margin-bottom:1rem}
.foot-brand p{font-size:.84rem;color:var(--ink-3);line-height:1.7}
.foot-cols{display:flex;gap:clamp(2rem,5vw,4.5rem);flex-wrap:wrap}
.foot-col h2{font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:var(--ink-3);margin-bottom:.85rem}
.foot-col a,.foot-col p{
  display:block;font-size:.85rem;color:var(--ink-2);
  text-decoration:none;margin-bottom:.5rem;line-height:1.55;
  transition:color .25s var(--out);
}
.foot-col a:hover{color:var(--red)}
.foot-social{display:flex;gap:.5rem;margin-top:.25rem}
.fs{
  width:38px;height:38px;border-radius:12px;
  border:1px solid var(--line);background:#fff;
  display:grid;place-items:center;
  transition:transform .3s var(--spring),border-color .3s var(--out),background .3s var(--out);
}
.fs svg{width:16px;height:16px;stroke:var(--ink-2);stroke-width:1.9;fill:none}
.fs:hover{transform:translateY(-3px);border-color:var(--ink);background:var(--paper-2)}
.foot-bar{
  max-width:1180px;margin:0 auto;padding-top:1.5rem;
  display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;
  font-size:.76rem;color:var(--ink-3);
}

/* ═══════════ REVEAL ═══════════ */
.rv{opacity:0;transform:translateY(26px);transition:opacity .8s var(--out),transform .8s var(--out)}
.rv.on{opacity:1;transform:none}
.rv-1{transition-delay:.06s} .rv-2{transition-delay:.12s} .rv-3{transition-delay:.18s}
.rv-4{transition-delay:.24s} .rv-5{transition-delay:.3s} .rv-6{transition-delay:.36s}

/* Hero entrance */
.hero-in{opacity:0;transform:translateY(20px);animation:heroUp .95s var(--out) forwards}
.hi-1{animation-delay:.08s} .hi-2{animation-delay:.18s} .hi-3{animation-delay:.28s}
.hi-4{animation-delay:.38s} .hi-5{animation-delay:.48s} .hi-6{animation-delay:.3s}
@keyframes heroUp{to{opacity:1;transform:none}}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width:1080px){
  .ig-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:940px){
  .nav-menu{display:none}
  .hero-grid{grid-template-columns:1fr;gap:3rem}
  .hero-visual{max-width:480px;margin:0 auto;width:100%}
  .hero-lede{max-width:46ch}
  .method-grid{grid-template-columns:1fr;gap:2.5rem}
  .method-visual{max-width:440px}
  .band-grid{grid-template-columns:1fr 1fr}
  .testi-grid{grid-template-columns:1fr}
  .cta{grid-template-columns:1fr}
  .course{grid-template-columns:36px 1fr auto;row-gap:.6rem}
  .course-desc{grid-column:2/4}
}
@media (max-width:600px){
  .brand-name{display:none}
  .hero h1{font-size:clamp(2.4rem,10vw,3.2rem)}
  .band-grid{grid-template-columns:1fr;border-radius:18px}
  .ig-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cta{border-radius:26px}
    .foot-grid{flex-direction:column}
}

/* ═══════════════════════════════════════════════════════════
   ADDITIONS — a11y, language switcher, mobile nav, map consent
   ═══════════════════════════════════════════════════════════ */

/* ── Focus ─────────────────────────────────────────────── */
:focus{outline:none}
:focus-visible{
  outline:2.5px solid var(--navy);
  outline-offset:3px;
  border-radius:6px;
}
.btn:focus-visible,.lang-btn:focus-visible,.nav-menu a:focus-visible,
.burger:focus-visible,.drawer-menu a:focus-visible{outline-offset:3px;border-radius:100px}

/* ── Skip link ─────────────────────────────────────────── */
.skip{
  position:fixed;top:-100px;left:var(--pad);z-index:2000;
  padding:12px 20px;border-radius:100px;
  background:var(--ink);color:#fff;
  font-size:.84rem;font-weight:700;text-decoration:none;
  transition:top .35s var(--spring);
}
.skip:focus-visible{top:14px}

/* ── Language switcher ─────────────────────────────────── */
.lang{position:relative;flex-shrink:0}
.lang-btn{
  display:flex;align-items:center;gap:6px;
  padding:7px 10px 7px 11px;border-radius:100px;
  border:1px solid var(--line);background:#fff;
  font-family:'Plus Jakarta Sans',sans-serif;
  font-size:.72rem;font-weight:700;color:var(--ink-2);
  cursor:pointer;letter-spacing:.03em;
  transition:border-color .25s var(--out),color .25s var(--out),transform .3s var(--spring);
}
.lang-btn:hover{border-color:var(--ink-3);color:var(--ink)}
.lang-btn:active{transform:scale(.96)}
.lang-btn .caret{
  width:9px;height:9px;stroke:currentColor;stroke-width:2.6;fill:none;
  stroke-linecap:round;stroke-linejoin:round;
  transition:transform .35s var(--spring);
}
.lang-btn[aria-expanded="true"] .caret{transform:rotate(180deg)}
.lang-btn .globe{width:13px;height:13px;stroke:currentColor;stroke-width:1.9;fill:none}

.lang-menu{
  position:absolute;top:calc(100% + 10px);right:0;z-index:60;
  min-width:172px;padding:6px;
  background:rgba(255,255,255,.86);
  backdrop-filter:blur(24px) saturate(180%);
  -webkit-backdrop-filter:blur(24px) saturate(180%);
  border:1px solid rgba(18,21,28,.08);
  border-radius:18px;
  box-shadow:0 2px 6px rgba(18,21,28,.05),0 18px 44px -16px rgba(18,21,28,.28);
  list-style:none;
  opacity:0;visibility:hidden;
  transform:translateY(-8px) scale(.97);
  transform-origin:top right;
  transition:opacity .28s var(--out),transform .38s var(--spring),visibility .28s;
}
.lang.open .lang-menu{opacity:1;visibility:visible;transform:none}
.lang-menu a{
  display:flex;align-items:center;gap:10px;
  padding:9px 11px;border-radius:12px;
  font-size:.82rem;font-weight:600;color:var(--ink-2);text-decoration:none;
  transition:background .22s var(--out),color .22s var(--out);
}
.lang-menu a:hover{background:rgba(18,21,28,.05);color:var(--ink)}
.lang-menu a[aria-current="true"]{color:var(--ink);font-weight:700}
.lang-menu .code{
  display:grid;place-items:center;
  width:26px;height:20px;border-radius:5px;flex-shrink:0;
  background:var(--paper-3);
  font-size:.7rem;font-weight:800;letter-spacing:.04em;color:var(--ink-3);
}
.lang-menu a[aria-current="true"] .code{background:var(--navy);color:#fff}
.lang-menu .tick{margin-left:auto;width:13px;height:13px;stroke:var(--red);stroke-width:3;fill:none;stroke-linecap:round;stroke-linejoin:round;opacity:0}
.lang-menu a[aria-current="true"] .tick{opacity:1}

/* ── Burger ────────────────────────────────────────────── */
.burger{
  display:none;
  width:40px;height:40px;flex-shrink:0;
  border:1px solid var(--line);border-radius:100px;background:#fff;
  cursor:pointer;
  place-items:center;
  transition:border-color .25s var(--out),transform .3s var(--spring);
}
.burger:hover{border-color:var(--ink-3)}
.burger:active{transform:scale(.96)}
.burger span{
  position:relative;display:block;
  width:16px;height:1.8px;border-radius:2px;background:var(--ink);
  transition:transform .45s var(--spring),background .2s var(--out);
}
.burger span::before,.burger span::after{
  content:'';position:absolute;left:0;
  width:16px;height:1.8px;border-radius:2px;background:var(--ink);
  transition:transform .45s var(--spring),opacity .2s var(--out);
}
.burger span::before{transform:translateY(-5.5px)}
.burger span::after{transform:translateY(5.5px)}
body.menu-open .burger span{background:transparent}
body.menu-open .burger span::before{transform:rotate(45deg)}
body.menu-open .burger span::after{transform:rotate(-45deg)}

/* ── Mobile drawer ─────────────────────────────────────── */
.drawer{
  position:fixed;inset:0;z-index:790;
  display:flex;flex-direction:column;justify-content:center;
  padding:calc(84px + 2rem) var(--pad) 2rem;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(28px) saturate(180%);
  -webkit-backdrop-filter:blur(28px) saturate(180%);
  opacity:0;visibility:hidden;
  transition:opacity .4s var(--out),visibility .4s;
  overflow-y:auto;
}
body.menu-open .drawer{opacity:1;visibility:visible}
body.menu-open{overflow:hidden}
.drawer-menu{list-style:none;display:flex;flex-direction:column;gap:.15rem}
.drawer-menu a{
  display:flex;align-items:baseline;gap:14px;
  padding:11px 4px;text-decoration:none;
  font-family:'Bricolage Grotesque',sans-serif;
  font-weight:700;font-size:clamp(1.9rem,8vw,2.6rem);
  letter-spacing:-.03em;line-height:1;color:var(--ink);
  opacity:0;transform:translateY(14px);
  transition:opacity .5s var(--out),transform .55s var(--out),color .2s var(--out);
}
.drawer-menu a:active{color:var(--red)}
.drawer-menu a .n{
  font-family:'Plus Jakarta Sans',sans-serif;
  font-size:.75rem;font-weight:700;color:var(--ink-3);
  font-variant-numeric:tabular-nums;
}
body.menu-open .drawer-menu a{opacity:1;transform:none}
body.menu-open .drawer-menu li:nth-child(1) a{transition-delay:.06s}
body.menu-open .drawer-menu li:nth-child(2) a{transition-delay:.11s}
body.menu-open .drawer-menu li:nth-child(3) a{transition-delay:.16s}
body.menu-open .drawer-menu li:nth-child(4) a{transition-delay:.21s}
body.menu-open .drawer-menu li:nth-child(5) a{transition-delay:.26s}
body.menu-open .drawer-menu li:nth-child(6) a{transition-delay:.31s}

.drawer-foot{
  margin-top:2.5rem;padding-top:1.75rem;border-top:1px solid var(--line);
  display:flex;flex-direction:column;gap:1.1rem;
  opacity:0;transform:translateY(14px);
  transition:opacity .5s var(--out) .34s,transform .55s var(--out) .34s;
}
body.menu-open .drawer-foot{opacity:1;transform:none}
.drawer-foot .btn{justify-content:center}
.drawer-langs{display:flex;gap:.4rem}
.drawer-langs a{
  flex:1;padding:11px 8px;border-radius:14px;text-align:center;
  border:1px solid var(--line);background:#fff;text-decoration:none;
  font-size:.76rem;font-weight:700;letter-spacing:.03em;color:var(--ink-3);
  transition:border-color .25s var(--out),color .25s var(--out),transform .3s var(--spring);
}
.drawer-langs a:active{transform:scale(.96)}
.drawer-langs a[aria-current="true"]{border-color:var(--ink);background:var(--ink);color:#fff}
.drawer-tel{
  display:flex;flex-direction:column;gap:2px;
  font-size:.8rem;color:var(--ink-3);
}
.drawer-tel b{font-size:1rem;color:var(--ink);letter-spacing:-.01em}

/* ── Map consent gate ──────────────────────────────────── */
/* The shell used to take its height from the iframe. With the iframe
   held back until consent, it needs a height of its own. */
.map-shell{position:relative;min-height:380px}
.cta-row a,.cta-row dd p,.cta-row p{overflow-wrap:anywhere}
.map-consent{
  position:absolute;inset:0;z-index:2;
  display:grid;place-items:center;
  padding:2rem var(--pad);
  background:var(--paper-2);
  text-align:center;
}
.map-consent-in{max-width:34rem;display:flex;flex-direction:column;align-items:center;gap:1rem}
.map-consent svg{width:26px;height:26px;stroke:var(--ink-3);stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}
.map-consent h2{
  font-family:'Bricolage Grotesque',sans-serif;
  font-size:1.15rem;font-weight:700;letter-spacing:-.02em;color:var(--ink);
}
.map-consent p{font-size:.85rem;line-height:1.6;color:var(--ink-3);text-wrap:pretty}
.map-consent .addr{
  font-size:.8rem;font-weight:600;color:var(--ink-2);
}
.map-shell.loaded .map-consent{display:none}

/* ── Responsive: nav ───────────────────────────────────── */
@media (max-width:940px){
  .burger{display:grid}
  .lang{display:none}          /* moves into the drawer */
}
@media (max-width:600px){
  /* keep the CTA in the bar — it is the conversion action — but tighten it */
  .nav-right{gap:.35rem}
  .nav-right .btn--sm{padding:8px 8px 8px 13px;font-size:.72rem}
  .nav-right .btn--sm .chip{width:21px;height:21px}
}
@media (max-width:340px){
  .nav-right .btn--sm{display:none}   /* the drawer still carries it */
}
@media (min-width:941px){
  .drawer{display:none}
}

/* ═══════════════════════════════════════════════════════════
   CREDENTIAL BAND — the one place Cambridge is named up front
   ═══════════════════════════════════════════════════════════ */
.creds{
  padding:clamp(1.6rem,3.6vh,2.4rem) var(--pad);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.creds-in{
  max-width:1180px;margin:0 auto;
  display:flex;align-items:center;gap:clamp(1.5rem,5vw,4rem);
  flex-wrap:wrap;
}
.cred{display:flex;align-items:center;gap:14px;min-width:0}
.cred + .cred{
  padding-left:clamp(1.5rem,5vw,4rem);
  border-left:1px solid var(--line);
}

/* Slot for the official Cambridge preparation-centre lockup. */
.cred-mark{height:46px;width:auto;flex-shrink:0}

/* Typographic stand-in while the licensed mark is not on file. */
.cred-seal{
  display:grid;place-items:center;gap:1px;flex-shrink:0;
  width:46px;height:46px;border-radius:13px;
  background:var(--navy);color:#fff;
}
.cred-seal svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}

.cred-txt{min-width:0}
.cred-txt b{
  display:block;font-size:.88rem;font-weight:700;
  color:var(--ink);letter-spacing:-.015em;line-height:1.3;
}
.cred-txt span{
  display:block;font-size:.79rem;color:var(--ink-3);
  line-height:1.4;margin-top:2px;text-wrap:pretty;
}
.cred-n{
  font-family:'Bricolage Grotesque',sans-serif;font-weight:800;
  font-size:1.5rem;line-height:1;color:var(--ink);
  letter-spacing:-.03em;font-variant-numeric:tabular-nums;
}
.cred-rating{display:flex;align-items:baseline;gap:7px}

@media (max-width:820px){
  .cred + .cred{padding-left:0;border-left:none}
  .creds-in{gap:1.15rem}
  .creds{padding-block:1.4rem}
}

/* ═══════════════════════════════════════════════════════════
   BROWSER SURFACES — the parts we did not draw still ship
   with the design, so theme them rather than inherit defaults
   ═══════════════════════════════════════════════════════════ */
::selection{background:rgba(232,25,44,.15);color:var(--ink)}
::-moz-selection{background:rgba(232,25,44,.15);color:var(--ink)}
html{caret-color:var(--red);scrollbar-width:thin;scrollbar-color:#D9D3CA transparent}
::-webkit-scrollbar{width:12px;height:12px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{
  background:#D9D3CA;border-radius:100px;
  border:3.5px solid var(--paper);background-clip:padding-box;
}
::-webkit-scrollbar-thumb:hover{background:var(--ink-3)}
/* Underlines sit off the baseline instead of cutting the descenders. */
a:not([class]),.cred-txt a,.drawer-tel a{
  text-underline-offset:.19em;text-decoration-thickness:.075em;
}

/* ═══════════════════════════════════════════════════════════
   TOUCH — hover is a pointer state. On touch it latches after
   a tap and leaves elements stuck in their raised position.
   ═══════════════════════════════════════════════════════════ */
@media (hover:none){
  .btn:hover{transform:none;filter:none}
  .btn:hover .chip{transform:none}
  .rung:hover{transform:none}
  .course:hover{transform:none}
  .course:hover .course-go{transform:none}
  .ig-btn:hover{transform:none;filter:none}
  .ig-cell:hover{transform:none}
  .fs:hover{transform:none}
  .lang-menu a:hover{background:none}
}

/* Small round controls need a real finger target even when the
   drawn shape is smaller. */
.fs,.lang-btn,.burger{min-width:40px;min-height:40px}
@media (pointer:coarse){
  .fs,.burger{min-width:44px;min-height:44px}
}


/* The red button's brand-coloured shadow works on paper. On the dark
   CTA panel it turns into a glow, so it gets a plain drop shadow there. */
.cta .btn--red,.cta-btns .btn--red{
  box-shadow:0 2px 4px rgba(0,0,0,.28),0 12px 30px -12px rgba(0,0,0,.5);
}

.cta-card{margin:0}
.cta-row dd{margin:0}

/* ═══════════════════════════════════════════════════════════
   RETALL — dirección de diseño elegida
   Fotos montadas sobre cartón blanco y giradas, rotulador
   detrás de lo que importa, ondas en vez de cantos rectos y
   un sello cosido a mano. El blanco sigue siendo la base;
   la crema hace de descanso.
   ═══════════════════════════════════════════════════════════ */

/* ── Suelo cálido en el encabezado ─────────────────────── */
.hero{background:var(--paper-2)}

/* ── Onda entre secciones ──────────────────────────────── */
.wave{display:block;width:100%;height:clamp(38px,5vw,74px);margin-bottom:-1px}
.wave-down{background:var(--paper-2);fill:var(--paper)}
.wave-up{background:var(--paper);fill:var(--paper-2)}

/* ── Rotulador tras la línea que remata el titular ─────── */
.hero h1 .accent{color:var(--red-ink)}
.hero h1 .swash{position:relative;display:inline-block;z-index:0}
.hero h1 .swash::before{
  content:'';position:absolute;z-index:-1;
  left:-.11em;right:-.11em;top:-.02em;bottom:.05em;
  background:#FFCBD1;
  border-radius:44% 56% 52% 48%/58% 46% 54% 42%;
  transform:rotate(-1.2deg) scaleX(.04);
  transform-origin:left center;
  animation:swash .55s .5s var(--out) forwards;
}
@keyframes swash{to{transform:rotate(-1.2deg) scaleX(1)}}
@media (prefers-reduced-motion:reduce){
  .hero h1 .swash::before{transform:rotate(-1.2deg);animation:none}
}

/* ── Fotos montadas sobre cartón, ligeramente giradas ──── */
.frame{
  display:flex;flex-direction:column;
  background:#fff;padding:10px 10px 30px;
  border-radius:5px;overflow:visible;outline:none;
  box-shadow:0 2px 5px rgba(20,20,18,.07),0 24px 46px -20px rgba(20,20,18,.42);
  transition:transform .55s var(--spring);
}
.frame > .ph{height:auto;flex:1;min-height:0;border-radius:2px}
.frame-main{inset:0 34% 7% 0;transform:rotate(-2.6deg)}
.frame-sub{right:0;bottom:0;width:47%;height:57%;transform:rotate(2.6deg)}
.method-frame,.method-frame-2{
  background:#fff;padding:9px 9px 26px;border-radius:5px;overflow:visible;
  box-shadow:0 2px 5px rgba(20,20,18,.07),0 22px 42px -20px rgba(20,20,18,.4);
  display:flex;flex-direction:column;
}
.method-frame > .ph,.method-frame-2 > .ph{height:auto;flex:1;min-height:0;border-radius:2px}
.method-frame{transform:rotate(-2deg)}
.method-frame-2{transform:rotate(3deg)}

/* ── Sello cosido a mano ───────────────────────────────── */
.stamp{
  position:absolute;top:-4%;right:-2%;z-index:5;
  width:clamp(88px,10.5vw,116px);aspect-ratio:1;border-radius:100px;
  background:var(--navy);color:#fff;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:3px;padding:0 9px;text-align:center;line-height:1;
  box-shadow:0 3px 8px rgba(1,33,105,.22),0 20px 36px -14px rgba(1,33,105,.62);
  transform:rotate(-9deg);
  animation:stamp 7.5s .6s var(--smooth) infinite;
}
.stamp b{
  font-family:'Bricolage Grotesque',sans-serif;font-weight:800;
  font-size:clamp(1.6rem,2.6vw,2.1rem);letter-spacing:-.045em;
  font-variant-numeric:tabular-nums;
}
.stamp span{font-size:.7rem;font-weight:700;letter-spacing:.02em;opacity:.86;line-height:1.2}
@keyframes stamp{
  0%,100%{transform:translateY(0) rotate(-9deg)}
  50%{transform:translateY(-9px) rotate(-9deg)}
}

/* ── La rejilla de Instagram, montada igual ────────────── */
.insta{background:var(--paper-2)}
.ig-cell{
  background:#fff;padding:8px 8px 22px;border-radius:5px;overflow:visible;
  box-shadow:0 2px 4px rgba(20,20,18,.06),0 16px 30px -16px rgba(20,20,18,.36);
  transition:transform .5s var(--spring);
}
.ig-cell > .ph{border-radius:2px;aspect-ratio:4/5}
.ig-cell:nth-child(odd){transform:rotate(-1.7deg)}
.ig-cell:nth-child(even){transform:rotate(1.5deg)}

/* ── Etiquetas de curso: pastillas con más cuerpo ──────── */
.course-tag{padding:6px 13px;font-size:.74rem;font-weight:700;letter-spacing:-.005em}

@media (hover:hover) and (pointer:fine){
  .frame:hover,.ig-cell:hover{transform:rotate(0) scale(1.03)}
}
@media (prefers-reduced-motion:reduce){
  .stamp{animation:none}
}
@media (max-width:600px){
  .stamp{width:76px;top:-5%;right:0}
  .stamp b{font-size:1.35rem}
  .stamp span{font-size:.62rem}
}

/* Publicaciones reales de Instagram, montadas como las fotos del resto */
a.ig-cell{display:block;text-decoration:none}
/* Una celda de rejilla no encoge por debajo del ancho de su contenido: con
   una foto de 700 px dentro, la fila se desbordaba y solo cabían dos. */
.ig-cell{min-width:0}
/* Sin proporción forzada: el navegador la toma de los atributos width y height,
   que el build rellena con las medidas reales de cada publicación. Así ninguna
   se recorta, y el hueco queda reservado antes de que cargue la imagen. */
.ig-cell > img{display:block;width:100%;height:auto;border-radius:2px;background:var(--paper-3)}

/* Las publicaciones no miden todas lo mismo (4:5 las fotos, 9:16 los reels).
   Centradas en vertical, las distintas alturas se leen como fotos clavadas. */
.ig-grid{align-items:center}
