.custom-page { letter-spacing: 0; }
.custom-page :is(h1, h2, h3, .eyebrow) { letter-spacing: 0; }
.custom-page .section { padding-block: 4.5rem; }
.custom-page [id] { scroll-margin-top: 2rem; }
.custom-page p, .custom-page dd { color: var(--color-muted); }
.custom-page h2 { font-size: 2.75rem; line-height: 1.15; }
.custom-page h3 { font-size: 1.2rem; line-height: 1.35; }
.custom-page .button { gap: .65rem; }
.custom-page .button > span { flex-shrink: 0; }
.custom-page .text-link { line-height: 1.55; }
.custom-page figure { min-width: 0; margin: 0; }
.custom-page figcaption { padding: .6rem 2px 0; color: var(--color-muted); font-size: .8rem; line-height: 1.5; }

.custom-hero { color: var(--color-white); background: #0b2f47; }
.custom-hero__content { padding-block: 3.25rem 2rem; text-align: center; }
.custom-hero .eyebrow { margin-bottom: .75rem; color: #9ddcff; }
.custom-hero h1 { max-width: none; margin-bottom: 1rem; font-size: 3.75rem; line-height: 1.1; color: var(--color-white); }
.custom-hero .custom-hero__promise { margin: 0 auto .8rem; color: #9ddcff; font-size: 1.3rem; font-weight: 600; }
.custom-hero .custom-hero__lead { max-width: 47rem; margin: 0 auto 1.5rem; color: #d6e5ee; font-size: 1.08rem; line-height: 1.7; }
.custom-hero .button-group { justify-content: center; }
.custom-hero__scenes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; max-width: 66rem; margin: 2rem auto 0; }
.custom-hero__scene { display: block; width: calc(100% - 4px); aspect-ratio: 16 / 9; margin: 2px; overflow: hidden; border: 1px solid var(--color-primary); border-radius: 5px; background: #fff; }
.custom-hero__scene img { display: block; width: 100%; height: 100%; object-fit: contain; }
.custom-index { border-block: 1px solid var(--color-border); }
.custom-index__inner { display: flex; justify-content: center; flex-wrap: wrap; gap: .25rem 2.5rem; padding-block: .5rem; }
.custom-index a { padding-block: .65rem; color: var(--color-primary-dark); font-size: .9rem; font-weight: 700; text-decoration: none; }
.custom-index a:hover { text-decoration: underline; text-underline-offset: .3rem; }

.custom-heading { max-width: 46rem; margin-bottom: 2.25rem; }
.custom-heading > p:last-child { margin-bottom: 0; }
.custom-scope__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 4.5rem; align-items: start; }
.custom-scope .custom-heading { margin: 0; }
.custom-scope h2 { max-width: 16ch; }
.custom-scope__list { margin: 0; }
.custom-scope__list > div { padding-block: 1.1rem; border-bottom: 1px solid var(--color-border); }
.custom-scope__list > div:first-child { padding-top: 0; }
.custom-scope__list dt { margin-bottom: .35rem; font-weight: 700; }
.custom-scope__list dd { margin: 0; font-size: .95rem; }
.custom-process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; list-style: none; }
.custom-process li { position: relative; min-height: 14rem; overflow: hidden; padding: 1.2rem 1rem 1rem; background: rgba(255, 255, 255, .9); border: 1px solid var(--color-border); border-top: 2px solid var(--color-primary); border-radius: 8px; }
.custom-process li:nth-child(even) { border-top-color: var(--color-accent); }
.custom-process li::before { content: ""; position: absolute; inset: 0; z-index: 0; background-repeat: no-repeat; background-position: right bottom; background-size: cover; opacity: .7; }
.custom-process li:nth-child(1)::before { background-image: url("images/process/step-discovery.webp"); }
.custom-process li:nth-child(2)::before { background-image: url("images/process/step-idea.webp"); }
.custom-process li:nth-child(3)::before { background-image: url("images/process/step-design.webp"); }
.custom-process li:nth-child(4)::before { background-image: url("images/process/step-delivery.webp"); }
.custom-process li:nth-child(5)::before { background-image: url("images/process/step-launch.webp"); }
.custom-process__number, .custom-process h3, .custom-process p { position: relative; z-index: 1; }
.custom-process__number { display: block; margin-bottom: 1rem; color: var(--color-primary-dark); font: 2.25rem/1 var(--font-brand); }
.custom-process h3 { max-width: 11rem; font-size: 1.1rem; }
.custom-process p { max-width: 13rem; margin-bottom: 0; font-size: .93rem; }
.custom-process__note { margin: 2rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--color-border); font-size: .88rem; }
.custom-learning { margin-top: 2.5rem; padding-left: 1.5rem; border-left: 3px solid var(--color-accent); }
.custom-learning p { max-width: 65rem; margin-bottom: .75rem; font-size: .95rem; }
.custom-learning .text-link { font-size: .85rem; }
.custom-environments__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.custom-environments figcaption strong, .custom-environments figcaption span { display: block; }
.custom-environments figcaption strong { color: var(--color-ink); font-size: .9rem; }
.custom-adaptation { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }
.custom-adaptation p { max-width: 65rem; font-size: .95rem; }
.custom-tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; }
.custom-tags li { padding: .25rem .65rem; border: 1px solid var(--color-border); border-radius: 5px; background: var(--color-surface-blue); color: var(--color-primary-dark); font-size: .82rem; }
.custom-case { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; align-items: start; padding-bottom: 3rem; margin-bottom: 3rem; border-bottom: 1px solid var(--color-border); }
.custom-case h3 { font: 2.4rem/1.15 var(--font-brand); margin-bottom: 1rem; }
.custom-case__decisions { margin: 1.5rem 0; }
.custom-case__decisions > div + div { margin-top: 1.2rem; }
.custom-case__decisions dt { font-weight: 700; margin-bottom: .3rem; }
.custom-case__decisions dd { margin: 0; font-size: .95rem; }
.custom-case__gallery { display: grid; gap: 1.25rem; }
.custom-shot { background: #fff; }

.custom-examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.custom-example { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--color-border); border-radius: 8px; background: var(--color-white); }
.custom-example__image { display: block; width: calc(100% - 4px); aspect-ratio: 16 / 9; margin: 2px; border: 1px solid var(--color-primary); border-radius: 5px; overflow: hidden; background: var(--color-white); }
.custom-example__image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.custom-example__image:hover { box-shadow: 0 0 0 2px var(--color-primary-light); }
.custom-example__copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 1.4rem; }
.custom-example .eyebrow { font-size: .72rem; margin-bottom: .65rem; }
.custom-example h3 { margin-bottom: .8rem; }
.custom-example p { font-size: .94rem; }
.custom-example .custom-example__note { font-size: .79rem; }
.custom-example .text-link { margin-top: auto; font-size: .9rem; }
.custom-status { display: inline-block; margin-bottom: .85rem; padding: .25rem .6rem; background: #fff0ef; color: #98241f; border: 1px solid #efc3bf; border-radius: 5px; font-size: .8rem; font-weight: 700; }
.custom-gallery-details { width: 100%; border-top: 1px solid var(--color-border); }
.custom-gallery-details summary { padding-top: .9rem; color: var(--color-primary-dark); font-size: .92rem; font-weight: 700; cursor: pointer; }
.custom-detail-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; padding-top: 1rem; }
.custom-keyskillz { display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--color-border); }
.custom-keyskillz > div { max-width: 42rem; min-width: 0; }
.custom-keyskillz p { margin-bottom: 0; font-size: .94rem; }
.custom-keyskillz .button { flex-shrink: 0; max-width: 23rem; }

.custom-contact { background: var(--color-surface-blue); border-top: 3px solid var(--color-accent); }
.custom-contact__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 4.5rem; align-items: center; }
.custom-contact p { max-width: 40rem; margin-bottom: 1.5rem; }
.custom-contact__brief { padding-left: 2.5rem; border-left: 1px solid var(--color-border); }
.custom-contact__brief ul { padding-left: 1.2rem; color: var(--color-muted); }
.custom-contact__brief li + li { margin-top: .65rem; }
.custom-contact__brief li::marker { color: var(--color-primary); }
.custom-ready { padding-block: 1.75rem; }
.custom-ready p { margin: 0; font-size: .92rem; }

@media (max-width: 62rem) {
    .custom-scope__grid, .custom-contact__grid { gap: 2.5rem; }
    .custom-process { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
    .custom-examples { gap: 1rem; }
    .custom-example__copy { padding: 1.1rem; }
    .custom-keyskillz { align-items: flex-start; flex-direction: column; gap: 1.25rem; }
    .custom-contact__brief { padding-left: 1.5rem; }
    .custom-case { gap: 2rem; }
    .custom-hero__scenes { gap: .75rem; }
}

@media (max-width: 48rem) {
    .custom-page .section { padding-block: 3rem; }
    .custom-page h2 { font-size: 2.2rem; }
    .custom-hero h1 { font-size: 2.65rem; }
    .custom-hero .custom-hero__lead { font-size: 1.08rem; }
    .custom-hero .custom-hero__promise { font-size: 1.15rem; }
    .custom-hero__content { padding-block: 2.5rem 1.5rem; }
    .custom-index__inner { justify-content: flex-start; gap: 0 1.4rem; }
    .custom-index a { font-size: .85rem; }
    .custom-scope__grid, .custom-contact__grid { grid-template-columns: 1fr; gap: 2rem; }
    .custom-scope h2 { max-width: none; }
    .custom-examples { grid-template-columns: 1fr; gap: 1.5rem; }
    .custom-environments__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .custom-case { grid-template-columns: 1fr; }
    .custom-case__gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
    .custom-example__copy { padding: 1.4rem; }
    .custom-contact__brief { padding: 1.5rem 0 0; border-left: 0; border-top: 1px solid var(--color-border); }
}

@media (max-width: 30rem) {
    .custom-hero h1 { font-size: 2.4rem; }
    .custom-hero .button-group { flex-direction: column; }
    .custom-hero__scenes { gap: .3rem; }
    .custom-process { grid-template-columns: 1fr; gap: 1.5rem; }
    .custom-contact .button, .custom-keyskillz .button { width: 100%; }
    .custom-case__gallery { grid-template-columns: 1fr; }
    .custom-environments__grid { gap: .75rem; }
}
