  :root{
    --navy: #1B3A63;
    --navy-deep: #0B1B30;
    --navy-light: #2E5387;
    --maroon: #8B1E23;
    --maroon-dark: #641417;
    --gray: #5B5F66;
    --gray-light: #9AA1AB;
    --bg: #F6F7FA;
    --bg-alt: #EDEFF4;
    --white: #FFFFFF;
    --ink: #16202B;
    --radius: 16px;
    --shadow-sm: 0 4px 14px rgba(11,27,48,.08);
    --shadow-md: 0 14px 36px rgba(11,27,48,.14);
    --shadow-lg: 0 24px 60px rgba(11,27,48,.22);
    --ease: cubic-bezier(.4,0,.2,1);
  }

  *,*::before,*::after{ box-sizing:border-box; }
  html{ scroll-behavior:smooth; }
  body{
    margin:0;
    font-family:'Inter',system-ui,sans-serif;
    color:var(--ink);
    background:var(--bg);
    line-height:1.65;
    -webkit-font-smoothing:antialiased;
    overflow-x:hidden;
  }
  h1,h2,h3,h4{ font-family:'Poppins',sans-serif; margin:0; color:var(--navy-deep); }
  p{ margin:0; }
  a{ color:inherit; text-decoration:none; }
  ul{ margin:0; padding:0; list-style:none; }
  img,video{ max-width:100%; display:block; }
  button{ font-family:inherit; cursor:pointer; }
  section{ scroll-margin-top:98px; }

  .container{ width:min(1180px, 92%); margin-inline:auto; }

  /* ---------- Reveal animation ---------- */
  .reveal{ opacity:0; transform:translateY(28px); transition:opacity .8s var(--ease), transform .8s var(--ease); }
  .reveal.in{ opacity:1; transform:translateY(0); }
  .stagger > *{ transition-delay:calc(var(--i,0) * 90ms); }

  /* ---------- Buttons ---------- */
  .btn{
    display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
    padding:.95rem 1.9rem; border-radius:100px; font-weight:600; font-size:.95rem;
    border:1.5px solid transparent; transition:transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
    white-space:nowrap;
  }
  .btn-primary{ background:linear-gradient(135deg, var(--maroon), var(--maroon-dark)); color:#fff; box-shadow:0 10px 24px rgba(139,30,35,.35); }
  .btn-primary:hover{ transform:translateY(-3px); box-shadow:0 16px 32px rgba(139,30,35,.45); }
  .btn-ghost{ border-color:rgba(255,255,255,.55); color:#fff; backdrop-filter:blur(6px); background:rgba(255,255,255,.06); }
  .btn-ghost:hover{ background:rgba(255,255,255,.16); transform:translateY(-3px); }
  .btn-dark{ background:var(--navy); color:#fff; }
  .btn-dark:hover{ background:var(--navy-light); transform:translateY(-3px); }

  /* ---------- Brand / Logo ----------
     Uses the two original logo files: the light-grey "negativo" version
     over dark backgrounds (hero header, footer) and the navy version once
     the header turns solid white on scroll. Both images are stacked and
     cross-fade via opacity so there is no layout shift or flash. */
  .brand{ display:flex; align-items:center; }
  .brand-logo{ position:relative; display:inline-block; height:70px; }
  .brand-img{ height:100%; width:auto; display:block; transition:opacity .4s var(--ease); }
  .brand-img--dark{ position:absolute; inset:0; opacity:0; }
  .header.scrolled .brand-img--light{ opacity:0; }
  .header.scrolled .brand-img--dark{ opacity:1; }

  .footer .brand-logo{ height:70px; }

  /* ---------- Header ---------- */
  .header{
    position:fixed; inset:0 0 auto 0; z-index:1000;
    padding:12px 0;
    transition:background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
  }
  .header.scrolled{ background:rgba(255,255,255,.88); backdrop-filter:blur(14px); box-shadow:0 4px 24px rgba(11,27,48,.08); padding:8px 0; }
  .header.scrolled .nav a{ color:var(--ink); }
  .header-inner{ display:flex; align-items:center; justify-content:space-between; }
  .nav{ display:flex; align-items:center; gap:2.1rem; }
  .nav a{ font-weight:600; font-size:.92rem; color:#fff; position:relative; padding:6px 0; transition:color .3s; }
  .header:not(.scrolled) .nav a{ color:#fff; text-shadow:0 1px 6px rgba(0,0,0,.25); }
  .nav a::after{ content:''; position:absolute; left:0; bottom:0; width:0; height:2px; background:var(--maroon); transition:width .35s var(--ease); }
  .nav a:hover::after{ width:100%; }
  .nav .btn{ padding:.62rem 1.4rem; font-size:.85rem; }

  .nav-toggle{ display:none; flex-direction:column; justify-content:center; gap:5px; width:38px; height:38px; background:none; border:none; }
  .nav-toggle span{ display:block; height:2px; width:100%; background:#fff; border-radius:2px; transition:transform .35s var(--ease), opacity .35s var(--ease), background .3s; }
  .header.scrolled .nav-toggle span{ background:var(--navy-deep); }
  .nav-toggle.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2){ opacity:0; }
  .nav-toggle.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

  /* ---------- Hero ---------- */
  .hero{
    position:relative; min-height:100vh; display:flex; align-items:center;
    overflow:hidden; background:var(--navy-deep);
  }
  .hero-video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.55; }
  .hero-overlay{
    position:absolute; inset:0;
    background:
      radial-gradient(ellipse at 20% 20%, rgba(27,58,99,.35), transparent 60%),
      linear-gradient(115deg, rgba(6,15,28,.94) 10%, rgba(6,15,28,.72) 45%, rgba(11,27,48,.55) 100%);
  }
  .hero-content{ position:relative; z-index:2; padding-top:110px; max-width:760px; }
  .eyebrow{
    display:inline-flex; align-items:center; gap:.5rem; color:#fff; font-weight:600; font-size:.82rem;
    letter-spacing:2px; text-transform:uppercase; padding:.5rem 1.1rem; border:1px solid rgba(255,255,255,.3);
    border-radius:100px; background:rgba(255,255,255,.06); backdrop-filter:blur(6px); margin-bottom:1.6rem;
  }
  .eyebrow::before{ content:''; width:7px; height:7px; border-radius:50%; background:var(--maroon); box-shadow:0 0 0 4px rgba(139,30,35,.35); }
  .hero-title{ font-size:clamp(2.3rem, 5.4vw, 4rem); font-weight:800; color:#fff; line-height:1.12; letter-spacing:-.5px; }
  .text-accent{ color:#e7a1a4; background:linear-gradient(90deg,#f0b3b6,#c96166); -webkit-background-clip:text; background-clip:text; color:transparent; }
  .hero-sub{ margin-top:1.6rem; font-size:1.12rem; color:rgba(255,255,255,.82); max-width:560px; }
  .hero-actions{ display:flex; gap:1rem; margin-top:2.6rem; flex-wrap:wrap; }

  .scroll-indicator{ position:absolute; left:50%; bottom:34px; transform:translateX(-50%); z-index:2; width:26px; height:42px; border:2px solid rgba(255,255,255,.55); border-radius:100px; }
  .scroll-indicator span{ position:absolute; top:7px; left:50%; width:4px; height:8px; background:#fff; border-radius:3px; transform:translateX(-50%); animation:scrollDot 1.8s infinite; }
  @keyframes scrollDot{ 0%{ opacity:1; top:7px;} 70%{ opacity:0; top:22px;} 100%{ opacity:0; top:7px;} }

  /* ---------- Stats ---------- */
  .stats{ background:var(--white); border-bottom:1px solid #E7E9EF; }
  .stats-grid{ display:grid; grid-template-columns:repeat(4,1fr); padding:3rem 0; gap:1.5rem; }
  .stat{ text-align:center; padding-inline:.5rem; border-right:1px solid #E7E9EF; }
  .stat:last-child{ border-right:none; }
  .stat-num{ font-family:'Poppins',sans-serif; font-weight:800; font-size:clamp(1.9rem,3.6vw,2.6rem); color:var(--navy); line-height:1; }
  .stat-num span{ color:var(--maroon); }
  .stat-label{ margin-top:.6rem; font-size:.85rem; color:var(--gray); font-weight:500; }

  /* ---------- Section titles ---------- */
  .eyebrow-sm{ display:inline-block; font-weight:700; font-size:.78rem; letter-spacing:2px; text-transform:uppercase; color:var(--maroon); margin-bottom:.8rem; }
  .section-title{ font-size:clamp(1.7rem,3.4vw,2.5rem); font-weight:700; letter-spacing:-.3px; }
  .section-title.light{ color:#fff; }
  .section-sub{ margin-top:1rem; color:var(--gray); font-size:1.05rem; max-width:640px; }
  .center{ text-align:center; margin-inline:auto; }

  /* ---------- About ---------- */
  .about{ padding:7rem 0; }
  .about-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:4rem; align-items:center; }
  .about-text p{ color:var(--gray); font-size:1.04rem; margin-top:1.3rem; }
  .credentials{ display:flex; flex-wrap:wrap; gap:.7rem; margin-top:2rem; }
  .credential-badge{
    font-size:.82rem; font-weight:600; color:var(--navy); background:var(--bg-alt);
    border:1px solid #E1E4EC; padding:.55rem 1rem; border-radius:100px; display:flex; align-items:center; gap:.5rem;
  }
  .credential-badge::before{ content:''; width:7px; height:7px; border-radius:50%; background:var(--maroon); }

  .video-card{ position:relative; border-radius:24px; overflow:hidden; box-shadow:var(--shadow-lg); aspect-ratio:4/3; }
  .video-card video{ width:100%; height:100%; object-fit:cover; }
  .video-card::after{ content:''; position:absolute; inset:0; background:linear-gradient(180deg, transparent 55%, rgba(11,27,48,.55)); }
  .video-card-tag{
    position:absolute; left:1.4rem; bottom:1.4rem; z-index:2; color:#fff; font-family:'Poppins',sans-serif;
    font-weight:600; font-size:.95rem; display:flex; align-items:center; gap:.6rem;
  }
  .video-card-tag::before{ content:''; width:9px; height:9px; border-radius:50%; background:#4ADE80; box-shadow:0 0 0 4px rgba(74,222,128,.25); }

  /* ---------- Practice areas ---------- */
  .practice{ padding:7rem 0; background:var(--bg-alt); }
  .practice-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.6rem; margin-top:3rem; }
  .card{
    background:#fff; border-radius:20px; padding:2rem 1.8rem; box-shadow:var(--shadow-sm);
    transition:transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
    border:1px solid transparent;
  }
  .card:hover{ transform:translateY(-8px); box-shadow:var(--shadow-md); border-color:#EADCDC; }
  .card-icon{
    width:52px; height:52px; border-radius:14px; display:flex; align-items:center; justify-content:center;
    background:linear-gradient(135deg, var(--navy), var(--navy-light)); margin-bottom:1.3rem;
  }
  .card:nth-child(3n+2) .card-icon{ background:linear-gradient(135deg, var(--maroon), var(--maroon-dark)); }
  .card:nth-child(3n+3) .card-icon{ background:linear-gradient(135deg, #2E5387, #1B3A63); }
  .card-icon svg{ width:26px; height:26px; stroke:#fff; fill:none; stroke-width:1.7; }
  .card h3{ font-size:1.08rem; font-weight:700; margin-bottom:.6rem; }
  .card p{ color:var(--gray); font-size:.92rem; }

  /* ---------- Education (dark) ---------- */
  .dark-section{ background:linear-gradient(160deg, var(--navy-deep), #0F2540 65%, var(--navy-deep)); position:relative; overflow:hidden; }
  .dark-section::before{
    content:''; position:absolute; inset:0; opacity:.5;
    background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
    background-size:26px 26px; mask-image:radial-gradient(ellipse at center, black, transparent 75%);
  }
  .education{ padding:7rem 0; }
  .edu-grid{ display:grid; grid-template-columns:1fr 1fr; gap:3.5rem; margin-top:3.5rem; position:relative; z-index:1; }
  .edu-grid--single{ grid-template-columns:1fr; max-width:560px; margin-inline:auto; }
  .timeline{ border-left:2px solid rgba(255,255,255,.15); padding-left:1.8rem; display:flex; flex-direction:column; gap:1.9rem; }
  .timeline h4{ font-family:'Poppins',sans-serif; color:#fff; font-size:1.15rem; margin-bottom:1.6rem; display:flex; align-items:center; gap:.6rem; }
  .timeline h4::before{ content:''; width:10px; height:10px; border-radius:3px; background:var(--maroon); transform:rotate(45deg); }
  .t-item{ position:relative; }
  .t-item::before{ content:''; position:absolute; left:-2.31rem; top:5px; width:11px; height:11px; border-radius:50%; background:var(--navy-deep); border:2px solid var(--maroon); }
  .t-item strong{ display:block; color:#fff; font-size:.98rem; font-weight:600; margin-bottom:.2rem; }
  .t-item span{ display:block; color:rgba(255,255,255,.6); font-size:.86rem; }

  /* ---------- Entities ---------- */
  .entities{ padding:6.5rem 0; }
  .chips{ display:flex; flex-wrap:wrap; gap:.8rem; margin-top:2.6rem; justify-content:center; }
  .chip{
    padding:.75rem 1.3rem; background:#fff; border:1px solid #E1E4EC; border-radius:100px;
    font-size:.88rem; font-weight:600; color:var(--navy-deep); box-shadow:var(--shadow-sm);
    transition:transform .3s var(--ease), background .3s, color .3s;
  }
  .chip:hover{ transform:translateY(-4px); background:var(--navy); color:#fff; }

  /* ---------- Coverage ---------- */
  .coverage{ padding:6.5rem 0; background:var(--bg-alt); }
  .coverage-grid{ display:grid; grid-template-columns:1fr 1fr; gap:3.5rem; align-items:center; }
  .muni-grid{ display:flex; flex-wrap:wrap; gap:.6rem; }
  .muni{ padding:.55rem 1rem; background:#fff; border-radius:10px; font-size:.85rem; font-weight:600; color:var(--navy); box-shadow:var(--shadow-sm); }
  .coverage-note{ margin-top:1.4rem; font-size:.92rem; color:var(--gray); }

  /* ---------- Contact ---------- */
  .contact{ padding:7rem 0; }
  .contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:4rem; position:relative; z-index:1; }
  .contact p{ color:rgba(255,255,255,.75); }
  .contact-info{ margin-top:2rem; display:flex; flex-direction:column; gap:1.1rem; }
  .contact-line{ display:flex; align-items:center; gap:.9rem; color:#fff; font-weight:500; font-size:.98rem; }
  .contact-line .ic{ width:38px; height:38px; border-radius:10px; background:rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center; flex:none; }
  .contact-line .ic svg{ width:18px; height:18px; stroke:#fff; fill:none; stroke-width:1.7; }
  .contact-line a:hover{ color:#e7a1a4; }

  .form{ background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14); backdrop-filter:blur(10px); border-radius:22px; padding:2.2rem; }
  .field{ margin-bottom:1.1rem; }
  .field label{ display:block; font-size:.8rem; color:rgba(255,255,255,.7); margin-bottom:.45rem; font-weight:600; letter-spacing:.4px; text-transform:uppercase; }
  .field input, .field select, .field textarea{
    width:100%; padding:.85rem 1rem; border-radius:10px; border:1px solid rgba(255,255,255,.2);
    background:rgba(255,255,255,.06); color:#fff; font-family:inherit; font-size:.95rem; outline:none;
    transition:border-color .3s, background .3s;
  }
  .field input::placeholder, .field textarea::placeholder{ color:rgba(255,255,255,.4); }
  .field input:focus, .field select:focus, .field textarea:focus{ border-color:var(--maroon); background:rgba(255,255,255,.1); }
  .field select option{ color:#000; }
  .form .btn{ width:100%; margin-top:.4rem; }
  .form-note{ font-size:.78rem; color:rgba(255,255,255,.5); margin-top:.9rem; text-align:center; }

  /* ---------- Footer ---------- */
  .footer{ background:#081422; padding:3.2rem 0 2rem; }
  .footer-inner{ display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:2rem; padding-bottom:2rem; border-bottom:1px solid rgba(255,255,255,.08); }
  .footer-links{ display:flex; gap:2.4rem; flex-wrap:wrap; }
  .footer-links a{ color:rgba(255,255,255,.65); font-size:.88rem; font-weight:500; transition:color .3s; }
  .footer-links a:hover{ color:#fff; }
  .footer-bottom{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:.8rem; padding-top:1.6rem; font-size:.78rem; color:rgba(255,255,255,.4); }

  /* ---------- Back to top ---------- */
  .to-top{
    position:fixed; right:22px; bottom:22px; width:46px; height:46px; border-radius:50%; background:var(--navy);
    display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-md); z-index:900; border:none;
    opacity:0; pointer-events:none; transform:translateY(12px); transition:opacity .4s, transform .4s;
  }
  .to-top.show{ opacity:1; pointer-events:auto; transform:translateY(0); }
  .to-top svg{ width:18px; height:18px; stroke:#fff; fill:none; stroke-width:2; }

  /* ---------- Responsive ---------- */
  @media (max-width:960px){
    .about-grid, .edu-grid, .coverage-grid, .contact-grid{ grid-template-columns:1fr; }
    .practice-grid{ grid-template-columns:repeat(2,1fr); }
    .stats-grid{ grid-template-columns:repeat(2,1fr); }
    .stat{ border-right:none; border-bottom:1px solid #E7E9EF; padding-bottom:1.4rem; }
  }
  @media (max-width:760px){
    .nav{
      position:fixed; inset:0 0 auto 0; top:0; padding:100px 8% 2.4rem; flex-direction:column; align-items:flex-start;
      gap:1.4rem; background:rgba(8,20,35,.98); backdrop-filter:blur(16px); height:100vh;
      transform:translateX(100%); transition:transform .5s var(--ease); z-index:999;
    }
    .nav.open{ transform:translateX(0); }
    .nav a{ color:#fff !important; font-size:1.15rem; text-shadow:none !important; }
    .nav .btn{ margin-top:.6rem; }
    .nav-toggle{ display:flex; position:relative; z-index:1001; }
    .nav-toggle span{ background:#fff !important; }
    .header.scrolled .nav-toggle.open span{ background:#fff !important; }
    .practice-grid{ grid-template-columns:1fr; }
    .hero-actions{ flex-direction:column; align-items:flex-start; }
    .footer-inner{ flex-direction:column; }
  }
  @media (max-width:480px){
    .stats-grid{ grid-template-columns:1fr; }
    .stat{ border-bottom:1px solid #E7E9EF; padding-bottom:1.2rem; }
  }

  @media (prefers-reduced-motion: reduce){
    .reveal{ opacity:1; transform:none; transition:none; }
    html{ scroll-behavior:auto; }
  }
