/* Original-reference Home compositions, using the existing IFI brand palette. */
body[data-page="home"] .hero-content,
body[data-page="home"] .services-section > .page-shell,
body[data-page="home"] .about-layout,
body[data-page="home"] .contact-layout { width: min(100%,1280px); padding-inline: 32px; }
body[data-page="home"] .hero,
body[data-page="home"] .hero-content { min-height: calc(100svh - var(--site-header-height)); }
body[data-page="home"] .hero-content { padding-top: 128px; padding-bottom: 96px; }
body[data-page="home"] .hero-copy { width: 100%; }
body[data-page="home"] .hero-title { max-width: 768px; font-size: 84px; font-weight: 700; letter-spacing: normal; line-height: 1.05; color: var(--ifi-white); }
body[data-page="home"] .hero-title .gold-line { color: var(--gold); }
body[data-page="home"] .hero-eyebrow { margin-bottom: 28px; font-size: 12px; }
body[data-page="home"] .hero-description { max-width: 672px; margin: 28px 0 48px; font-size: 20px; line-height: 1.625; color: rgba(247,244,234,.78); }
body[data-page="home"] .hero-actions { gap: 16px; }
body[data-page="home"] .hero-actions .button { min-height: 52px; padding: 14px 28px; font-size: 16px; font-weight: 600; line-height: 1.5; }
body[data-page="home"] .hero-proof { margin-top: 64px; gap: 32px; font-size: 14px; }
body[data-page="home"] .services-section,
body[data-page="home"] .about-section,
body[data-page="home"] .contact-section { padding-block: 96px; }

/* Asymmetric service grid: the original first card occupies two columns. */
body[data-page="home"] .services-section .section-heading { display: block; max-width: 768px; margin: 0 auto 64px; text-align: center; }
body[data-page="home"] .services-section .section-kicker { margin-bottom: 12px; }
body[data-page="home"] .services-section .section-title { margin-bottom: 16px; font-size: 36px; font-weight: 700; letter-spacing: normal; line-height: 1.111; }
body[data-page="home"] .services-section .section-title em { color: inherit; font-style: normal; font-weight: inherit; }
body[data-page="home"] .services-section .section-intro { max-width: none; font-size: 18px; line-height: 1.625; }
body[data-page="home"] .services-section .gold-note { margin: 12px 0 0; font-size: 14px; font-style: italic; }
body[data-page="home"] .service-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; border: 0; }
body[data-page="home"] .service-card { display: flex; flex-direction: column; min-height: 330px; padding: 32px; border: 1px solid var(--ifi-border); border-radius: 16px; background: var(--ifi-white); }
body[data-page="home"] .service-card:first-child { grid-column: span 2; }
body[data-page="home"] .service-card-top { display: block; margin-bottom: 24px; }
body[data-page="home"] .service-index { display: none; }
body[data-page="home"] .service-icon { width: 48px; height: 48px; color: var(--gold); background: var(--ifi-navy-deep); border-color: transparent; }
body[data-page="home"] .service-card h3 { margin-bottom: 12px; font-size: 20px; font-weight: 600; line-height: 1.4; }
body[data-page="home"] .service-card > p { min-height: 0; margin-bottom: 20px; font-size: 14px; line-height: 1.625; }
body[data-page="home"] .service-card .text-link { margin-top: auto; font-size: 14px; }
body[data-page="home"] .service-card:hover { border-color: var(--gold); background: var(--ifi-white); }

/* Keep the source office image and hooks; use the photo as a full-width backdrop. */
body[data-page="home"] .about-section { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); }
body[data-page="home"] .about-layout { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; gap: 64px; }
body[data-page="home"] .about-visual { position: absolute; z-index: -1; inset: 0; min-height: 0; pointer-events: none; }
body[data-page="home"] .about-visual img { width: 100%; height: 100%; object-fit: cover; filter: none; }
body[data-page="home"] .about-visual::after { inset: 0; background: rgba(15,27,45,.85); }
body[data-page="home"] .about-visual .photo-caption { display: none; }
body[data-page="home"] .about-copy { position: relative; }
body[data-page="home"] .about-copy .eyebrow { margin-bottom: 12px; font-size: 12px; }
body[data-page="home"] .about-copy h2 { margin-bottom: 32px; font-size: 36px; font-weight: 700; letter-spacing: normal; line-height: 1.111; }
body[data-page="home"] .about-copy h2 em { color: var(--gold); font-style: normal; font-weight: inherit; }
body[data-page="home"] .about-copy > p:not(.eyebrow) { margin-bottom: 16px; font-size: 16px; line-height: 1.625; color: rgba(247,244,234,.8); }
body[data-page="home"] .about-copy > p:not(.eyebrow):last-of-type { margin-bottom: 40px; }
body[data-page="home"] .about-link { color: var(--gold-light); font-size: 16px; border-bottom: 0; }
body[data-page="home"] .purpose-grid { grid-column: 2; grid-row: 1; grid-template-columns: 1fr; gap: 32px; background: transparent; }
body[data-page="home"] .purpose-card { padding: 32px; border: 1px solid rgba(201,166,45,.3); border-radius: 2px; background: rgba(201,166,45,.05); }
body[data-page="home"] .purpose-card .section-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--gold-light); font-size: 14px; letter-spacing: .08em; }
body[data-page="home"] .purpose-card .section-kicker::before { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); content: ''; }
body[data-page="home"] .purpose-card h3 { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body[data-page="home"] .purpose-card > p:last-child { max-width: none; color: rgba(247,244,234,.84); font-family: var(--serif); font-size: 18px; font-style: italic; line-height: 1.625; }

/* Reference contact heading sits above the office and form columns. */
body[data-page="home"] .contact-section { background: var(--navy); }
body[data-page="home"] .contact-layout { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 64px; }
body[data-page="home"] .contact-copy { display: contents; }
body[data-page="home"] .contact-copy > .eyebrow { grid-column: 1 / -1; grid-row: 1; max-width: 768px; margin-bottom: 12px; font-size: 12px; }
body[data-page="home"] .contact-copy > h2 { grid-column: 1 / -1; grid-row: 2; max-width: 768px; margin-bottom: 16px; font-size: 36px; font-weight: 700; letter-spacing: normal; line-height: 1.111; }
body[data-page="home"] .contact-copy > h2 br { display: none; }
body[data-page="home"] .contact-copy > h2 em { font-style: normal; font-weight: inherit; color: var(--ifi-white); }
body[data-page="home"] .contact-lede { grid-column: 1 / -1; grid-row: 3; max-width: 768px; margin: 0 0 64px; font-size: 18px; line-height: 1.5; color: rgba(247,244,234,.74); }
body[data-page="home"] .office-list { grid-column: 1; grid-row: 4; border: 0; }
body[data-page="home"] .office-card { display: block; padding: 0; margin-bottom: 32px; border: 0; }
body[data-page="home"] .office-index { display: none; }
body[data-page="home"] .office-card h3 { margin-bottom: 8px; color: var(--gold-light); font-size: 18px; font-weight: 600; line-height: 1.55; }
body[data-page="home"] .office-card p, body[data-page="home"] .office-card a { font-size: 14px; line-height: 1.625; }
body[data-page="home"] .office-card a { margin-top: 8px; color: rgba(247,244,234,.84); }
body[data-page="home"] .contact-form { grid-column: 2; grid-row: 4; padding: 0; border: 0; background: transparent; }
body[data-page="home"] .form-heading { margin-bottom: 32px; }
body[data-page="home"] .form-heading .section-kicker,
body[data-page="home"] .form-heading > p:last-child { display: none; }
body[data-page="home"] .form-heading h3 { font-size: 20px; font-weight: 600; line-height: 1.4; }
body[data-page="home"] .field { margin-bottom: 20px; }
body[data-page="home"] .field > span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body[data-page="home"] .form-row { gap: 16px; }
body[data-page="home"] .field input, body[data-page="home"] .field select, body[data-page="home"] .field textarea { min-height: 46px; padding: 12px 16px; border-radius: 12px; border-color: rgba(247,244,234,.18); background: rgba(247,244,234,.05); font-size: 14px; line-height: 1.428; }
body[data-page="home"] .field textarea { min-height: 126px; border-radius: 2px; }
body[data-page="home"] .form-submit { padding: 14px 24px; font-size: 16px; font-weight: 600; }
body[data-page="home"] .form-note { margin-top: 16px; text-align: start; }

/* Shared footer: balance columns and match the reference's continuous navy surface. */
.site-footer { padding-top: 64px; padding-bottom: 64px; color: rgba(247,244,234,.76); background: var(--navy); }
.site-footer .page-shell { width: min(100%,1280px); padding-inline: 32px; }
.footer-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 48px; padding-bottom: 0; }
.footer-brand-block p { max-width: none; margin-top: 16px; font-size: 14px; line-height: 1.625; }
.footer-title { margin: 0 0 16px; font-size: 14px; font-weight: 600; letter-spacing: .08em; }
.footer-column { gap: 8px; }
.footer-column a { font-size: 14px; line-height: 1.428; }
.footer-bottom { min-height: 0; margin-top: 48px; padding-top: 32px; border-color: rgba(247,244,234,.14); font-size: 12px; line-height: 1.333; }
.footer-bottom-links { gap: 24px; }

@media (max-width: 1023px) {
  body[data-page="home"] .hero-title { font-size: 72px; }
  body[data-page="home"] .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body[data-page="home"] .about-layout, body[data-page="home"] .contact-layout { grid-template-columns: minmax(0,1fr); gap: 48px; }
  body[data-page="home"] .purpose-grid { grid-column: 1; grid-row: auto; }
  body[data-page="home"] .contact-layout { row-gap: 0; }
  body[data-page="home"] .office-list { grid-row: 4; }
  body[data-page="home"] .contact-form { grid-column: 1; grid-row: 5; margin-top: 32px; }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-brand-block { grid-column: auto; }
}
@media (max-width: 767px) {
  body[data-page="home"] .hero-content, body[data-page="home"] .services-section > .page-shell,
  body[data-page="home"] .about-layout, body[data-page="home"] .contact-layout,
  .site-footer .page-shell { padding-inline: 24px; }
  body[data-page="home"] .hero-content { padding-top: 96px; padding-bottom: 64px; }
  body[data-page="home"] .hero-title { font-size: 60px; }
  body[data-page="home"] .hero-description { font-size: 18px; margin-bottom: 32px; }
  body[data-page="home"] .hero-proof { margin-top: 48px; gap: 16px; font-size: 12px; }
  body[data-page="home"] .services-section, body[data-page="home"] .about-section,
  body[data-page="home"] .contact-section { padding-block: 64px; }
  body[data-page="home"] .service-grid { grid-template-columns: minmax(0,1fr); }
  body[data-page="home"] .service-card:first-child { grid-column: auto; }
  body[data-page="home"] .service-card { min-height: 0; padding: 24px; }
  body[data-page="home"] .services-section .section-heading { margin-bottom: 48px; }
  body[data-page="home"] .services-section .section-title,
  body[data-page="home"] .about-copy h2, body[data-page="home"] .contact-copy > h2 { font-size: 30px; line-height: 1.2; }
  body[data-page="home"] .contact-lede { margin-bottom: 48px; }
  .footer-grid { gap: 32px; }
  .footer-bottom { gap: 16px; }
}
@media (max-width: 639px) {
  body[data-page="home"] .hero-title { font-size: 48px; }
  body[data-page="home"] .hero-actions .button { font-size: 14px; padding-inline: 24px; }
  .footer-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 420px) {
  body[data-page="home"] .hero-title { font-size: clamp(2.4rem,12vw,3rem); }
}
html[dir="rtl"] body[data-page="home"] .hero-title,
html[dir="rtl"] body[data-page="home"] .hero-description { margin-left: auto; }
