/* =============================================================================
   HHA CORPORATE HOME
   A cinematic, image-led entry point scoped entirely to .page-home. The marque
   pages keep their own established visual systems unchanged.
   ========================================================================== */

/* PIF's current Fund family is proprietary. IBM Plex Sans Arabic is the locally
   hosted, SIL-OFL institutional substitute for Arabic; the English page uses a
   matching humanist system stack, with no third-party font request. */
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/assets/fonts/plex-arabic/IBMPlexSansArabic-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/assets/fonts/plex-arabic/IBMPlexSansArabic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/assets/fonts/plex-arabic/IBMPlexSansArabic-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/assets/fonts/plex-arabic/IBMPlexSansArabic-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

.page-home {
  --home-navy: #081827;
  --home-navy-soft: #10293d;
  --home-blue: #006eaa;
  --home-sky: #25a7df;
  --home-brass: #b89a62;
  --home-ivory: #f3efe7;
  --home-paper: #faf8f3;
  --home-white: #ffffff;
  --home-rule: rgba(8, 24, 39, .16);
  --home-radius-card: 12px;
  --home-radius-inset: 8px;
  --home-radius-control: 999px;

  --brand-font: "Avenir Next", Avenir, "Helvetica Neue", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --brand-font-display: var(--brand-font);
  --brand-radius: var(--home-radius-card);
}

[dir="rtl"] .page-home {
  --brand-font: "IBM Plex Sans Arabic", "Tajawal", "Noto Sans Arabic", "Geeza Pro", sans-serif;
}

.page-home main { background: var(--home-ivory); }
.page-home .foot { margin-block-start: 0; }

/* ---------- transparent masthead over the opening image ---------- */
.page-home .site-head {
  position: absolute;
  inset-block-start: 0;
  inline-size: 100%;
  color: var(--home-white);
  background: linear-gradient(to bottom, rgba(3, 12, 20, .72), rgba(3, 12, 20, 0));
  border-block-end: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.page-home .site-head__in {
  min-block-size: 92px;
  gap: clamp(14px, 1.8vw, 28px);
}
.page-home .wordmark { align-items: center; }
.page-home .wordmark__lockup {
  inline-size: clamp(190px, 21vw, 292px);
  block-size: auto;
  display: block;
}
.page-home .site-nav {
  flex: 1 1 auto;
  margin-inline-start: 0;
  align-items: center;
  gap: clamp(10px, 1.35vw, 22px);
  font-size: clamp(.8rem, .88vw, .94rem);
  /* The hairline that makes the lockup and the three marques read as one identity
     cluster. It lives on the nav, not on .wordmark or .site-nav__marques: both of those
     force direction:ltr so an identity mark never mirrors, which would resolve their own
     logical borders against LTR and put the rule on the wrong side of the Arabic bar. */
  padding-inline-start: clamp(14px, 1.8vw, 28px);
  border-inline-start: 1px solid rgba(255, 255, 255, .22);
}
/* Everything from the first anchor onward is thrown back to the far edge, leaving the
   booking CTA alone at the end of the bar as the only filled control. */
.page-home .site-nav__marques + a { margin-inline-start: auto; }
.page-home .site-nav > a {
  color: var(--home-white);
  opacity: .88;
  white-space: nowrap;
}
.page-home .site-nav > a:hover,
.page-home .site-nav > a:focus-visible { opacity: 1; }

/* HHA's existing site establishes the three-mark pattern. The demo uses a crisp,
   single-colour treatment so every registered shape stays legible over the film. */
.page-home .site-nav__marques {
  display: flex;
  align-items: center;
  direction: ltr;
  flex: none;
}
.page-home .site-nav__marque {
  position: relative;
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  flex: none;
  padding: 0;
  color: var(--home-white);
  border-radius: 50%;
  opacity: 1;
  transition:
    color var(--dur-micro) var(--ease-sine),
    background-color var(--dur-micro) var(--ease-sine),
    transform var(--dur-micro) var(--ease-sine);
}
.page-home .site-nav__marque + .site-nav__marque::before {
  content: "";
  position: absolute;
  inset-block: 10px;
  inset-inline-start: 0;
  inline-size: 1px;
  background: rgba(255, 255, 255, .16);
}
.page-home .site-nav__marque svg {
  display: block;
  inline-size: 29px;
  block-size: 29px;
  fill: currentColor;
}
.page-home .site-nav__marque--aston svg { inline-size: 35px; block-size: 35px; }
.page-home .site-nav__marque--man svg { inline-size: 32px; block-size: 32px; }
.page-home .site-nav__marque:hover,
.page-home .site-nav__marque:focus-visible {
  color: var(--home-white);
  background: rgba(255, 255, 255, .14);
  transform: translateY(-1px);
}

.page-home .site-nav > .site-nav__booking {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-block-size: 44px;
  padding: 8px 15px;
  color: var(--home-navy);
  background: var(--home-white);
  border: 1px solid var(--home-white);
  border-radius: var(--home-radius-control);
  font-weight: 600;
  letter-spacing: 0;
  opacity: 1;
  transition:
    color var(--dur-micro) var(--ease-sine),
    background-color var(--dur-micro) var(--ease-sine),
    transform var(--dur-micro) var(--ease-sine);
}
.page-home .site-nav > .site-nav__booking:hover,
.page-home .site-nav > .site-nav__booking:focus-visible {
  color: var(--home-white);
  background: transparent;
  opacity: 1;
  transform: translateY(-1px);
}
.page-home .lang-switch {
  color: var(--home-white);
  border-color: rgba(255, 255, 255, .44);
  background: rgba(255, 255, 255, .08);
  border-radius: var(--home-radius-control);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.page-home .lang-switch__icon {
  color: var(--home-white);
  background: rgba(255, 255, 255, .14);
}
.page-home .lang-switch:hover,
.page-home .lang-switch:focus-visible {
  color: var(--home-white);
  border-color: var(--home-white);
  background: rgba(255, 255, 255, .14);
}
.page-home .nav-toggle {
  color: var(--home-white);
  border-color: rgba(255, 255, 255, .5);
  border-radius: 50%;
}

/* ---------- shared home typography and controls ---------- */
.home-section { padding-block: clamp(96px, 10vw, 160px); }

.home-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: var(--home-blue);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.3;
  text-transform: uppercase;
}

[dir="rtl"] .home-kicker { letter-spacing: 0; }

.home-heading { margin-block-end: clamp(52px, 7vw, 96px); }
.home-heading__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .72fr);
  gap: clamp(40px, 8vw, 128px);
  align-items: start;
}
.home-heading h2,
.home-care__copy h2,
.home-news h2,
.home-contact h2 {
  color: var(--home-navy);
  font-family: var(--brand-font-display);
  font-size: clamp(2.4rem, 5vw, 4.9rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.05;
  max-width: 13ch;
}
[dir="rtl"] .home-heading h2,
[dir="rtl"] .home-care__copy h2,
[dir="rtl"] .home-news h2,
[dir="rtl"] .home-contact h2 {
  letter-spacing: 0;
  line-height: 1.25;
}
.home-heading__lede {
  color: #40505d;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.8;
  margin: 4px 0 0;
  max-width: 54ch;
}

.home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 36px; }
.home-actions--center { justify-content: center; }
.home-button {
  min-block-size: 52px;
  padding-inline: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid transparent;
  border-radius: var(--home-radius-control);
  font-size: .86rem;
  font-weight: 500;
  letter-spacing: .035em;
  line-height: 1;
  text-decoration: none;
  transition:
    color 260ms var(--ease-sine),
    background 260ms var(--ease-sine),
    border-color 260ms var(--ease-sine),
    transform 260ms var(--ease-sine);
}
[dir="rtl"] .home-button { letter-spacing: 0; }
.home-button:hover { transform: translateY(-2px); }
.home-button--light { background: var(--home-white); color: var(--home-navy); }
.home-button--light:hover { background: var(--home-sky); color: var(--home-white); }
.home-button--glass {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .5);
  color: var(--home-white);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.home-button--glass:hover { background: rgba(255, 255, 255, .18); border-color: var(--home-white); }
.home-button--navy { background: var(--home-navy); color: var(--home-white); }
.home-button--navy:hover { background: var(--home-blue); color: var(--home-white); }
.home-button--outline { border-color: rgba(8, 24, 39, .35); color: var(--home-navy); }
.home-button--outline:hover { border-color: var(--home-blue); color: var(--home-blue); }

.home-text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-block-size: 44px;
  margin-block-start: 28px;
  color: var(--home-navy);
  border-block-end: 1px solid rgba(8, 24, 39, .38);
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 220ms var(--ease-sine), border-color 220ms var(--ease-sine), gap 220ms var(--ease-sine);
}
.home-text-link:hover { color: var(--home-blue); border-color: var(--home-blue); gap: 20px; }
.home-text-link--light { color: var(--home-white); border-color: rgba(255, 255, 255, .46); }
.home-text-link--light:hover { color: var(--home-white); border-color: var(--home-white); }

/* ---------- cinematic hero ---------- */
.home-hero {
  min-block-size: min(980px, 100svh);
  block-size: max(760px, 100svh);
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--home-navy);
  color: var(--home-white);
}
.home-hero__media,
.home-hero__media picture,
.home-hero__media img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; }
.home-hero__media img {
  object-fit: cover;
  object-position: center center;
  transform-origin: center 55%;
  backface-visibility: hidden;
  will-change: transform;
  animation: home-hero-drift 18s cubic-bezier(.45, 0, .55, 1) infinite alternate;
}
.home-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(3, 12, 20, .92) 0%, rgba(3, 12, 20, .28) 43%, rgba(3, 12, 20, .2) 100%),
    linear-gradient(var(--grad-to), rgba(3, 12, 20, .88) 0%, rgba(3, 12, 20, .57) 44%, rgba(3, 12, 20, .06) 78%);
}
.home-hero__inner {
  position: relative;
  z-index: 2;
  block-size: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .55fr);
  gap: clamp(48px, 8vw, 128px);
  align-items: end;
  padding-block: clamp(156px, 18vh, 210px) clamp(86px, 10vh, 120px);
}
.home-hero__copy { align-self: center; max-width: 820px; }
.home-hero__kicker { color: rgba(255, 255, 255, .82); }
.home-hero__kicker > span[aria-hidden="true"] { inline-size: 36px; block-size: 1px; background: var(--home-brass); }
.home-hero__title {
  color: var(--home-white);
  font-family: var(--brand-font-display);
  font-size: clamp(3.35rem, 6.6vw, 7.1rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .98;
  margin: 0;
  max-width: 11.5ch;
  text-shadow: 0 4px 32px rgba(0, 0, 0, .25);
}
[dir="rtl"] .home-hero__title {
  font-size: clamp(3rem, 6vw, 6rem);
  letter-spacing: 0;
  line-height: 1.23;
  max-width: 12ch;
}
.home-hero__lede {
  color: rgba(255, 255, 255, .83);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.8;
  margin: 26px 0 0;
  max-width: 58ch;
}
.home-hero__facts {
  display: grid;
  gap: 0;
  margin: 0 0 4px;
  align-self: end;
  border-block-start: 1px solid rgba(255, 255, 255, .3);
}
.home-hero__facts div {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: baseline;
  gap: 16px;
  padding-block: 16px;
  border-block-end: 1px solid rgba(255, 255, 255, .18);
}
.home-hero__facts dt {
  color: var(--home-white);
  font-family: var(--brand-font-display);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
}
.home-hero__facts dd { color: rgba(255, 255, 255, .67); font-size: .76rem; margin: 0; }
.home-hero__scroll {
  position: absolute;
  z-index: 3;
  inset-block-end: 30px;
  inset-inline-start: 50%;
  translate: -50% 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .72);
  font-size: .67rem;
  letter-spacing: .13em;
  text-decoration: none;
  text-transform: uppercase;
}
[dir="rtl"] .home-hero__scroll { letter-spacing: 0; }
.home-hero__scroll i { animation: home-scroll-prompt 1.8s var(--ease-sine) infinite; }

.home-hero__copy > *, .home-hero__facts {
  animation: home-rise 900ms var(--ease-expo) both;
}
.home-hero__copy > :nth-child(1) { animation-delay: 120ms; }
.home-hero__copy > :nth-child(2) { animation-delay: 220ms; }
.home-hero__copy > :nth-child(3) { animation-delay: 340ms; }
.home-hero__copy > :nth-child(4) { animation-delay: 460ms; }
.home-hero__facts { animation-delay: 580ms; }

@keyframes home-hero-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.105) translate3d(-1.2%, -.4%, 0); }
}
@keyframes home-hero-drift-mobile {
  from { transform: scale(1.035) translate3d(0, 0, 0); }
  to { transform: scale(1.085) translate3d(0, -.55%, 0); }
}
@keyframes home-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes home-scroll-prompt { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- heritage: an editorial bento, not a generic timeline ---------- */
.home-legacy {
  position: relative;
  padding-block: clamp(82px, 8vw, 128px);
  background:
    radial-gradient(circle at 8% 12%, rgba(184, 154, 98, .12), transparent 28%),
    linear-gradient(145deg, #eee8de 0%, var(--home-ivory) 54%, #e9e2d7 100%);
}
.home-legacy .home-heading {
  margin-block-end: 20px;
  padding: clamp(30px, 4vw, 58px);
  background: rgba(255, 255, 255, .46);
  border: 1px solid rgba(8, 24, 39, .1);
  border-radius: clamp(20px, 2vw, 28px);
  box-shadow: 0 20px 60px rgba(8, 24, 39, .055);
}
.home-legacy .home-heading__grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
  gap: clamp(36px, 7vw, 104px);
  align-items: end;
}
.home-legacy__story {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, .72fr);
  gap: 20px;
  align-items: stretch;
}
.home-legacy__media {
  margin: 0;
  position: relative;
  min-inline-size: 0;
  overflow: clip;
  border-radius: clamp(20px, 2vw, 28px);
  background: #c9c0b2;
  box-shadow: 0 24px 70px rgba(8, 24, 39, .13);
}
.home-legacy__media::before {
  content: "1906";
  position: absolute;
  z-index: 2;
  inset-block-start: clamp(22px, 3vw, 42px);
  inset-inline-start: clamp(24px, 3.5vw, 52px);
  color: rgba(255, 255, 255, .9);
  font-family: var(--brand-font-display);
  font-size: clamp(4.4rem, 8vw, 8.5rem);
  font-weight: 300;
  letter-spacing: -.055em;
  line-height: .8;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .22);
}
.home-legacy__media img {
  inline-size: 100%;
  block-size: 100%;
  min-block-size: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(.82) contrast(1.04);
}
.home-legacy__media figcaption {
  position: absolute;
  z-index: 3;
  inset-inline-start: clamp(18px, 2.2vw, 32px);
  inset-block-end: clamp(18px, 2.2vw, 32px);
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, .88);
  font-size: .72rem;
  margin: 0;
  padding: 12px 16px;
  background: rgba(8, 24, 39, .84);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--home-radius-control);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.home-legacy__caption-line { inline-size: 36px; block-size: 1px; background: var(--home-brass); }
.home-legacy__timeline {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  padding: clamp(30px, 4vw, 54px);
  background:
    radial-gradient(circle at 92% 8%, rgba(37, 167, 223, .2), transparent 34%),
    linear-gradient(155deg, #0f3148, #071827 70%);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: clamp(20px, 2vw, 28px);
  box-shadow: 0 24px 70px rgba(8, 24, 39, .15);
}
.home-legacy__timeline::after {
  content: "";
  position: absolute;
  z-index: -1;
  inline-size: 190px;
  block-size: 190px;
  inset-inline-end: -76px;
  inset-block-end: -86px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
}
.home-legacy__timeline article {
  display: grid;
  align-content: center;
  padding-block: clamp(22px, 2.5vw, 36px);
  position: relative;
  border-block-end: 1px solid rgba(255, 255, 255, .14);
}
.home-legacy__timeline article:first-child { padding-block-start: 0; }
.home-legacy__timeline article:last-child { padding-block-end: 0; border-block-end: 0; }
.home-legacy__timeline article::before {
  display: none;
}
.home-legacy__year {
  display: block;
  color: #75d0f5;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  margin-block-end: 10px;
  font-variant-numeric: tabular-nums;
}
[dir="rtl"] .home-legacy__year { letter-spacing: 0; }
.home-legacy__timeline h3 {
  color: var(--home-white);
  font-family: var(--brand-font);
  font-size: clamp(1.06rem, 1.35vw, 1.24rem);
  font-weight: 500;
  margin: 0;
}
.home-legacy__timeline p {
  color: rgba(255, 255, 255, .67);
  font-size: .88rem;
  line-height: 1.75;
  margin: 9px 0 0;
  max-width: 38ch;
}

/* ---------- marque portfolio ---------- */
.home-portfolio { background: var(--home-navy); color: var(--home-white); }
.home-heading--inverse .home-kicker { color: #65c4ed; }
.home-heading--inverse h2 { color: var(--home-white); }
.home-heading--inverse .home-heading__lede { color: rgba(255, 255, 255, .65); }
.home-marques { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.home-marque {
  position: relative;
  isolation: isolate;
  inline-size: 100%;
  max-inline-size: 100%;
  min-inline-size: 0;
  min-block-size: 390px;
  aspect-ratio: 1.55 / 1;
  overflow: clip;
  color: var(--home-white);
  text-decoration: none;
  background: #02080d;
  border-radius: var(--home-radius-card);
}
.home-marque--feature { grid-column: 1 / -1; min-block-size: 490px; aspect-ratio: 2.4 / 1; }
.home-marque > img {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  transition: transform 950ms var(--ease-expo), filter 600ms var(--ease-sine);
}
.home-marque__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 8, 13, .9) 0%, rgba(2, 8, 13, .18) 58%, rgba(2, 8, 13, .08) 100%);
}
.home-marque__index {
  position: absolute;
  inset-block-start: 24px;
  inset-inline-start: 26px;
  color: rgba(255, 255, 255, .65);
  font-size: .7rem;
  letter-spacing: .12em;
}
.home-marque__copy {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  display: grid;
  gap: 4px;
  padding: clamp(24px, 4vw, 52px);
}
.home-marque__type { color: rgba(255, 255, 255, .63); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
[dir="rtl"] .home-marque__type { letter-spacing: 0; }
.home-marque__copy strong {
  color: var(--home-white);
  font-family: var(--brand-font);
  font-size: clamp(2rem, 4.3vw, 4.4rem);
  font-weight: 300;
  letter-spacing: -.03em;
  line-height: 1.05;
}
.home-marque__note { color: rgba(255, 255, 255, .74); font-size: .84rem; }
.home-marque__arrow {
  position: absolute;
  inset-block-end: clamp(24px, 4vw, 52px);
  inset-inline-end: clamp(24px, 4vw, 52px);
  inline-size: 48px;
  block-size: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  transition: background 260ms var(--ease-sine), color 260ms var(--ease-sine), transform 260ms var(--ease-sine);
}
.home-marque:hover > img { transform: scale(1.035); filter: saturate(1.08); }
.home-marque:hover .home-marque__arrow { background: var(--home-white); color: var(--home-navy); transform: translateX(calc(var(--reveal-x) * -.18)); }

/* ---------- ownership and services ---------- */
.home-care { background: var(--home-paper); }
.home-care__feature {
  display: grid;
  grid-template-columns: minmax(300px, .75fr) minmax(0, 1.25fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
}
.home-care__copy h2 { font-size: clamp(2.3rem, 4.4vw, 4.4rem); max-width: 12ch; }
.home-care__copy > p:not(.home-kicker) { color: #50606d; font-size: 1rem; line-height: 1.8; margin: 24px 0 0; max-width: 48ch; }
.home-care__checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.home-care__checks li { display: flex; align-items: center; gap: 11px; color: #344754; font-size: .88rem; }
.home-care__checks i { color: var(--home-blue); font-size: 1.05rem; }
.home-care__media {
  margin: 0;
  position: relative;
  overflow: clip;
  border-radius: var(--home-radius-card);
}
.home-care__media img { inline-size: 100%; aspect-ratio: 1.25 / 1; object-fit: cover; transition: transform 1s var(--ease-expo); }
.home-care__media:hover img { transform: scale(1.02); }
.home-care__media figcaption {
  position: absolute;
  inset-inline: 18px;
  inset-block-end: 18px;
  display: grid;
  gap: 2px;
  padding: 16px 18px;
  background: rgba(8, 24, 39, .88);
  color: var(--home-white);
  border-radius: var(--home-radius-inset);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.home-care__media figcaption span { font-size: .87rem; font-weight: 500; }
.home-care__media figcaption small { color: rgba(255, 255, 255, .63); font-size: .68rem; }

.home-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-block-start: clamp(72px, 9vw, 120px);
  overflow: clip;
  background: var(--home-paper);
  border: 1px solid var(--home-rule);
  border-radius: var(--home-radius-card);
}
.home-services > a {
  min-block-size: 148px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 24px;
  color: var(--home-navy);
  border-inline-end: 1px solid var(--home-rule);
  text-decoration: none;
  transition: background 260ms var(--ease-sine), color 260ms var(--ease-sine);
}
.home-services > a:last-child { border-inline-end: 0; }
.home-services > a:hover { background: var(--home-navy); color: var(--home-white); }
.home-services > a:focus-visible { outline-offset: -4px; }
.home-services__icon { inline-size: 42px; block-size: 42px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; }
.home-services strong { display: block; font-size: .9rem; font-weight: 600; }
.home-services small { display: block; color: #687681; font-size: .72rem; margin-block-start: 4px; }
.home-services > a:hover small { color: rgba(255, 255, 255, .64); }
.home-services__arrow { color: var(--home-blue); font-size: .84rem; }
.home-services > a:hover .home-services__arrow { color: var(--home-white); }

/* ---------- current corporate stories ---------- */
.home-news { background: #0b3957; color: var(--home-white); padding-block: clamp(88px, 9vw, 136px); }
.home-news__inner { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(0, 1.25fr); gap: clamp(52px, 10vw, 150px); align-items: start; }
.home-news .home-kicker { color: #75d0f5; }
.home-news h2 { color: var(--home-white); font-size: clamp(2.3rem, 4.4vw, 4.3rem); max-width: 12ch; }
.home-news__lead > p:not(.home-kicker) { color: rgba(255, 255, 255, .68); line-height: 1.8; margin: 24px 0 0; max-width: 46ch; }
.home-news__items { display: grid; gap: 12px; }
.home-news__items a {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 20px;
  align-items: center;
  min-block-size: 116px;
  padding: 22px 24px;
  color: var(--home-white);
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--home-radius-card);
  text-decoration: none;
  transition: padding-inline 260ms var(--ease-sine), background 260ms var(--ease-sine);
}
.home-news__items a:hover { padding-inline: 30px; background: rgba(255, 255, 255, .075); }
.home-news__items a > span { color: #75d0f5; font-size: .68rem; letter-spacing: .1em; }
.home-news__items strong { font-size: clamp(.96rem, 1.4vw, 1.14rem); font-weight: 500; line-height: 1.65; }
.home-news__items i { color: rgba(255, 255, 255, .72); }

/* ---------- closing contact panel ---------- */
.home-contact { position: relative; overflow: clip; background: var(--home-ivory); padding-block: clamp(100px, 12vw, 180px); text-align: center; }
.home-contact__mark {
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: 50%;
  translate: -50% -50%;
  color: rgba(8, 24, 39, .045);
  font-family: var(--brand-font-display);
  font-size: clamp(12rem, 31vw, 34rem);
  line-height: .75;
  white-space: nowrap;
  pointer-events: none;
}
.home-contact__inner { position: relative; z-index: 1; display: grid; justify-items: center; }
.home-contact .home-kicker { color: var(--home-blue); }
.home-contact h2 { font-size: clamp(2.7rem, 5.4vw, 5.2rem); max-width: 13ch; text-align: center; }
.home-contact p:not(.home-kicker) { color: #52616d; margin: 24px 0 0; text-align: center; }

/* ---------- dark corporate footer ---------- */
.page-home .foot--dark {
  --brand-bg: #071522;
  --brand-fg: #f7f4ee;
  --brand-fg-mid: #c9d0d6;
  --brand-fg-dim: #aab4bd;
  --brand-rule: rgba(255, 255, 255, .14);
  --brand-accent: #25a7df;

  position: relative;
  isolation: isolate;
  overflow: clip;
  margin-block-start: 0;
  color: var(--brand-fg);
  background:
    radial-gradient(circle at 88% 0%, rgba(37, 167, 223, .18), transparent 34%),
    radial-gradient(circle at 12% 100%, rgba(184, 154, 98, .1), transparent 32%),
    linear-gradient(145deg, #06131f, #0a2233 58%, #071722);
  border-block-start: 0;
  border-start-start-radius: clamp(28px, 3.6vw, 54px);
  border-start-end-radius: clamp(28px, 3.6vw, 54px);
}
.page-home .foot--dark::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset-block-start: 0;
  inset-inline: clamp(28px, 5vw, 80px);
  block-size: 2px;
  background: linear-gradient(var(--grad-to), transparent, var(--home-brass) 35%, var(--home-sky) 70%, transparent);
}
.page-home .foot--dark::after {
  content: "1906";
  position: absolute;
  z-index: -1;
  inset-inline-end: -.04em;
  inset-block-end: -.22em;
  color: rgba(255, 255, 255, .022);
  font-family: var(--brand-font-display);
  font-size: clamp(12rem, 25vw, 26rem);
  font-weight: 300;
  line-height: .8;
  pointer-events: none;
}
.page-home .foot--dark > .wrap { position: relative; z-index: 1; }
.page-home .foot--dark .foot__top {
  grid-template-columns: minmax(260px, 1.28fr) repeat(3, minmax(170px, 1fr));
  gap: clamp(34px, 4vw, 64px);
  padding-block: clamp(82px, 8vw, 112px) clamp(54px, 5vw, 76px);
}
.page-home .foot--dark .foot__top > div + div {
  padding-inline-start: clamp(24px, 2.6vw, 42px);
  border-inline-start: 1px solid var(--brand-rule);
}
.page-home .foot--dark .foot__brand { gap: 18px; }
.page-home .foot--dark .foot__lockup { inline-size: min(292px, 100%); }
.page-home .foot--dark .foot__tag {
  color: var(--brand-fg-mid);
  font-size: .87rem;
  line-height: 1.8;
  max-width: 36ch;
}
.page-home .foot--dark .foot__h {
  color: var(--home-brass);
  font-size: .7rem;
  letter-spacing: .12em;
}
[dir="rtl"] .page-home .foot--dark .foot__h { letter-spacing: 0; }
.page-home .foot--dark .foot__list li,
.page-home .foot--dark .foot__list a { color: var(--brand-fg-mid); }
.page-home .foot--dark .foot__list a,
.page-home .foot--dark .foot__policies a { text-underline-offset: 5px; }
.page-home .foot--dark .foot__list a:hover,
.page-home .foot--dark .foot__list a:focus-visible,
.page-home .foot--dark .foot__policies a:hover,
.page-home .foot--dark .foot__policies a:focus-visible { color: var(--brand-fg); }
.page-home .foot--dark .foot__k { color: var(--brand-fg-dim); }
.page-home .foot--dark .foot__v { color: var(--brand-fg); }
.page-home .foot--dark .foot__social { gap: 10px; }
.page-home .foot--dark .foot__social a {
  inline-size: 44px;
  block-size: 44px;
  color: var(--brand-fg-mid);
  background: rgba(255, 255, 255, .025);
  border-color: rgba(255, 255, 255, .22);
  border-radius: 50%;
  transition:
    color 240ms var(--ease-sine),
    background 240ms var(--ease-sine),
    border-color 240ms var(--ease-sine),
    transform 240ms var(--ease-sine);
}
.page-home .foot--dark .foot__social a:hover,
.page-home .foot--dark .foot__social a:focus-visible {
  color: var(--home-navy);
  background: var(--home-sky);
  border-color: var(--home-sky);
  transform: translateY(-2px);
}
.page-home .foot--dark .foot__bar {
  padding-block: 28px;
  border-block-start-color: var(--brand-rule);
}
.page-home .foot--dark .foot__copy,
.page-home .foot--dark .foot__policies a,
.page-home .foot--dark .foot__notice { color: var(--brand-fg-dim); }
.page-home .foot--dark .foot__notice {
  max-width: 100%;
  padding-block: 22px 34px;
  border-block-start: 1px solid rgba(255, 255, 255, .08);
  opacity: .72;
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .home-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(240px, .45fr); gap: 48px; }
  .home-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-services > a:nth-child(2) { border-inline-end: 0; }
  .home-services > a:nth-child(-n + 2) { border-block-end: 1px solid var(--home-rule); }

  .page-home .foot--dark .foot__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-home .foot--dark .foot__top > div + div { padding-inline-start: 0; border-inline-start: 0; }
  .page-home .foot--dark .foot__top > div:nth-child(even) {
    padding-inline-start: clamp(24px, 4vw, 42px);
    border-inline-start: 1px solid var(--brand-rule);
  }
  .page-home .foot--dark .foot__top > div:nth-child(n + 3) {
    padding-block-start: 38px;
    border-block-start: 1px solid var(--brand-rule);
  }
}

@media (max-width: 820px) {
  .page-home .site-head__in { min-block-size: 76px; }
  .page-home .wordmark__lockup { inline-size: 185px; }

  .home-hero { min-block-size: 760px; block-size: 100svh; }
  .home-hero__media img,
  [dir="rtl"] .home-hero__media img {
    object-position: center center;
    transform-origin: 52% 50%;
    animation-name: home-hero-drift-mobile;
    animation-duration: 16s;
  }
  .home-hero__veil {
    background: linear-gradient(to top, rgba(3, 12, 20, .96) 0%, rgba(3, 12, 20, .65) 47%, rgba(3, 12, 20, .26) 100%);
  }
  .home-hero__inner {
    grid-template-columns: 1fr;
    align-content: end;
    gap: 36px;
    padding-block: 130px 78px;
  }
  .home-hero__copy { align-self: end; }
  .home-hero__title,
  [dir="rtl"] .home-hero__title { font-size: clamp(2.75rem, 10vw, 4.8rem); max-width: 12ch; }
  .home-hero__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-hero__facts div { grid-template-columns: 1fr; gap: 8px; padding: 14px; border-block-end: 0; border-inline-end: 1px solid rgba(255, 255, 255, .18); }
  .home-hero__facts div:last-child { border-inline-end: 0; }
  .home-hero__facts dt { font-size: 1.2rem; }
  .home-hero__facts dd { font-size: .65rem; line-height: 1.45; }
  .home-hero__scroll { display: none; }

  .home-heading__grid,
  .home-legacy__story,
  .home-care__feature,
  .home-news__inner { grid-template-columns: 1fr; }
  .home-legacy .home-heading__grid { grid-template-columns: 1fr; }
  .home-heading__grid { gap: 28px; }
  .home-heading h2,
  .home-care__copy h2,
  .home-news h2 { max-width: 15ch; }
  .home-legacy__story { gap: 18px; }
  .home-legacy__media img { block-size: auto; min-block-size: 0; }
  .home-legacy__timeline { margin-inline: 0; }
  .home-care__feature { gap: 56px; }
  .home-news__inner { gap: 64px; }

  .home-marque,
  .home-marque--feature { min-block-size: 350px; aspect-ratio: 1.3 / 1; }
}

/* The logo cluster and booking CTA need more room than the marque-page nav. The
   homepage therefore changes register sooner, while the shared 900px rule remains
   untouched for every other page. */
@media (max-width: 1120px) {
  .nav-enhanced .page-home .site-head__in { position: relative; }
  .nav-enhanced .page-home .site-nav__marques + a { margin-inline-start: 0; }
  .nav-enhanced .page-home .lang-switch {
    margin-inline-start: auto;
    min-block-size: 44px;
  }
  .nav-enhanced .page-home .nav-toggle { display: grid; }
  .nav-enhanced .page-home .site-nav {
    position: absolute;
    z-index: 2;
    inset-block-start: calc(100% + 10px);
    inset-inline: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-block-size: calc(100svh - 110px);
    margin: 0;
    padding: 12px;
    overflow-x: hidden;
    overflow-y: auto;
    color: var(--home-white);
    background: rgba(8, 24, 39, .98);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .34);
    -webkit-backdrop-filter: blur(18px) saturate(1.1);
    backdrop-filter: blur(18px) saturate(1.1);
  }
  .nav-enhanced .page-home.nav-open .site-nav { display: flex; }
  .nav-enhanced .page-home .site-nav > a {
    display: flex;
    align-items: center;
    min-block-size: 48px;
    padding-inline: 12px;
    color: var(--home-white);
    border-block-end: 1px solid rgba(255, 255, 255, .15);
    font-size: .9rem;
  }
  .nav-enhanced .page-home .site-nav__marques {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    inline-size: 100%;
    margin: 10px 0;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
  }
  .nav-enhanced .page-home .site-nav__marque {
    inline-size: 100%;
    block-size: 52px;
    border-radius: 10px;
  }
  .nav-enhanced .page-home .site-nav__marque + .site-nav__marque::before {
    inset-block: 9px;
  }
  .nav-enhanced .page-home .site-nav > .site-nav__booking {
    min-block-size: 52px;
    margin-block-start: 12px;
    padding-inline: 18px;
    color: var(--home-navy);
    background: var(--home-white);
    border: 1px solid var(--home-white);
    font-size: .9rem;
    opacity: 1;
  }
  .nav-enhanced .page-home .site-nav > .site-nav__booking:hover,
  .nav-enhanced .page-home .site-nav > .site-nav__booking:focus-visible {
    color: var(--home-white);
    background: transparent;
  }
  .nav-enhanced .page-home .site-nav a:focus-visible { outline-offset: -3px; }
}

@media (max-width: 640px) {
  .home-section { padding-block: 88px; }
  .home-kicker { margin-block-end: 18px; }
  .home-heading { margin-block-end: 64px; }
  .home-heading h2,
  .home-care__copy h2,
  .home-news h2,
  .home-contact h2 { font-size: clamp(2.15rem, 10vw, 3.25rem); }

  .home-hero { min-block-size: 700px; }
  .home-hero__inner { padding-block: 116px 38px; gap: 30px; }
  .home-hero__lede { font-size: .94rem; line-height: 1.72; margin-block-start: 18px; }
  .home-hero__kicker { flex-wrap: wrap; font-size: .65rem; }
  .home-hero__kicker > span[aria-hidden="true"] { inline-size: 22px; }
  .home-actions { margin-block-start: 26px; }
  .home-button { flex: 1 1 100%; inline-size: 100%; }
  .home-hero__facts div { padding-inline: 8px; }
  .home-hero__facts dt { font-size: 1.05rem; }
  .home-hero__facts dd { font-size: .58rem; }

  .home-legacy .home-heading { padding: 26px 22px 30px; }
  .home-legacy__media,
  .home-legacy__timeline { border-radius: 18px; }
  .home-legacy__media::before {
    inset-block-start: 20px;
    inset-inline-start: 20px;
    font-size: 4rem;
  }
  .home-legacy__media figcaption {
    inset-inline: 14px;
    inset-block-end: 14px;
    justify-content: center;
  }
  .home-legacy__timeline { padding: 26px 22px; }
  .home-legacy__timeline article { padding-inline: 0; }

  .home-marques { grid-template-columns: 1fr; }
  .home-marque--feature { grid-column: auto; }
  .home-marque,
  .home-marque--feature { min-block-size: 390px; aspect-ratio: .95 / 1; }
  .home-marque--feature > img { object-position: 67% center; }
  .home-marque__copy { padding: 24px; }
  .home-marque__copy strong { font-size: 2.35rem; }
  .home-marque__arrow { inset-block-end: 24px; inset-inline-end: 24px; inline-size: 44px; block-size: 44px; }

  .home-care__media img { aspect-ratio: 4 / 5; }
  .home-services { grid-template-columns: 1fr; }
  .home-services > a {
    min-block-size: 112px;
    border-inline-end: 0;
    border-block-end: 1px solid var(--home-rule);
  }
  .home-services > a:nth-child(2) { border-inline-end: 0; }
  .home-services > a:last-child { border-block-end: 0; }

  .home-news__items a { grid-template-columns: 30px 1fr auto; gap: 12px; min-block-size: 104px; }
  .home-contact__mark { font-size: 13rem; }

  .page-home .foot--dark {
    border-start-start-radius: 26px;
    border-start-end-radius: 26px;
  }
  .page-home .foot--dark .foot__top {
    grid-template-columns: 1fr;
    gap: 0;
    padding-block: 70px 42px;
  }
  .page-home .foot--dark .foot__top > div,
  .page-home .foot--dark .foot__top > div:nth-child(even),
  .page-home .foot--dark .foot__top > div:nth-child(n + 3) {
    padding-inline-start: 0;
    padding-block: 30px;
    border-inline-start: 0;
    border-block-start: 1px solid var(--brand-rule);
  }
  .page-home .foot--dark .foot__top > div:first-child {
    padding-block-start: 0;
    border-block-start: 0;
  }
  .page-home .foot--dark .foot__lockup { inline-size: min(280px, 100%); }
  .page-home .foot--dark .foot__bar { align-items: flex-start; }
}

@media (max-width: 440px) {
  .page-home .site-head__in { gap: 8px; }
  .page-home .wordmark__lockup { inline-size: clamp(130px, 40vw, 176px); }
  .page-home .lang-switch { padding-inline: 8px; }
}

@media (max-width: 360px) {
  .home-hero__title,
  [dir="rtl"] .home-hero__title { font-size: 2.45rem; }
  .home-hero__facts dd { display: none; }
  .home-marque,
  .home-marque--feature { min-block-size: 330px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__media img,
  .home-hero__copy > *,
  .home-hero__facts,
  .home-hero__scroll i { animation: none !important; }
}
