/* Approved homepage layout. Shared primitives are in studio.css. */

/* Native focus scrolling must leave room for the shared sticky header. */
html:has(body.home-page) { scroll-padding-top: calc(81px + var(--cg-space-stack)); }
.home-page .hp-project-media:focus-visible { outline-offset: -8px; }
.home-page .hp-project-media:focus-visible::after {
    content: "";
    position: absolute;
    inset: 5px;
    z-index: 2;
    border: 3px solid var(--cg-focus);
    box-shadow: 0 0 0 2px #fff;
    pointer-events: none;
}

/* Feedback belongs to real links, not to the whole noninteractive card. */
.home-page :is(.hp-service, .hp-project) {
    transition: border-color 160ms ease, box-shadow 160ms ease;
}
.home-page :is(.hp-service, .hp-project):focus-within {
    border-color: var(--cg-primary);
}
@media (hover: hover) and (pointer: fine) {
    .home-page :is(.hp-service, .hp-project):has(a:hover) {
        border-color: var(--cg-primary);
        box-shadow: 0 4px 12px -6px rgba(24, 27, 35, .16);
    }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
    .home-page .hp-project-media img { transition: transform 220ms ease-out; }
    .home-page .hp-project-media:hover img { transform: scale(1.015); }
}
@media print {
    .home-page :is(.hp-service, .hp-project) { box-shadow: none; }
}

.home-page .hp-section { padding-block: 96px; }

/* Hero dimensions and browser frame follow the supplied export. */
.home-page .hp-hero { padding-bottom: 128px; border-bottom: 1px solid var(--hp-line); }
.home-page .hp-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px; }
.home-page .hp-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; min-width: 0; }
.home-page .hp-hero h1 { overflow-wrap: anywhere; }
.home-page .hp-hero-intro { max-width: 570px; color: var(--hp-muted); }
.home-page .hp-hero-note { display: flex; align-items: flex-start; gap: 10px; color: var(--hp-muted); font-size: 13px; }
.home-page .hp-hero-note i { color: var(--hp-purple); }
.home-page .hp-browser { position: relative; min-width: 0; background: #fff; overflow: hidden; }
.home-page .hp-browser-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 54px; padding: 12px 18px; border-bottom: 1px solid var(--hp-line); background: var(--hp-wash); font-size: 10px; }
.home-page .hp-browser-dots { display: flex; gap: 6px; }
.home-page .hp-browser-dots span { width: 9px; height: 9px; border-radius: 50%; background: #ff736e; }
.home-page .hp-browser-dots span:nth-child(2) { background: #ffc757; }
.home-page .hp-browser-dots span:nth-child(3) { background: #4fd687; }
.home-page .hp-browser-address { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid var(--hp-line); border-radius: 5px; background: #fff; }
.home-page .hp-browser-image { aspect-ratio: 16 / 11; background: var(--hp-panel); }
.home-page .hp-browser-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.home-page .hp-browser figcaption { position: absolute; bottom: 0; inset-inline: 0; display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 32px 16px 14px; color: #fff; background: linear-gradient(transparent, rgba(13, 15, 23, 0.92)); background-color: var(--cg-image-scrim); font-size: 12px; font-weight: 700; }
.home-page .hp-browser figcaption span:last-child { font-size: 10px; font-weight: 500; }

/* Section headings, services and alternating CMS project rows. */
.home-page .hp-section-heading { margin-bottom: 64px; }
.home-page .hp-section-heading > p:not(.hp-eyebrow), .home-page .hp-section-heading > div > p:not(.hp-eyebrow) { max-width: 650px; margin-top: 16px; color: var(--hp-muted); }
.home-page .hp-split-heading { display: grid; grid-template-columns: 7fr 5fr; align-items: end; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--hp-line); }
.home-page .hp-split-heading > p { margin-top: 0; }
.home-page .hp-heading-with-link { display: flex; justify-content: space-between; align-items: end; gap: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--hp-line); }
.home-page .hp-heading-with-link .hp-text-link { flex-shrink: 0; }
.home-page .hp-service-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
.home-page .hp-service { grid-column: span 6; display: flex; flex-direction: column; justify-content: space-between; min-height: 260px; }
.home-page .hp-service:first-child { grid-column: span 7; min-height: 310px; }
.home-page .hp-service:nth-child(2) { grid-column: span 5; min-height: 310px; }
.home-page .hp-service:last-child:nth-child(odd) { grid-column: 1 / -1; }
.home-page .hp-service-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; color: var(--hp-purple); font-size: 11px; font-weight: 700; }
.home-page .hp-service-top span { padding: 4px 10px; border-radius: 999px; background: #f1eeff; text-transform: uppercase; letter-spacing: 0.06em; }
.home-page .hp-service p { max-width: 65ch; }
.home-page .hp-work { background: var(--hp-wash); border-block: 1px solid var(--hp-line); }
.home-page .hp-work-list { display: grid; gap: 64px; }
.home-page .hp-project { display: grid; grid-template-columns: 7fr 5fr; overflow: hidden; }
.home-page .hp-project-media { position: relative; display: block; min-width: 0; min-height: 460px; background: var(--hp-panel); }
.home-page .hp-project-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.home-page .hp-media-label { position: absolute; top: 20px; left: 20px; padding: 6px 12px; border: 1px solid var(--hp-line); border-radius: 999px; background: rgba(255, 255, 255, 0.96); color: var(--hp-purple); font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.home-page .hp-project-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 48px; min-width: 0; }
.home-page .hp-project-category { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 16px; text-transform: uppercase; }
.home-page .hp-project-category span { color: var(--hp-purple); }
.home-page .hp-project h3 { margin-bottom: 16px; overflow-wrap: anywhere; }
.home-page .hp-feature-list { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; font-size: 12px; line-height: 1.65; color: var(--hp-muted); }
.home-page .hp-feature-list li { display: flex; align-items: flex-start; gap: 8px; }
.home-page .hp-feature-list i { color: var(--hp-purple); }
.home-page .hp-project-bottom { display: grid; gap: 16px; padding-top: 24px; border-top: 1px solid var(--hp-line); }
.home-page .hp-technologies { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.home-page .hp-project-reverse { grid-template-columns: 5fr 7fr; }
.home-page .hp-project-reverse .hp-project-media { order: 2; }
.home-page .hp-project-reverse .hp-project-copy { order: 1; }
.home-page .hp-image-fallback { display: grid; height: 100%; padding: 32px; place-items: center; color: var(--hp-purple); font-size: 24px; font-weight: 700; }

/* The process and studio message remain authored by the existing CMS. */
.home-page .hp-process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.home-page .hp-process-grid > li { display: flex; flex-direction: column; align-items: start; gap: 20px; min-width: 0; min-height: 280px; }
.home-page .hp-stage-number { color: var(--hp-purple); font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.home-page .hp-process-link { margin-top: 24px; }
.home-page .hp-about { background: var(--hp-dark); color: #eff0fc; }
.home-page .hp-about-grid { display: grid; grid-template-columns: 5fr 7fr; align-items: start; gap: 64px; }
.home-page .hp-about-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.home-page .hp-about .hp-eyebrow { margin-bottom: 0; padding: 5px 10px; border: 1px solid #353744; border-radius: 999px; background: #1b1e28; color: #e3dfff; font-size: var(--cg-text-label); }
.home-page .hp-about-copy > p:not(.hp-eyebrow) { color: #d2d3db; }
.home-page .hp-accountability h3 { margin-bottom: 12px; color: #e3dfff; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.home-page .hp-accountability p { color: #c0c1ce; }
.home-page .hp-trust-list { display: grid; gap: 20px; }
.home-page .hp-trust-list article { display: flex; align-items: start; gap: 20px; min-width: 0; }
.home-page .hp-trust-icon { display: grid; place-items: center; }
.home-page .hp-trust-list h3 { margin-bottom: 8px; }

.home-page .hp-review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.home-page .hp-review { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-width: 0; }
.home-page .hp-quote-mark { color: var(--hp-purple); font-size: 24px; }
.home-page .hp-review blockquote { margin: 12px 0 0; color: var(--hp-ink); }
.home-page .hp-review-author { display: flex; align-items: center; gap: 12px; padding-top: 24px; border-top: 1px solid var(--hp-line); }
.home-page .hp-avatar { display: grid; flex: 0 0 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--hp-purple-soft); color: var(--hp-purple); font-size: 13px; font-weight: 700; }
.home-page .hp-review-author > div { min-width: 0; }
.home-page .hp-review-author strong, .home-page .hp-review-author span:not(.hp-avatar) { display: block; overflow-wrap: anywhere; }
.home-page .hp-review-author strong { font-size: 13px; }
.home-page .hp-review-author span:not(.hp-avatar) { margin-top: 3px; font-size: 11px; line-height: 1.5; color: var(--hp-muted); }
.home-page .hp-contact-panel { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 64px; background: var(--hp-panel); text-align: center; }
.home-page .hp-contact-panel .hp-eyebrow { margin: 0; }
.home-page .hp-contact-panel h2 { max-width: 650px; }
.home-page .hp-contact-panel > p:not(.hp-eyebrow) { max-width: 570px; color: var(--hp-muted); }
.home-page .hp-contact-panel .hp-actions { justify-content: center; margin-top: 8px; }

.home-page .hp-empty { padding-block: 96px; }

@media (max-width: 1199.98px) {
    .home-page .hp-project-copy { padding: 32px; }
}
@media (max-width: 991.98px) {
    .home-page .hp-section { padding-block: 72px; }
    .home-page .hp-hero { padding-bottom: 80px; }
    .home-page .hp-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .home-page .hp-hero h1 { max-width: 780px; }
    .home-page .hp-split-heading { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .home-page .hp-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
    .home-page .hp-service, .home-page .hp-service:first-child, .home-page .hp-service:nth-child(2) { grid-column: span 1; }
    .home-page .hp-service:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .home-page .hp-project, .home-page .hp-project-reverse { grid-template-columns: minmax(0, 1fr); }
    .home-page .hp-project-media, .home-page .hp-project-reverse .hp-project-media { order: 0; min-height: 0; aspect-ratio: 16 / 10; }
    .home-page .hp-project-copy, .home-page .hp-project-reverse .hp-project-copy { order: 1; padding: 40px; }
    .home-page .hp-project-media img { object-fit: cover; object-position: top; }
    .home-page .hp-process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-page .hp-about-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .home-page .hp-about-copy { max-width: 650px; }
}
@media (max-width: 767.98px) {
    .home-page .hp-section { padding-block: 56px; }
    .home-page .hp-section-heading { margin-bottom: 36px; }
    .home-page .hp-hero { padding-bottom: 64px; }
    .home-page .hp-heading-with-link { flex-direction: column; align-items: flex-start; gap: 20px; }
    .home-page .hp-service-grid, .home-page .hp-review-grid { grid-template-columns: minmax(0, 1fr); }
    .home-page .hp-service, .home-page .hp-service:first-child, .home-page .hp-service:nth-child(2) { min-height: 0; }
    .home-page .hp-project-copy, .home-page .hp-project-reverse .hp-project-copy { padding: 28px; }
    .home-page .hp-work-list { gap: 32px; }
    .home-page .hp-trust-list article { gap: 16px; }
    .home-page .hp-contact-panel { padding: 40px 24px; gap: 20px; }
    .home-page .hp-contact-panel .hp-actions { width: 100%; }
}
@media (max-width: 575.98px) {
    .home-page .hp-process-grid { grid-template-columns: minmax(0, 1fr); }
    .home-page .hp-process-grid > li { min-height: 0; gap: 16px; }
    .home-page .hp-browser-bar { padding-inline: 12px; gap: 8px; }
    .home-page .hp-browser-status { display: none; }
    .home-page .hp-browser figcaption { font-size: 11px; }
    .home-page .hp-browser figcaption span:last-child { display: none; }
    .home-page .hp-hero-copy .hp-actions { width: 100%; }
    .home-page .hp-hero-copy .hp-button { flex: 1 1 auto; }
    .home-page .hp-contact-panel .hp-button { width: 100%; }
}
