:root{
    --bg: #0a0b0d;
    --bg-2: #121316;
    --surface: #16171a;
    --surface-2: #1c1e22;
    --line: rgba(255,255,255,0.10);
    --line-strong: rgba(255,255,255,0.22);
    --silver: #e4e8ec;
    --silver-dim: #9aa3ab;
    --ice: rgba(210,224,235,0.9);
    --text: #f2f3f1;
    --text-muted: #a3a8ab;
    --text-faint: #6f7477;
    --shadow: 0 20px 60px rgba(0,0,0,0.45);
    --radius: 22px;
  }

  *{ box-sizing:border-box; }
  html{ scroll-behavior:smooth; }
  body{
    margin:0;
    background: radial-gradient(circle at 18% -10%, #16171b 0%, var(--bg) 45%), var(--bg);
    color: var(--text);
    font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  h1,h2,h3,h4{
    font-family: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
    font-weight: 450;
    letter-spacing: 0.01em;
    text-wrap: balance;
    margin: 0;
    color: var(--text);
  }

  .signature{
    font-family: 'Parisienne', cursive;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1;
  }

  .eyebrow{
    font-family:'Manrope', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--silver-dim);
  }

  p{ color: var(--text-muted); margin:0; }
  a{ color: inherit; text-decoration:none; }
  img{ max-width:100%; display:block; }

  ::selection{ background: rgba(255,255,255,0.25); color:#fff; }

  a:focus-visible, button:focus-visible, .btn:focus-visible, label.menu-btn:focus-visible{
    outline: 2px solid var(--silver);
    outline-offset: 3px;
    border-radius: 4px;
  }

  .wrap{
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 56px);
  }

  section{ position:relative; }

  /* ---------- liquid glass ---------- */
  .glass{
    position:relative;
    overflow:hidden;
    background: linear-gradient(155deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02) 45%, rgba(210,224,235,0.05));
    -webkit-backdrop-filter: blur(26px) saturate(170%);
    backdrop-filter: blur(26px) saturate(170%);
    border: 1px solid var(--line);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), inset 0 0 50px rgba(255,255,255,0.03), var(--shadow);
    border-radius: var(--radius);
  }
  .glass::before{
    content:"";
    position:absolute;
    top:-70%; left:-25%;
    width:55%; height:240%;
    background: linear-gradient(120deg, rgba(255,255,255,0.16), rgba(255,255,255,0) 65%);
    transform: rotate(10deg);
    pointer-events:none;
  }

  /* ---------- nav ---------- */
  .nav{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding: 20px clamp(20px, 5vw, 56px);
    border-radius: 0 0 26px 26px;
    overflow: visible;
    transition: box-shadow .4s ease, padding .35s ease;
  }
  .nav .brand{
    font-size: 1.7rem;
    color: var(--text);
    display:flex; align-items:center; gap:10px;
  }
  .nav .brand small{
    font-family:'Manrope',sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-faint);
    display:block;
    line-height: 1;
    margin-top: 2px;
  }
  .nav-links{
    display:flex;
    align-items:center;
    gap: clamp(14px, 2vw, 28px);
    font-size: 0.85rem;
    color: var(--text-muted);
  }
  .nav-links a{ transition: color .2s ease; white-space:nowrap; }
  .nav-links a:hover{ color: var(--silver); }
  .nav-cta{
    padding: 10px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255,255,255,0.72));
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.85);
    color: #16151a;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 8px 22px rgba(0,0,0,0.4);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  }
  .nav-cta:hover{ transform: translateY(-1px); background: linear-gradient(135deg, #ffffff, rgba(255,255,255,0.82)); }

  .menu-btn{ display:none; }
  #menu-toggle{ display:none; }
  .nav-cta-mobile{ display:none; }

  @media (max-width: 780px){
    .nav-links{
      position:absolute;
      top: calc(100% + 10px);
      left:0; right:0;
      flex-direction:column;
      align-items:flex-start;
      gap: 4px;
      padding: 16px;
      border-radius: 20px;
      background: rgba(15,14,16,0.92);
      border: 1px solid var(--line);
      backdrop-filter: blur(20px);
      max-height: 0;
      overflow:hidden;
      opacity:0;
      pointer-events:none;
      transition: max-height .3s ease, opacity .25s ease;
    }
    .nav-links a{ padding: 10px 6px; width:100%; }
    #menu-toggle:checked ~ .nav-links{
      max-height: 400px; opacity:1; pointer-events:auto;
    }
    .nav-cta{ display:none; }
    .nav-links .nav-cta-mobile{
      display:inline-block;
      margin-top: 8px;
      background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255,255,255,0.72));
      -webkit-backdrop-filter: blur(18px) saturate(180%);
      backdrop-filter: blur(18px) saturate(180%);
      border: 1px solid rgba(255,255,255,0.85);
      color:#16151a;
      padding: 10px 18px;
      border-radius: 999px;
      font-weight:700;
      width:auto;
    }
    .menu-btn{
      display:flex;
      width: 40px; height:40px;
      align-items:center; justify-content:center;
      border-radius: 50%;
      background: rgba(255,255,255,0.05);
      border: 1px solid var(--line);
      cursor:pointer;
    }
    .menu-btn span{
      display:block; width:16px; height:1px; background: var(--silver);
      box-shadow: 0 5px 0 var(--silver), 0 -5px 0 var(--silver);
    }
  }

  /* ---------- buttons ---------- */
  .btn{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding: 15px 30px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    cursor:pointer;
    border: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  }
  .btn-primary{
    background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255,255,255,0.72));
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.85);
    color: #16151a;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 12px 32px rgba(0,0,0,0.45), 0 0 40px rgba(255,255,255,0.08);
  }
  .btn-primary:hover{ transform: translateY(-2px); background: linear-gradient(135deg, #ffffff, rgba(255,255,255,0.82)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 16px 38px rgba(0,0,0,0.5), 0 0 50px rgba(255,255,255,0.12); }
  .btn-ghost{
    color: var(--text);
    border: 1px solid var(--line-strong);
    background: rgba(255,255,255,0.02);
  }
  .btn-ghost:hover{ border-color: var(--silver); color: var(--silver); }

  /* ---------- hero ---------- */
  .hero{
    min-height: 100svh;
    display:flex;
    align-items:center;
    padding-top: 120px;
    padding-bottom: 80px;
  }
  .hero-glow{
    position:absolute; inset:0;
    will-change: transform;
    background:
      radial-gradient(560px 420px at 78% 18%, rgba(255,255,255,0.06), transparent 65%),
      radial-gradient(700px 500px at 10% 85%, rgba(180,200,220,0.08), transparent 60%);
    pointer-events:none;
  }
  .hero-grid{
    display:grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(32px, 6vw, 70px);
    align-items:center;
    position:relative;
  }
  .hero .eyebrow{ margin-bottom: 18px; display:block; }
  .hero h1{
    font-size: clamp(2.6rem, 5.2vw, 4.4rem);
    line-height: 1.04;
  }
  .hero h1 em{
    font-style: italic;
    color: var(--silver);
  }
  .hero p.lede{
    margin-top: 22px;
    max-width: 46ch;
    font-size: 1.08rem;
    color: var(--text-muted);
  }
  .hero-actions{ display:flex; flex-wrap:wrap; gap:14px; margin-top: 34px; }
  .hero-meta{
    margin-top: 46px;
    display:flex;
    gap: clamp(20px,4vw,44px);
  }
  .hero-meta div{ border-left: 1px solid var(--line-strong); padding-left: 16px; }
  .hero-meta .num{ font-family:'Fraunces',serif; font-size:1.6rem; color: var(--silver); }
  .hero-meta .lbl{ font-size:0.76rem; color:var(--text-faint); text-transform:uppercase; letter-spacing:0.08em; margin-top:2px; }

  .hero-portrait{
    position:relative;
    aspect-ratio: 3/4;
    border-radius: 28px;
    overflow:hidden;
    background:
      radial-gradient(circle at 30% 20%, rgba(255,255,255,0.16), transparent 55%),
      linear-gradient(160deg, #221d16 0%, #0f0d0c 70%);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
    display:flex;
    align-items:flex-end;
    padding: 0;
  }
  .hero-portrait .mono{
    font-family:'Fraunces', serif;
    font-size: clamp(6rem, 12vw, 8.5rem);
    color: rgba(244,240,232,0.08);
    position:absolute;
    top: 10px; left: 20px;
    line-height:1;
  }
  .hero-portrait .tag{
    margin: 20px;
    padding: 14px 18px;
    border-radius: 16px;
    width: calc(100% - 40px);
  }
  .hero-portrait .tag .signature{ font-size:1.4rem; color: var(--text); }
  .hero-portrait .tag p{ font-size: 0.8rem; margin-top:4px; }

  /* ---------- section headers ---------- */
  .section-head{
    max-width: 640px;
    margin-bottom: clamp(36px, 5vw, 56px);
  }
  .section-head h2{ font-size: clamp(2rem, 3.4vw, 2.9rem); margin-top: 12px; }
  .section-head p{ margin-top:16px; font-size:1.02rem; }
  .section-pad{ padding: clamp(70px, 10vw, 120px) 0; }
  .divider{
    height:1px;
    background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
    margin: 0;
  }

  /* ---------- sobre ---------- */
  .sobre-grid{
    display:grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(30px, 6vw, 64px);
    align-items:center;
  }
  .sobre-frame{
    position:relative;
    aspect-ratio: 4/5;
    border-radius: 26px;
    background: linear-gradient(150deg, #201a12, #0e0d0c 65%);
    border: 1px solid var(--line);
    overflow:hidden;
  }
  .sobre-frame::before{
    content:"";
    position:absolute; inset:14px;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
  }
  .sobre-frame .initials{
    position:absolute; inset:0;
    display:flex; align-items:center; justify-content:center;
    font-family:'Fraunces',serif;
    font-size: 5.5rem;
    color: rgba(255,255,255,0.14);
  }
  .sobre-copy .eyebrow{ display:block; margin-bottom:14px; }
  .sobre-copy h2{ font-size: clamp(1.9rem, 3vw, 2.5rem); }
  .sobre-copy p{ margin-top:18px; font-size:1.02rem; }
  .sobre-list{
    list-style:none; padding:0; margin: 28px 0 0;
    display:grid; gap: 12px;
  }
  .sobre-list li{
    display:flex; align-items:baseline; gap:12px;
    font-size:0.94rem; color: var(--text);
  }
  .sobre-list li::before{
    content:"—"; color: var(--silver-dim);
  }

  /* ---------- servicos ---------- */
  .services-grid{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .service-card{
    padding: 30px 26px;
    display:flex; flex-direction:column; gap:14px;
    transition: transform .25s ease, border-color .25s ease;
  }
  .service-card:hover{ transform: translateY(-6px); border-color: var(--line-strong); }
  .service-card .num{
    font-family:'Fraunces',serif; font-style: italic;
    color: var(--ice); font-size:1.1rem;
  }
  .service-card h3{ font-size:1.3rem; }
  .service-card p{ font-size: 0.92rem; }

  /* ---------- casos ---------- */
  /* Two per row, and the DOM order pairs photos of matching proportion
     (the two smile close-ups, then the two profile shots), so each row
     lines up evenly even though every card takes its photo's own ratio. */
  .casos-grid{
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    align-items: start;
    max-width: 860px;
    margin: 0 auto;
  }
  .caso{
    position:relative;
    /* the card already clips its children, so confining paint to it keeps
       the nav's backdrop from triggering repaints beyond the card bounds */
    contain: paint;
    aspect-ratio: var(--ar, 3/4);
    border-radius: 18px;
    overflow:hidden;
    border: 1px solid var(--line);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }
  .caso::before{
    content:"";
    position:absolute; top:-60%; left:-20%;
    width:50%; height:220%;
    background: linear-gradient(120deg, rgba(255,255,255,0.10), rgba(255,255,255,0) 65%);
    transform: rotate(10deg);
    pointer-events:none;
    z-index:2;
  }
  .caso:nth-child(1){ background: linear-gradient(155deg,#231c14,#0e0d0c); }
  .caso:nth-child(2){ background: linear-gradient(155deg,#1c1a20,#0d0c0e); }
  .caso:nth-child(3){ background: linear-gradient(155deg,#221913,#0f0c0b); }
  .caso:nth-child(4){ background: linear-gradient(155deg,#1a1c20,#0c0d0e); }
  /* Blurred, darkened copy of the photo fills the card so mixed aspect
     ratios never leave empty bars. The crisp photo sits on top, whole. */
  .caso-bg{
    position:absolute;
    inset:-12%;
    background-size: cover;
    background-position: center;
    filter: blur(30px) saturate(1.35) brightness(0.5);
    z-index:0;
  }
  .caso-photo{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit: contain;
    object-position: center;
    display:block;
    z-index:1;
  }
  .caso .overlay{
    position:absolute; left:0; right:0; bottom:0;
    padding: 16px;
    background: linear-gradient(0deg, rgba(0,0,0,0.82), rgba(0,0,0,0.35) 45%, transparent);
    z-index:3;
  }
  .caso .overlay .eyebrow{ font-size:0.62rem; }
  .caso .overlay p{ color: var(--text); font-size:0.82rem; margin-top:4px; }
  .casos-note{ margin-top:20px; font-size:0.82rem; color: var(--text-faint); }

  /* ---------- depoimentos ---------- */
  .testi-row{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .testi-card{ padding: 28px 26px; }
  .testi-card .quote-mark{ font-family:'Fraunces',serif; font-size:2.6rem; color: var(--ice); line-height:0.6; display:block; margin-bottom:14px; }
  .testi-card p.text{ color: var(--text); font-size:0.98rem; font-style: italic; }
  .testi-card .who{ margin-top:18px; display:flex; align-items:center; gap:10px; }
  .testi-card .who .dot{ width:8px;height:8px;border-radius:50%; background: var(--silver); }
  .testi-card .who span{ font-size:0.82rem; color: var(--text-faint); }

  /* ---------- mentorias ---------- */
  .mentoria{
    padding: clamp(50px, 8vw, 80px) clamp(28px, 6vw, 70px);
    display:grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items:center;
    position:relative;
    overflow:hidden;
  }
  .mentoria::after{
    content:"";
    position:absolute; right:-80px; top:-80px;
    width:280px; height:280px;
    border-radius:50%;
    background: radial-gradient(circle, rgba(210,224,235,0.14), transparent 70%);
  }
  .mentoria .eyebrow{ display:block; margin-bottom:14px; }
  .mentoria h2{ font-size: clamp(1.9rem, 3vw, 2.6rem); }
  .mentoria p{ margin-top:16px; max-width: 52ch; }
  .mentoria-side{ display:flex; flex-direction:column; gap:16px; align-items:flex-start; }

  /* ---------- contato ---------- */
  .contato-grid{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .contato-card{ padding: 34px; }
  .contato-card h3{ font-size:1.3rem; margin-bottom: 18px; }
  .info-row{ display:flex; gap:14px; padding: 12px 0; border-top: 1px solid var(--line); }
  .info-row:first-of-type{ border-top:none; }
  .info-row .lbl{ font-size:0.7rem; text-transform:uppercase; letter-spacing:0.12em; color: var(--text-faint); min-width: 90px; }
  .info-row .val{ color: var(--text); font-size:0.94rem; }
  .map-card{
    border-radius: var(--radius);
    background:
      repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 44px),
      repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 44px),
      linear-gradient(150deg, #1a1712, #0d0c0c);
    min-height: 260px;
    display:flex; align-items:center; justify-content:center;
    position:relative;
  }
  .map-card{
    transition: transform .25s ease, border-color .25s ease;
  }
  .map-card:hover{
    transform: translateY(-4px);
    border-color: var(--line-strong);
  }
  .map-card .pin{
    display:flex; flex-direction:column; align-items:center; gap:10px;
    padding: 16px 22px;
    text-align: center;
  }
  .map-card .pin .dotp{ width:14px;height:14px;border-radius:50%; background: var(--silver); box-shadow: 0 0 0 6px rgba(255,255,255,0.12); }
  .social-row{ display:flex; gap:12px; margin-top:20px; }
  .social-row a{
    width:42px; height:42px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    color: var(--text-muted);
    transition: border-color .2s ease, color .2s ease;
  }
  .social-row a svg{ width:19px; height:19px; }
  .social-row a:hover{ border-color: var(--silver); color: var(--silver); }

  /* ---------- footer ---------- */
  footer{ padding: 50px 0 34px; }
  .foot-grid{
    display:flex; justify-content:space-between; align-items:flex-end; gap:20px; flex-wrap:wrap;
  }
  .foot-brand{ display:flex; flex-direction:column; gap:4px; }
  .foot-brand .signature{ font-size:1.8rem; color: var(--text); line-height:1.1; }
  .foot-tagline{
    font-size:.72rem;
    letter-spacing:.16em;
    text-transform:uppercase;
    color: var(--text-faint);
  }
  .foot-links{ display:flex; gap: 26px; flex-wrap:wrap; font-size:0.85rem; color: var(--text-muted); }
  .foot-links a:hover{ color: var(--silver); }
  .foot-bottom{
    margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line);
    display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
    font-size: 0.76rem; color: var(--text-faint);
  }

  /* ---------- whatsapp float ---------- */
  .wa-float{
    position:fixed;
    bottom: 26px; right: 26px;
    z-index: 90;
    width: 58px; height: 58px;
    display:flex; align-items:center; justify-content:center;
    border-radius: 50%;
    color: var(--text);
    background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.05));
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    backdrop-filter: blur(20px) saturate(170%);
    border: 1px solid rgba(255,255,255,0.28);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 14px 34px rgba(0,0,0,0.45);
    transition: transform .2s ease, background .2s ease;
  }
  .wa-float:hover{ transform: translateY(-3px); background: linear-gradient(135deg, rgba(255,255,255,0.24), rgba(255,255,255,0.08)); }
  .wa-float svg{ width: 26px; height:26px; display:block; }


  .portrait-img{
    position:absolute; inset:0;
    width:100%; height:100%;
    object-fit: cover;
    object-position: center 15%;
  }
  .hero-portrait .portrait-img{
    filter: saturate(0.92) contrast(1.04);
    mix-blend-mode: normal;
  }
  .hero-portrait::before{
    content:"";
    position:absolute; inset:0;
    background: linear-gradient(180deg, rgba(12,11,13,0) 45%, rgba(12,11,13,0.88) 92%),
                linear-gradient(200deg, rgba(255,255,255,0.10), transparent 45%);
    z-index:1;
  }
  .hero-portrait .mono, .hero-portrait .tag{ position:relative; z-index:2; }
  .sobre-frame .portrait-img{ object-position: center 12%; }
  .sobre-frame::after{
    content:"";
    position:absolute; inset:0;
    background: linear-gradient(200deg, rgba(210,224,235,0.14), transparent 40%);
  }

  @media (max-width: 980px){
    .hero-grid{ grid-template-columns: 1fr; }
    /* NOTE: never use `margin: 0 auto` to centre these. As grid items with
       only absolutely-positioned children, auto side margins make them
       shrink-to-fit, which collapses them to nothing but their borders.
       justify-self + an explicit width centres them without collapsing. */
    .hero-portrait{ order:-1; width:100%; max-width: 340px; justify-self:center; margin:0; }
    .sobre-grid{ grid-template-columns: 1fr; }
    .sobre-frame{ width:100%; max-width: 360px; justify-self:center; margin:0; }
    .services-grid{ grid-template-columns: repeat(2, 1fr); }
    .testi-row{ grid-template-columns: 1fr; }
    .mentoria{ grid-template-columns: 1fr; }
    .contato-grid{ grid-template-columns: 1fr; }
  }
  @media (max-width: 620px){
    /* one per row on phones: side by side these clinical before/after
       photos get too small to actually read the result */
    .casos-grid{ grid-template-columns: 1fr; max-width: 420px; gap: 22px; }
  }
  @media (max-width: 560px){
    .services-grid{ grid-template-columns: 1fr; }
    .hero-meta{ flex-wrap:wrap; row-gap:20px; }
    .reveal, .reveal-once{ transform: translateY(16px); transition-duration: .55s; }
  }


  /* =====================================================================
     MOTION LAYER
     Everything here is gated behind `.js-motion`, a class JS puts on <html>
     only when scripting is alive and the visitor has not asked for reduced
     motion. Content is therefore fully visible by default: if the script
     fails, is blocked, or an observer misfires, the page still reads
     normally instead of stranding elements at opacity 0.
     ===================================================================== */

  .nav.scrolled{
    padding: 13px clamp(20px, 5vw, 56px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 14px 38px rgba(0,0,0,0.55);
  }

  /* ---- scroll progress rail ---- */
  .progress-rail{
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 2px;
    z-index: 120;
    background: transparent;
    pointer-events: none;
    opacity: 0;
    transition: opacity .4s ease;
  }
  .js-motion .progress-rail{ opacity: 1; }
  .progress-rail span{
    display:block;
    height: 100%;
    width: 100%;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, rgba(255,255,255,0.15), var(--silver), rgba(255,255,255,0.35));
    box-shadow: 0 0 18px rgba(255,255,255,0.35);
  }

  /* ---- nav auto-hide on scroll down ---- */
  .js-motion .nav{
    transition: box-shadow .4s ease, padding .35s ease, transform .45s cubic-bezier(.16,1,.3,1);
    /* keep the blurred bar on its own stable compositing layer so scrolling
       content passing underneath does not make its backdrop shimmer */
    will-change: transform;
  }
  .js-motion .nav.nav-hidden{ transform: translateY(-115%); }

  /* ---- ambient cursor glow (desktop pointers only) ---- */
  .cursor-glow{
    position: fixed;
    top: 0; left: 0;
    width: 460px; height: 460px;
    margin: -230px 0 0 -230px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    background: radial-gradient(circle, rgba(214,228,240,0.10), rgba(214,228,240,0.04) 42%, transparent 70%);
    transition: opacity .6s ease;
    will-change: transform;
  }
  .js-motion .cursor-glow.is-on{ opacity: 1; }

  /* ---- reveal system ----
     .reveal      : plays in and out as it crosses the viewport
     .reveal-once : plays in a single time, then holds forever. Used for
                    anything that must never vanish (the Sobre mim photo). */
  .js-motion .reveal,
  .js-motion .reveal-once{
    opacity: 0;
    transform: translate3d(0, 34px, 0);
    transition:
      opacity .85s cubic-bezier(.16,1,.3,1),
      transform .85s cubic-bezier(.16,1,.3,1),
      filter .85s cubic-bezier(.16,1,.3,1);
    filter: blur(6px);
  }
  .js-motion .reveal.is-visible,
  .js-motion .reveal-once.is-visible{
    opacity: 1;
    transform: none;
    filter: none;
  }

  /* stagger driven by an inline --i index the script assigns */
  .js-motion .reveal,
  .js-motion .reveal-once{ transition-delay: calc(var(--i, 0) * 70ms); }

  /* ---- headline word-mask reveal ---- */
  .js-motion .split-line{
    display: block;
    overflow: hidden;
  }
  .js-motion .split-word{
    display: inline-block;
    transform: translate3d(0, 105%, 0) rotate(3deg);
    opacity: 0;
    transition:
      transform .95s cubic-bezier(.16,1,.3,1),
      opacity .8s cubic-bezier(.16,1,.3,1);
    transition-delay: calc(var(--w, 0) * 55ms);
  }
  .js-motion .is-visible .split-word,
  .js-motion .split-word.is-visible{
    transform: none;
    opacity: 1;
  }

  /* ---- image frames: mask wipe + slow inner drift ---- */
  .js-motion .frame-wipe{
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1.15s cubic-bezier(.16,1,.3,1);
  }
  .js-motion .frame-wipe.is-visible{ clip-path: inset(0 0 0 0); }
  .js-motion .portrait-img{
    transform: scale(1.14);
    transition: transform 1.5s cubic-bezier(.16,1,.3,1);
  }
  .js-motion .is-visible > .portrait-img{ transform: scale(1); }

  /* ---- glass spotlight that tracks the pointer ---- */
  /* The spotlight lives in its own element rather than ::after, because some
     cards (.mentoria, .map-card) already use ::after for their own decoration
     and the two rules would fight over size and opacity. `farthest-side` makes
     the glow scale with the card instead of staying a fixed-size disc, so it
     reads the same on a small service card and on the wide mentoria panel. */
  .spot{
    position:absolute;
    inset:0;
    border-radius: inherit;
    pointer-events:none;
    opacity:0;
    transition: opacity .45s ease;
    background: radial-gradient(
      circle farthest-side at var(--mx, 50%) var(--my, 50%),
      rgba(255,255,255,0.15),
      rgba(255,255,255,0.05) 38%,
      transparent 72%
    );
  }
  /* Hover feedback is deliberately NOT gated behind .js-motion. Reacting to
     the pointer is interface feedback, not decoration, so it must survive
     both a missing script and the reduced-motion setting (under which the
     media query at the end simply makes these changes instant). */
  .glass.spotlight:hover .spot{ opacity:1; }

  .service-card,
  .testi-card,
  .caso{
    transition: transform .5s cubic-bezier(.16,1,.3,1), border-color .4s ease, box-shadow .5s ease;
  }
  .caso:hover{
    transform: translateY(-8px) scale(1.015);
    border-color: var(--line-strong);
  }
  .caso .overlay{
    transform: translate3d(0, 8px, 0);
    opacity: .82;
    transition: transform .5s cubic-bezier(.16,1,.3,1), opacity .4s ease;
  }
  .caso:hover .overlay{ transform:none; opacity:1; }

  /* ---- magnetic buttons ---- */
  .btn,
  .nav-cta,
  .wa-float{
    transition:
      transform .45s cubic-bezier(.16,1,.3,1),
      background .3s ease,
      box-shadow .4s ease,
      border-color .3s ease,
      color .3s ease;
    will-change: transform;
  }

  /* ---- counters keep digits from reflowing while animating ---- */
  .hero-meta .num{ font-variant-numeric: tabular-nums; }

  /* ---- specialties marquee strip ---- */
  .marquee{
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  }
  .marquee-track{
    display: flex;
    width: max-content;
    gap: 0;
  }
  .js-motion .marquee-track{ animation: marqueeSlide 38s linear infinite; }
  .marquee:hover .marquee-track{ animation-play-state: paused; }
  @keyframes marqueeSlide{
    from{ transform: translate3d(0,0,0); }
    to{ transform: translate3d(-50%,0,0); }
  }
  .marquee-item{
    display: inline-flex;
    align-items: center;
    gap: 26px;
    padding: 0 26px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(.95rem, 1.6vw, 1.15rem);
    color: var(--text-muted);
    white-space: nowrap;
  }
  .marquee-item i{
    font-style: normal;
    color: var(--silver);
    opacity: .5;
  }

  /* ---- hero entrance, orchestrated by the script ---- */
  .js-motion .hero-anim{
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    transition:
      opacity .95s cubic-bezier(.16,1,.3,1),
      transform .95s cubic-bezier(.16,1,.3,1);
  }
  .js-motion .hero-anim.is-in{ opacity: 1; transform: none; }
  .js-motion .hero-anim-1{ transition-delay: .10s; }
  .js-motion .hero-anim-2{ transition-delay: .18s; }
  .js-motion .hero-anim-3{ transition-delay: .40s; }
  .js-motion .hero-anim-4{ transition-delay: .52s; }
  .js-motion .hero-anim-5{ transition-delay: .62s; }

  .js-motion .hero-portrait{
    opacity: 0;
    transform: translate3d(0, 26px, 0) scale(.96);
    transition:
      opacity 1.2s cubic-bezier(.16,1,.3,1),
      transform 1.2s cubic-bezier(.16,1,.3,1);
    transition-delay: .3s;
  }
  .js-motion .hero-portrait.is-in{ opacity: 1; transform: none; }

  /* soft breathing glow behind the hero, always subtle */
  .js-motion .hero-glow{ animation: heroBreathe 14s ease-in-out infinite alternate; }
  @keyframes heroBreathe{
    from{ opacity: .75; }
    to{ opacity: 1; }
  }

  /* ---- scroll cue ---- */
  .scroll-cue{
    position:absolute;
    left: clamp(20px, 5vw, 56px);
    bottom: 30px;
    display:flex;
    align-items:center;
    gap:12px;
    font-size:.7rem;
    letter-spacing:.2em;
    text-transform:uppercase;
    color: var(--text-faint);
    opacity: 0;
    transition: opacity .8s ease 1.1s;
  }
  .js-motion .scroll-cue{ opacity: 1; }
  .scroll-cue .rail{
    position:relative;
    width: 46px; height:1px;
    background: var(--line-strong);
    overflow:hidden;
  }
  .scroll-cue .rail::after{
    content:"";
    position:absolute; inset:0;
    background: var(--silver);
    transform-origin: 0 50%;
  }
  .js-motion .scroll-cue .rail::after{ animation: cueSlide 2.4s cubic-bezier(.65,0,.35,1) infinite; }
  @keyframes cueSlide{
    0%{ transform: translateX(-100%); }
    55%{ transform: translateX(0); }
    100%{ transform: translateX(100%); }
  }
  @media (max-width: 980px){ .scroll-cue{ display:none; } }

  @media (max-width: 560px){
    .js-motion .reveal,
    .js-motion .reveal-once{ transform: translate3d(0, 20px, 0); transition-duration: .6s; filter: blur(4px); }
    .js-motion .cursor-glow{ display:none; }
  }

  @media (prefers-reduced-motion: reduce){
    html{ scroll-behavior:auto; }
    *{ transition:none !important; animation:none !important; }
  }
