html {
    scroll-behavior: smooth;
    scroll-padding-top: 115px
}

.home-slider-controls{
    display: none;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    transition: box-shadow .25s
}

.page-scrolled .site-header {
    box-shadow: 0 5px 24px #34212c12
}

.reading-progress {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;
    background: #a67446;
    transform: scaleX(0);
    transform-origin: left;
    z-index: 2000;
    pointer-events: none
}

.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 120;
    width: 44px;
    height: 44px;
    border: 1px solid #fff6;
    border-radius: 50%;
    background: #701f35;
    color: white;
    box-shadow: 0 5px 18px #481c2b30;
    font-size: 24px;
    cursor: pointer
}

.back-to-top[hidden] {
    display: none
}

.service-card,
.feature-card {
    transition: transform .25s, box-shadow .25s, border-color .25s
}

.service-card:hover,
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px #481c2b12;
    border-color: #c6a7b0
}

.btn,
.hd-cta,
.phase-continue {
    transition: filter .2s, box-shadow .2s
}

.btn:hover,
.hd-cta:hover {
    filter: brightness(1.1);
    box-shadow: 0 5px 16px #481c2b20
}

.nav-links a {
    transition: color .2s
}

.nav-links a:hover {
    color: #a67446
}

.reveal-card {
    opacity: 0;
    translate: 0 16px;
    transition: opacity .55s, translate .55s, box-shadow .25s, transform .25s
}

.reveal-card.is-visible {
    opacity: 1;
    translate: 0 0
}

img.image-loading {
    opacity: 0
}

img.image-ready {
    opacity: 1;
    transition: opacity .45s
}

.hd-slide:not([hidden]) {
    animation: banner-in .45s ease both
}

.hd-slide:not([hidden]) .hd-copy {
    animation: copy-in .5s ease both
}

.slider-position {
    font-size: 12px;
    color: #fff;
    min-width: 32px
}

.home-slider-controls button:hover {
    background: #ffffff25
}

.home-slider-controls button:focus-visible {
    outline: 2px solid white;
    outline-offset: 4px
}

.home-dots button {
    transition: background .2s, transform .2s
}

.home-dots button[aria-pressed=true] {
    transform: scale(1.15)
}

@keyframes banner-in {
    from {
        opacity: .2
    }

    to {
        opacity: 1
    }
}

@keyframes copy-in {
    from {
        opacity: .3;
        transform: translateY(8px)
    }

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

@media(max-width:760px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 16px;
        right: 16px
    }

    .slider-position {
        display: none
    }

    .site-header .nav {
        min-height: 76px
    }

    html {
        scroll-padding-top: 90px
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    .reveal-card {
        opacity: 1;
        translate: none
    }

    .hd-slide:not([hidden]),
    .hd-slide:not([hidden]) .hd-copy {
        animation: none
    }

    img.image-ready,
    .service-card,
    .feature-card,
    .btn,
    .hd-cta {
        transition: none
    }
}

@media print {

    .reading-progress,
    .back-to-top {
        display: none
    }

    .site-header {
        position: static
    }

    .reveal-card {
        opacity: 1;
        translate: none
    }
}

.science-carousel {
    padding: 0;
    min-height: 0;
    background: white;
    border: 1px solid #e2d2d8;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 35px #481c2b0d
}

.science-stage {
    width: 100%;
    aspect-ratio: 800/570
}

.science-slide {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    animation: science-fade .4s ease
}

.science-slide[hidden] {
    display: none
}

.science-slide img {
    width: 100%;
    height: calc(100% - 44px);
    object-fit: contain;
    display: block;
    background: #fbf7f5
}

.science-slide figcaption {
    height: 44px;
    display: grid;
    place-items: center;
    font-size: 15px;
    color: #701f35;
    font-weight: bold
}

.science-controls {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding: 12px;
    background: #701f35;
    color: white;
    font-size: 13px
}

.science-controls button {
    background: transparent;
    color: #fff;
    border: 1px solid #ffffff70;
    border-radius: 5px;
    padding: 4px 12px;
    cursor: pointer;
    font: inherit
}

.science-controls button:first-child,
.science-controls button:last-child {
    font-size: 22px;
    line-height: 1
}

.science-controls button:hover {
    background: #ffffff20
}

@keyframes science-fade {
    from {
        opacity: .3
    }

    to {
        opacity: 1
    }
}

@media(prefers-reduced-motion:reduce) {
    .science-slide {
        animation: none
    }
}

.science-stage {
    aspect-ratio: 800/650
}

.science-slide img {
    height: calc(100% - 100px)
}

.science-slide figcaption {
    height: 100px;
    padding: 12px 20px;
    text-align: center;
    line-height: 1.45;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px
}

.science-slide figcaption strong {
    font-size: 16px
}

.science-slide figcaption span {
    font-size: 14px;
    font-weight: normal;
    color: #62545c
}

@media(max-width:480px) {
    .science-stage {
        aspect-ratio: 800/730
    }

    .science-slide figcaption {
        height: 112px;
        padding: 10px 14px
    }

    .science-slide img {
        height: calc(100% - 112px)
    }

    .science-slide figcaption strong {
        font-size: 15px
    }

    .science-slide figcaption span {
        font-size: 13px
    }
}

.service-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0
}

.service-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.service-filters button {
    font: inherit;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid #d9c3ca;
    border-radius: 6px;
    background: white;
    color: #701f35;
    padding: 9px 13px
}

.service-filters button[aria-pressed=true] {
    background: #701f35;
    color: #fff
}

.service-search-label {
    font-size: 12px;
    color: #69636a;
    font-weight: bold
}

.service-search-label input {
    display: block;
    margin-top: 4px;
    width: 230px;
    background: #fff
}

.service-result-count {
    font-size: 13px;
    color: #69636a;
    margin: 0 0 20px
}

.graphic-service {
    padding: 0;
    overflow: hidden;
    border-radius: 14px;
    display: flex;
    flex-direction: column
}

.graphic-service[hidden] {
    display: none
}

.service-art {
    height: 115px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 22px 28px;
    color: #701f35;
    background: linear-gradient(120deg, #f4e8ec, #fbf7f5);
    overflow: hidden
}

.service-art svg {
    width: 61px;
    height: 61px;
    position: relative;
    z-index: 1;
    transition: transform .3s
}

.service-number {
    position: absolute;
    right: 22px;
    top: 10px;
    color: #a67446;
    font: bold 58px/1.5 Georgia, serif;
    opacity: .75
}

.service-orbit {
    position: absolute;
    width: 170px;
    height: 170px;
    right: -25px;
    top: -50px;
    border: 1px solid #d5b9c3;
    border-radius: 50%
}

.service-orbit:after {
    content: '';
    position: absolute;
    inset: 18px;
    border: 1px solid #e1cbd2;
    border-radius: 50%
}

.service-card-copy {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1
}

.service-card-copy h3 {
    font-size: 19px;
    line-height: 1.3;
    margin: 10px 0 14px
}

.service-card-copy p {
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 20px;
    color: #69636a
}

.service-card-copy a {
    font-size: 13px;
    margin-top: auto;
    text-decoration: none;
    border-top: 1px solid #eee4e7;
    padding-top: 14px
}

.service-category {
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-weight: bold;
    color: #8b5263
}

.graphic-service:hover .service-art svg {
    transform: translateY(-3px) rotate(-4deg)
}

.graphic-service:hover .service-number {
    opacity: 1
}

.graphic-services {
    align-items: stretch
}

@media(max-width:760px) {

    .service-search-label,
    .service-search-label input {
        width: 100%
    }

    .service-art {
        height: 100px
    }

    .service-filters button {
        padding: 8px 10px;
        font-size: 12px
    }
}

@media(prefers-reduced-motion:reduce) {
    .service-art svg {
        transition: none
    }

    .graphic-service:hover .service-art svg {
        transform: none
    }
}
/* Team page polish */
.team-page .page-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(125deg, #f5e9ed 0%, #fffaf7 52%, #eee4e0 100%);
}
.team-page .page-hero .container { max-width: 820px; }
.team-page .page-hero h1 { margin-top: 14px; }
.team-page main > section.soft {
  background: linear-gradient(180deg, #fbf7f5 0%, #f7efed 100%);
}
.team-page main > section.soft + section.soft {
  background: linear-gradient(180deg, #f7efed 0%, #fbf7f5 100%);
}
.team-page main > section.soft h2 {
  margin: 0 0 28px;
  color: #481c2b;
}
.team-page main > section.soft h2::after {
  content: "";
  display: block;
  width: 58px;
  height: 3px;
  margin-top: 12px;
  border-radius: 3px;
  background: linear-gradient(90deg, #701f35, #c69a70);
}
.team-page .service-card {
  overflow: hidden;
  padding: 0 28px 26px;
  border-color: #eadde0;
  border-radius: 18px;
  box-shadow: 0 10px 28px #481c2b0d;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.team-page .service-card:hover {
  transform: translateY(-5px);
  border-color: #d3b2bc;
  box-shadow: 0 18px 38px #481c2b18;
}
.team-page .service-card > img {
  display: block;
  width: calc(100% + 56px) !important;
  max-width: none;
  height: 230px !important;
  margin: 0 -28px 22px;
  object-fit: cover;
  object-position: center 38%;
  border-radius: 0 !important;
  background: #f4e8ec;
}
.team-page .service-card h3 {
  margin: 0 0 12px;
  color: #481c2b;
  font-size: 1.25rem;
}
.team-page .service-card p {
  margin: 0 0 10px;
  color: #625760;
}
.team-page .service-card p strong { color: #8b5263; }
.team-page .service-card > a {
  display: inline-block;
  margin-top: 8px;
  text-decoration: none;
}
.team-page .cta-band {
  background: linear-gradient(120deg, #481c2b, #701f35);
  box-shadow: 0 14px 35px #481c2b22;
}
@media(max-width:760px) {
  .team-page .service-card > img { height: 250px !important; }
  .team-page main > section.soft h2 { margin-bottom: 22px; }
}
/* Compact lists in the six grouped service cards */
.graphic-service .service-card-copy ul {
  margin: 0 0 20px;
  padding-left: 18px;
  color: #69636a;
  font-size: 13px;
  line-height: 1.6;
}
.graphic-service .service-card-copy li { margin: 0 0 6px; }
/* ADMISSION PAGE DESIGN: reference-matched hero banner, phase bars and step timeline. */
.admission-page .page-hero {
    position: relative;
    overflow: hidden;
    min-height: 340px;
    display: flex;
    align-items: center;
    /* Reused the graduation photo crop from the reference; fade keeps the heading readable. */
    background: linear-gradient(90deg, #fff 0%, #ffffffef 47%, #ffffff4f 68%, #15233a55 100%), url("assets/admission-hero-reference.jpg") right center / auto 100% no-repeat;
}
.admission-page .page-hero::before,
.admission-page .page-hero::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 44%;
    pointer-events: none;
}
.admission-page .page-hero::before {
    background: linear-gradient(130deg, transparent 0 34%, #d7bd77a8 34% 62%, #7f6b4c8c 62% 75%, #26344dbd 75%);
    clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
}
.admission-page .page-hero::after {
    width: 100%;
    background: linear-gradient(90deg, #ffffff 0%, #ffffffd9 46%, transparent 74%);
}
.admission-page .page-hero .container { position: relative; z-index: 1; }
.admission-page .page-hero h1 { max-width: 700px; font-size: clamp(40px, 5vw, 58px); }
.admission-page .page-hero p { max-width: 560px; font-size: 17px; }
.admission-page .section.soft { background: linear-gradient(120deg, #fff 0%, #f8f4e7 100%); }
.admission-page .flow-intro { margin-bottom: 34px; }
.admission-page .flow-intro h2 { font-size: clamp(28px, 3vw, 36px); }
/* The two large maroon bars mirror the reference and are working jump links. */
.roadmap-phases { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 980px; margin: 0 auto 28px; }
.roadmap-phases a { min-height: 58px; display: flex; justify-content: center; align-items: center; gap: 12px; padding: 14px 20px; color: #fff; background: linear-gradient(105deg, #541629, #852b45); border-radius: 12px; text-decoration: none; font-weight: 700; box-shadow: 0 7px 14px #32131e2b; }
.roadmap-phases a span { font-size: 20px; }
.roadmap-phases a:hover, .roadmap-phases a:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 18px #32131e38; }
/* Six numbered icons form the clickable admission timeline shown in the reference. */
.roadmap-steps { position: relative; display: grid; grid-template-columns: repeat(6, minmax(45px, 1fr)); gap: 8px; max-width: 980px; margin: 0 auto 48px; }
.roadmap-steps::before { content: ""; position: absolute; z-index: 0; left: 3%; right: 3%; top: 23px; height: 2px; background: #d4cec7; }
.roadmap-steps a { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; color: #701f35; text-decoration: none; }
.roadmap-steps a span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 3px 12px #28131b24; font-size: 22px; }
.roadmap-steps a small { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #eeeae5; color: #443d3d; font-weight: 700; }
.roadmap-steps a:hover span, .roadmap-steps a:focus-visible span { background: #701f35; color: #fff; }
.admission-page .admission-flow { grid-template-columns: 1fr; gap: 42px; }
.admission-page .phase-heading { text-align: left; }
.admission-page .flow-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.admission-page .flow-node { min-height: 0; scroll-margin-top: 28px; }
.admission-page .flow-node::before, .admission-page .flow-node::after { display: none; }
.admission-page .flow-phase { scroll-margin-top: 28px; }
@media (max-width: 900px) {
    .admission-page .page-hero { background-position: 68% center; }
    .roadmap-steps { grid-template-columns: repeat(6, minmax(40px, 1fr)); row-gap: 16px; }
    .admission-page .flow-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .admission-page .page-hero { min-height: 300px; background-position: 64% center; }
    .admission-page .page-hero::before { width: 65%; opacity: .62; }
    .roadmap-phases { grid-template-columns: 1fr; gap: 12px; }
    .roadmap-phases a { justify-content: flex-start; }
    .roadmap-steps { grid-template-columns: repeat(6, minmax(42px, 1fr)); }
    .roadmap-steps a span { width: 40px; height: 40px; }
    .roadmap-steps::before { top: 19px; }
    .admission-page .flow-list { grid-template-columns: 1fr; }
}

/* Update for Sara: compact hero, shortcut pills, role labels, and consistent team cards. */
.team-page .page-hero { padding: 38px 0 34px; }
.team-page .page-hero h1 { margin: 10px 0; font-size: clamp(40px, 5vw, 58px); }
.team-page .page-hero p { max-width: 720px; margin: 12px auto 0; font-size: 17px; }
.team-jump { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 24px auto 0; }
.team-jump a { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border: 1px solid #e3cdd4; border-radius: 999px; background: #fff; color: #701f35; text-decoration: none; font-size: 14px; font-weight: 700; box-shadow: 0 4px 14px #481c2b0b; transition: background .2s, color .2s, transform .2s; }
.team-jump a:hover, .team-jump a:focus-visible { background: #701f35; color: #fff; transform: translateY(-2px); }
.team-page main > section.soft { padding: 48px 0; }
.team-page .grid.three { align-items: stretch; }
.team-page .service-card { display: flex; flex-direction: column; min-height: 100%; }
.team-page .service-card p:first-of-type strong { display: inline-flex; align-items: center; width: fit-content; padding: 5px 11px; border-radius: 999px; background: #f5e9ed; color: #701f35; font-size: 13px; }
.team-page .service-card > a { align-self: flex-start; margin-top: auto; padding-top: 14px; }
@media(max-width:760px) {
  .team-page .page-hero { padding: 34px 0 30px; }
  .team-page main > section.soft { padding: 38px 0; }
  .team-jump { gap: 8px; margin-top: 20px; }
  .team-jump a { padding: 9px 12px; font-size: 13px; }
  .team-page .service-card { min-height: 0; }
}
/* Core Team preview: remove extra card height after hiding location and Publication text. */
.team-page #core-team .service-card { min-height: 0; align-self: start; }
.team-page #core-team .service-card > a { margin-top: 8px; padding-top: 0; }