/* Reading width and rhythm for the public pages inside the studio site. */
main [id] { scroll-margin-top: calc(var(--header) + 1rem); }
main p, main li, main h1, main h2, main h3 { overflow-wrap: break-word; }

.illustrated-intro, .service-cover {
    color: white;
    background: var(--purple);
}
.intro-spread, .service-cover-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 6rem);
    padding-block: clamp(2.75rem, 5vw, 5.25rem);
}
.illustrated-intro .kicker { color: #e1d9ff; }
.illustrated-intro h1, .service-cover h1 {
    margin-top: 1rem;
    font-size: clamp(2.65rem, 4.9vw, 5.1rem);
    line-height: 1.04;
}
.illustrated-intro .lead, .service-cover .lead {
    color: #eeeaff;
    max-width: 52ch;
    margin-top: 1.2rem;
}
.intro-action, .service-cover .btn { margin-top: 1.8rem; }
.intro-art { margin: 0; min-width: 0; }
.intro-art img, .service-visual img { width: 100%; height: auto; }
.expertise-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .25rem 1.25rem;
    padding-block: 1.1rem;
}
.expertise-nav a, .service-parent {
    font-weight: 650;
    padding-block: .45rem;
    text-underline-offset: .28em;
}
.expertise-nav a:hover, .service-parent { text-decoration: underline; }
.service-overview {
    grid-template-columns: minmax(160px, .68fr) minmax(0, 1.25fr) minmax(0, .8fr);
    align-items: center;
}
.deliverable-list, .pilot-check {
    border-left: 3px solid #4a2d9d;
    padding: .4rem 0 .4rem 1.2rem;
}
.deliverable-list h3 { font-size: 1.1rem; }
.deliverable-list li { line-height: 1.5; }
.directory-band { background: #f1eef8; }
.directory-band .catalog { border: 0; padding-block: clamp(3rem, 5vw, 6rem); }
.directory-heading {
    display: grid;
    grid-template-columns: 1.2fr .85fr;
    align-items: end;
    gap: 1.5rem 8%;
}
.directory-heading p { max-width: 60ch; }
.directory-heading label { display: block; font-weight: 650; margin-bottom: .35rem; }
.directory-field { display: flex; }
.directory-field button { border: 0; background: var(--purple); color: white; min-width: 48px; font-size: 1.35rem; }
.directory-heading input {
    min-width: 0;
    min-height: 48px;
    width: 100%;
    padding: .65rem .8rem;
    color: var(--ink);
    border: 1px solid #827793;
    border-radius: 0;
    background: white;
}
.directory-band ul { margin-top: 2rem; gap: 0 2rem; }
.directory-band li { border-color: #d3cbdf; }
.directory-band li a { padding-block: .9rem; }
#directory-clear {
    width: fit-content;
    padding: .55rem .9rem;
    border: 1px solid #766490;
    background: white;
    color: var(--purple);
    margin-top: .6rem;
}
#directory-status:empty { margin: 0; }
.service-cover-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
.service-parent { color: #e9e2ff; font-size: .94rem; }
.brief-card {
    color: var(--ink);
    background: #f1edff;
    padding: clamp(1.4rem, 3vw, 3rem);
    border-top: 5px solid var(--yellow);
}
.brief-card h2, .enquiry-guide h2, .project-form h2, .pilot-check h3 {
    font-size: clamp(1.2rem, 1.7vw, 1.75rem);
    line-height: 1.25;
}
.brief-card p, .reading-block p, .project-study p { margin-top: .85rem; }
.service-reading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 8vw, 8rem);
    padding-block: clamp(3rem, 6vw, 7rem);
}
.reading-block { border-top: 2px solid var(--purple); padding-top: 1.5rem; }
.reading-block h2, .reading-guide h2, .project-study h2 {
    font-size: clamp(1.65rem, 2.6vw, 2.85rem);
    line-height: 1.13;
}
.reading-block p, .project-study p, .reading-disclosure p { line-height: 1.72; }
.case-studies { padding-block: 1rem 3rem; }
.project-study, .reading-guide, .document-layout {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: clamp(1.3rem, 7vw, 7rem);
}
.project-study { border-bottom: 1px solid var(--line); padding-block: clamp(2.5rem, 4vw, 4.5rem); }
.project-study .kicker { margin-bottom: .9rem; color: var(--purple); }
.project-study > div > p:first-child { margin-top: 0; }
.pilot-check { margin-top: 1.5rem; padding: 1.15rem 1.4rem; background: #f4f1fa; }
.pilot-check p { margin-top: .45rem; }
.note-steps { padding-left: 1.55rem; }
.note-steps li { margin-bottom: .75rem; padding-left: .2rem; }
.note-steps li::marker { color: var(--purple); font-weight: 700; }
.editorial-line { padding-top: 2.4rem; }
.editorial-line p { max-width: 75ch; }
.reading-guide { padding-block: clamp(2.8rem, 5vw, 6rem); border-top: 1px solid var(--line); }
.editorial-line + .reading-guide { border-top: 0; }
.reading-disclosure { border-top: 1px solid #c4bfce; }
.reading-disclosure:last-child { border-bottom: 1px solid #c4bfce; }
.reading-disclosure summary {
    font-weight: 650;
    padding: 1rem 0;
    line-height: 1.5;
    cursor: pointer;
}
.reading-disclosure summary::marker { color: var(--purple); }
.reading-disclosure p { padding: 0 0 1.3rem; }
.enquiry-layout {
    grid-template-areas: "intro form" "guide form";
    grid-template-rows: auto 1fr;
    gap: 2rem clamp(2rem, 7vw, 7rem);
}
.enquiry-layout > header { grid-area: intro; }
.enquiry-layout .project-form { grid-area: form; min-width: 0; border-top: 4px solid var(--purple); }
.enquiry-layout h1 { font-size: clamp(2.55rem, 4.7vw, 4.9rem); }
.enquiry-guide { grid-area: guide; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.enquiry-guide ul { margin: .65rem 0 1.45rem; padding-left: 1.2rem; }
.enquiry-guide li { margin-bottom: .4rem; }
.enquiry-guide li::marker { color: var(--purple); }
.enquiry-guide p { margin-block: .7rem 1rem; }
.field-hint { font-size: .94rem; margin-bottom: .55rem; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--purple); }
.document-layout { grid-template-columns: minmax(180px, .4fr) minmax(0, 1.4fr); }
.document-nav { padding: 1.25rem; background: #f4f1f9; }
.document-nav h2 { font-size: 1.12rem; margin-bottom: .5rem; }
.document-nav a { display: block; padding: .5rem 0; }
.document-nav a[aria-current], .document-nav a:hover { color: var(--purple); text-decoration: underline; text-underline-offset: .2em; }
.legal { max-width: 76ch; }
.confirmation { padding-block: clamp(4rem, 8vw, 9rem); }
.confirmation h1 { max-width: 22ch; margin-block: 1rem; }
.receipt-mark { width: 53px; height: 53px; display: grid; place-items: center; color: #25165e; background: #eeea86; }
.receipt-links { display: flex; align-items: center; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.7rem; }

@media screen and (prefers-reduced-motion: no-preference) {
    .illustrated-intro h1, .service-cover h1, .confirmation h1 { animation: studio-rise 450ms var(--ease-settle); }
    .intro-art img { animation: intro-image-settle 900ms var(--ease-settle); }
    .brief-card { animation: studio-rise 480ms var(--ease-settle) 65ms backwards; }
    .receipt-mark path { stroke-dasharray: 1; animation: receipt-check 480ms var(--ease-settle); }
    .field input, .field textarea, .field select, .directory-heading input { transition: border-color 160ms; }
    .reading-disclosure[open] p { --rise-distance: 5px; animation: studio-rise 180ms var(--ease-settle); }
    @keyframes intro-image-settle { from { transform: scale(.985); } to { transform: none; } }
    @keyframes receipt-check { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
}
@media (min-width: 850px) { .document-nav { position: sticky; top: calc(var(--header) + 1rem); } }
@media (max-width: 900px) {
    .service-overview { grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: 1.3rem 2rem; }
    .deliverable-list { grid-column: 2; }
}
@media (min-width: 761px) and (max-width: 960px) {
    .enquiry-layout {
        grid-template-columns: minmax(0, 1.45fr) minmax(0, .85fr);
        grid-template-areas: "intro intro" "form guide";
        grid-template-rows: auto;
        gap: 1.75rem;
    }
    .enquiry-layout .contact-side { margin-top: 1rem; }
}
@media (max-width: 760px) {
    .intro-spread, .service-cover-grid, .service-reading, .directory-heading, .project-study, .reading-guide, .document-layout, .service-overview { grid-template-columns: minmax(0, 1fr); }
    .intro-spread { gap: 1.6rem; padding-bottom: 1.5rem; }
    .expertise-nav { justify-content: start; }
    .deliverable-list { grid-column: auto; }
    .enquiry-layout { grid-template-areas: "intro" "form" "guide"; grid-template-rows: auto; }
    .document-layout { gap: 1.4rem; }
    .document-nav a { display: inline-block; margin-right: 1rem; }
}
@media (max-width: 36rem) {
    .illustrated-intro h1, .service-cover h1, .enquiry-layout h1 { font-size: clamp(1.95rem, 9vw, 2.75rem); }
    .enquiry-layout { padding-block: 2rem; gap: 1.5rem; }
    .enquiry-layout .contact-side { margin-top: 1.15rem; }
    .project-form .btn { width: 100%; }
    .expertise-nav a, .document-nav a { min-height: 44px; display: inline-flex; align-items: center; }
}
.newsletter-signup { padding-bottom: clamp(3rem, 6vw, 6rem); }
.newsletter-signup form { max-width: 38rem; }
.newsletter-signup > a { margin-top: 1.5rem; }
.ownership-section > .lead { margin-top: 1rem; }
.sample-brief blockquote { margin: 0 0 1rem; padding-inline-start: 1.2rem; border-inline-start: 3px solid var(--purple); font-size: clamp(1.06rem, 1.6vw, 1.3rem); line-height: 1.6; }
.analytics-visual { display: grid; place-items: center; aspect-ratio: 3 / 2; background: #e6e3fa; color: var(--purple); }
.analytics-visual svg { width: 42%; height: auto; }
.service-overview h2 a:hover { text-decoration: underline; text-underline-offset: .12em; }
