/* NICVD design system — approved homepage design, namespaced under .nx to avoid collisions. */
:root{
  --paper:#FAF8F7; --paper-deep:#F2ECEB; --ink:#232323; --ink-soft:#55504E;
  --maroon:#C8102E; --maroon-deep:#7A0F1B; --navy:#1E1A19; --gold:#E8536A;
  --line:#E3DCDA; --white:#FFFFFF;
}
html{ scroll-behavior:smooth; }
body{ background:var(--paper); }
.nx [id], [id]{ scroll-margin-top:150px; }

.nx *{ box-sizing:border-box; margin:0; padding:0; }
.nx{ background:var(--paper); color:var(--ink); font-family:'IBM Plex Sans',sans-serif; font-size:18px; line-height:1.65; -webkit-font-smoothing:antialiased; }
.nx h1,.nx h2,.nx h3,.nx .serif{ font-family:'Source Serif 4',serif; }
.nx .mono{ font-family:'IBM Plex Mono',monospace; letter-spacing:.02em; }
.nx a{ color:inherit; text-decoration:none; }
.nx .wrap{ max-width:1180px; margin:0 auto; padding:0 28px; }
.nx ::selection{ background:var(--maroon); color:#fff; }
.nx a:focus-visible,.nx button:focus-visible,.nx .gov-btn:focus-visible{ outline:2px solid var(--gold); outline-offset:2px; }
.nx .skip-link{ position:absolute; left:12px; top:-60px; background:var(--white); color:var(--ink); padding:10px 16px; font-size:13px; font-weight:600; z-index:100; transition:top .15s; border:1px solid var(--line); }
.nx .skip-link:focus{ top:12px; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .nx .pulse path{ animation:none; stroke-dashoffset:0; }
  .nx *{ transition-duration:.001ms !important; }
}

/* Header */
.nx .site-head{ position:sticky; top:0; z-index:50; transition:box-shadow .2s; }
.nx .site-head.scrolled{ box-shadow:0 6px 24px rgba(0,0,0,.12); }
.nx header.main{ background:var(--white); border-bottom:1px solid var(--line); }
.nx .header-inner{ display:flex; align-items:center; justify-content:space-between; padding:24px 28px; gap:24px; }
.nx .brand{ display:flex; align-items:center; gap:18px; }
.nx .brand-logo{ width:64px; height:64px; flex-shrink:0; object-fit:contain; }
.nx .brand .name{ font-size:29px; font-weight:600; letter-spacing:.01em; }
.nx .brand .sub{ font-family:'IBM Plex Sans'; font-size:13.5px; color:var(--ink-soft); margin-top:3px; }
.nx .brand .sub2{ font-family:'IBM Plex Sans'; font-size:12.5px; color:var(--gold); margin-top:2px; font-weight:600; letter-spacing:.03em; }
.nx .helpline{ text-align:right; }
.nx .helpline .label{ font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:var(--ink-soft); }
.nx .helpline .num{ font-family:'IBM Plex Mono'; font-size:25px; font-weight:600; color:var(--maroon); }
.nx .head-actions{ display:flex; align-items:center; gap:22px; }
.nx .gov-btn{ display:flex; align-items:center; gap:11px; border:1.5px solid var(--maroon); padding:10px 18px; transition:background .15s,color .15s; }
.nx .gov-btn img{ width:29px; height:29px; object-fit:contain; }
.nx .gov-btn span{ font-size:12.5px; font-weight:600; line-height:1.3; color:var(--maroon); text-transform:uppercase; letter-spacing:.03em; }
.nx .gov-btn:hover{ background:var(--maroon); }
.nx .gov-btn:hover span{ color:#fff; }

/* Nav */
.nx nav.primary{ background:var(--maroon); position:relative; z-index:40; }
.nx nav.primary ul.navlist{ list-style:none; display:flex; justify-content:space-between; width:100%; }
.nx nav.primary li{ position:relative; }
.nx nav.primary > .wrap > ul.navlist > li > a{ color:#F8DCE0; font-size:14px; font-weight:500; padding:15px 10px; display:flex; align-items:center; gap:4px; border-bottom:2px solid transparent; white-space:nowrap; transition:background .15s,color .15s; }
.nx nav.primary li:hover > a{ background:var(--maroon-deep); color:#fff; }
.nx nav.primary li.has-sub > a::after{ content:'▾'; font-size:10px; margin-left:2px; opacity:.75; transition:transform .18s; }
.nx nav.primary li.has-sub:hover > a::after{ transform:rotate(180deg); }
.nx .submenu{ opacity:0; visibility:hidden; transform:translateY(-6px); position:absolute; top:100%; left:0; min-width:248px; background:var(--white); border:1px solid var(--line); border-top:2px solid var(--maroon); padding:6px 0; box-shadow:0 14px 30px rgba(0,0,0,.1); transition:opacity .16s ease,transform .16s ease,visibility .16s; }
.nx nav.primary li.has-sub:hover .submenu,.nx nav.primary li.has-sub:focus-within .submenu{ opacity:1; visibility:visible; transform:translateY(0); }
.nx .submenu a{ display:block; padding:12px 20px; font-size:15px; color:var(--ink); font-weight:400; }
.nx .submenu a:hover{ background:var(--paper-deep); color:var(--maroon); }
.nx .nav-toggle{ display:none; background:none; border:none; cursor:pointer; padding:15px 20px; flex-direction:column; gap:5px; align-items:center; justify-content:center; }
.nx .nav-toggle span{ width:24px; height:2px; background:#F8DCE0; display:block; transition:transform .2s,opacity .2s; }
.nx .nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nx .nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nx .nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* Pulse divider */
.nx .pulse{ width:100%; height:46px; overflow:hidden; background:var(--paper); }
.nx .pulse svg{ width:100%; height:100%; display:block; }
.nx .pulse path{ fill:none; stroke:var(--maroon); stroke-width:1.6; opacity:.55; stroke-dasharray:900; stroke-dashoffset:900; animation:nx-draw 2.4s ease-out forwards; }
@keyframes nx-draw{ to{ stroke-dashoffset:0; } }
.nx .pulse.dark path{ stroke:var(--gold); opacity:.6; }
.nx .pulse.dark{ background:var(--navy); }

/* Hero */
.nx .hero{ background:var(--navy); color:#F3EDEA; padding:92px 0 80px; position:relative; overflow:hidden; }
.nx .hero-heart{ position:absolute; right:-60px; top:-40px; width:560px; height:560px; opacity:.07; pointer-events:none; }
.nx .hero-grid{ position:relative; display:grid; grid-template-columns:1.2fr 0.8fr; gap:64px; align-items:end; }
.nx .eyebrow{ font-family:'IBM Plex Mono'; font-size:13px; letter-spacing:.18em; text-transform:uppercase; color:var(--gold); margin-bottom:24px; display:flex; align-items:center; gap:12px; }
.nx .eyebrow::before{ content:''; width:28px; height:1px; background:var(--gold); display:inline-block; }
.nx h1.headline{ font-size:60px; line-height:1.07; font-weight:600; letter-spacing:-.015em; color:#FBF6F2; max-width:660px; }
.nx h1.headline .accent{ color:var(--gold); font-style:italic; font-weight:500; }
.nx .hero-copy{ font-size:18.5px; color:#C7BEB9; max-width:500px; margin-top:28px; line-height:1.75; font-weight:300; }
.nx .hero-cta{ display:flex; gap:18px; margin-top:40px; align-items:center; flex-wrap:wrap; }
.nx .btn{ display:inline-block; padding:16px 30px; font-size:13.5px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; transition:background .18s,color .18s,border-color .18s; }
.nx .hero .btn.solid{ background:var(--gold); border:1px solid var(--gold); color:var(--navy); }
.nx .hero .btn.solid:hover{ background:transparent; color:var(--gold); }
.nx .hero .btn.ghost{ background:transparent; border:1px solid rgba(243,237,234,.4); color:#F3EDEA; }
.nx .hero .btn.ghost:hover{ border-color:#F3EDEA; }
.nx .btn.solid{ background:var(--maroon); border:1px solid var(--maroon); color:#fff; }
.nx .btn.solid:hover{ background:var(--maroon-deep); }
.nx .btn.ghost{ background:transparent; border:1px solid var(--ink); color:var(--ink); }
.nx .btn.ghost:hover{ background:var(--ink); color:#fff; }
.nx .vitals-card{ background:rgba(251,246,242,.03); border:1px solid rgba(200,16,46,.35); padding:38px; position:relative; }
.nx .vitals-card .tag{ font-family:'IBM Plex Mono'; font-size:11.5px; letter-spacing:.16em; color:var(--gold); text-transform:uppercase; }
.nx .vitals-card h3{ font-size:23px; margin-top:12px; font-weight:500; color:#FBF6F2; }
.nx .vitals-row{ display:flex; justify-content:space-between; padding:16px 0; border-top:1px solid rgba(255,255,255,.1); font-size:16px; }
.nx .vitals-row a{ color:#E4DDD8; }
.nx .vitals-row a:hover{ color:var(--gold); }
.nx .vitals-row .arrow{ color:var(--gold); }
.nx .emg{ margin-top:24px; padding-top:22px; border-top:1px solid rgba(255,255,255,.14); display:flex; justify-content:space-between; align-items:flex-end; }
.nx .emg .label{ font-size:11.5px; color:#9A9088; text-transform:uppercase; letter-spacing:.1em; }
.nx .emg .num{ font-family:'IBM Plex Mono'; font-size:31px; color:var(--gold); font-weight:600; }
.nx .emg .badge{ font-family:'IBM Plex Mono'; font-size:11px; color:#9A9088; border:1px solid rgba(255,255,255,.2); padding:4px 9px; letter-spacing:.08em; }

/* Strip */
.nx .strip{ border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:16px 0; font-size:14.5px; color:var(--ink-soft); background:var(--paper-deep); }
.nx .strip .wrap{ display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.nx .strip b{ color:var(--ink); font-weight:600; }

/* Section heading */
.nx .section{ padding:84px 0; }
.nx .section-head{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:40px; padding-bottom:20px; border-bottom:1px solid var(--line); }
.nx .section-head h2{ font-size:36px; font-weight:600; letter-spacing:-.015em; }
.nx .section-head .more{ font-size:15px; font-weight:600; color:var(--maroon); border-bottom:1px solid var(--maroon); padding-bottom:3px; white-space:nowrap; }

/* Services */
.nx .services{ display:grid; grid-template-columns:repeat(4,1fr); }
.nx .service{ border-left:1px solid var(--line); padding:6px 30px 6px 28px; }
.nx .service:first-child{ padding-left:0; border-left:none; }
.nx .service .num{ font-family:'IBM Plex Mono'; font-size:14px; color:var(--gold); }
.nx .service h3{ font-size:22px; margin:14px 0 10px; font-weight:600; transition:color .15s; }
.nx .service:hover h3{ color:var(--maroon); }
.nx .service p{ font-size:16.5px; color:var(--ink-soft); line-height:1.6; }

/* Departments */
.nx .depts{ display:grid; grid-template-columns:1fr 1fr; gap:1px; background:var(--line); }
.nx .dept{ background:var(--white); padding:46px; transition:background .18s; }
.nx .dept:hover{ background:#FEFCFC; }
.nx .dept .icon{ font-size:14px; color:var(--maroon); font-family:'IBM Plex Mono'; letter-spacing:.06em; text-transform:uppercase; }
.nx .dept h3{ font-size:28px; margin:16px 0 14px; }
.nx .dept p{ font-size:17px; color:var(--ink-soft); line-height:1.7; margin-bottom:22px; }
.nx .dept a{ font-size:15.5px; font-weight:600; color:var(--maroon); }
.nx .dept:hover a{ color:var(--maroon-deep); }

/* About + Notice board */
.nx .about-grid{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:58px; align-items:start; }
.nx .about-grid h2{ font-size:36px; line-height:1.18; margin-bottom:20px; max-width:480px; }
.nx .about-grid > div > p{ font-size:17.5px; color:var(--ink-soft); line-height:1.8; margin-bottom:28px; }
.nx .noticeboard{ border:1px solid var(--line); background:var(--white); }
.nx .nb-head{ display:flex; justify-content:space-between; align-items:center; padding:18px 24px; border-bottom:1px solid var(--line); background:var(--paper-deep); }
.nx .nb-head .t{ font-weight:600; font-size:18px; }
.nx .nb-head .u{ font-size:12px; color:var(--ink-soft); font-family:'IBM Plex Mono'; }
.nx .nb-item{ display:flex; gap:20px; padding:20px 24px; border-bottom:1px solid var(--line); transition:background .15s; }
.nx .nb-item:last-child{ border-bottom:none; }
.nx .nb-item:hover{ background:var(--paper-deep); }
.nx .nb-date{ font-family:'IBM Plex Mono'; text-align:center; min-width:48px; }
.nx .nb-date .d{ font-size:25px; font-weight:600; color:var(--maroon); line-height:1; }
.nx .nb-date .m{ font-size:11.5px; color:var(--ink-soft); text-transform:uppercase; }
.nx .nb-body{ font-size:16.5px; line-height:1.55; }
.nx .nb-new{ background:var(--maroon); color:#fff; font-size:10.5px; padding:2px 7px; margin-left:7px; font-family:'IBM Plex Mono'; vertical-align:middle; }

/* Stats */
.nx .stats{ position:relative; background:var(--navy); color:#EDF1F5; overflow:hidden; }
.nx .stats .trace{ position:absolute; inset:0; opacity:.18; }
.nx .stats-row{ position:relative; display:grid; grid-template-columns:repeat(4,1fr); padding:62px 28px; }
.nx .stats-row div{ text-align:center; border-left:1px solid rgba(255,255,255,.15); padding:0 20px; }
.nx .stats-row div:first-child{ border-left:none; }
.nx .stats-row .n{ font-family:'Source Serif 4'; font-size:56px; font-weight:600; color:var(--gold); line-height:1; }
.nx .stats-row .l{ font-size:15px; color:#AEB9C4; margin-top:12px; }

/* Faculty */
.nx .faculty{ display:grid; grid-template-columns:repeat(4,1fr); gap:0; }
.nx .fac{ border-right:1px solid var(--line); }
.nx .fac:last-child{ border-right:none; }
.nx .fac .photo{ aspect-ratio:3/3.6; background:var(--paper-deep); position:relative; overflow:hidden; }
.nx .fac .photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.nx .fac .photo::after{ content:''; position:absolute; inset:0; background:linear-gradient(180deg,transparent 60%,rgba(18,40,63,.55)); }
.nx .fac .info{ padding:18px 22px 24px; }
.nx .fac .info .n{ font-family:'Source Serif 4'; font-weight:600; font-size:20px; }
.nx .fac .info .r{ font-size:14.5px; color:var(--ink-soft); margin-top:4px; }

/* Conference banner */
.nx .conf{ background:var(--maroon); color:#fff; padding:38px 0; }
.nx .conf .wrap{ display:flex; justify-content:space-between; align-items:center; gap:22px; flex-wrap:wrap; }
.nx .conf .tag{ font-family:'IBM Plex Mono'; font-size:12px; letter-spacing:.1em; color:#F1C9C9; text-transform:uppercase; }
.nx .conf h3{ font-size:26px; margin-top:8px; font-weight:600; }
.nx .conf .d{ font-size:15.5px; color:#F1D6D6; margin-top:6px; }
.nx .conf .btn.solid{ background:#fff; color:var(--maroon); border-color:#fff; }
.nx .conf .btn.solid:hover{ background:var(--gold); border-color:var(--gold); color:#fff; }

/* Footer */
.nx.footer, .nx footer{ background:var(--navy); color:#AEB9C4; padding:62px 0 28px; }
.nx .foot-grid{ display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr; gap:40px; padding-bottom:38px; border-bottom:1px solid rgba(255,255,255,.12); }
.nx .foot-grid h4{ color:#fff; font-size:14px; text-transform:uppercase; letter-spacing:.08em; margin-bottom:18px; font-weight:600; }
.nx .foot-grid p,.nx .foot-grid a{ display:block; font-size:15px; line-height:1.9; color:#AEB9C4; }
.nx .foot-grid a:hover{ color:var(--gold); }
.nx .foot-bottom{ display:flex; justify-content:space-between; padding-top:24px; font-size:13.5px; gap:12px; flex-wrap:wrap; }

/* ---- Motion (only when JS adds .nx-animate; reduced-motion users never get it) ---- */
.nx-animate .nx-reveal{ opacity:0; transform:translateY(20px); transition:opacity .65s cubic-bezier(.22,.61,.36,1), transform .65s cubic-bezier(.22,.61,.36,1); }
.nx-animate .nx-reveal.nx-in{ opacity:1; transform:none; }
@keyframes nx-fade-up{ from{ opacity:0; transform:translateY(22px); } to{ opacity:1; transform:none; } }
.nx-animate .hero .eyebrow{ animation:nx-fade-up .7s .05s both; }
.nx-animate .hero h1.headline{ animation:nx-fade-up .8s .16s both; }
.nx-animate .hero .hero-copy{ animation:nx-fade-up .8s .30s both; }
.nx-animate .hero .hero-cta{ animation:nx-fade-up .8s .42s both; }
.nx-animate .hero .vitals-card{ animation:nx-fade-up .9s .34s both; }
.nx .fac .photo img{ transition:transform .5s ease; }
.nx .fac:hover .photo img{ transform:scale(1.05); }
@media (prefers-reduced-motion: reduce){
  .nx-animate .nx-reveal{ opacity:1; transform:none; }
  .nx-animate .hero *{ animation:none !important; }
}

/* Nav collapses to hamburger whenever the 11-item row can't fit (<=1180px) */
@media (max-width:1180px){
  .nx .nav-toggle{ display:flex; }
  .nx nav.primary .wrap{ padding:0; display:flex; flex-direction:column; }
  .nx nav.primary > .wrap > .nav-toggle{ align-self:flex-end; padding:15px 24px; }
  .nx nav.primary ul.navlist{ display:none; flex-direction:column; width:100%; justify-content:flex-start; max-height:calc(100vh - 60px); overflow-y:auto; }
  .nx nav.primary.open ul.navlist{ display:flex; }
  .nx nav.primary > .wrap > ul.navlist > li > a{ padding:16px 28px; font-size:16px; border-bottom:1px solid rgba(255,255,255,.12); }
  .nx .submenu{ position:static; opacity:1; visibility:visible; transform:none; display:none; border:none; box-shadow:none; border-top:1px solid rgba(255,255,255,.12); background:var(--maroon-deep); min-width:0; }
  .nx li.has-sub.open .submenu{ display:block; }
  .nx .submenu a{ color:#F8DCE0; padding:14px 40px; font-size:15.5px; }
  .nx .submenu a:hover{ background:rgba(0,0,0,.15); color:#fff; }
  .nx nav.primary li.has-sub > a::after{ content:'+'; font-size:17px; margin-left:auto; }
  .nx li.has-sub.open > a::after{ content:'−'; }
  /* Compact header so logo + branding + helpline/button fit (never clip) */
  .nx .header-inner{ flex-wrap:wrap; gap:14px 24px; padding:16px 28px; }
  .nx .brand{ min-width:0; }
  .nx .brand-logo{ width:54px; height:54px; }
  .nx .brand .name{ font-size:23px; }
  .nx .head-actions{ gap:18px; }
  .nx .helpline .num{ font-size:22px; }
  .nx .gov-btn{ padding:9px 14px; }
  .nx .gov-btn img{ width:26px; height:26px; }
}
@media (max-width:900px){
  .nx .hero-grid,.nx .about-grid,.nx .depts{ grid-template-columns:1fr; }
  .nx .services,.nx .stats-row,.nx .foot-grid{ grid-template-columns:repeat(2,1fr); }
  .nx .faculty{ grid-template-columns:repeat(2,1fr); }
  .nx h1.headline{ font-size:38px; }
  .nx .section{ padding:60px 0; }
  .nx .section-head h2,.nx .about-grid h2{ font-size:30px; }
  .nx .service{ border-left:none; padding:6px 0; }
  .nx .brand .name{ font-size:22px; }
}
@media (max-width:560px){
  .nx .services,.nx .stats-row,.nx .faculty,.nx .foot-grid{ grid-template-columns:1fr; }
  .nx .hero{ padding:56px 0 46px; }
  .nx h1.headline{ font-size:33px; }
  .nx .stats-row div{ border-left:none; padding:16px; }
  .nx .fac{ border-right:none; border-bottom:1px solid var(--line); }
  .nx .dept{ padding:34px; }
  /* Header: stack brand, then helpline + button on their own full-width row */
  .nx .header-inner{ flex-direction:column; align-items:stretch; gap:16px; }
  .nx .brand{ gap:13px; }
  .nx .brand-logo{ width:46px; height:46px; }
  .nx .brand .name{ font-size:19px; line-height:1.2; }
  .nx .brand .sub{ font-size:12px; }
  .nx .brand .sub2{ font-size:10.5px; }
  .nx .head-actions{ width:100%; flex-direction:column; align-items:stretch; gap:14px; padding-top:16px; border-top:1px solid var(--line); }
  .nx .helpline{ display:flex; align-items:baseline; gap:10px; text-align:left; }
  .nx .helpline .label{ font-size:11px; }
  .nx .helpline .num{ font-size:22px; }
  .nx .gov-btn{ justify-content:center; padding:13px 16px; gap:10px; }
  .nx .gov-btn img{ width:24px; height:24px; }
  .nx .gov-btn span{ font-size:12px; }
  .nx .gov-btn span br{ display:none; }
}
@media (max-width:360px){
  .nx .brand .name{ font-size:17px; }
  .nx .gov-btn span{ font-size:10px; }
}
