/* Homepage rhythm and typography. */
.section-space {
    padding-block: clamp(80px, 9vw, 144px);
}

.section-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 64px;
    padding-bottom: 16px;
    border-bottom: var(--border);
    color: var(--color-muted);
    font-size: 10px;
    letter-spacing: 0.15em;
}

.section-label > span:last-child {
    font-size: 20px;
    line-height: 1;
}

.section-space h2 {
    max-width: 720px;
    font-family: var(--font-heading);
    font-size: clamp(52px, 6.2vw, 92px);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 0.99;
}

/* Blueprint scene. The media has its own area: no assembly parts are cropped. */
.hero {
    background: var(--color-blue);
}

.hero-scene {
    position: relative;
    overflow: clip;
    padding-top: calc(var(--header-height) + var(--admin-offset));
    background: linear-gradient(110deg, #08294e 0%, #073568 62%, #0c3e70 100%);
}

.hero-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.5fr;
    align-items: center;
    column-gap: 32px;
    padding-top: clamp(48px, 6vh, 88px);
}

.hero-intro {
    position: relative;
    z-index: 2;
    padding-bottom: 40px;
}

.hero-intro .eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.tiny-cross {
    font-size: 20px;
    line-height: 1;
}

.hero h1 {
    max-width: 560px;
    font-family: var(--font-heading);
    font-size: clamp(64px, 7.5vw, 120px);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 0.94;
}

.hero-description {
    max-width: 340px;
    margin-top: 24px;
    color: #d0dce6;
    font-size: 13px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 24px;
}

.hero-visual {
    min-width: 0;
}

.technical-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #c3d0df;
    font-size: 9px;
    letter-spacing: 0.12em;
}

.hero-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid rgb(241 240 233 / 25%);
    background-color: var(--color-blue);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.hero-media::before,
.hero-media::after {
    position: absolute;
    z-index: 3;
    width: 12px;
    height: 12px;
    border-color: var(--color-text);
    border-style: solid;
    content: '';
    pointer-events: none;
}

.hero-media::before {
    top: -1px;
    left: -1px;
    border-width: 1px 0 0 1px;
}

.hero-media::after {
    right: -1px;
    bottom: -1px;
    border-width: 0 1px 1px 0;
}

.hero-still,
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-video {
    position: absolute;
    inset: 0;
    visibility: hidden;
}

.hero.is-loading .hero-video,
.hero.is-scrubbing .hero-video {
    visibility: visible;
}

.hero.is-loading .hero-still,
.hero.is-scrubbing .hero-still {
    visibility: hidden;
}

.visual-note {
    margin-top: 12px;
    color: #c3d0df;
    font-size: 10px;
}

.hero-bottom {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 0.9fr 1.5fr;
    gap: 32px;
    align-items: start;
    padding-block: 24px 32px;
    border-top: var(--border);
}

.scroll-cue {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 10px;
}

.scroll-cue > span:first-child {
    font-size: 24px;
}

.cue-motion {
    display: none;
}

.hero-stories {
    display: grid;
    gap: 24px;
}

.hero-story {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.story-number {
    flex-shrink: 0;
    padding-top: 4px;
    color: #c3d0df;
    font-size: 9px;
    letter-spacing: 0.1em;
}

.hero-story h2 {
    font-size: 20px;
    letter-spacing: -0.035em;
}

.hero-story p {
    margin-top: 8px;
    color: #c3d0df;
    font-size: 11px;
}

/* Motion layout exists only after video is usable. No blank scroll fallback. */
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
    .hero.is-scrubbing {
        height: 360svh;
    }

    .is-scrubbing .hero-scene {
        position: sticky;
        top: var(--admin-offset);
        height: calc(100svh - var(--admin-offset));
        min-height: 0;
        padding-top: var(--header-height);
    }

    .is-scrubbing .hero-layout {
        height: 100%;
        grid-template-rows: 1fr auto;
        padding-top: 24px;
    }

    .is-scrubbing .hero-stories {
        display: grid;
    }

    .is-scrubbing .hero-story {
        grid-area: 1 / 1;
        opacity: 0;
        transform: translateY(8px);
    }

    .is-scrubbing.stage-1 .story-1,
    .is-scrubbing.stage-2 .story-2,
    .is-scrubbing.stage-3 .story-3 {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .is-scrubbing .cue-static {
        display: none;
    }

    .is-scrubbing .cue-motion {
        display: inline;
    }
}

/* Services: editorial introduction with native expanding rows. */
.services-layout,
.approach-layout,
.enquiry-layout {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(48px, 9vw, 144px);
}

.section-intro > p {
    max-width: 350px;
    margin-block: 32px 16px;
    color: var(--color-muted);
    font-size: 14px;
}

.services-detail {
    width: 200px;
    margin-top: 40px;
}

.services-detail img {
    width: 100%;
    aspect-ratio: 1.6;
    object-fit: cover;
}

.service {
    border-top: var(--border);
}

.service:last-of-type {
    border-bottom: var(--border);
}

.service summary {
    display: grid;
    min-height: 108px;
    grid-template-columns: 32px 1fr 24px;
    align-items: center;
    gap: 20px;
    padding-block: 24px;
    font-size: clamp(20px, 2.3vw, 32px);
    letter-spacing: -0.04em;
    line-height: 1.2;
    list-style: none;
}

.service summary::-webkit-details-marker {
    display: none;
}

.item-number {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0;
}

.service .item-number {
    color: var(--color-accent);
}

.accordion-icon {
    position: relative;
    width: 20px;
    height: 20px;
}

.accordion-icon::before,
.accordion-icon::after {
    position: absolute;
    top: 9px;
    left: 2px;
    width: 16px;
    height: 1px;
    background: currentColor;
    content: '';
}

.accordion-icon::after {
    transform: rotate(90deg);
}

.service[open] .accordion-icon::after {
    transform: rotate(0);
}

.service-body {
    padding: 0 40px 32px 52px;
}

.service-body p {
    max-width: 410px;
    color: var(--color-muted);
    font-size: 14px;
}

.service-body a {
    margin-top: 16px;
    font-size: 12px;
}

.service-footnote {
    margin-top: 24px;
    color: var(--color-muted);
    font-size: 11px;
}

/* Asymmetric detail gallery. */
.details-section {
    background: var(--color-surface);
}

.details-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 64px;
    margin-bottom: 64px;
}

.details-heading-row h2 {
    max-width: 680px;
}

.details-heading-row > p {
    max-width: 250px;
    color: var(--color-muted);
    font-size: 13px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr;
    gap: 56px 48px;
    align-items: start;
}

.detail-figure img {
    width: 100%;
    object-fit: cover;
}

.detail-paint img {
    aspect-ratio: 1.1;
}

.detail-wheel {
    padding-top: 112px;
}

.detail-wheel img {
    aspect-ratio: 0.95;
}

.detail-interior {
    grid-column: 1 / -1;
    width: 76%;
    margin-left: auto;
}

.detail-interior img {
    aspect-ratio: 2.2;
}

.detail-figure figcaption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    font-size: 12px;
}

.detail-figure figcaption > span:last-child {
    color: var(--color-muted);
    font-size: 9px;
    letter-spacing: 0.1em;
}

.gallery-notice {
    margin-top: 40px;
    color: var(--color-muted);
    font-size: 12px;
}

/* Light section: inspection and craft, expressed through type. */
.approach {
    color: var(--color-bg);
    background: var(--color-light);
    --border: 1px solid rgb(16 17 18 / 25%);
}

.approach .section-label {
    color: #4d504c;
}

.approach-signature {
    margin-top: 64px;
    font-weight: 750;
    font-size: 18px;
}

.approach-signature span {
    margin-left: 16px;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.12em;
}

.approach-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.approach-list li {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 24px;
    padding-block: 32px;
    border-top: var(--border);
}

.approach-list li:first-child {
    padding-top: 16px;
}

.approach-list h3 {
    font-size: 28px;
    letter-spacing: -0.04em;
}

.approach-list p {
    max-width: 440px;
    margin-top: 16px;
    color: #4d504c;
    font-size: 14px;
}

/* Local-only service selection. No form submission or contact collection. */
.enquiry-layout > div > p {
    max-width: 360px;
    margin-top: 32px;
    color: var(--color-muted);
    font-size: 14px;
}

.selection-panel {
    padding-top: 8px;
}

.selection-panel h3 {
    margin-bottom: 32px;
    color: var(--color-accent);
}

.selection-panel label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-muted);
    font-size: 12px;
}

.selection-panel select {
    width: 100%;
    min-height: 60px;
    margin-bottom: 24px;
    padding: 16px;
    border: var(--border);
    border-radius: 0;
    color: var(--color-text);
    background: var(--color-surface);
    font-size: 16px;
    color-scheme: dark;
}

.selection-panel .button {
    width: 100%;
    margin-top: 8px;
}

.selection-panel .demo-notice {
    margin-top: 20px;
    font-size: 12px;
}

.selection-result:not(:empty) {
    padding: 24px;
    border-left: 2px solid var(--color-accent);
    color: var(--color-text);
    background: var(--color-surface);
}

/* Tablet keeps the entire blueprint inside its frame. */
@media (min-width: 768px) and (max-width: 1100px) {
    .hero-layout {
        grid-template-columns: 0.9fr 1.2fr;
        gap: 24px;
    }

    .hero h1 {
        font-size: clamp(64px, 7.6vw, 84px);
    }

    .hero-bottom {
        grid-template-columns: 0.9fr 1.2fr;
        gap: 24px;
    }

    .services-layout,
    .approach-layout,
    .enquiry-layout {
        gap: 48px;
    }
}

/* Static scenes on phones: compact story, full uncropped finished car. */
@media (max-width: 767px) {
    .section-space {
        padding-block: 72px;
    }

    .section-label {
        margin-bottom: 40px;
    }

    .section-space h2 {
        font-size: clamp(52px, 13vw, 64px);
    }

    .hero-layout {
        display: block;
        padding-top: 40px;
    }

    .hero-intro {
        padding-bottom: 40px;
    }

    .hero h1 {
        max-width: 400px;
        font-size: clamp(52px, 14vw, 64px);
        line-height: 0.98;
    }

    .hero-description {
        max-width: 360px;
        margin-top: 24px;
        font-size: 14px;
    }

    .hero-actions {
        gap: 12px 24px;
    }

    .hero-visual {
        margin-inline: calc(-1 * var(--gutter));
    }

    .technical-label,
    .visual-note {
        margin-inline: var(--gutter);
    }

    .hero-media {
        border-inline: 0;
    }

    .hero-bottom {
        display: block;
        margin-top: 32px;
        padding-block: 24px 40px;
    }

    .hero-stories {
        gap: 24px;
        margin-top: 24px;
    }

    .hero-story {
        gap: 20px;
    }

    .hero-story h2 {
        font-size: 20px;
    }

    .hero-story p {
        font-size: 12px;
    }

    .services-layout,
    .approach-layout,
    .enquiry-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-intro > p {
        margin-top: 24px;
    }

    .services-detail {
        display: none;
    }

    .service summary {
        min-height: 88px;
        grid-template-columns: 24px 1fr 20px;
        gap: 16px;
        font-size: 24px;
    }

    .service-body {
        padding: 0 12px 32px 40px;
    }

    .details-heading-row {
        display: block;
        margin-bottom: 40px;
    }

    .details-heading-row > p {
        max-width: 300px;
        margin-top: 24px;
    }

    .detail-grid {
        display: block;
    }

    .detail-figure {
        width: 100%;
        margin: 0 0 40px;
        padding: 0;
    }

    .detail-paint img {
        aspect-ratio: 0.95;
    }

    .detail-wheel img {
        aspect-ratio: 1.15;
    }

    .detail-interior img {
        aspect-ratio: 1.5;
    }

    .approach-signature {
        margin-top: 32px;
    }
}

/* Without scripts the mobile navigation and all narrative text remain visible. */
body:not(:has(.navigation-ready)) .hero-scene {
    padding-top: 120px;
}

@media (max-width: 767px) {
    body:not(:has(.navigation-ready)) .hero-scene {
        padding-top: 248px;
    }
}

/* Keep the narrative inside shorter laptop screens as well. */
@media (min-width: 768px) and (max-height: 800px) {
    .hero.is-scrubbing h1 {
        font-size: clamp(56px, 10.8svh, 88px);
    }

    .is-scrubbing .hero-media {
        width: min(100%, calc((100svh - var(--admin-offset) - 300px) * 1.7778));
        margin-inline: auto;
    }

    .is-scrubbing .hero-intro {
        padding-bottom: 16px;
    }

    .is-scrubbing .hero-intro .eyebrow {
        margin-bottom: 16px;
    }

    .is-scrubbing .hero-description,
    .is-scrubbing .hero-actions {
        margin-top: 16px;
    }
}
