/* Homepage additions from the workbook's first sheet. Shared/legal styles stay in styles.css. */
.home { --nav-h: 96px; }
.home main, .home section, .home #solutions { scroll-margin-top: calc(var(--nav-h) + 20px); }
.home :focus-visible { outline: 3px solid #a6dfff; outline-offset: 5px; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 12px; left: 20px; z-index: 100; background: #fff; color: var(--c-ink); padding: 12px 20px; border-radius: 8px; }
.home .nav { background: rgba(8, 19, 37, .78); backdrop-filter: blur(14px); }
.home .nav__logo img { height: 58px; }
.home .nav__actions { gap: 28px; }
.nav__link { font-size: .9rem; font-weight: 500; color: #d6dfef; transition: color .2s; }
.nav__link:hover { color: #fff; }
.btn--outline { border: 1px solid rgba(185, 204, 248, .5); background: rgba(17, 33, 57, .45); color: #fff; }
.btn--outline:hover { background: rgba(90, 112, 172, .2); border-color: #b2bbff; transform: translateY(-2px); }
.eyebrow { margin: 0 0 24px; color: #b3c3e3; text-transform: uppercase; letter-spacing: .17em; font-size: .72rem; font-weight: 600; line-height: 1.6; }
.home .hero { min-height: 800px; padding-top: calc(var(--nav-h) + 74px); padding-bottom: 92px; background: linear-gradient(90deg, rgba(8,19,37,.96), rgba(8,19,37,.79) 48%, rgba(8,19,37,.30)), url('../img/hero-skyline.webp') center / cover no-repeat, var(--c-bg-2); }
.home .hero__copy { max-width: 900px; }
.home .hero__title { font-size: clamp(2.8rem, 5.25vw, 4.65rem); font-weight: 700; line-height: 1.13; letter-spacing: -.045em; margin-bottom: 28px; }
.hero__title span { color: #b8b6ff; }
.hero__lead { font-size: clamp(1.05rem, 1.7vw, 1.25rem); line-height: 1.65; max-width: 700px; margin: 0 0 18px; color: #f0f3ff; }
.home .hero__text { font-size: .91rem; line-height: 1.85; max-width: 690px; color: #b8c7dc; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.hero__actions .btn { margin-top: 0; padding: 15px 30px; }

/* A complete, scrollable brand list without JS; seamless motion is progressive enhancement. */
.partners { background: #edf4f8; color: var(--c-ink); padding: 38px 0 65px; }
.partners__header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; }
.partners .eyebrow { margin: 0; color: #526078; }
.partners__viewport { overflow-x: auto; scrollbar-width: thin; }
.partners__track { display: flex; width: max-content; }
.partners__logos { display: flex; align-items: center; flex: 0 0 auto; gap: 64px; padding: 10px 32px; }
.partners__logos li { flex: 0 0 170px; display: flex; justify-content: center; align-items: center; height: 80px; }
.partners__logos img { object-fit: contain; max-width: 165px; max-height: 64px; filter: grayscale(1); opacity: .76; mix-blend-mode: multiply; transition: filter .2s, opacity .2s; }
.partners__logos li:hover img { filter: none; opacity: 1; }
.partners.is-enhanced .partners__viewport { overflow: hidden; }
.partners.is-enhanced .partners__track { animation: partner-scroll 38s linear infinite; }
.partners__viewport:hover .partners__track, .partners__viewport:focus-within .partners__track { animation-play-state: paused; }
.partners__statement { margin-top: 46px; padding-top: 38px; position: relative; }
.partners__statement::before { content: ''; position: absolute; top: 0; left: 40px; right: 40px; height: 1px; background: #cfdbe6; }
.partners__statement h2 { font-size: clamp(1.85rem, 3.45vw, 3rem); line-height: 1.25; letter-spacing: -.035em; font-weight: 600; margin: 0; text-align: center; }
.partners__statement h2 span { color: #6253b8; }
@keyframes partner-scroll { to { transform: translateX(-50%); } }

.home .verticals { grid-template-columns: 1fr 1.08fr; }
.home .verticals__intro { align-items: flex-start; text-align: left; padding: 85px max(32px, calc((100vw - 1120px) / 2)); padding-right: 55px; }
.home .verticals__text { margin: 24px 0 0; font-size: .95rem; line-height: 1.8; }
.home .verticals__grid { background: #0e2035; color: #fff; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; padding: 70px clamp(28px, 4vw, 64px); }
.home .vert { flex-direction: column; justify-content: center; gap: 15px; text-align: center; }
.home .vert__icon { width: 124px; height: 102px; border-radius: 0; object-fit: contain; mix-blend-mode: screen; }
.home .vert__label { font-size: 1rem; }

.home .why { background: linear-gradient(rgba(8,19,37,.77), rgba(8,19,37,.95)), url('../img/bg-wave.webp') center / cover no-repeat, var(--c-bg); padding: 90px 0 70px; }
.home .section-title--center { margin-bottom: 42px; }
.home .why__grid { gap: 22px; }
.home .card { padding: 32px; background: linear-gradient(120deg, rgba(34,61,99,.96), rgba(19,36,67,.95)); border: 1px solid #3d5074; box-shadow: 0 15px 36px rgba(0,0,0,.17); }
.home .card::before { transform: scaleX(1); height: 2px; }
.home .card:hover { border-color: #8e8ee0; background: linear-gradient(120deg, #294972, #1c2f54); }
.home .card__title { font-size: 1.2rem; line-height: 1.45; margin-bottom: 12px; }
.home .card__text { color: #c2cfe2; font-size: .91rem; line-height: 1.75; max-width: 460px; }
.metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid #364363; padding: 40px 0 0; margin: 58px 0 0; }
.metric { display: flex; flex-direction: column-reverse; justify-content: flex-end; text-align: center; padding: 0 14px; border-right: 1px solid #364363; }
.metric:last-child { border-right: 0; }
.metric dd { margin: 0 0 10px; color: #c6c2ff; font-size: clamp(2rem, 3.25vw, 2.9rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.metric dt { font-size: .72rem; color: #b8c7dc; line-height: 1.6; }

.home .contact { background: #081325; grid-template-columns: 1fr 1.1fr; }
.home .contact__media { position: relative; flex-direction: column; overflow: hidden; padding: 64px 30px 30px; background: #081325; }
.home .contact__media img { width: 115%; max-width: 590px; height: auto; margin-top: 26px; filter: none; mix-blend-mode: screen; mask-image: radial-gradient(ellipse 49% 48% at 50% 50%, #000 55%, transparent 100%); }
.home .contact__panel { background: linear-gradient(135deg, #344d96, #584089); padding: 64px clamp(28px, 5vw, 76px); }
.home .contact__title { margin-bottom: 28px; }
.home .form__field { margin-bottom: 18px; }
.home .form__field label { font-size: .75rem; letter-spacing: 0; }
.form__optional { font-size: .67rem; font-weight: 400; }
.home .form input, .home .form textarea { background: rgba(8,19,37,.24); border-color: rgba(255,255,255,.35); font-size: .85rem; }
.home .form input::placeholder, .home .form textarea::placeholder { color: #c9d0e9; }
.home .form input:focus, .home .form textarea:focus { outline: 2px solid #c4d6ff; outline-offset: 2px; }
.home .form__note[hidden] { display: none; }
.home .form__note { font-size: .85rem; }
.home .form__note--error { background: #9f263b; }
.home .form__note--success { background: #126847; }
.home .footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; }
.home .footer__copy { text-align: left; }

@media (min-width: 1600px) {
  .home .verticals__intro { padding-left: max(64px, calc((100vw - 1120px) / 2)); }
}
@media (max-width: 1050px) {
  .home .nav__actions { gap: 18px; }
  .home .nav__actions .btn { padding: 11px 20px; font-size: .8rem; }
  .home .verticals__intro { padding: 65px 32px; }
}
@media (max-width: 900px) {
  .home { --nav-h: 82px; }
  .home .nav__logo img { height: 50px; }
  .home .nav__actions { gap: 14px; background: rgba(8,19,37,.98); }
  .home .nav__link { padding: 8px 16px; }
  .home .hero { min-height: auto; padding: 140px 0 72px; background: linear-gradient(90deg, rgba(8,19,37,.94), rgba(8,19,37,.65)), url('../img/hero-skyline.webp') center / cover no-repeat, var(--c-bg-2); }
  .home .hero__inner { text-align: left; }
  .home .hero__title { font-size: clamp(2.4rem, 6.8vw, 3.8rem); }
  .home .hero__text { margin-inline: 0; }
  .home .verticals { grid-template-columns: 1fr 1fr; }
  .home .verticals__grid { padding: 45px 22px; gap: 30px 15px; }
  .home .why__grid { grid-template-columns: 1fr 1fr; }
  .home .card { padding: 26px; }
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 0; }
  .metric:nth-child(3) { border-right: 0; }
  .metric dd { font-size: 2.5rem; }
  .home .contact { grid-template-columns: 1fr; }
  .home .contact__media { padding: 32px 40px; }
  .home .contact__media img { width: 70%; max-width: 420px; margin: 0; }
  .home .contact__panel { padding: 52px 40px; }
}
@media (max-width: 600px) {
  .home .eyebrow { font-size: .62rem; letter-spacing: .12em; }
  .hero__actions { gap: 12px; }
  .hero__actions .btn { font-size: .82rem; padding: 13px 22px; }
  .home .hero__text { font-size: .85rem; }
  .partners { padding: 28px 0 44px; }
  .partners__header { margin-bottom: 12px; }
  .partners__logos { gap: 25px; padding-inline: 12.5px; }
  .partners__logos li { flex-basis: 150px; }
  .partners__logos img { max-width: 142px; max-height: 54px; }
  .partners__statement { margin-top: 26px; padding-top: 28px; }
  .partners__statement::before { left: 20px; right: 20px; }
  .home .verticals { grid-template-columns: 1fr; }
  .home .verticals__intro { padding: 52px 24px; }
  .home .verticals__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 38px 24px; }
  .home .why { padding: 56px 0; }
  .home .why__grid { grid-template-columns: 1fr; gap: 18px; }
  .home .section-title--center { margin-bottom: 32px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 36px; padding-top: 30px; gap: 28px 0; }
  .metric:nth-child(3) { border-right: 1px solid #364363; }
  .metric:nth-child(even) { border-right: 0; }
  .metric:last-child { grid-column: 1 / -1; }
  .home .contact__media { padding: 42px 24px 10px; flex-direction: column; align-items: flex-start; }
  .home .contact__media img { width: 90%; align-self: center; max-width: 330px; margin-top: 4px; }
  .home .contact__panel { padding: 42px 24px; }
  .home .form__row { grid-template-columns: 1fr; gap: 0; }
  .home .footer__bottom { justify-content: center; gap: 18px; }
  .home .footer__copy { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.home) { scroll-behavior: auto; }
  .home *, .home *::before, .home *::after { animation: none !important; transition: none !important; }
  .partners.is-enhanced .partners__viewport { overflow-x: auto; }
  .partners__logos[aria-hidden='true'] { display: none; }
}
