.hrdf-page { --hrdf-radius: clamp(1.35rem, 2.3vw, 2rem); }
.hrdf-page main h2 { font-size: clamp(2rem, 3.5vw, 3.4rem); font-weight: 800; line-height: 1.1; letter-spacing: -.055em; text-wrap: balance; }
.hrdf-page main h2 span { color: var(--blue); }
.hrdf-page main h3 { font-weight: 800; line-height: 1.3; letter-spacing: -.03em; }
.hrdf-label { display: inline-block; width: fit-content; max-width: 100%; padding: .38rem .8rem; border: 1px solid #cee3f3; border-radius: 2rem; background: #ffffffc7; letter-spacing: .015em; }
.hrdf-section { margin-block: clamp(2.25rem, 5vw, 4.5rem); }
.hrdf-source-note { grid-column: 1 / -1; margin-top: 1.2rem; color: #d4e6f3; font-size: .9375rem; line-height: 1.65; }
.hrdf-source-note a { color: #c2e2fb; text-underline-offset: .2em; }
.hrdf-page main .button { border-radius: 2rem; }
.hrdf-page main .button-primary { background: var(--ink); }
.hrdf-page main .button-primary:hover { background: var(--blue-deep); }
.hrdf-actions { display: flex; flex-wrap: wrap; gap: .65rem 1rem; align-items: center; margin-top: 1.6rem; }
.hrdf-actions .button-outline { border-color: #b8d2e7; background: #ffffffa3; }
.hrdf-text-link { display: inline-flex; min-height: 2.75rem; align-items: center; max-width: 100%; color: var(--blue-deep); font-size: .9375rem; font-weight: 800; text-underline-offset: .25em; text-decoration-thickness: 1px; }
.hrdf-text-link:hover { color: var(--blue); text-decoration-thickness: 2px; }
.hrdf-page main svg { display: block; width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.hrdf-hero { padding-top: .7rem; }
.hrdf-hero-panel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; overflow: clip; padding: clamp(1.3rem, 4vw, 3.7rem); border: 1px solid #dfebf4; border-radius: var(--hrdf-radius); background: radial-gradient(ellipse at 88% 85%, #cde7fc, transparent 58%), linear-gradient(115deg, #f7fbff, #eaf4ff); }
.hrdf-hero-copy { min-width: 0; }
.hrdf-hero h1 { margin-top: 1.45rem; font-size: clamp(2.8rem, 5.5vw, 5.3rem); line-height: 1.04; letter-spacing: -.065em; text-wrap: initial; }
.hrdf-hero h1 em { color: var(--blue); font-style: normal; }
.hrdf-title-line { display: block; }
.hrdf-hero-intro { max-width: 34rem; margin-top: 1.5rem; color: var(--body); font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.7; }
.hrdf-hero-note { max-width: 30rem; margin-top: 1.4rem; color: var(--body); font-size: .875rem; line-height: 1.6; }
.hrdf-document-wrap { position: relative; min-width: 0; padding: .6rem .5rem 1rem; }
.hrdf-document-wrap::before { position: absolute; inset: .6rem .5rem 1rem; border: 1px solid #accde7; border-radius: 1.2rem; background: #d9ecfc; transform: rotate(4deg); content: ''; }
.hrdf-document-card { position: relative; padding: clamp(1.2rem, 2.3vw, 2rem); border: 1px solid #d1e2ef; border-radius: 1.2rem; background: white; box-shadow: 0 .6rem 1.8rem #143b6010; }
.hrdf-badges { width: min(100%, 15rem); height: auto; margin-inline: auto; }
.hrdf-page main .hrdf-document-card h2 { margin-top: 1.1rem; font-size: clamp(1.45rem, 2vw, 1.85rem); line-height: 1.15; letter-spacing: -.04em; }
.hrdf-document-card > p { margin-top: .6rem; color: var(--body); font-size: 1rem; line-height: 1.55; }
.hrdf-documents { display: grid; gap: 0; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.hrdf-documents li { display: flex; align-items: center; gap: .85rem; padding-block: .9rem; border-top: 1px solid #dce8f2; }
.hrdf-documents li:last-child { padding-bottom: 0; }
.hrdf-documents svg { width: 2.65rem !important; height: 2.65rem !important; flex: none; padding: .6rem; border: 1px solid #d8e7f3; border-radius: .75rem; background: var(--mist); color: var(--blue); }
.hrdf-documents strong { display: block; font-size: 1rem; line-height: 1.4; }
.hrdf-documents small { display: block; margin-top: .2rem; color: var(--body); font-size: .875rem; line-height: 1.45; }

.hrdf-section-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.hrdf-section-heading h2 { margin-top: 1rem; }
.hrdf-section-heading > p { max-width: 27rem; padding-bottom: .2rem; color: var(--body); font-size: 1.0625rem; }
.hrdf-programme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 1.7vw, 1.5rem); }
.hrdf-programme-card { display: flex; flex-direction: column; min-width: 0; padding: .5rem; border: 1px solid #d8e6f1; border-radius: 1.25rem; background: white; box-shadow: 0 .3rem 1rem #12355207; }
.hrdf-programme-card figure { overflow: hidden; border-radius: .9rem; background: var(--ice); }
.hrdf-programme-card img { width: 100%; height: auto; aspect-ratio: 1.9 / 1; object-fit: cover; }
.hrdf-programme-card:first-child img { object-position: left center; }
.hrdf-programme-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: clamp(1rem, 1.7vw, 1.5rem) clamp(.7rem, 1.4vw, 1.1rem) .7rem; }
.hrdf-card-label { color: var(--blue); font-size: .875rem; font-weight: 750; line-height: 1.4; }
.hrdf-programme-body h3 { margin-top: .55rem; font-size: clamp(1.25rem, 1.8vw, 1.55rem); }
.hrdf-programme-body > p:not(.hrdf-card-label) { margin-top: .7rem; padding-bottom: 1rem; color: var(--body); font-size: 1rem; line-height: 1.6; }
.hrdf-programme-body .hrdf-text-link { margin-top: auto; }
.hrdf-programme-card:focus-within { border-color: #80adcf; box-shadow: 0 .5rem 1.4rem #102d4914; }
.hrdf-programme-note { max-width: 65rem; margin: 1.5rem auto 0; padding: .9rem 1.25rem; border: 1px solid #d9e7f1; border-radius: .9rem; background: var(--mist); color: var(--body); font-size: .875rem; line-height: 1.6; }

.hrdf-process { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(2rem, 4.5vw, 4rem); padding: clamp(1.3rem, 3.7vw, 3.5rem); border-radius: var(--hrdf-radius); background: radial-gradient(ellipse at 0 100%, #1b527d, transparent 70%), var(--ink); color: white; }
.hrdf-process .hrdf-label { border-color: #6087a6; background: #ffffff0a; color: #d0e8fb; }
.hrdf-process h2 { margin-top: 1rem; }
.hrdf-page main .hrdf-process h2 span { color: #acd8fc; }
.hrdf-process-intro > p:not(.eyebrow) { max-width: 26rem; margin-top: 1.15rem; color: #d4e6f3; font-size: 1.0625rem; }
.hrdf-process .hrdf-text-link { margin-top: 1.25rem; color: #c2e2fb; }
.hrdf-process .hrdf-text-link:hover { color: white; }
.hrdf-process a:focus-visible { outline-color: white; }
.hrdf-process-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin: 0; padding: 0; list-style: none; }
.hrdf-process-steps li { padding: clamp(1rem, 1.8vw, 1.6rem); border: 1px solid #ffffff30; border-radius: 1rem; background: #ffffff09; }
.hrdf-step-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-bottom: .9rem; border: 1px solid #7498b5; border-radius: .75rem; color: #b1dbfc; }
.hrdf-process-steps h3 { font-size: 1.0625rem; }
.hrdf-process-steps p { margin-top: .6rem; color: #d7e8f5; font-size: 1rem; line-height: 1.6; }

.hrdf-faq { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); padding: clamp(.5rem, 1.5vw, 1.3rem); }
.hrdf-faq h2 { margin-top: 1rem; }
.hrdf-faq-intro > p:not(.eyebrow) { max-width: 24rem; margin-top: 1.1rem; color: var(--body); }
.hrdf-faq-intro > .hrdf-text-link { margin-top: .7rem; }
.hrdf-faq-list { display: grid; gap: .75rem; align-content: start; }
.hrdf-faq-list details { border: 1px solid #d8e6f1; border-radius: .95rem; background: #f7fbff; }
.hrdf-faq-list summary { display: flex; min-height: 4.2rem; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-radius: .95rem; list-style: none; font-size: 1rem; font-weight: 800; line-height: 1.45; cursor: pointer; }
.hrdf-faq-list summary::-webkit-details-marker { display: none; }
.hrdf-faq-list summary::after { width: 1rem; height: 1rem; flex: 0 0 1rem; background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat; color: var(--blue); content: ''; }
.hrdf-faq-list details[open] summary::after { background-size: 100% 1.5px, 0 0; }
.hrdf-faq-list details[open] { border-color: #a2c3de; background: white; }
.hrdf-faq-list details p { padding: 0 1.25rem 1.1rem; color: var(--body); font-size: 1rem; line-height: 1.65; }
.hrdf-faq-list details a { color: var(--blue-deep); text-underline-offset: .2em; }

.hrdf-enquiry { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding: clamp(.7rem, 1.2vw, 1.1rem); border: 1px solid #dfebf4; border-radius: var(--hrdf-radius); background: linear-gradient(115deg, #f6faff, #e7f3fe); }
.hrdf-enquiry-photo { align-self: center; min-width: 0; overflow: hidden; border-radius: 1.1rem; background: var(--ice); }
.hrdf-enquiry-photo img { width: 100%; height: auto; }
.hrdf-enquiry-copy { align-self: center; padding: clamp(.8rem, 2.5vw, 2rem) clamp(.5rem, 2vw, 1.7rem) clamp(.8rem, 2.5vw, 2rem) 0; }
.hrdf-enquiry h2 { margin-top: 1rem; }
.hrdf-enquiry-copy > p:not(.eyebrow) { max-width: 31rem; margin-top: 1.1rem; color: var(--body); font-size: 1.0625rem; }
.hrdf-enquiry-phones { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin-top: .8rem; color: var(--body); }
.hrdf-enquiry-phones a { display: inline-flex; min-height: 2.75rem; align-items: center; color: var(--blue-deep); font-size: .9375rem; font-weight: 750; text-underline-offset: .25em; }

@media (prefers-reduced-motion: no-preference) {
  .hrdf-page .hrdf-section-reveal {
    animation: hrdf-copy-in .8s cubic-bezier(.22, 1, .36, 1) var(--hrdf-section-delay, 0ms) backwards;
  }
  .hrdf-page .hrdf-section-reveal:focus-within { animation: none; }

  .hrdf-hero .hrdf-reveal {
    animation: hrdf-copy-in .7s cubic-bezier(.22, 1, .36, 1) var(--hrdf-delay, 0ms) backwards;
  }
  .hrdf-document-wrap.hrdf-reveal {
    animation-name: hrdf-document-in;
    animation-duration: .85s;
  }
  .hrdf-document-wrap.hrdf-reveal::before {
    animation: hrdf-paper-fan .9s cubic-bezier(.22, 1, .36, 1) calc(var(--hrdf-delay, 0ms) + .1s) backwards;
  }
  .hrdf-badges.hrdf-reveal {
    animation-name: hrdf-badge-in;
    animation-duration: .8s;
  }
  .hrdf-documents > li.hrdf-reveal {
    animation-name: hrdf-document-row-in;
    animation-duration: .6s;
  }
  .hrdf-documents > li.hrdf-reveal svg {
    animation: hrdf-badge-in .6s cubic-bezier(.22, 1, .36, 1) calc(var(--hrdf-delay, 0ms) + .08s) backwards;
  }
  .hrdf-hero .hrdf-reveal:focus-within { animation: none; }

  @keyframes hrdf-copy-in {
    from { opacity: 0; transform: translateY(.9rem); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes hrdf-document-in {
    from { opacity: 0; transform: translateX(1rem) translateY(.75rem) scale(.98); }
    to { opacity: 1; transform: translateX(0) translateY(0) scale(1); }
  }
  @keyframes hrdf-paper-fan {
    from { opacity: 0; transform: rotate(0deg) translateY(.5rem); }
  }
  @keyframes hrdf-badge-in {
    from { opacity: 0; transform: translateY(.4rem) scale(.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
  @keyframes hrdf-document-row-in {
    from { opacity: 0; transform: translateX(.7rem); }
    to { opacity: 1; transform: translateX(0); }
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hrdf-programmes .hrdf-section-heading .hrdf-label.hrdf-programme-reveal {
    animation: hrdf-programme-label-open .65s cubic-bezier(.22, 1, .36, 1) var(--hrdf-programme-delay, 0ms) backwards;
    transform-origin: left center;
  }
  #programmes-title.hrdf-programme-reveal {
    animation: hrdf-programme-heading-wipe .85s cubic-bezier(.22, 1, .36, 1) var(--hrdf-programme-delay, 0ms) backwards;
  }
  .hrdf-programmes .hrdf-section-heading > p.hrdf-programme-reveal,
  .hrdf-programme-note.hrdf-programme-reveal {
    animation: hrdf-programme-copy-open .8s cubic-bezier(.22, 1, .36, 1) var(--hrdf-programme-delay, 0ms) backwards;
  }
  .hrdf-programme-card.hrdf-programme-reveal {
    animation: hrdf-programme-card-unfold .9s cubic-bezier(.22, 1, .36, 1) var(--hrdf-programme-delay, 0ms) backwards;
    transform-origin: center top;
  }
  .hrdf-programme-card.hrdf-programme-reveal figure {
    animation: hrdf-programme-photo-shutter .8s cubic-bezier(.22, 1, .36, 1) calc(var(--hrdf-programme-delay, 0ms) + .12s) backwards;
  }
  .hrdf-programme-card.hrdf-programme-reveal img {
    animation: hrdf-programme-photo-settle .95s cubic-bezier(.22, 1, .36, 1) calc(var(--hrdf-programme-delay, 0ms) + .12s) backwards;
  }
  .hrdf-programmes .hrdf-programme-reveal:focus-within,
  .hrdf-programme-card.hrdf-programme-reveal:focus-within figure,
  .hrdf-programme-card.hrdf-programme-reveal:focus-within img { animation: none; }

  @keyframes hrdf-programme-label-open {
    from { opacity: 0; transform: scaleX(.88); }
    to { opacity: 1; transform: scaleX(1); }
  }
  @keyframes hrdf-programme-heading-wipe {
    from { opacity: .2; clip-path: inset(-.1em 100% -.1em 0); }
    to { opacity: 1; clip-path: inset(-.1em 0 -.1em 0); }
  }
  @keyframes hrdf-programme-copy-open {
    from { opacity: 0; clip-path: inset(0 0 0 100%); }
    to { opacity: 1; clip-path: inset(0); }
  }
  @keyframes hrdf-programme-card-unfold {
    from { opacity: 0; transform: perspective(64rem) rotateX(-7deg) translateY(1.1rem) scale(.975); }
    to { opacity: 1; transform: none; }
  }
  @keyframes hrdf-programme-photo-shutter {
    from { clip-path: inset(0 0 100%); }
    to { clip-path: inset(0); }
  }
  @keyframes hrdf-programme-photo-settle {
    from { transform: scale(1.07); }
    to { transform: scale(1); }
  }
}

@media (hover: hover) and (pointer: fine) {
  .hrdf-programme-card:hover { border-color: #a1c1d9; }
  .hrdf-faq-list summary:hover { color: var(--blue-deep); background: #edf6fd; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hrdf-hero .hrdf-actions .button { transition: transform .22s ease, background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .22s ease; }
  .hrdf-hero .hrdf-actions .button:hover { transform: translateY(-2px); box-shadow: 0 .35rem .8rem #143b6014; }
  .hrdf-documents svg { transition: transform .22s ease, background-color .22s ease, border-color .22s ease; }
  .hrdf-documents li:hover svg { transform: translateY(-2px); border-color: #a2c5df; background: var(--ice); }
  .hrdf-programme-card { transition: border-color .22s, transform .22s, box-shadow .22s; }
  .hrdf-programme-card:hover { transform: translateY(-.25rem); box-shadow: 0 .6rem 1.3rem #12355214; }
  .hrdf-programme-card img { transition: transform .3s ease; }
  .hrdf-programme-card:hover img { transform: scale(1.025); }
}
@media (max-width: 65rem) {
  .hrdf-hero-panel { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 1.5rem; padding: 1.7rem; }
  .hrdf-hero h1 { font-size: clamp(2.7rem, 5.4vw, 4rem); }
  .hrdf-programme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hrdf-process { grid-template-columns: minmax(0, 1fr); gap: 1.7rem; }
  .hrdf-process-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); column-gap: 2rem; align-items: start; }
  .hrdf-process-intro .hrdf-label, .hrdf-process-intro h2 { grid-column: 1; }
  .hrdf-process-intro > p:not(.eyebrow) { grid-column: 2; grid-row: 1 / span 2; margin-top: .5rem; }
  .hrdf-process-intro > .hrdf-text-link { grid-column: 2; margin-top: .7rem; }
  .hrdf-process-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hrdf-process-steps li { padding: 1rem; }
}
@media (max-width: 51rem) {
  .hrdf-hero-panel { grid-template-columns: minmax(0, 1fr); padding: clamp(1.25rem, 4vw, 2rem); gap: 1.7rem; }
  .hrdf-hero-copy { padding: .4rem .2rem 0; }
  .hrdf-hero h1 { font-size: clamp(2.5rem, 7.6vw, 4rem); }
  .hrdf-hero-intro { max-width: 35rem; }
  .hrdf-document-wrap { width: min(100%, 37rem); margin-inline: auto; }
  .hrdf-document-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 0 1.5rem; padding: 1.5rem; }
  .hrdf-badges { grid-column: 1; align-self: center; }
  .hrdf-page main .hrdf-document-card h2 { grid-column: 1; font-size: 1.6rem; }
  .hrdf-document-card > p { grid-column: 1; }
  .hrdf-documents { grid-column: 2; grid-row: 1 / span 3; margin: 0; align-self: center; }
  .hrdf-documents li:first-child { padding-top: 0; border: 0; }
  .hrdf-section-heading { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .hrdf-section-heading > p { max-width: 36rem; padding: 0; font-size: 1rem; }
  .hrdf-process-intro { display: block; }
  .hrdf-process-intro > p:not(.eyebrow) { max-width: 35rem; margin-top: 1rem; }
  .hrdf-process-intro > .hrdf-text-link { margin-top: .9rem; }
  .hrdf-process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hrdf-faq { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .hrdf-faq-intro > p:not(.eyebrow) { max-width: 35rem; }
  .hrdf-enquiry { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .hrdf-enquiry-copy { padding: clamp(1rem, 3vw, 1.6rem); }
}
@media (max-width: 35rem) {
  .hrdf-checklist .hrdf-process-steps li { display: block; }
  .hrdf-hero-panel { padding: 1.2rem; }
  .hrdf-hero-copy { padding: .25rem 0 0; }
  .hrdf-hero h1 { margin-top: 1.1rem; font-size: clamp(2.1rem, 8.8vw, 3rem); }
  .hrdf-hero-intro { margin-top: 1.1rem; }
  .hrdf-actions { align-items: stretch; margin-top: 1.25rem; }
  .hrdf-hero .hrdf-actions .button { width: 100%; }
  .hrdf-hero-note { margin-top: 1.1rem; }
  .hrdf-document-wrap { padding: .25rem .3rem .7rem; }
  .hrdf-document-wrap::before { inset: .25rem .3rem .7rem; transform: rotate(2.5deg); }
  .hrdf-document-card { display: block; padding: 1.2rem; }
  .hrdf-badges { width: min(100%, 13rem); }
  .hrdf-documents { margin-top: 1.2rem; }
  .hrdf-documents li:first-child { padding-top: .9rem; border-top: 1px solid #dce8f2; }
  .hrdf-programme-grid { grid-template-columns: minmax(0, 1fr); }
  .hrdf-programme-body h3 { font-size: 1.4rem; }
  .hrdf-programme-note { padding: .9rem 1rem; }
  .hrdf-process { padding: 1.4rem; gap: 1.5rem; }
  .hrdf-process-steps { grid-template-columns: minmax(0, 1fr); }
  .hrdf-process-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .8rem; padding: 1.1rem; }
  .hrdf-step-icon { grid-row: 1 / span 2; margin-bottom: 0; }
  .hrdf-process-steps h3 { align-self: center; }
  .hrdf-process-steps p { grid-column: 2; }
  .hrdf-faq-list summary { padding: 1rem; }
  .hrdf-faq-list details p { padding-inline: 1rem; }
  .hrdf-enquiry-copy > p:not(.eyebrow) { font-size: 1rem; }
  .hrdf-enquiry .hrdf-actions { gap: .5rem; }
}
@media (max-width: 23rem) {
  .hrdf-hero-panel { padding: 1rem; }
  .hrdf-hero h1 { font-size: 2.1rem; }
  .hrdf-page main h2 { font-size: 1.9rem; }
  .hrdf-documents li { gap: .6rem; }
  .hrdf-documents svg { width: 2.2rem !important; height: 2.2rem !important; padding: .45rem; }
  .hrdf-process { padding: 1.1rem; }
  .hrdf-process-steps li { display: block; }
  .hrdf-step-icon { margin-bottom: .8rem; }
  .hrdf-enquiry-copy { padding: .8rem; }
}
