/* ===== Roche x Harvard — Building Strong Health Systems for the Future ===== */

:root{
  --roche-blue:#0B41CD;
  --dark-blue:#022366;
  --light-blue:#1482FA;
  --xlight-blue:#BDE3FF;
  --grey5:#F5F5F2;
  --grey1:#544F4F;
  --ink:#1A1A1A;
  --white:#FFFFFF;
  --serif-line: 1px;
  --max: 1180px;
}

*{box-sizing:border-box;margin:0;padding:0;}

html{scroll-behavior:smooth;}

body{
  font-family:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;
  color:var(--ink);
  background:var(--grey5);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

img{max-width:100%;display:block;}

a{color:inherit;text-decoration:none;}

.wrap{max-width:var(--max);margin:0 auto;padding:0 32px;}

.kicker{
  font-size:.75rem;
  font-weight:600;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--roche-blue);
}

.section-num{
  font-size:.75rem;
  font-weight:600;
  letter-spacing:.1em;
  color:var(--roche-blue);
  display:block;
  margin-bottom:12px;
}

.hairline{border:none;border-top:1px solid rgba(0,0,0,.12);}

/* ===== reveal on scroll ===== */
.reveal{
  opacity:0;
  transform:translateY(24px);
  transition:opacity .7s ease, transform .7s ease;
}
.reveal.is-visible{opacity:1;transform:translateY(0);}

@media print{
  .reveal{opacity:1 !important;transform:none !important;}
  .nav{position:static;}
  .hero{min-height:auto;}
}

/* ===== Top nav ===== */
.nav{
  position:fixed;top:0;left:0;right:0;z-index:100;
  background:rgba(245,245,242,.9);
  backdrop-filter:blur(8px);
  border-bottom:1px solid rgba(0,0,0,.08);
  transition:background .3s ease;
}
.nav-inner{
  max-width:var(--max);margin:0 auto;padding:14px 32px;
  display:flex;align-items:center;justify-content:space-between;
}
.roche-logo-img{height:22px;width:auto;display:block;}

.nav-logo-plate{
  display:flex;align-items:center;
}
.nav-logo-img{height:32px;}
.nav-links{display:flex;gap:32px;list-style:none;}
.nav-links a{
  font-size:.82rem;font-weight:500;letter-spacing:.03em;
  color:var(--ink);
  position:relative;
  padding-bottom:4px;
}
.nav-links a::after{
  content:'';position:absolute;left:0;bottom:0;width:0;height:1px;
  background:var(--roche-blue);transition:width .25s ease;
}
.nav-links a:hover::after{width:100%;}
.nav-toggle{display:none;background:none;border:none;cursor:pointer;padding:4px;}
.nav-toggle span{display:block;width:22px;height:2px;background:var(--ink);margin:5px 0;transition:.25s;}

/* ===== Hero ===== */
.hero{
  position:relative;
  min-height:100vh;
  background:var(--dark-blue);
  color:var(--white);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding-top:90px;
}
.hero-diag{
  position:absolute;
  top:-10%;
  right:8%;
  width:2px;
  height:140%;
  background:var(--roche-blue);
  transform:rotate(18deg);
  opacity:.9;
}
.hero-diag.d2{
  right:18%;
  opacity:.35;
  background:var(--light-blue);
}
.hero-content{
  position:relative;z-index:2;
  max-width:var(--max);margin:0 auto;padding:0 32px;
  width:100%;
  flex:1;
  display:flex;flex-direction:column;justify-content:center;
  padding-top:60px;padding-bottom:40px;
}
.hero-kicker{
  font-size:.8rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;
  color:var(--xlight-blue);
  margin-bottom:22px;
}
.hero h1{
  font-size:clamp(2.4rem,6vw,4.6rem);
  font-weight:800;
  line-height:1.05;
  letter-spacing:-.01em;
  max-width:900px;
  margin-bottom:28px;
}
.hero-sub{
  font-size:1.05rem;
  color:rgba(255,255,255,.82);
  max-width:560px;
  font-weight:400;
}

.hero-footer{
  position:relative;z-index:2;
  background:rgba(2,35,102,.6);
  border-top:1px solid rgba(255,255,255,.15);
}
.hero-footer-inner{
  max-width:var(--max);margin:0 auto;padding:26px 32px;
  display:grid;grid-template-columns:1.1fr 1.4fr;gap:40px;
}
.hero-footer .label{
  font-size:.72rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;
  color:var(--xlight-blue);margin-bottom:6px;
}
.hero-footer .val{font-size:.95rem;font-weight:500;}
.hero-footer .director{
  font-size:.88rem;color:rgba(255,255,255,.78);line-height:1.55;
}
.hero-footer .director strong{color:var(--white);font-weight:600;}

.scroll-cue{
  position:absolute;bottom:18px;left:50%;transform:translateX(-50%);
  width:1px;height:36px;background:rgba(255,255,255,.4);
  z-index:2;
  overflow:hidden;
}
.scroll-cue::after{
  content:'';position:absolute;top:-100%;left:0;width:100%;height:100%;
  background:var(--light-blue);
  animation:scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue{
  0%{top:-100%;}
  60%{top:100%;}
  100%{top:100%;}
}

/* ===== Section separator (diagonal motif) ===== */
.diag-sep{
  position:relative;
  height:64px;
  overflow:hidden;
}
.diag-sep::before{
  content:'';position:absolute;
  top:-30px;left:12%;
  width:1px;height:140px;
  background:var(--roche-blue);
  transform:rotate(18deg);
  opacity:.6;
}

/* ===== Section shell ===== */
.section{padding:110px 0;}
.section.alt{background:var(--white);}
.section-head{margin-bottom:56px;max-width:680px;}
.section-head h2{
  font-size:clamp(1.9rem,3.4vw,2.7rem);
  font-weight:800;
  letter-spacing:-.01em;
  margin-bottom:14px;
}
.section-head p{color:var(--grey1);font-size:1rem;max-width:560px;}

/* ===== Agenda ===== */
.day-tabs{
  display:flex;
  border-bottom:1px solid rgba(0,0,0,.12);
  margin-bottom:44px;
  overflow-x:auto;
  gap:0;
}
.day-tab{
  flex:1;min-width:150px;
  background:none;border:none;
  padding:16px 18px;
  cursor:pointer;
  text-align:left;
  font-family:inherit;
  border-bottom:2px solid transparent;
  transition:border-color .25s ease, background .25s ease;
}
.day-tab .tnum{
  display:block;font-size:.72rem;font-weight:600;letter-spacing:.1em;
  text-transform:uppercase;color:var(--grey1);margin-bottom:4px;
}
.day-tab .tday{font-size:1rem;font-weight:700;color:var(--ink);}
.day-tab .tdate{font-size:.78rem;color:var(--grey1);margin-top:2px;}
.day-tab.active{border-bottom-color:var(--roche-blue);background:rgba(11,65,205,.04);}
.day-tab.active .tnum{color:var(--roche-blue);}
.day-tab.side .tnum{color:var(--light-blue);}
.day-tab.side.active{background:rgba(20,130,250,.06);}

.day-panel{display:none;}
.day-panel.active{display:block;}

.side-badge{
  display:inline-block;
  background:var(--xlight-blue);
  color:var(--dark-blue);
  font-size:.68rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  padding:5px 12px;
  margin-bottom:24px;
}
.side-location{
  font-size:.88rem;color:var(--grey1);margin-bottom:32px;margin-top:-14px;
}

.agenda-item{
  display:grid;
  grid-template-columns:150px 1px 1fr;
  gap:28px;
  padding:22px 0;
  border-top:1px solid rgba(0,0,0,.1);
}
.agenda-item:last-child{border-bottom:1px solid rgba(0,0,0,.1);}
.agenda-time{
  font-size:.88rem;font-weight:600;color:var(--roche-blue);
  padding-top:2px;
  white-space:nowrap;
}
.agenda-rule{background:rgba(0,0,0,.1);}
.agenda-body h3{
  font-size:1.05rem;font-weight:700;margin-bottom:5px;line-height:1.35;
}
.agenda-body .speaker{
  font-size:.86rem;color:var(--grey1);font-weight:500;
}
.agenda-item.break .agenda-body h3{
  color:var(--grey1);font-weight:600;font-size:.95rem;
}
.agenda-item.closing{
  background:rgba(189,227,255,.25);
  padding-left:14px;padding-right:14px;
}

@media (max-width:640px){
  .agenda-item{grid-template-columns:90px 1px 1fr;gap:16px;}
  .agenda-time{font-size:.78rem;}
}

/* ===== Speakers ===== */
.faculty-group-label{
  font-size:.75rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:var(--roche-blue);
  margin:56px 0 22px;
}
.faculty-group-label:first-of-type{margin-top:0;}

.feature-speaker{
  display:grid;
  grid-template-columns:220px 1fr;
  gap:48px;
  padding-bottom:48px;
  margin-bottom:8px;
  border-bottom:1px solid rgba(0,0,0,.12);
  align-items:start;
}
.feature-initials{
  width:220px;height:220px;
  background:var(--dark-blue);
  color:var(--white);
  display:flex;align-items:center;justify-content:center;
  font-size:3.2rem;font-weight:800;
  position:relative;
}
.feature-photo{
  width:220px;height:220px;
  object-fit:cover;
  position:relative;
}
.feature-initials::after,
.feature-photo::after{
  content:'';position:absolute;top:-14px;right:-14px;
  width:1px;height:60px;background:var(--roche-blue);
  transform:rotate(18deg);
}
.feature-text h3{font-size:1.7rem;font-weight:800;margin-bottom:4px;}
.feature-text .role{
  font-size:.9rem;color:var(--roche-blue);font-weight:600;margin-bottom:16px;
}
.feature-text p{color:var(--grey1);font-size:.98rem;max-width:640px;}

.faculty-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
  gap:2px;
  background:rgba(0,0,0,.08);
  margin-bottom:8px;
}
.faculty-card{
  background:var(--white);
  padding:20px 20px 24px;
  display:flex;flex-direction:column;
}
.section.alt .faculty-card{background:var(--grey5);}
.faculty-card img{
  width:100%;aspect-ratio:1/1;object-fit:cover;
  margin-bottom:16px;
}
.fc-initials{
  width:100%;aspect-ratio:1/1;
  background:var(--dark-blue);color:var(--white);
  display:flex;align-items:center;justify-content:center;
  font-size:2rem;font-weight:800;
  margin-bottom:16px;
}
.fc-name{font-size:1.05rem;font-weight:800;margin-bottom:6px;}
.fc-topic{font-size:.85rem;color:var(--grey1);line-height:1.5;}

@media (max-width:560px){
  .faculty-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));}
}

.speaker-list{list-style:none;}
.speaker-row{
  display:grid;
  grid-template-columns:52px 1fr auto;
  gap:20px;
  align-items:center;
  padding:22px 0;
  border-top:1px solid rgba(0,0,0,.1);
}
.speaker-list li:last-child .speaker-row{border-bottom:1px solid rgba(0,0,0,.1);}
.speaker-ini{
  width:44px;height:44px;
  background:var(--grey5);
  border:1px solid rgba(0,0,0,.12);
  color:var(--dark-blue);
  display:flex;align-items:center;justify-content:center;
  font-weight:700;font-size:.85rem;
}
.speaker-photo{
  width:44px;height:44px;
  object-fit:cover;
  border:1px solid rgba(0,0,0,.12);
}
.speaker-name{font-size:1.05rem;font-weight:700;}
.speaker-topic{font-size:.85rem;color:var(--grey1);grid-column:2;margin-top:2px;}
.speaker-row{grid-template-columns:52px 1fr;}
.speaker-topic-wrap{}

@media (max-width:720px){
  .feature-speaker{grid-template-columns:1fr;}
  .feature-initials{width:120px;height:120px;font-size:2rem;}
  .feature-photo{width:120px;height:120px;}
}

/* ===== Directory ===== */
.directory-group-label{
  font-size:.75rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:var(--roche-blue);
  margin:52px 0 20px;
  padding-top:20px;
  border-top:1px solid rgba(0,0,0,.1);
}
.directory-group-label:first-of-type{margin-top:0;padding-top:0;border-top:none;}

.directory-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(168px,1fr));
  gap:32px 28px;
  margin-bottom:8px;
}
.directory-card{
  display:flex;flex-direction:column;
}
.directory-card img{
  width:100%;aspect-ratio:1/1;object-fit:cover;
  background:var(--grey5);
  margin-bottom:14px;
  order:1;
}
.dc-initials{
  width:100%;aspect-ratio:1/1;
  background:var(--dark-blue);color:var(--white);
  display:flex;align-items:center;justify-content:center;
  font-size:1.35rem;font-weight:800;letter-spacing:.02em;
  margin-bottom:14px;
  order:1;
}
.dc-name{
  font-size:.92rem;font-weight:700;line-height:1.3;
  color:var(--ink);
  text-transform:none;
  order:2;
  margin-bottom:3px;
}
.dc-country{
  font-size:.74rem;color:var(--grey1);font-weight:500;
  text-transform:none;letter-spacing:0;
  line-height:1.3;
  order:3;
}

@media (max-width:560px){
  .directory-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:24px 16px;}
}

/* ===== Location ===== */
.location-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2px;
  background:rgba(0,0,0,.1);
}
.location-panel{
  background:var(--grey5);
  padding:40px;
}
.location-panel .loc-tag{
  font-size:.72rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--roche-blue);margin-bottom:10px;
}
.location-panel h3{font-size:1.35rem;font-weight:800;margin-bottom:8px;}
.location-panel .addr{color:var(--grey1);font-size:.92rem;margin-bottom:6px;}
.location-panel .days{
  font-size:.82rem;color:var(--dark-blue);font-weight:600;margin-bottom:22px;
}
.location-panel iframe{
  width:100%;height:260px;border:0;filter:grayscale(.15);
}

@media (max-width:820px){
  .location-grid{grid-template-columns:1fr;}
}

.transit{
  margin-top:64px;
  padding-top:48px;
  border-top:1px solid rgba(0,0,0,.12);
}
.transit-head .loc-tag{
  font-size:.72rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--roche-blue);margin-bottom:10px;display:block;
}
.transit-head h3{font-size:1.35rem;font-weight:800;margin-bottom:6px;}
.transit-sub{color:var(--grey1);font-size:.9rem;margin-bottom:36px;}

.transit-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:2px;
  background:rgba(0,0,0,.1);
}
.transit-item{
  background:var(--grey5);
  padding:26px 28px;
}
.transit-mode{
  font-size:.78rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  color:var(--dark-blue);margin-bottom:8px;
}
.transit-time{
  font-size:1.15rem;font-weight:800;color:var(--roche-blue);margin-bottom:12px;
}
.transit-item p{color:var(--grey1);font-size:.88rem;line-height:1.55;}

@media (max-width:820px){
  .transit-grid{grid-template-columns:1fr;}
}

/* ===== Footer ===== */
.site-footer{
  background:var(--white);
  border-top:1px solid rgba(0,0,0,.1);
  padding:48px 0 32px;
}
.footer-inner{
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:20px;
}
.footer-logo-plate{
  display:flex;align-items:center;gap:16px;
}
.footer-logo-img{height:30px;}
.footer-logo-plate .divider{width:1px;height:20px;background:rgba(0,0,0,.15);}
.footer-hchan{font-size:.8rem;font-weight:600;color:var(--grey1);}
.footer-meta{font-size:.78rem;color:var(--grey1);}

/* ===== Mobile nav ===== */
@media (max-width:820px){
  .nav-links{
    position:fixed;top:58px;left:0;right:0;
    background:var(--grey5);
    flex-direction:column;
    padding:20px 32px;
    gap:18px;
    border-bottom:1px solid rgba(0,0,0,.1);
    transform:translateY(-140%);
    transition:transform .3s ease;
  }
  .nav-links.open{transform:translateY(0);}
  .nav-toggle{display:block;}
  .hero-footer-inner{grid-template-columns:1fr;gap:22px;}
}

@media (max-width:560px){
  .wrap,.hero-content,.hero-footer-inner{padding-left:20px;padding-right:20px;}
  .section{padding:72px 0;}
  .hero{padding-top:70px;}
}
