  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #4D0D09 #FAF7F0;
  }
  
  .nav-logo{
    display:flex;
    align-items:center;
    gap:18px;
    text-decoration:none;
    margin-right:auto;
    padding:14px 0;
    line-height:1;
    color:var(--accent-warm);
    min-width:0;
  }
  
  .nav-logo-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
  
    width:115px;
    height:58px;
  
    flex-shrink:0;
  }
  
  .nav-logo-icon img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
  }

  .nav-logo-icon svg {
    width: 100%;
    height: 100%;
    display: block;
  }
  
  .nav-link.active {
    color: #fff;
    box-shadow: inset 0 -2px 0 var(--accent-warm, #D4A87C);
  }

  /* ============================================================
   LANGUAGE SWITCH FLAG
   Temporary — remove when the GR/EN versions are fully built.
   Sits between .nav-social and .nav-apply in the primary nav.
   ============================================================ */
.nav-lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  padding: 6px 10px;
  text-decoration: none;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  font-family: "Inter Tight", "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}
.nav-lang:hover,
.nav-lang:focus {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.nav-lang svg {
  width: 22px;
  height: auto;
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.nav-lang-label {
  display: inline-block;
}

/* On narrow screens, hide the EL/EN label and keep just the flag */
@media (max-width: 768px) {
  .nav-lang {
    margin-left: 8px;
    padding: 5px 7px;
    gap: 0;
  }
  .nav-lang-label {
    display: none;
  }
}


  /* .sub-nav-link.active {
    color: var(--primary, #9A2921);
    font-weight: 600;
    box-shadow: inset 0 -2px 0 var(--primary, #9A2921);
  } */

  
  /* Main Brand */
  .nav-logo-main {
    font-family: Georgia, serif;
    font-size: 17px;
    color: #fff;
    letter-spacing: .02em;
    line-height: 1.15;
  }
  
  /* Secondary Brand (kept for future use) */
  .nav-logo-sub {
    font-family: Inter, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(255, 255, 255, .78);
  }
  
  /* Hover */
  .nav-logo:hover .nav-logo-main,
  .nav-logo:hover .nav-logo-sub {
    opacity: .88;
  }
  .nav-logo:hover .nav-logo-icon {
    opacity: .85;
  }

/* Mobile */
@media (max-width:768px){
  .nav-logo-main{font-size:16px;}
  .nav-logo-sub{font-size:12px;}
}

.nav-apply{
  display:inline-block;
  background:#B8860B;
  color:#fff;
  font-size:12px;
  font-weight:500;
  padding:9px 18px;
  border:1px solid #B8860B;
  border-radius:3px 14px 14px 3px;
  margin-left:20px;
  cursor:pointer;
  font-family:inherit;
  text-decoration:none;
  line-height:1;
}

.nav-apply:visited{
  color:#fff;
}

.nav-apply:hover,
.nav-apply:focus{
  color:#fff;
  text-decoration:none;
}

/* ===== SECTION B2 — PROGRAMME SUB-NAV (Materials pattern) ===== */
.sub-nav{
  background:#fff;
  border-bottom:1px solid var(--line);
  padding:0 48px;
  display:flex;
  align-items:center;
  position:sticky;
  top:58px;
  z-index:90;
  overflow-x:auto;
  scrollbar-width:none;
}
.sub-nav::-webkit-scrollbar{display:none}
.sub-nav-label{
  font-size:11px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--text-mute);
  padding:14px 20px 14px 0;
  border-right:0.5px solid var(--line);
  margin-right:4px;
  white-space:nowrap;
}
.sub-nav-link{
  font-size:13px;
  color:var(--text-mute);
  padding:14px 18px;
  cursor:pointer;
  white-space:nowrap;
  border-bottom:2px solid transparent;
  transition:color var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) var(--motion-ease);
  text-decoration:none;
}
.sub-nav-link:hover{color:var(--primary-deep)}
.sub-nav-link.active{
  color:var(--primary-deep);
  border-bottom-color:var(--accent-warm);
  font-weight:600;
}

    /* =========================================================
       SECTION N — FOOTER  (identical to homepage)
       ========================================================= */
       footer{background:var(--primary-deeper)}
       .footer{
         padding:40px 48px 24px;
         display:grid;
         grid-template-columns:2fr 1fr 1fr 1fr;
         gap:42px;
       }
       .footer-top{
         background:var(--primary-deeper);
         border-bottom:1px solid rgba(255,255,255,.06);
       }
       .footer-bottom-grid{background:var(--primary-deeper)}

       .footer-brand{
        margin-bottom:14px;
      }
      
      .footer-brand-logo{
        display:flex;
        align-items:center;
      }
      
      .footer-brand-logo img{
        width:140px;
        opacity:.92;
        height:auto;
        display:block;
        object-fit:contain;
      }

      .footer-brand-logo{
        position:relative;
        padding-bottom:18px;
      }
      
      .footer-brand-logo::after{
        content:"";
        position:absolute;
        left:0;
        bottom:0;
        width:140px;
        height:1px;
        background:rgba(212,168,124,.45);
      }

       .footer-desc{
         font-size:12px;
         color:rgba(255,255,255,.42);
         line-height:1.65;
         max-width:280px;
       }
       .footer-head{
         font-size:10px;
         font-weight:700;
         letter-spacing:.12em;
         text-transform:uppercase;
         color:rgba(255,255,255,.42);
         margin-bottom:14px;
       }
       .footer-subhead{margin-top:14px}
       .footer-link{
         display:block;
         font-size:12px;
         color:rgba(255,255,255,.62);
         margin-bottom:8px;
         text-decoration:none;
         line-height:1.55;
         transition:.18s ease;
       }
       .footer-link:hover{
         color:var(--accent-warm);
         transform:translateX(2px);
       }
       .footer-bottom{
         background:var(--primary-dark);
         border-top:1px solid rgba(255,255,255,.06);
         padding:16px 48px;
         display:flex;
         justify-content:space-between;
         gap:20px;
         flex-wrap:wrap;
       }
       .footer-copy{
         font-size:11px;
         color:rgba(255,255,255,.34);
       }
   

/* RESPONSIVE */
@media(max-width:1100px){

  .nav{
    padding:0 24px;
    gap:8px;
  }

  .nav-logo-icon{
    width:90px;
    height:90px;
  }

  .nav-logo-main{
    font-size:14px;
  }

  .nav-link{
    padding:20px 10px;
    font-size:12px;
  }

  .nav-apply{
    margin-left:10px;
    padding:9px 16px;
  }

  .footer{
    grid-template-columns:1fr 1fr;
  }

}

@media(max-width:760px){

  .footer{
    grid-template-columns:1fr;
    padding:32px 24px 20px;
    gap:28px;
  }

  .footer-bottom{
    padding:14px 24px;
    flex-direction:column;
    align-items:flex-start;
  }

}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;

  font-size:11px;
  font-weight:500;
  letter-spacing:.12em;
  text-transform:uppercase;

  color:#B8860B;
  margin-bottom:12px;
  line-height:1;
}

/* decorative dash */
.eyebrow::before{
  content:"";
  width:42px;
  height:1px;
  flex-shrink:0;

  background:linear-gradient(
    90deg,
    #D4A017 0%,
    #B8860B 45%,
    rgba(184,134,11,0) 100%
  );
}

/* optional version for light sections */
.eyebrow.light-eyebrow{
  color:#0F2D52;
}

.eyebrow.light-eyebrow::before{
  background:linear-gradient(
    90deg,
    #1E4C84 0%,
    #0F2D52 45%,
    rgba(15,45,82,0) 100%
  );
}

/* Element Motions */
 /* =========================================================
   PREMIUM MOTION SYSTEM — HERO / PROGRAMME / DEPARTMENTS
   ========================================================= */

/* ---------- Global motion tokens ---------- */
:root{
  --motion-ease: cubic-bezier(.22, 1, .36, 1);
  --motion-slow: 900ms;
  --motion-med: 700ms;
  --motion-fast: 420ms;
}

/* Prevent animation flash before JS runs */
.motion-ready [data-reveal]{
  opacity:0;
  transform:translateY(24px);
  transition:
    opacity var(--motion-med) var(--motion-ease),
    transform var(--motion-med) var(--motion-ease);
  will-change:opacity, transform;
}

.motion-ready [data-reveal].is-visible{
  opacity:1;
  transform:translateY(0);
}

/* Direction variants */
.motion-ready [data-reveal="left"]{
  transform:translateX(-28px);
}

.motion-ready [data-reveal="right"]{
  transform:translateX(28px);
}

.motion-ready [data-reveal="scale"]{
  transform:scale(1.035);
}

.motion-ready [data-reveal="left"].is-visible,
.motion-ready [data-reveal="right"].is-visible{
  transform:translateX(0);
}

.motion-ready [data-reveal="scale"].is-visible{
  transform:scale(1);
}

/* Stagger helper */
.motion-ready [data-delay="1"]{transition-delay:90ms}
.motion-ready [data-delay="2"]{transition-delay:180ms}
.motion-ready [data-delay="3"]{transition-delay:270ms}
.motion-ready [data-delay="4"]{transition-delay:360ms}
.motion-ready [data-delay="5"]{transition-delay:450ms}
.motion-ready [data-delay="6"]{transition-delay:540ms}

/* =========================================================
   1. HERO ENTRANCE
   ========================================================= */

   .motion-ready .hero-video-bg video{
    animation:heroVideoSettle 5200ms var(--motion-ease) both;
    transform-origin:center;
  }
  
  @keyframes heroVideoSettle{
    from{
      transform:scale(1.045);
      filter:saturate(.9) contrast(.95);
    }
    to{
      transform:scale(1);
      filter:saturate(1) contrast(1);
    }
  }
  
  .motion-ready .hero-eyebrow,
  .motion-ready .hero-h1,
  .motion-ready .hero-sub,
  .motion-ready .hero-actions,
  .motion-ready .hero-footnote{
    opacity:0;
    transform:translateY(22px);
    animation:heroReveal var(--motion-slow) var(--motion-ease) forwards;
  }
  
  .motion-ready .hero-eyebrow{animation-delay:180ms}
  .motion-ready .hero-h1{animation-delay:320ms}
  .motion-ready .hero-sub{animation-delay:480ms}
  .motion-ready .hero-actions{animation-delay:650ms}
  .motion-ready .hero-footnote{animation-delay:800ms}
  
  @keyframes heroReveal{
    to{
      opacity:1;
      transform:translateY(0);
    }
  }

  /* Reusable hero entrance motion */
.motion-ready .hero-motion > *{
  opacity:0;
  transform:translateY(22px);
  animation:heroReveal 900ms cubic-bezier(.22,1,.36,1) forwards;
}

.motion-ready .hero-motion > *:nth-child(1){animation-delay:180ms}
.motion-ready .hero-motion > *:nth-child(2){animation-delay:320ms}
.motion-ready .hero-motion > *:nth-child(3){animation-delay:480ms}
.motion-ready .hero-motion > *:nth-child(4){animation-delay:650ms}
.motion-ready .hero-motion > *:nth-child(5){animation-delay:800ms}
.motion-ready .hero-motion > *:nth-child(6){animation-delay:950ms}

@keyframes heroReveal{
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* =========================================================
   SECTION B — SHARED NAV
   (port to views/partials/nav.ejs in Express)
   ========================================================= */
   .nav{
    background:var(--primary-deeper);
    display:flex;
    align-items:center;
    padding:0 48px;
  }
  .nav-logo{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
    margin-right:auto;
    padding:18px 0;
    line-height:1;
    color:var(--accent-warm);
  }
  .nav-logo-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:150px;
    height:auto;
    flex-shrink:0;
    border-radius:8px;
    /* background:var(--primary); */
    color:#fff;
    font-family:"Inter Tight",sans-serif;
    font-weight:800;
    font-size:14px;
    letter-spacing:-.02em;
  }


  .nav-separator{
    display:inline-block;
    width:1px;
    height:52px;
    background:rgba(212,168,124,.45);
    flex-shrink:0;
  }

  .nav-logo-main{
    font-family:"Inter Tight",sans-serif;
    font-size:16px;
    font-weight:600;
    color:#fff;
    letter-spacing:-.005em;
    line-height:1.25;
  }

  .nav-logo-main small{
    display:block;
    font-family:Inter,sans-serif;
    font-size:11px;
    font-weight:500;
    color:rgba(255,255,255,.6);
    letter-spacing:.04em;
    margin-bottom:2px;
  }

  .nav-link{
    display:block;
    font-size:13px;
    color:rgba(255,255,255,.7);
    padding:20px 15px;
    cursor:pointer;
    white-space:nowrap;
    text-decoration:none;
    line-height:1;
  }
  .nav-link:visited{color:rgba(255,255,255,.7)}
  .nav-link:hover,.nav-link:focus{color:#fff}
  .nav-apply{
    display:inline-block;
    background:var(--primary);
    color:#fff;
    font-size:12px;
    font-weight:600;
    padding:10px 20px;
    border:1px solid var(--primary);
    border-radius:3px 14px 14px 3px;
    margin-left:20px;
    cursor:pointer;
    text-decoration:none;
    line-height:1;
    transition:background var(--motion-fast) var(--motion-ease);
  }
  .nav-apply:visited{color:#fff}
  .nav-apply:hover{background:var(--primary-dark)}

  .nav-social{
    display:flex;
    align-items:center;
    gap:10px;
    margin-left:18px;
  }
  
  .nav-social-link{
    width:34px;
    height:34px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid rgba(255,255,255,.10);
    border-radius:50%;
    color:rgba(255,255,255,.72);
    text-decoration:none;
    transition:
      color var(--motion-fast) var(--motion-ease),
      border-color var(--motion-fast) var(--motion-ease),
      background var(--motion-fast) var(--motion-ease),
      transform var(--motion-fast) var(--motion-ease);
  }
  
  .nav-social-link svg{
    width:15px;
    height:15px;
    display:block;
  }
  
  .nav-social-link:hover{
    color:#fff;
    border-color:rgba(212,168,124,.45);
    background:rgba(255,255,255,.04);
    transform:translateY(-1px);
  }