/* Department experience built on the shared Eaglewood site chrome. */
.departments-page {
  --dept-navy: #082632;
  --dept-teal: #0d706c;
  --dept-teal-bright: #1bb5a6;
  --dept-gold: #d7b66e;
  --dept-ink: #142f3b;
  --dept-muted: #61747c;
  --dept-line: #dce7e5;
  color: var(--dept-ink);
}

.departments-page section[id],
.departments-page article[id] {
  scroll-margin-top: 118px;
}

.department-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(540px, 48vw, 680px);
  overflow: hidden;
  padding: clamp(56px, 7vw, 96px) 0 72px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 12%, rgba(215, 182, 110, .12), transparent 24rem),
    radial-gradient(circle at 78% 80%, rgba(27, 181, 166, .15), transparent 28rem),
    linear-gradient(116deg, #061d28 0%, #0a3440 56%, #0b4b4c 100%);
}

.department-hero::before,
.department-hero::after {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  content: "";
}

.department-hero::before {
  inset: 0;
  opacity: .15;
  background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(90deg, black, transparent 76%);
}

.department-hero::after {
  right: -10rem;
  bottom: -18rem;
  width: 42rem;
  aspect-ratio: 1;
  border: 1px solid rgba(215, 182, 110, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(215, 182, 110, .025), 0 0 0 84px rgba(215, 182, 110, .025);
}

.department-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  width: min(1280px, calc(100% - clamp(36px, 7vw, 104px)));
}

.department-hero__copy { position: relative; z-index: 2; max-width: 590px; }

.department-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: #ead7a8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.department-kicker > span {
  width: 24px;
  height: 1px;
  background: var(--dept-gold);
  box-shadow: 0 0 14px rgba(215, 182, 110, .7);
}

.department-hero h1,
.department-section-heading h2,
.department-profile__content h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  letter-spacing: -.045em;
}

.department-hero h1 {
  max-width: 690px;
  margin: 0;
  color: #fff;
  font-size: clamp(48px, 6.1vw, 84px);
  line-height: .99;
}

.department-hero h1 em,
.department-section-heading h2 em {
  color: #e5c982;
  font-style: normal;
}

.department-hero__lead {
  max-width: 510px;
  margin: 24px 0 0;
  color: rgba(243, 249, 248, .79);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.75;
}

.department-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }

.department-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.department-button:hover { transform: translateY(-2px); }
.department-button--gold { color: #172f32; background: linear-gradient(135deg, #e6cb89, #d2ac59); box-shadow: 0 14px 34px rgba(215,182,110,.2); }
.department-button--gold:hover { box-shadow: 0 18px 42px rgba(215,182,110,.3); }
.department-button--quiet { color: #f5f9f8; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.055); }
.department-button--quiet:hover { border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.11); }

.department-hero__breadcrumb { display: flex; align-items: center; gap: 10px; margin-top: 44px; color: rgba(240,247,246,.58); font-size: 12px; }
.department-hero__breadcrumb a { color: rgba(240,247,246,.8); }
.department-hero__breadcrumb a:hover { color: #fff; }

.department-hero__visual { position: relative; min-width: 0; min-height: 410px; }
.department-hero__main-image {
  position: absolute;
  top: 16px;
  right: 8%;
  width: min(82%, 480px);
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1.18;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 30px;
  background: #173e46;
  box-shadow: 0 30px 80px rgba(0,0,0,.32), 0 0 0 8px rgba(255,255,255,.035);
  transform: rotate(2deg);
  animation: deptHeroIn .8s cubic-bezier(.2,.8,.2,1) both;
}

.department-hero__main-image::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(4,20,27,.75)); content: ""; }
.department-hero__main-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.department-hero__main-image figcaption { position: absolute; z-index: 1; right: 18px; bottom: 17px; left: 18px; display: flex; align-items: center; gap: 9px; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.department-hero__live-dot { width: 8px; height: 8px; border-radius: 50%; background: #68ddbd; box-shadow: 0 0 0 5px rgba(104,221,189,.16); }

.department-hero__side-image {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 20px;
  width: 42%;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1.48;
  border: 5px solid rgba(255,255,255,.96);
  border-radius: 20px;
  background: #dfe8e4;
  box-shadow: 0 20px 50px rgba(0,0,0,.28);
  transform: rotate(-5deg);
  animation: deptHeroIn .85s .12s cubic-bezier(.2,.8,.2,1) both;
}

.department-hero__side-image img { width: 100%; height: 100%; object-fit: cover; }
.department-hero__note { position: absolute; z-index: 3; bottom: 5px; left: 0; display: flex; align-items: center; gap: 12px; max-width: 280px; padding: 14px 17px; border: 1px solid rgba(255,255,255,.15); border-radius: 16px; background: rgba(7,34,42,.82); box-shadow: 0 16px 42px rgba(0,0,0,.22); backdrop-filter: blur(16px); }
.department-hero__note-icon { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 12px; color: #172f32; background: var(--dept-gold); font-size: 20px; }
.department-hero__note strong,.department-hero__note span { display: block; }
.department-hero__note strong { color: #fff; font-size: 12px; }
.department-hero__note div > span { margin-top: 2px; color: rgba(238,246,244,.66); font-size: 10px; }
.department-hero__orbit { position: absolute; z-index: -1; display: block; border: 1px solid rgba(221,205,157,.3); border-radius: 50%; }
.department-hero__orbit--one { top: -4px; right: 0; width: 110px; aspect-ratio: 1; }
.department-hero__orbit--two { right: -30px; bottom: 56px; width: 62px; aspect-ratio: 1; border-color: rgba(27,181,166,.5); }
.department-hero__bottom-line { position: absolute; right: 0; bottom: 0; left: 0; display: grid; height: 4px; grid-template-columns: 1fr 1.8fr .7fr 1.2fr; opacity: .86; }
.department-hero__bottom-line span:nth-child(1) { background: #d7b66e; }
.department-hero__bottom-line span:nth-child(2) { background: #138d84; }
.department-hero__bottom-line span:nth-child(3) { background: #e8d49f; }
.department-hero__bottom-line span:nth-child(4) { background: #0b5e61; }

.department-catalog-section { padding: clamp(68px, 8vw, 106px) 0; background: linear-gradient(180deg, #fbfcfb, #f1f6f5); }
.department-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin: 0 0 34px; }
.department-section-heading > div { max-width: 680px; }
.department-section-heading .department-kicker { margin-bottom: 14px; color: #8a7040; }
.department-section-heading h2 { margin: 0; color: var(--dept-ink); font-size: clamp(34px, 4.3vw, 58px); line-height: 1.06; }
.department-section-heading h2 em { color: var(--dept-teal); }
.department-section-heading > p { max-width: 360px; margin: 0 0 5px; color: var(--dept-muted); font-size: 14px; line-height: 1.8; }

.department-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.department-card { min-width: 0; overflow: hidden; border: 1px solid rgba(210,224,221,.94); border-radius: 24px; background: rgba(255,255,255,.94); box-shadow: 0 16px 44px rgba(11,43,51,.07); transition: transform .32s ease, box-shadow .32s ease, border-color .32s ease; }
.department-card:hover { transform: translateY(-7px); border-color: rgba(13,112,108,.32); box-shadow: 0 26px 66px rgba(11,43,51,.14); }
.department-card__image { position: relative; overflow: hidden; aspect-ratio: 1.92; background: #dfe8e6; }
.department-card__image::after { position: absolute; inset: 35% 0 0; background: linear-gradient(180deg, transparent, rgba(4,25,32,.34)); content: ""; }
.department-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.department-card:hover .department-card__image img { transform: scale(1.055); }
.department-card__icon { position: absolute; z-index: 1; right: 20px; bottom: -20px; display: grid; width: 54px; height: 54px; place-items: center; border: 4px solid #fff; border-radius: 18px; color: #0f746e; background: #e8f4f1; box-shadow: 0 10px 25px rgba(7,41,49,.12); }
.department-card__icon svg { width: 24px; height: 24px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
.department-card__body { padding: 27px 28px 25px; }
.department-card__eyebrow,.department-profile__eyebrow { display: block; margin: 0 0 9px; color: #8c7448; font-size: 10px; font-weight: 850; letter-spacing: .12em; line-height: 1.5; text-transform: uppercase; }
.department-card__body h3 { margin: 0; color: var(--dept-ink); font-family: "Playfair Display", Georgia, serif; font-size: clamp(23px, 2vw, 29px); letter-spacing: -.025em; line-height: 1.15; }
.department-card__body h4 { margin: 9px 0 7px; color: #2e625f; font-size: 13px; font-weight: 800; }
.department-card__body p { max-width: 580px; margin: 0; color: var(--dept-muted); font-size: 13px; line-height: 1.75; }
.department-card__link,.department-text-link,.department-course-link { display: inline-flex; align-items: center; gap: 10px; color: #0d706c; font-size: 12px; font-weight: 850; }
.department-card__link { margin-top: 17px; }
.department-card__link span,.department-text-link span,.department-course-link span { transition: transform .2s ease; }
.department-card__link:hover span,.department-text-link:hover span,.department-course-link:hover span { transform: translate(2px,-2px); }

.department-profiles-section { position: relative; overflow: hidden; padding: clamp(72px, 8vw, 112px) 0; background: #f8fbfa; }
.department-profiles-section::before { position: absolute; top: 0; right: 0; width: 38%; height: 100%; background: radial-gradient(ellipse at 100% 10%, rgba(16,118,110,.07), transparent 70%); pointer-events: none; content: ""; }
.department-section-heading--profiles { position: relative; z-index: 1; margin-bottom: 48px; }
.department-profile-list { position: relative; z-index: 1; display: grid; gap: 28px; }
.department-profile { display: grid; min-width: 0; grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); overflow: hidden; border: 1px solid var(--dept-line); border-radius: 28px; background: #fff; box-shadow: 0 20px 54px rgba(13,48,56,.07); }
.department-profile--reverse .department-profile__media { order: 2; }
.department-profile__media { position: relative; min-height: 100%; overflow: hidden; background: #dbe8e5; }
.department-profile__media::after { position: absolute; inset: 35% 0 0; background: linear-gradient(180deg, transparent, rgba(4,25,32,.31)); content: ""; }
.department-profile__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.department-profile:hover .department-profile__media img { transform: scale(1.04); }
.department-profile__index { position: absolute; z-index: 1; bottom: 20px; left: 22px; color: rgba(255,255,255,.92); font-family: "Playfair Display", Georgia, serif; font-size: 52px; line-height: 1; text-shadow: 0 4px 16px rgba(0,0,0,.22); }
.department-profile__content { min-width: 0; padding: clamp(26px, 4vw, 48px); }
.department-profile__content h2 { max-width: 620px; margin: 0; color: var(--dept-ink); font-size: clamp(27px, 3vw, 38px); line-height: 1.13; }
.department-profile__intro { max-width: 690px; margin: 14px 0 26px; color: var(--dept-muted); font-size: 14px; line-height: 1.8; }
.department-profile__details { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.department-detail-block { min-width: 0; padding: 17px; border: 1px solid #e5edeb; border-radius: 17px; background: #f8fbfa; }
.department-detail-block h3 { margin: 0 0 13px; color: #284851; font-size: 11px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.department-hod { display: flex; align-items: center; gap: 11px; min-height: 42px; }
.department-hod__mark { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 13px; color: #745c2c; background: #f1e8d0; font-size: 10px; font-weight: 900; }
.department-hod__photo { width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid #dfeae7; border-radius: 13px; object-fit: cover; }
.department-hod strong,.department-hod span { display: block; }
.department-hod strong { color: #193942; font-size: 12px; line-height: 1.35; }
.department-hod div > span { margin-top: 3px; color: #73848a; font-size: 10px; }
.department-faculty-list { display: grid; gap: 6px; margin-top: 8px; }
.department-faculty-mini { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 11px; background: #fff; }
.department-faculty-mini__initial { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 9px; color: #0e6966; background: #e7f2f0; font-size: 11px; font-weight: 900; }
.department-faculty-mini strong,.department-faculty-mini small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.department-faculty-mini strong { color: #25444c; font-size: 11px; }
.department-faculty-mini small { margin-top: 2px; color: #718187; font-size: 10px; }
.department-text-link { margin-top: 12px; font-size: 11px; }
.department-lab-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.department-lab-list li { padding: 6px 9px; border: 1px solid #dfeae7; border-radius: 999px; color: #49646a; background: #fff; font-size: 10px; font-weight: 700; line-height: 1.3; }
.department-career-label { margin: 15px 0 7px; color: #87969a; font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.department-career-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.department-career-tags span { padding: 5px 8px; border-radius: 8px; color: #23635e; background: #eaf4f1; font-size: 10px; font-weight: 750; }
.department-course-link { margin-top: 21px; padding-bottom: 3px; border-bottom: 1px solid rgba(13,112,108,.25); }

.departments-page > .dept-support-section {
  position: relative;
  padding-top: clamp(66px, 7vw, 92px);
  background:
    radial-gradient(circle at 12% 20%, rgba(15, 118, 110, .14), transparent 28rem),
    radial-gradient(circle at 88% 80%, rgba(212, 160, 23, .12), transparent 24rem),
    linear-gradient(165deg, #053d3a 0%, #0a5c57 42%, #0f766e 100%) !important;
}
.dept-support-head { max-width: 760px; margin-bottom: 28px; }
.dept-support-head .dept-support-eyebrow { font-size: 10px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.dept-support-head .section-title { font-family: "Playfair Display", Georgia, serif; font-size: clamp(32px, 4vw, 48px); }
.dept-support-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.dept-support-card { min-width: 0; padding: 22px 20px; border: 1px solid rgba(213,227,224,.9); border-radius: 20px; background: rgba(255,255,255,.88); box-shadow: 0 12px 34px rgba(11,43,51,.055); transition: transform .25s ease, box-shadow .25s ease; }
.dept-support-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(11,43,51,.11); }
.dept-support-icon { display: grid; width: 42px; height: 42px; margin-bottom: 15px; place-items: center; border-radius: 14px; color: #0b706a; background: #e7f3f0; }
.dept-support-icon svg { width: 21px; height: 21px; }
.dept-support-card h3 { margin: 0 0 7px; color: var(--dept-ink); font-family: "Playfair Display", Georgia, serif; font-size: 17px; }
.dept-support-card p { margin: 0; color: var(--dept-muted); font-size: 12px; line-height: 1.7; }

.departments-page > .section-soft { background: #fbfcfb; }
.departments-page > .section-soft .section-head { align-items: end; }
.departments-page > .section-soft .section-title { color: var(--dept-ink); font-family: "Playfair Display", Georgia, serif; font-size: clamp(32px, 4vw, 48px); }
.departments-page > .section-soft .photo-card { overflow: hidden; border: 1px solid var(--dept-line); border-radius: 22px; box-shadow: 0 14px 38px rgba(11,43,51,.07); }
.departments-page > .section-soft .photo-card img { aspect-ratio: 1.45; object-fit: cover; }
.departments-page > .section-soft .photo-card-body { padding: 20px 22px; }
.departments-page > .section-soft .photo-card h3 { margin: 0; color: var(--dept-ink); font-family: "Playfair Display", Georgia, serif; }
.departments-page > .cta { position: relative; overflow: hidden; background: linear-gradient(115deg, #082632, #0c5b5b); }
.departments-page > .cta::before { position: absolute; top: -90px; right: 5%; width: 280px; aspect-ratio: 1; border: 1px solid rgba(230,207,151,.23); border-radius: 50%; box-shadow: 0 0 0 34px rgba(230,207,151,.04), 0 0 0 68px rgba(230,207,151,.035); content: ""; }
.departments-page > .cta .container { position: relative; z-index: 1; }
.departments-page :focus-visible { outline: 3px solid #d7b66e; outline-offset: 4px; }

@keyframes deptHeroIn {
  from { opacity: 0; transform: translateY(16px) rotate(0); }
  to { opacity: 1; transform: translateY(0) rotate(2deg); }
}

@media (max-width: 1000px) {
  .department-hero { min-height: 540px; }
  .department-hero__layout { grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr); gap: 28px; }
  .department-hero__visual { min-height: 350px; }
  .department-profile { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
  .department-profile__content { padding: 30px; }
  .dept-support-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .department-hero { min-height: auto; padding: 58px 0 68px; }
  .department-hero__layout { grid-template-columns: minmax(0,1fr); gap: 22px; width: min(100% - 36px, 600px); }
  .department-hero h1 { font-size: clamp(44px, 11vw, 66px); }
  .department-hero__lead { max-width: 540px; margin-top: 17px; font-size: 14px; }
  .department-hero__actions { gap: 9px; margin-top: 23px; }
  .department-button { min-height: 45px; padding: 0 16px; gap: 11px; font-size: 11px; }
  .department-hero__breadcrumb { margin-top: 24px; }
  .department-hero__visual { width: min(100%, 560px); min-height: clamp(260px, 72vw, 365px); margin: 0 auto; }
  .department-hero__main-image { top: 5px; right: 9%; width: 78%; border-radius: 22px; }
  .department-hero__side-image { right: 0; bottom: 7px; width: 41%; border-width: 4px; border-radius: 15px; }
  .department-hero__note { bottom: 2px; left: 0; max-width: 215px; gap: 9px; padding: 10px 12px; border-radius: 13px; }
  .department-hero__note-icon { width: 31px; height: 31px; flex-basis: 31px; border-radius: 10px; font-size: 17px; }
  .department-hero__note strong { font-size: 10px; }
  .department-hero__note div > span { font-size: 9px; }
  .department-section-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 24px; }
  .department-section-heading h2 { font-size: clamp(32px, 8vw, 46px); }
  .department-section-heading > p { max-width: 540px; font-size: 13px; }
  .department-card-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .department-card__image { aspect-ratio: 1.8; }
  .department-card__body { padding: 24px 22px 22px; }
  .department-card__body h3 { font-size: 25px; }
  .department-profile-list { gap: 18px; }
  .department-profile { grid-template-columns: minmax(0,1fr); border-radius: 22px; }
  .department-profile--reverse .department-profile__media { order: 0; }
  .department-profile__media { min-height: 0; aspect-ratio: 1.62; }
  .department-profile__content { padding: 23px 20px 22px; }
  .department-profile__content h2 { font-size: clamp(25px, 6.2vw, 34px); }
  .department-profile__intro { margin: 11px 0 20px; font-size: 13px; }
  .department-profile__details { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .department-detail-block { padding: 15px; }
  .department-detail-block h3 { margin-bottom: 10px; }
  .department-course-link { margin-top: 17px; }
  .dept-support-grid { gap: 10px; }
  .dept-support-card { padding: 18px 16px; }
  .departments-page > .section-soft .section-head { align-items: flex-start; flex-direction: column; gap: 14px; }
}

@media (max-width: 420px) {
  .department-hero__layout { width: calc(100% - 30px); }
  .department-hero h1 { font-size: clamp(41px, 11vw, 51px); }
  .department-hero__visual { min-height: 248px; }
  .department-hero__note { max-width: 195px; }
  .department-hero__note div > span { max-width: 130px; }
  .dept-support-grid { grid-template-columns: minmax(0,1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .departments-page *,
  .departments-page *::before,
  .departments-page *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
