*{box-sizing:border-box;margin:0;padding:0}
.page{font-family:'Helvetica Neue',Arial,sans-serif;background:#FDFCF8;color:#374151}

/* NAV */
.nav{background:#0F2D52;display:flex;align-items:center;padding:0 48px;position:sticky;top:0;z-index:100}

.nav-link{font-size:13px;color:rgba(255,255,255,.7);padding:20px 15px;cursor:pointer;white-space:nowrap}
.nav-link.active{color:#fff;border-bottom:2px solid #B8860B}

/* SUB-NAV */
.sub-nav{background:#fff;border-bottom:1px solid #E5E2D9;padding:0 48px;display:flex;align-items:center;position:sticky;top:57px;z-index:90}
.sub-nav-label{font-size:11px;font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:#6B7280;padding:14px 20px 14px 0;border-right:0.5px solid #E5E2D9;margin-right:4px;white-space:nowrap}
.sub-nav-link{font-size:13px;color:#6B7280;padding:14px 18px;cursor:pointer;white-space:nowrap;border-bottom:2px solid transparent}
.sub-nav-link:hover{color:#0F2D52}
.sub-nav-link.active{color:#0F2D52;border-bottom-color:#B8860B;font-weight:500}
.sub-nav-cta{margin-left:auto;background:#0F2D52;color:#fff;font-size:12px;font-weight:500;padding:8px 18px;border-radius:3px;cursor:pointer;border:none;font-family:inherit;white-space:nowrap}

a {
    text-decoration: none;
}

/* HERO */
.hero{
  position:relative;
  min-height:360px;
  display:flex;
  align-items:center;
  overflow:hidden;
}

/* BACKGROUND HOLDER */
.hero-bg{
  position:absolute;
  inset:0;
  overflow:hidden;
}

/* COVER IMAGE */
.hero-bg img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  display:block;
}

/* OVERLAY */
.hero-overlay{
  position:absolute;
  inset:0;
  background:rgba(10,22,40,.60);
}

/* CONTENT */
.hero-content{
  position:relative;
  z-index:2;
  padding:60px 48px 68px;
  max-width:720px;
}
.breadcrumb{display:flex;align-items:center;gap:8px;margin-bottom:16px}
.bc-item{font-size:12px;color:rgba(255,255,255,.45);cursor:pointer}
.bc-sep{font-size:12px;color:rgba(255,255,255,.22)}
.bc-current{font-size:12px;color:#B8860B}
.hero-eyebrow{font-size:11px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:#B8860B;margin-bottom:14px}
.hero-h1{font-family:Georgia,serif;font-size:36px;color:#fff;line-height:1.18;letter-spacing:-.3px;margin-bottom:16px;max-width:580px}
.hero-sub{font-size:15px;color:rgba(255,255,255,.62);line-height:1.7;max-width:520px}

/* STATS BAR */
.stats-bar{background:#fff;border-bottom:1px solid #E5E2D9;display:grid;grid-template-columns:repeat(5,1fr)}
.stat{text-align:center;padding:20px 14px;border-right:0.5px solid #E5E2D9}
.stat:last-child{border-right:none}
.stat-n{font-family:Georgia,serif;font-size:22px;color:#0F2D52;line-height:1}
.stat-l{font-size:11px;color:#6B7280;margin-top:4px;line-height:1.4}

/* INTRO SECTION */
.sec{padding:60px 48px}
.sec.alt{background:#fff}
.sec.tinted{background:#F8F7F4}
.sec.dark{background:#0F2D52}
.eyebrow{font-size:11px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:#B8860B;margin-bottom:10px}
.sec-h2{font-family:Georgia,serif;font-size:26px;color:#0F2D52;margin-bottom:12px;line-height:1.25}
.sec-h2.light{color:#fff}
.sec-lead{font-size:15px;color:#374151;line-height:1.75;max-width:700px;margin-bottom:0}
.sec-lead.light{font-size:15px;color:#fff;line-height:1.75;max-width:700px;margin-bottom:0}

.intro-grid{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start}
.intro-principles{display:flex;flex-direction:column;gap:12px;margin-top:4px}
.principle{display:flex;gap:14px;align-items:flex-start}
.principle-dot{width:8px;height:8px;border-radius:50%;background:#B8860B;margin-top:5px;flex-shrink:0}
.principle-title{font-size:13px;font-weight:500;color:#0F2D52;margin-bottom:3px}
.principle-body{font-size:12px;color:#6B7280;line-height:1.6}

/* ==================================================================
   GALLERY SECTION — replaces masonry
   Drop this in wherever the masonry CSS block was.
   ================================================================== */

   .gallery-section {
    background: #0F2D52;
    padding: 56px 0 64px;
  }
  
  .gallery-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
  }
  
  /* Eyebrow label */
  .gallery-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #B8860B;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .gallery-eyebrow::before {
    content: "";
    width: 36px;
    height: 1px;
    flex-shrink: 0;
    background: #B8860B;
    opacity: .6;
  }
  
  /* Section title */
  .gallery-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    letter-spacing: -.02em;
    margin-bottom: 28px;
  }
  
  /* ── HERO IMAGE ── */
  .gallery-hero {
    margin: 0 0 12px;
  }
  
  .gallery-hero-img {
    width: 100%;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    position: relative;
    background: #0B2040;
  }
  
  .gallery-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform .8s ease;
  }
  
  .gallery-hero:hover .gallery-hero-img img {
    transform: scale(1.03);
  }
  
  /* Hero caption — inline, ruled underneath */
  .gallery-hero-caption {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 10px 0 10px;
    border-bottom: .5px solid rgba(255, 255, 255, .14);
    margin-bottom: 24px;
  }
  
  .gallery-caption-sep {
    color: rgba(255, 255, 255, .25);
    font-size: 12px;
  }
  
  /* ── STRIP — three thumbnails ── */
  .gallery-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  
  .gallery-item {
    margin: 0;
    display: flex;
    flex-direction: column;
  }
  
  .gallery-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #0B2040;
  }
  
  .gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform .7s ease;
  }
  
  .gallery-item:hover .gallery-thumb img {
    transform: scale(1.04);
  }
  
  /* Shared caption styles */
  .gallery-caption-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    letter-spacing: .005em;
  }
  
  .gallery-hero-caption .gallery-caption-title {
    font-size: 13px;
  }
  
  .gallery-caption-dept {
    font-size: 10px;
    color: rgba(255, 255, 255, .48);
    letter-spacing: .07em;
    text-transform: uppercase;
  }
  
  .gallery-hero-caption .gallery-caption-dept {
    font-size: 12px;
    text-transform: none;
    letter-spacing: .03em;
    color: rgba(255, 255, 255, .52);
  }
  
  /* Strip item caption — sits below thumb, ruled at bottom */
  .gallery-item figcaption {
    padding: 10px 0 8px;
    border-bottom: .5px solid rgba(255, 255, 255, .1);
    margin-top: 10px;
  }
  
  .gallery-item figcaption .gallery-caption-title {
    margin-bottom: 3px;
  }
  
  /* ==================================================================
     RESPONSIVE
     ================================================================== */
  @media (max-width: 1200px) {
    .gallery-inner { padding: 0 32px; }
  }
  
  @media (max-width: 768px) {
    .gallery-section { padding: 40px 0 52px; }
    .gallery-inner { padding: 0 20px; }
    .gallery-hero-img { aspect-ratio: 16 / 9; }
    .gallery-strip { grid-template-columns: 1fr 1fr; gap: 12px; }
  }
  
  @media (max-width: 480px) {
    .gallery-strip { grid-template-columns: 1fr; }
    .gallery-thumb { aspect-ratio: 3 / 2; }
  }
  
  /* ==================================================================
     PRINT
     ================================================================== */
  @media print {
    .gallery-section { background: #fff; padding: 24px 0; }
    .gallery-title, .gallery-eyebrow { color: #000; }
    .gallery-caption-title { color: #000; }
    .gallery-hero-img, .gallery-thumb { aspect-ratio: auto; max-height: 220px; }
  }

  
/* ================================================================
   LAB CATEGORIES — 18 labs across 3 departments
   Replace the existing .lab-grid + surrounding section CSS with this.
================================================================ */

/* Section wrapper */


/* RESEARCH CENTRES */
.centres-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.centre-card{background:rgba(255,255,255,.07);border:0.5px solid rgba(255,255,255,.12);border-radius:6px;padding:22px}
.centre-name{font-family:Georgia,serif;font-size:16px;color:#fff;margin-bottom:6px}
.centre-type{font-size:10px;font-weight:500;letter-spacing:.07em;text-transform:uppercase;color:#B8860B;margin-bottom:10px}
.centre-desc{font-size:12px;color:rgba(255,255,255,.5);line-height:1.6;margin-bottom:14px}
.centre-link{font-size:12px;color:#B8860B;font-weight:500;cursor:pointer}

/* APPLY BAND */
.apply-band{background:#0F2D52;padding:48px;display:grid;grid-template-columns:1fr auto;gap:40px;align-items:center}
.apply-eyebrow{font-size:11px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:#B8860B;margin-bottom:10px}
.apply-title{font-family:Georgia,serif;font-size:22px;color:#fff;margin-bottom:8px;line-height:1.3}
.apply-sub{font-size:14px;color:rgba(255,255,255,.5);line-height:1.6}
.apply-actions{display:flex;gap:10px;flex-direction:column;align-items:flex-end}
.btn-gold-lg {
  background:#B8860B;
  color:#fff;
  padding:13px 28px;
  font-size:14px;
  font-weight:500;
  border:1px solid #B8860B;
  border-radius:3px 14px 14px 3px;
  cursor:pointer;
  font-family:inherit;
  white-space:nowrap
}
.btn-outline-lt{background:transparent;color:rgba(255,255,255,.65);border:1px solid rgba(255,255,255,.28);padding:10px 22px;font-size:13px;border-radius:3px;cursor:pointer;font-family:inherit;white-space:nowrap}

/* =========================================================
   LABS & FACILITIES PAGE RESPONSIVE LAYER
   ========================================================= */

   html,
   body{
     width:100%;
     overflow-x:hidden;
   }
   
   img,
   video{
     max-width:100%;
   }
   
   @media(max-width:1200px){
   
     .nav,
     .sub-nav,
     .sec,
     .apply-band{
       padding-left:32px;
       padding-right:32px;
     }
   
     .hero-content{
       padding-left:32px;
       padding-right:32px;
     }
   
     .centres-grid{
       grid-template-columns:repeat(2,1fr);
     }
   }
   
   @media(max-width:992px){
   
     .nav,
     .sub-nav{
       padding-left:24px;
       padding-right:24px;
       overflow-x:auto;
       scrollbar-width:none;
     }
   
     .nav::-webkit-scrollbar,
     .sub-nav::-webkit-scrollbar{
       display:none;
     }
   
     .sub-nav-label{
       display:none;
     }
   
     .hero{
       min-height:520px;
     }
   
     .hero-h1{
       font-size:33px;
     }
   
     .stats-bar{
       grid-template-columns:repeat(3,1fr);
     }
   
     .stat:nth-child(3){
       border-right:none;
     }
   
     .stat:nth-child(-n+3){
       border-bottom:0.5px solid #E5E2D9;
     }
   
     .intro-grid{
       grid-template-columns:1fr;
       gap:32px;
     }
   
   
   
     .apply-band{
       grid-template-columns:1fr;
       gap:24px;
     }
   
     .apply-actions{
       align-items:flex-start;
       flex-direction:row;
       flex-wrap:wrap;
     }
   }
   
   @media(max-width:768px){
   
     .nav-link{
       font-size:12px;
       padding:18px 10px;
     }
   
     .sub-nav-link{
       font-size:12px;
       padding:13px 12px;
     }
   
     .hero{
       min-height:600px;
       align-items:flex-end;
     }
   
     .hero-overlay{
       background:linear-gradient(
         to bottom,
         rgba(10,22,40,.35),
         rgba(10,22,40,.90)
       );
     }
   
     .hero-content{
       max-width:100%;
       padding:110px 22px 52px;
     }
   
     .breadcrumb{
       flex-wrap:wrap;
     }
   
     .hero-eyebrow{
       font-size:10px;
       line-height:1.6;
     }
   
     .hero-h1{
       font-size:30px;
       line-height:1.15;
     }
   
     .hero-sub{
       font-size:15px;
       line-height:1.65;
     }
   
     .stats-bar{
       grid-template-columns:1fr;
     }
   
     .stat{
       border-right:none;
       border-bottom:0.5px solid #E5E2D9;
     }
   
     .stat:last-child{
       border-bottom:none;
     }
   
      .sec{
       padding:56px 22px;
     }
   
     .sec-h2{
       font-size:26px;
     }
   
     .sec-lead{
       font-size:15px;
     }
   
     .principle{
       gap:12px;
     }
   
   
   
     .centres-grid{
       grid-template-columns:1fr;
     }
   
     .apply-band{
       padding:42px 22px;
     }
   
     .apply-actions{
       flex-direction:column;
       align-items:stretch;
     }
   
     .apply-actions button,
     .btn-gold-lg,
     .btn-outline-lt{
       width:100%;
       text-align:center;
     }
   }
   
   @media(max-width:480px){
   
     .hero-content{
       padding-left:18px;
       padding-right:18px;
     }
   
     .hero-h1{
       font-size:26px;
     }
   
     .hero-sub{
       font-size:14px;
     }
   
      .sec{
       padding-left:18px;
       padding-right:18px;
     }
   
     .sec-h2{
       font-size:24px;
     }
   
   
   
      .centre-card{
       padding:20px;
     }
   
     .apply-band{
       padding-left:18px;
       padding-right:18px;
     }
   
     .apply-title{
       font-size:20px;
     }
   }

   
/* ================================================================
   FEATURED LAB — Physical Metallurgy Laboratory
   Full-width video hero with secondary video trigger
================================================================ */

.feat-lab {
  background: #0F2D52;
  padding: 0;
  position: relative;
  overflow: hidden;
}

/* Two-column grid: video left, content right */
.feat-lab-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

/* Video side */
.feat-lab-video-wrap {
  position: relative;
  overflow: hidden;
  background: #0B1E35;
}
.feat-lab-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Gold accent line at top of video */
.feat-lab-video-wrap::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: #B8860B;
  z-index: 2;
}

/* Secondary video trigger */
.feat-lab-video-alt {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 45, 82, .72);
  border: .5px solid rgba(255, 255, 255, .18);
  padding: 8px 14px 8px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition: background .18s;
}
.feat-lab-video-alt:hover {
  background: rgba(184, 134, 11, .8);
}
.feat-lab-video-alt-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #B8860B;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Content side */
.feat-lab-content {
  padding: 52px 52px 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feat-lab-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #B8860B;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.feat-lab-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: #B8860B;
  flex-shrink: 0;
}

.feat-lab-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 18px;
}
.feat-lab-title em {
  font-style: italic;
  color: #B8860B;
  font-weight: 500;
}

.feat-lab-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, .65);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 420px;
}
.feat-lab-desc strong {
  color: #fff;
  font-weight: 600;
}

/* Stats row */
.feat-lab-stats {
  display: flex;
  gap: 28px;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: .5px solid rgba(255, 255, 255, .1);
}
.feat-lab-stat-n {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: #B8860B;
  line-height: 1;
  margin-bottom: 4px;
}
.feat-lab-stat-l {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  line-height: 1.4;
}

/* CTA */
.feat-lab-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  border-bottom: .5px solid rgba(255, 255, 255, .35);
  padding-bottom: 2px;
  transition: color .15s, border-color .15s;
  align-self: flex-start;
}
.feat-lab-cta:hover {
  color: #B8860B;
  border-bottom-color: #B8860B;
}
.feat-lab-cta svg {
  transition: transform .15s;
}
.feat-lab-cta:hover svg {
  transform: translateX(3px);
}

/* Inline secondary video player — hidden until triggered */
.feat-lab-alt-player {
  display: none;
  margin-top: 16px;
}
.feat-lab-alt-player.open {
  display: block;
}
.feat-lab-alt-player video {
  width: 100%;
  border-radius: 4px;
  display: block;
}
.feat-lab-alt-close {
  font-size: 11px;
  color: rgba(255, 255, 255, .5);
  cursor: pointer;
  margin-top: 6px;
  display: inline-block;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
  transition: color .15s;
}
.feat-lab-alt-close:hover { color: #fff; }


/* ================================================================
   LAB DIRECTORY — 18 labs, compact typographic cards
================================================================ */

.labdir-section {
  padding: 64px 48px;
  background: #F8F7F4;
}

.labdir-header {
  margin-bottom: 48px;
}
.labdir-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #B8860B;
  margin-bottom: 10px;
}
.labdir-h2 {
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  color: #0F2D52;
  line-height: 1.25;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
.labdir-lead {
  font-size: 15px;
  color: #374151;
  line-height: 1.75;
  max-width: 680px;
}

/* Department group */
.labdir-group {
  margin-bottom: 44px;
}
.labdir-group:last-child {
  margin-bottom: 0;
}

.labdir-dept-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid #0F2D52;
}
.labdir-dept-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  padding: 3px 10px;
  border-radius: 3px;
  flex-shrink: 0;
}
.labdir-dept-tag.chem { background: #185EA5; }
.labdir-dept-tag.mech { background: #B8860B; }
.labdir-dept-tag.phys { background: #0F2D52; }

.labdir-dept-name {
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  color: #0F2D52;
  letter-spacing: -.012em;
}
.labdir-dept-count {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6B7280;
  font-weight: 600;
  white-space: nowrap;
}

/* Lab list — simple rows */
.labdir-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #E5E2D9;
  border: .5px solid #E5E2D9;
  border-radius: 6px;
  overflow: hidden;
}

.labdir-item {
  background: #fff;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background .15s;
}
.labdir-item:hover {
  background: #FDFCF8;
}

/* Index + name row */
.labdir-item-top {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.labdir-index {
  font-family: Georgia, serif;
  font-size: 13px;
  font-style: italic;
  color: #B8860B;
  flex-shrink: 0;
  min-width: 20px;
  line-height: 1;
}
.labdir-name {
  font-size: 14px;
  font-weight: 600;
  color: #0F2D52;
  line-height: 1.35;
  letter-spacing: -.008em;
}

.labdir-desc {
  font-size: 12px;
  color: #6B7280;
  line-height: 1.6;
  padding-left: 30px;
}

/* Visit link */
.labdir-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #0F2D52;
  text-decoration: none;
  padding-left: 30px;
  margin-top: 2px;
  transition: color .15s;
}
.labdir-link:hover {
  color: #B8860B;
}
.labdir-link svg {
  transition: transform .15s;
}
.labdir-link:hover svg {
  transform: translateX(2px);
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 1024px) {
  .feat-lab-inner { grid-template-columns: 1fr; }
  .feat-lab-video-wrap { min-height: 300px; }
  .feat-lab-content { padding: 40px 36px; }
  .labdir-list { grid-template-columns: 1fr; }
  .labdir-dept-count { display: none; }
}
@media (max-width: 768px) {
  .feat-lab-content { padding: 32px 24px; }
  .feat-lab-stats { gap: 20px; }
  .labdir-section { padding: 48px 24px; }
  .labdir-group { margin-bottom: 36px; }
}