/* ============================================================
   FRAN KUCKER — INSTRUCTOR TRAINER SSI
   Sistema editorial oceánico · Deep / cinematic / técnico
   ============================================================ */

:root{
  /* Ink — abisales */
  --abyss:        #050810;
  --ink-900:      #080d18;
  --ink-800:      #0d1422;
  --ink-700:      #131b2c;
  --ink-600:      #1c2638;
  --ink-500:      #2a3548;
  --ink-400:      #4a5670;
  --ink-300:      #6c7790;
  --ink-200:      #9aa3b8;
  --ink-100:      #c8cedb;

  /* Papers — blancos cálidos */
  --paper:        #f6f3ed;
  --paper-hi:     #faf8f4;
  --paper-200:    #ecebe5;
  --paper-300:    #d8d7d1;
  --paper-500:    #a3a39d;

  /* Accent — azul brillante (del logo), coral cálido contrapunto */
  --cyan:         oklch(0.72 0.18 245);
  --cyan-deep:    oklch(0.55 0.20 250);
  --cyan-soft:    oklch(0.82 0.10 240);
  --coral:        oklch(0.74 0.16 38);
  --coral-deep:   oklch(0.62 0.18 32);
  --phos:         oklch(0.88 0.16 158); /* fosforescente, uso muy puntual */

  /* Fonts */
  --serif: "Spectral", "Times New Roman", serif;
  --sans:  "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Easing */
  --e-out:   cubic-bezier(.23,1,.32,1);
  --e-deep:  cubic-bezier(.65,.02,.2,1);
  --e-press: cubic-bezier(.2,.7,.2,1);
}

*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
/* overflow-x clip on the root scroll container contains the off-screen
   slide-in reveal transforms (.reveal--l/-r translate ±32px before they
   animate in). body's overflow-x alone does NOT clip them — the root html
   is the layout viewport, so the clip has to live here. clip (not hidden)
   keeps smooth scroll and any position:sticky working. */
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; overflow-x:hidden; overflow-x:clip; }
body{
  font-family:var(--sans);
  background:var(--abyss);
  color:var(--paper);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
  overflow-x:clip;
}
img{ display:block; max-width:100%; height:auto; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
button{ cursor:pointer; border:0; background:none; font:inherit; color:inherit; }
::selection{ background:var(--coral); color:var(--abyss); }

/* === GRAIN OVERLAY === */
body::before{
  content:"";
  position:fixed; inset:0; pointer-events:none; z-index:1000;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode:overlay;
  opacity:.4;
}

/* === CONTAINER === */
.wrap{
  width:100%;
  max-width:1320px;
  margin:0 auto;
  padding:0 22px;
}
@media (min-width:768px){ .wrap{ padding:0 36px; } }
@media (min-width:1200px){ .wrap{ padding:0 56px; } }

/* === TYPE === */
h1,h2,h3,h4{ font-weight:400; letter-spacing:-.01em; color:var(--paper); }

.display{
  font-family:var(--serif);
  font-weight:400;
  line-height:.92;
  letter-spacing:-.025em;
}
.display em{ font-style:italic; color:var(--cyan); }
/* Large display headings: Spectral Light (300) recovers the airy, high-contrast
   elegance of a thin display serif while keeping a true italic. Smaller serif
   elements (card titles, prices, contact values) stay at 400 so their strokes
   don't get fragile. */
.display,
.hero__title,
.phero__title,
.section__head h2,
.about__copy h2,
.contact-info h2,
.cta__title,
.cine__quote{
  font-weight:300;
}
.h-mono{
  font-family:var(--mono);
  font-size:.72rem;
  font-weight:500;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--ink-200);
}
.lead{
  font-size:clamp(1.05rem, 1.4vw, 1.32rem);
  line-height:1.55;
  color:var(--ink-100);
  font-weight:300;
  max-width:54ch;
}
.tick{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--mono);
  font-size:.7rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--cyan);
}
.tick::before{
  content:""; width:18px; height:1px; background:currentColor;
}

/* === DEPTH MARKER — recurring motif === */
.depth{
  font-family:var(--mono);
  font-size:.72rem;
  letter-spacing:.06em;
  color:var(--ink-300);
}
.depth .num{ color:var(--cyan); font-weight:500; }

/* === BUTTONS === */
.btn{
  position:relative;
  display:inline-flex; align-items:center; gap:14px;
  min-height:54px;
  padding:0 26px;
  border-radius:99px;
  font-family:var(--sans);
  font-size:.92rem;
  font-weight:500;
  letter-spacing:.01em;
  transition:transform .16s var(--e-press), background .25s var(--e-out), color .25s var(--e-out), box-shadow .25s var(--e-out);
  white-space:nowrap;
  border:1px solid transparent;
}
.btn:active{ transform:scale(.97); }
.btn .arr{
  width:32px; height:32px;
  border-radius:99px;
  display:grid; place-items:center;
  background:currentColor;
  transition:transform .3s var(--e-out);
}
.btn .arr svg{ color:var(--abyss); width:14px; height:14px; }
.btn:hover .arr{ transform:translateX(4px); }
.btn--primary{
  background:var(--paper); color:var(--abyss);
}
.btn--primary:hover{ background:var(--paper-hi); }
.btn--ghost{
  background:transparent; color:var(--paper);
  border-color:rgba(246,243,237,.22);
}
.btn--ghost:hover{ background:rgba(246,243,237,.06); border-color:rgba(246,243,237,.5); }
.btn--coral{ background:var(--coral); color:var(--abyss); }
.btn--coral:hover{ background:var(--coral-deep); color:var(--paper); }

/* link-arrow inline */
.linkx{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--mono);
  font-size:.78rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--paper);
  padding-bottom:4px;
  border-bottom:1px solid rgba(246,243,237,.2);
  transition:gap .2s var(--e-out), border-color .2s var(--e-out), color .2s var(--e-out);
}
.linkx:hover{ gap:16px; border-color:var(--cyan); color:var(--cyan); }
.linkx:active{ opacity:.8; }
.linkx svg{ width:14px; height:14px; }

/* === NAV === */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:900;
  padding:16px 0;
  transition:background .28s var(--e-out), padding .28s var(--e-out), border-color .28s var(--e-out);
  border-bottom:1px solid transparent;
}
.nav__inner{
  display:flex; align-items:center; justify-content:space-between; gap:20px;
}
.brand{
  display:flex; align-items:center; gap:12px;
  flex-shrink:0;
}
.brand__logo{
  display:block;
  height:130px;
  width:auto;
  transition:transform .35s var(--e-out), height .35s var(--e-out);
}
.brand:hover .brand__logo{ transform:scale(1.03); }
.nav.scrolled .brand__logo{ height:80px; }
@media (max-width:520px){
  .brand__logo{ height:140px; }
  .nav.scrolled .brand__logo{ height:100px; }
}
.foot__logo{
  height:100px; width:auto; display:block; align-self:flex-start;
}
.nav__links{ display:none; align-items:center; gap:4px; }
.nav__link{
  position:relative;
  padding:10px 16px;
  font-size:.88rem;
  font-weight:500;
  color:var(--ink-100);
  letter-spacing:.01em;
  border-radius:99px;
  transition:color .25s ease, background .25s ease;
}
.nav__link:hover{ color:var(--paper); background:rgba(246,243,237,.06); }
.nav__link.active{
  color:var(--paper);
}
.nav__link.active::after{
  content:""; position:absolute;
  left:50%; bottom:2px; transform:translateX(-50%);
  width:5px; height:5px; border-radius:99px;
  background:var(--cyan);
}
.nav__cta{
  display:none;
  align-items:center; gap:10px;
  min-height:42px; padding:0 18px;
  border-radius:99px;
  background:var(--paper); color:var(--abyss);
  font-size:.85rem; font-weight:500;
  transition:background .25s ease, transform .3s var(--e-out);
}
.nav__cta:hover{ background:#fff; transform:translateY(-1px); }
.nav__cta::after{
  content:""; width:6px; height:6px; border-radius:99px;
  background:var(--cyan);
}
.nav__burger{
  width:44px; height:44px;
  display:grid; place-items:center;
  border-radius:99px;
  border:1px solid rgba(246,243,237,.18);
  color:var(--paper);
  transition:background .25s ease;
}
.nav__burger:hover{ background:rgba(246,243,237,.06); }
.nav__burger:active{ transform:scale(.93); }
.nav__burger span{
  display:block; width:18px; height:1.5px;
  background:currentColor; border-radius:2px;
  position:relative;
}
.nav__burger span::before,
.nav__burger span::after{
  content:""; position:absolute; left:0;
  width:18px; height:1.5px; background:currentColor; border-radius:2px;
  transition:transform .35s var(--e-out);
}
.nav__burger span::before{ top:-6px; }
.nav__burger span::after{ top:6px; }
.nav__burger.open span{ background:transparent; }
.nav__burger.open span::before{ transform:translateY(6px) rotate(45deg); }
.nav__burger.open span::after{ transform:translateY(-6px) rotate(-45deg); }
@media (min-width:960px){
  .nav__links{ display:flex; }
  .nav__cta{ display:inline-flex; }
  .nav__burger{ display:none; }
}

.nav.scrolled{
  background:rgba(5,8,16,.78);
  backdrop-filter:blur(18px) saturate(140%);
  -webkit-backdrop-filter:blur(18px) saturate(140%);
  padding:8px 0;
  border-bottom-color:rgba(246,243,237,.08);
}

/* Mobile menu */
.mobile-menu{
  position:fixed; inset:0; z-index:850;
  background:var(--abyss);
  padding:90px 22px 32px;
  display:flex; flex-direction:column;
  opacity:0; pointer-events:none;
  transition:opacity .35s ease;
  overflow-y:auto;
}
.mobile-menu.open{ opacity:1; pointer-events:all; }
.mobile-menu__list{
  display:flex; flex-direction:column; gap:0;
  border-top:1px solid rgba(246,243,237,.08);
}
.mobile-menu__item{
  display:flex; align-items:center; justify-content:space-between;
  padding:24px 0;
  min-height:64px;
  border-bottom:1px solid rgba(246,243,237,.08);
  font-family:var(--serif);
  font-size:2rem;
  line-height:1;
  color:var(--paper);
  letter-spacing:-.01em;
}
.mobile-menu__item:hover{ color:var(--cyan); }
.mobile-menu__footer{
  margin-top:auto;
  padding-top:32px;
  display:flex; flex-direction:column; gap:14px;
}
.mobile-menu__contact{
  display:flex; flex-direction:column; gap:6px;
}
.mobile-menu__contact a{
  font-family:var(--mono);
  font-size:.82rem;
  color:var(--ink-100);
}

/* === HERO === */
.hero{
  position:relative;
  min-height:100svh;
  overflow:hidden;
  isolation:isolate;
  background:var(--abyss);
  display:flex; flex-direction:column;
}
.hero__bg{
  position:absolute; inset:0; z-index:0;
}
.hero__bg img{
  width:100%; height:100%; object-fit:cover;
  object-position:center 30%;
  filter:saturate(.92) contrast(1.08) brightness(.78);
  animation:slowzoom 30s var(--e-out) infinite alternate;
}
@keyframes slowzoom{
  from{ transform:scale(1); }
  to  { transform:scale(1.08); }
}
.hero__bg::after{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(5,8,16,.75) 0%, rgba(5,8,16,.55) 30%, rgba(5,8,16,.78) 70%, rgba(5,8,16,.98) 100%),
    linear-gradient(90deg, rgba(5,8,16,.75) 0%, rgba(5,8,16,.25) 60%, rgba(5,8,16,.55) 100%);
}

.hero__top{
  position:relative; z-index:2;
  flex:1;
  display:flex; align-items:flex-end;
  padding:130px 0 0;
}
.hero__inner{
  display:grid; gap:32px;
  width:100%;
  max-width:1100px;
}
.hero__eyebrow{
  display:flex; flex-wrap:wrap; align-items:center; gap:16px;
}
.hero__title{
  font-size:clamp(3.5rem, 12vw, 11rem);
  font-family:var(--serif);
  line-height:.85;
  letter-spacing:-.04em;
  color:var(--paper);
  text-wrap:balance;
}
.hero__title em{
  font-style:italic;
  color:var(--cyan);
  display:inline-block;
}
.hero__sub{
  font-size:clamp(1.05rem, 1.4vw, 1.3rem);
  max-width:48ch;
  color:var(--ink-100);
  line-height:1.5;
  font-weight:300;
}
.hero__actions{
  display:flex; flex-wrap:wrap; gap:14px;
}

/* hero data strip — runs along bottom */
.hero__strip{
  position:relative; z-index:2;
  margin-top:clamp(32px, 5vw, 64px);
  padding:clamp(20px, 3vw, 32px) 0 clamp(24px, 4vw, 40px);
  border-top:1px solid rgba(246,243,237,.12);
}
.hero__strip-inner{
  display:grid;
  grid-template-columns:1fr;
  gap:24px;
}
@media (min-width:640px){
  .hero__strip-inner{ grid-template-columns:repeat(2,1fr); gap:32px; }
}
@media (min-width:960px){
  .hero__strip-inner{ grid-template-columns:repeat(4,1fr); }
}
.hero__stat{
  display:flex; flex-direction:column; gap:6px;
}
.hero__stat-val{
  font-family:var(--serif);
  font-size:clamp(2rem, 3.4vw, 2.8rem);
  line-height:1;
  color:var(--paper);
  letter-spacing:-.02em;
}
.hero__stat-val sup{
  font-family:var(--mono);
  font-size:.4em;
  font-weight:400;
  color:var(--cyan);
  margin-left:4px;
  vertical-align:top;
  top:-.5em;
}
.hero__stat-label{
  font-family:var(--mono);
  font-size:.7rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--ink-300);
}

/* depth side rail (desktop only) */
.depth-rail{
  display:none;
  position:fixed;
  right:32px; top:50%;
  transform:translateY(-50%);
  z-index:5;
  flex-direction:column;
  align-items:flex-end; gap:24px;
  font-family:var(--mono);
  font-size:.82rem;
  letter-spacing:.18em;
  color:var(--ink-300);
  pointer-events:none;
  opacity:1;
  transition:opacity .35s ease;
}
.depth-rail.is-faded{ opacity:0; }
.depth-rail__tick{
  display:flex; align-items:center; gap:14px;
  opacity:.55;
  text-shadow:0 1px 4px rgba(5,8,16,.7);
  transition:opacity .45s ease, color .45s ease, text-shadow .45s ease;
}
.depth-rail__tick::after{
  content:""; width:34px; height:2px;
  background:currentColor;
  box-shadow:0 0 0 1px rgba(5,8,16,.35);
  transition:width .45s cubic-bezier(.2,.7,.2,1), background .45s ease, box-shadow .45s ease;
}
.depth-rail__tick.on{
  opacity:1;
  color:var(--cyan);
  text-shadow:0 0 12px rgba(76,177,255,.45);
}
.depth-rail__tick.on::after{
  width:64px;
  box-shadow:0 0 12px rgba(76,177,255,.55);
}
@media (min-width:1100px){ .depth-rail{ display:flex; } }

/* === SECTION === */
.section{
  position:relative;
  padding:clamp(80px, 11vw, 160px) 0;
}
.section--paper{
  background:var(--paper);
  color:var(--ink-800);
}
.section--paper h1,
.section--paper h2,
.section--paper h3{ color:var(--ink-900); }
.section--paper .h-mono{ color:var(--ink-400); }
.section--paper .lead{ color:var(--ink-700); }

.section__head{
  display:grid; gap:18px;
  margin-bottom:clamp(48px,7vw,88px);
}
.section__head h2{
  font-family:var(--serif);
  font-size:clamp(2.6rem, 6vw, 5.2rem);
  line-height:.95;
  letter-spacing:-.025em;
}
.section__head h2 em{ font-style:italic; color:var(--cyan-deep); }
.section--paper .section__head h2 em{ color:var(--coral-deep); }

@media (min-width:880px){
  .section__head{
    grid-template-columns:auto 1fr;
    gap:48px 80px;
    align-items:end;
  }
  .section__head .section__head-meta{ max-width:280px; }
  .section__head h2{ max-width:18ch; }
}

/* === ABOUT === */
.about{
  display:grid; gap:clamp(36px, 6vw, 96px);
  align-items:start;
}
.about__media{
  position:relative;
  aspect-ratio:4/5;
  overflow:hidden;
  border-radius:6px;
  background:var(--ink-700);
}
.about__media img{
  width:100%; height:100%; object-fit:cover;
}
.about__badge{
  position:absolute;
  left:-18px; bottom:32px;
  background:var(--paper);
  color:var(--abyss);
  padding:18px 22px;
  border-radius:4px;
  display:grid; gap:4px;
  box-shadow:0 24px 60px rgba(0,0,0,.5);
}
.about__badge-num{
  font-family:var(--serif);
  font-size:2.2rem;
  line-height:1;
  letter-spacing:-.02em;
}
.about__badge-lab{
  font-family:var(--mono);
  font-size:.62rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--ink-500);
}
.about__copy{
  display:grid; gap:24px;
}
.about__copy h2{
  font-family:var(--serif);
  font-size:clamp(2.2rem, 4.6vw, 4rem);
  line-height:.98;
  letter-spacing:-.025em;
}
.about__copy h2 em{ font-style:italic; color:var(--cyan); }
.about__copy p{
  font-size:clamp(1rem, 1.3vw, 1.18rem);
  line-height:1.65;
  color:var(--ink-100);
  font-weight:300;
}
.about__copy strong{ color:var(--paper); font-weight:500; }

.about__facts{
  display:grid; grid-template-columns:repeat(2,1fr); gap:0;
  border-top:1px solid rgba(246,243,237,.15);
  margin-top:16px;
}
.about__fact{
  display:grid; gap:6px;
  padding:24px 0 0;
}
.about__fact + .about__fact{ padding-left:24px; border-left:1px solid rgba(246,243,237,.15); }
.about__fact-val{
  font-family:var(--serif);
  font-size:clamp(1.8rem, 3vw, 2.4rem);
  line-height:1;
  letter-spacing:-.02em;
  color:var(--paper);
}
.about__fact-lab{
  font-family:var(--mono);
  font-size:.65rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--ink-300);
}
@media (min-width:880px){
  .about{ grid-template-columns:.8fr 1fr; }
}

/* === LATERAL CARDS — flagship pattern === */
.lat-grid{
  display:grid; gap:clamp(24px, 4vw, 48px);
}
.lat-card{
  position:relative;
  display:grid;
  grid-template-columns:1fr;
  background:var(--ink-800);
  border-radius:8px;
  overflow:hidden;
  isolation:isolate;
  border:1px solid rgba(246,243,237,.05);
  transition:transform .35s var(--e-out), border-color .35s var(--e-out);
}
.lat-card:hover{ border-color:rgba(246,243,237,.18); }
.lat-card:active{ transform:scale(.985); }
@media (min-width:760px){
  .lat-card{
    grid-template-columns:1.05fr 1fr;
    min-height:480px;
  }
  .lat-card--rev{ grid-template-columns:1fr 1.05fr; }
  .lat-card--rev .lat-card__media{ order:2; }
}
.lat-card__media{
  position:relative;
  aspect-ratio:4/3;
  overflow:hidden;
  background:var(--ink-700);
}
@media (min-width:760px){
  .lat-card__media{ aspect-ratio:auto; }
}
.lat-card__media img{
  width:100%; height:100%; object-fit:cover;
  transition:transform .5s var(--e-out), filter .35s var(--e-out);
  filter:saturate(.9);
}
.lat-card:hover .lat-card__media img{
  transform:scale(1.06);
  filter:saturate(1.05);
}
.lat-card__media::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(135deg, rgba(5,8,16,.4) 0%, rgba(5,8,16,0) 50%);
}
.lat-card__body{
  padding:32px 28px;
  display:flex; flex-direction:column; gap:18px;
  position:relative;
}
@media (min-width:760px){
  .lat-card__body{ padding:48px 44px; }
}
.lat-card__head{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px;
}
.lat-card__title{
  font-family:var(--serif);
  font-size:clamp(2rem, 4vw, 3.2rem);
  line-height:.98;
  letter-spacing:-.02em;
  color:var(--paper);
  position:relative;
  display:inline-block;
  transition:transform .35s var(--e-out);
}
.lat-card:hover .lat-card__title{ transform:translateX(10px); }
.lat-card__title::before{
  content:"";
  position:absolute;
  left:-22px; top:50%;
  width:8px; height:8px;
  border-radius:99px;
  background:var(--cyan);
  transform:translateY(-50%) scale(.5);
  opacity:0;
  transition:transform .35s var(--e-out), opacity .25s var(--e-out);
}
.lat-card:hover .lat-card__title::before{ transform:translateY(-50%) scale(1); opacity:1; }
.lat-card__desc{
  font-size:1rem;
  line-height:1.65;
  color:var(--ink-100);
  font-weight:300;
}
.lat-card__list{
  display:grid; gap:10px;
  padding-top:8px;
  border-top:1px solid rgba(246,243,237,.08);
}
.lat-card__list li{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:14px;
  font-size:.92rem;
  line-height:1.4;
  color:var(--ink-100);
  padding:6px 0;
  align-items:center;
}
.lat-card__list .lab{
  font-family:var(--mono);
  font-size:.7rem;
  letter-spacing:.1em;
  color:var(--cyan);
  text-transform:uppercase;
}
.lat-card__list .val{ color:var(--ink-200); font-family:var(--mono); font-size:.78rem; }
.lat-card__foot{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; flex-wrap:wrap;
  padding-top:12px;
  margin-top:auto;
}
.lat-card__price{
  font-family:var(--mono);
  font-size:.78rem;
  letter-spacing:.06em;
  color:var(--ink-200);
}
.lat-card__price strong{
  font-family:var(--serif);
  font-size:1.5rem;
  font-weight:400;
  color:var(--paper);
  margin-right:6px;
}

/* === COURSE LATERAL CARD — paper variant for cursos pro === */
.section--paper .lat-card{
  background:#fff;
  border-color:rgba(8,13,24,.06);
}
.section--paper .lat-card:hover{ border-color:rgba(8,13,24,.18); box-shadow:0 30px 80px rgba(8,13,24,.08); }
.section--paper .lat-card__title{ color:var(--ink-900); }
.section--paper .lat-card__desc{ color:var(--ink-700); }
.section--paper .lat-card__desc strong{ color:var(--ink-900); font-weight:500; }
.section--paper .lat-card__list{ border-top-color:rgba(8,13,24,.08); }
.section--paper .lat-card__list li{ color:var(--ink-700); }
.section--paper .lat-card__list .lab{ color:var(--coral-deep); }
.section--paper .lat-card__list .val{ color:var(--ink-500); }
.section--paper .lat-card__price{ color:var(--ink-500); }
.section--paper .lat-card__price strong{ color:var(--ink-900); }
.section--paper .lat-card__title::before{ background:var(--coral); }

/* === PARTNERS BAND === */
.partners{
  padding:clamp(24px, 3vw, 40px) 0;
  background:var(--ink-900);
  border-top:1px solid rgba(246,243,237,.06);
}
.partners__grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:18px;
}
.partners__grid--3{ grid-template-columns:1fr; max-width:380px; margin:0 auto; }
@media (min-width:768px){
  .partners__grid{ grid-template-columns:repeat(4,1fr); gap:32px; }
  .partners__grid--3{ grid-template-columns:repeat(3,1fr); max-width:880px; margin:0 auto; }
}
.partners__cell{
  background:var(--paper);
  padding:36px 28px;
  display:flex; align-items:center; justify-content:center;
  min-height:180px;
  border-radius:8px;
  transition:transform .25s var(--e-out), box-shadow .25s var(--e-out);
}
.partners__cell:hover{
  transform:translateY(-4px);
  box-shadow:0 20px 50px rgba(0,0,0,.5);
}
.partners__cell img{
  max-height:110px;
  max-width:92%;
  width:auto;
  object-fit:contain;
  transition:transform .3s var(--e-out);
}
.partners__cell:hover img{ transform:scale(1.05); }

/* Bare variant — no cards, logos float on dark */
.partners--bare .partners__cell{
  background:transparent;
  padding:14px 10px;
  min-height:72px;
  border-radius:0;
}
.partners--bare .partners__cell:hover{
  transform:translateY(-3px);
  box-shadow:none;
}
.partners--bare .partners__cell img{
  max-height:32px;
  max-width:40%;
}
.partners--bare .partners__cell img.big{
  max-height:44px;
  max-width:40%;
}
@media (min-width:768px){
  .partners--bare .partners__cell{ min-height:80px; padding:14px 12px; }
  .partners--bare .partners__cell img{ max-height:44px; max-width:55%; }
  .partners--bare .partners__cell img.big{ max-height:60px; max-width:55%; }
}

/* === CTA BANNER === */
.cta{
  position:relative;
  padding:clamp(56px,7vw,96px) 0;
  overflow:hidden;
  background:var(--ink-900);
  isolation:isolate;
}
.cta__bg{
  position:absolute; inset:0; z-index:0;
}
.cta__bg img{
  width:100%; height:100%; object-fit:cover;
  opacity:.35;
  filter:saturate(.5);
}
.cta__bg::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, var(--ink-900) 0%, rgba(5,8,16,.7) 50%, var(--ink-900) 100%);
}
.cta__inner{
  position:relative; z-index:1;
  display:grid; gap:32px;
  text-align:left;
  max-width:920px;
}
.cta__title{
  font-family:var(--serif);
  font-size:clamp(2.8rem, 7vw, 6.5rem);
  line-height:.95;
  letter-spacing:-.03em;
  color:var(--paper);
}
.cta__title em{ font-style:italic; color:var(--cyan); }
.cta__sub{
  font-size:clamp(1.05rem, 1.4vw, 1.3rem);
  line-height:1.55;
  color:var(--ink-100);
  font-weight:300;
  max-width:50ch;
}
.cta__actions{ display:flex; gap:14px; flex-wrap:wrap; }

/* === FOOTER === */
.foot{
  background:var(--abyss);
  padding:clamp(64px, 9vw, 100px) 0 clamp(24px, 3vw, 40px);
  border-top:1px solid rgba(246,243,237,.08);
}
.foot__top{
  display:grid;
  grid-template-columns:1fr;
  gap:56px;
  padding-bottom:56px;
  border-bottom:1px solid rgba(246,243,237,.08);
}
@media (min-width:560px) and (max-width:759px){
  .foot__top{ grid-template-columns:1fr 1fr; }
  .foot__hero{ grid-column:1 / -1; }
}
@media (min-width:760px){ .foot__top{ grid-template-columns:1.4fr 1fr 1fr 1fr; } }

.foot__hero{
  display:grid; gap:18px;
}
.foot__hero h4{
  font-family:var(--serif);
  font-size:clamp(2rem, 3vw, 2.6rem);
  line-height:1;
  letter-spacing:-.02em;
}
.foot__hero h4 em{ font-style:italic; color:var(--cyan); }
.foot__hero p{
  color:var(--ink-200);
  font-size:.95rem;
  font-weight:300;
  max-width:34ch;
}
.foot__socials{
  display:flex; gap:8px; padding-top:8px;
}
.foot__soc{
  width:42px; height:42px;
  border-radius:99px;
  border:1px solid rgba(246,243,237,.12);
  display:grid; place-items:center;
  color:var(--ink-100);
  transition:border-color .2s ease, color .2s ease, background .2s ease, transform .16s var(--e-press);
}
.foot__soc:hover{ border-color:var(--cyan); color:var(--cyan); transform:translateY(-2px); }
.foot__soc:active{ transform:scale(.9); }
.foot__soc svg{ width:16px; height:16px; }
.foot__soc span{ display:grid; place-items:center; width:16px; height:16px; }
.foot__soc span svg{ width:100%; height:100%; }

.foot__col h4{
  font-family:var(--mono);
  font-size:.7rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--ink-300);
  margin-bottom:18px;
  font-weight:500;
}
.foot__links{ display:grid; gap:10px; }
.foot__links a, .foot__links span{
  font-size:.92rem;
  color:var(--ink-100);
  font-weight:300;
  transition:color .25s ease, transform .25s var(--e-out);
  display:inline-block;
}
.foot__links a:hover{ color:var(--cyan); transform:translateX(4px); }

.foot__bottom{
  display:flex; justify-content:space-between; flex-wrap:wrap;
  gap:14px;
  padding-top:32px;
  font-family:var(--mono);
  font-size:.7rem;
  letter-spacing:.06em;
  color:var(--ink-300);
}
.foot__bottom-legal{ display:flex; gap:24px; }
.foot__bottom-legal a:hover{ color:var(--paper); }

/* === PAGE HERO — inner pages === */
.phero{
  position:relative;
  padding:160px 0 80px;
  overflow:hidden;
  background:var(--abyss);
  isolation:isolate;
}
.phero__bg{
  position:absolute; inset:0; z-index:0;
}
.phero__bg img{
  width:100%; height:100%; object-fit:cover;
  filter:saturate(.95) contrast(1.08) brightness(.42);
}
.phero__bg::after{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(5,8,16,.7) 0%, rgba(5,8,16,.55) 35%, rgba(5,8,16,.88) 75%, var(--abyss) 100%),
    radial-gradient(70% 50% at 15% 25%, oklch(0.32 0.18 245 / 0.45) 0%, transparent 60%);
}
.phero__inner{
  position:relative; z-index:1;
  display:grid; gap:36px;
}
.phero__head{
  display:flex; flex-wrap:wrap; align-items:center;
  gap:18px;
}
.phero__breadcrumb{
  display:flex; align-items:center; gap:14px;
  font-family:var(--mono);
  font-size:.7rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--ink-200);
}
.phero__breadcrumb a:hover{ color:var(--cyan); }
.phero__breadcrumb .sep{ color:var(--ink-400); }

/* Badge floats bottom-right of the page hero, beside the description. */
.phero__badge{
  display:flex; align-items:center;
  background:transparent;
  padding:0; border:0; border-radius:0; backdrop-filter:none;
  margin-top:8px;
  z-index:2;
}
.phero__badge img{ max-height:80px; width:auto; }
.phero__badge img.big{ max-height:120px; }

@media (min-width:880px){
  .phero__badge{
    position:absolute;
    bottom:120px;
    right:max(36px, calc((100vw - 1320px)/2 + 56px));
    margin-top:0;
  }
  .phero__badge img{ max-height:170px; }
  .phero__badge img.big{ max-height:230px; }
}
@media (min-width:1200px){
  .phero__badge img{ max-height:210px; }
  .phero__badge img.big{ max-height:270px; }
}
.phero__title{
  font-family:var(--serif);
  font-size:clamp(3rem, 9vw, 8rem);
  line-height:.9;
  letter-spacing:-.035em;
  color:var(--paper);
}
.phero__title em{ font-style:italic; color:var(--cyan); }
.phero__desc{
  max-width:54ch;
  font-size:clamp(1.05rem, 1.4vw, 1.3rem);
  line-height:1.5;
  color:var(--ink-100);
  font-weight:300;
}
@media (min-width:880px){
  .phero{ padding:200px 0 140px; }
  .phero__inner{ max-width:100%; }
  .phero__desc{ max-width:48ch; }
}

/* === REVEAL === */
.reveal{
  opacity:0; transform:translateY(20px);
  transition:opacity .65s var(--e-out), transform .65s var(--e-out);
}
.reveal.in{ opacity:1; transform:none; }
.reveal--l{ transform:translateX(-32px); }
.reveal--r{ transform:translateX(32px); }
.reveal--l.in, .reveal--r.in{ transform:translateX(0); }
.reveal[data-del="1"]{ transition-delay:.06s; }
.reveal[data-del="2"]{ transition-delay:.12s; }
.reveal[data-del="3"]{ transition-delay:.18s; }

/* === CONTACT === */
.contact-info{
  display:grid; gap:36px;
}
.contact-info h2{
  font-family:var(--serif);
  font-size:clamp(2rem, 4vw, 3rem);
  line-height:.98;
  letter-spacing:-.025em;
  color:var(--paper);
}
.contact-info h2 em{ font-style:italic; color:var(--cyan); }
.contact-info p{
  color:var(--ink-100);
  font-size:1.05rem;
  line-height:1.6;
  font-weight:300;
  max-width:42ch;
}
.contact-list{ display:grid; gap:0; }
.contact-row{
  display:grid;
  grid-template-columns:80px 1fr auto;
  gap:18px;
  align-items:center;
  padding:22px 0;
  border-top:1px solid rgba(246,243,237,.1);
  transition:padding .25s var(--e-out);
}
.contact-row:last-child{ border-bottom:1px solid rgba(246,243,237,.1); }
.contact-row:hover{ padding-left:8px; }
a.contact-row:active{ opacity:.8; }
.contact-row__lab{
  font-family:var(--mono);
  font-size:.62rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--ink-300);
}
.contact-row__val{
  font-family:var(--serif);
  font-size:1.4rem;
  color:var(--paper);
  letter-spacing:-.01em;
}
.contact-row__val a{ transition:color .25s ease; }
.contact-row__val a:hover{ color:var(--cyan); }
.contact-row__arr{
  width:36px; height:36px;
  border-radius:99px;
  border:1px solid rgba(246,243,237,.15);
  display:grid; place-items:center;
  color:var(--ink-200);
  transition:background .3s ease, color .3s ease, border-color .3s ease;
}
.contact-row:hover .contact-row__arr{
  background:var(--cyan); color:var(--abyss); border-color:var(--cyan);
}

/* === METHODOLOGY GRID (tech page) === */
.method{
  display:grid; gap:clamp(18px, 2.5vw, 32px);
}
.method__item{
  display:grid; gap:16px;
  padding:32px;
  background:rgba(246,243,237,.03);
  border:1px solid rgba(246,243,237,.08);
  border-radius:8px;
  position:relative;
  overflow:hidden;
  transition:transform .3s var(--e-out), border-color .3s var(--e-out), background .3s var(--e-out);
}
.method__item:hover{
  transform:translateY(-4px);
  border-color:var(--cyan);
  background:rgba(246,243,237,.05);
}
.method__item:active{ transform:scale(.98); }
.method__num{
  font-family:var(--mono);
  font-size:.7rem;
  letter-spacing:.14em;
  color:var(--cyan);
}
.method__h{
  font-family:var(--serif);
  font-size:1.6rem;
  line-height:1.05;
  letter-spacing:-.02em;
  color:var(--paper);
}
.method__p{
  font-size:.95rem;
  line-height:1.6;
  color:var(--ink-100);
  font-weight:300;
}
@media (min-width:760px) and (max-width:1023px){
  .method{ grid-template-columns:repeat(2,1fr); }
  .method__item:last-child{ grid-column:1 / -1; }
}
@media (min-width:1024px){
  .method{ grid-template-columns:repeat(3,1fr); }
}

/* === VISUAL CINEMATIC BLOCK === */
.cine{
  position:relative;
  height:clamp(380px, 50vh, 700px);
  overflow:hidden;
  isolation:isolate;
}
.cine img{
  width:100%; height:100%; object-fit:cover;
  filter:saturate(.85) contrast(1.04);
}
.cine__overlay{
  position:absolute; inset:0; z-index:1;
  background:linear-gradient(180deg, rgba(5,8,16,.7) 0%, rgba(5,8,16,.4) 50%, rgba(5,8,16,.9) 100%);
}
.cine__text{
  position:absolute; left:0; right:0; bottom:0; z-index:2;
  padding:48px 0;
}
.cine__quote{
  font-family:var(--serif);
  font-size:clamp(2rem, 5vw, 4.5rem);
  line-height:1;
  letter-spacing:-.025em;
  max-width:24ch;
  color:var(--paper);
}
.cine__quote em{ font-style:italic; color:var(--cyan); }
.cine__attr{
  display:flex; align-items:center; gap:14px;
  margin-top:24px;
  font-family:var(--mono);
  font-size:.72rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--ink-100);
}
.cine__attr::before{
  content:""; width:36px; height:1px; background:var(--cyan);
}

/* === RESPONSIVE FIXES === */

/* Hero: landscape mobile fix */
@media (max-height:500px) and (orientation:landscape){
  .hero{ min-height:auto; padding-bottom:32px; }
  .hero__top{ padding-top:80px; }
  .phero{ padding:100px 0 48px; }
}

/* Hero stats: mobile separators */
@media (max-width:639px){
  .hero__stat{ padding:16px 0; border-bottom:1px solid rgba(246,243,237,.08); }
  .hero__stat:last-child{ border-bottom:0; }
}

/* Contact rows: small screens */
@media (max-width:400px){
  .contact-row{ grid-template-columns:1fr auto; gap:10px; }
  .contact-row__lab{ grid-column:1 / -1; }
}

/* Partners: single column on tiny screens */
@media (max-width:400px){
  .partners__grid{ grid-template-columns:1fr; }
  .partners--bare .partners__grid{ grid-template-columns:1fr; }
}

/* === HOVER GATE — touch devices ===
   On touch, :hover sticks after a tap until you tap elsewhere, so any
   movement-based hover effect freezes in place and the first tap feels dead.
   Neutralize every transform / position / size hover here. Selectors mirror
   (and match the specificity of) their base rule so each one actually wins —
   the more specific ones (.partners--bare, .section--paper) need their own
   entry, a bare .partners__cell reset would not override them. */
@media (hover:none){
  .btn:hover .arr{ transform:none; }
  .brand:hover .brand__logo{ transform:none; }
  .nav__cta:hover{ transform:none; }
  .linkx:hover{ gap:10px; border-color:rgba(246,243,237,.2); color:var(--paper); }
  .lat-card:hover{ border-color:rgba(246,243,237,.05); }
  .lat-card:hover .lat-card__media img{ transform:none; filter:saturate(.9); }
  .lat-card:hover .lat-card__title{ transform:none; }
  .lat-card:hover .lat-card__title::before{ opacity:0; }
  .section--paper .lat-card:hover{ box-shadow:none; }
  .partners__cell:hover{ transform:none; box-shadow:none; }
  .partners__cell:hover img{ transform:none; }
  .partners--bare .partners__cell:hover{ transform:none; }
  .foot__soc:hover{ border-color:rgba(246,243,237,.12); color:var(--ink-100); transform:none; }
  .foot__links a:hover{ color:var(--ink-100); transform:none; }
  .contact-row:hover{ padding-left:0; }
}

/* === SKIP LINK === */
.skip-link{
  position:absolute;
  top:-100%;
  left:16px;
  z-index:9999;
  padding:12px 24px;
  background:var(--cyan);
  color:var(--abyss);
  font-family:var(--mono);
  font-size:.82rem;
  font-weight:500;
  letter-spacing:.06em;
  border-radius:0 0 6px 6px;
  transition:top .2s var(--e-out);
}
.skip-link:focus{
  top:0;
}

/* === FOCUS VISIBLE === */
:focus-visible{
  outline:2px solid var(--cyan);
  outline-offset:3px;
}
.btn:focus-visible{
  outline-offset:4px;
  box-shadow:0 0 0 4px rgba(100,180,255,.2);
}
.nav__link:focus-visible,
.nav__cta:focus-visible{
  outline-offset:2px;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible{
  outline:none;
  border-bottom-color:var(--cyan);
}
.lat-card:focus-visible{
  outline-offset:4px;
}

/* === SR ONLY === */
.sr-only{
  position:absolute; width:1px; height:1px;
  padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion:reduce){
  *, *::before, *::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    scroll-behavior:auto !important;
  }
  .reveal{ opacity:1; transform:none; }
}

/* === GRAIN: softer + cheaper on mobile ===
   mix-blend-mode forces a full-viewport re-composite on every paint. Combined
   with a transform-animating card image on hover, that causes severe jank
   ("freeze") on mobile GPUs and in narrow desktop windows. Drop the blend on
   small screens — a plain low-opacity noise reads the same but costs nothing. */
@media (max-width:768px){
  body::before{ opacity:.14; mix-blend-mode:normal; }
}
