/* Inner pages share a white canvas, pale-blue surfaces and flexible content grids. */
.subhero {
    --sketch-border: #a7c5f5;
    --sketch-line: #5180cd;
    --sketch-soft: #dceafe;
    padding-block: 0 clamp(2.7rem, 5vw, 5rem);
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}
.subhero .breadcrumbs { width: 100%; margin: 0; padding-block: 1rem; border: 0; }
.subhero .breadcrumbs ol { gap: .25rem .6rem; }
.subhero .breadcrumbs li { display: flex; align-items: center; gap: .6rem; }
.subhero .breadcrumbs li + li::before { margin-inline-end: 0; }
.subhero .breadcrumbs a { text-decoration: none; }
.subhero .breadcrumbs a:hover { color: var(--gold); text-decoration: underline; }
.subhero .breadcrumbs li:last-child a { font-weight: 750; color: var(--ink); }
.subhero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.6rem, 4vw, 4.25rem);
    padding-top: clamp(.75rem, 2.5vw, 2.5rem);
}
.subhero-copy { min-width: 0; }
.subhero-copy h1 {
    max-width: 17ch;
    margin: .24em 0 .28em;
    font-size: clamp(2.3rem, 5.1vw, 5.5rem);
    line-height: 1.02;
    letter-spacing: -.062em;
    text-wrap: balance;
    overflow-wrap: anywhere;
}
.subhero-copy .hero-lead { max-width: 60ch; }
.subhero-copy .hero-actions { margin-top: clamp(1.05rem, 2.6vw, 1.8rem); }
.subhero-kicker {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    max-width: 100%;
    padding: .43rem .72rem;
    border: 1px solid #d5e3f9;
    border-radius: 100vw;
    background: #f4f8ff;
    color: var(--gold-dark);
    line-height: 1.35;
}
.subhero-kicker::before { content: ""; width: .43rem; height: .43rem; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.subhero-note {
    max-width: 58ch;
    margin: 1.05rem 0 0;
    padding-left: .85rem;
    border-left: 2px solid #a7c5f5;
    color: var(--muted);
    font-size: .88rem;
}
.subhero--simple .subhero-grid { grid-template-columns: minmax(0, 1fr); }
.subhero--simple h1 { max-width: 23ch; }
.subhero--error { padding-top: clamp(2.7rem, 5vw, 5rem); }
.subhero-art, .subhero-figure { margin: 0; min-width: 0; overflow: hidden; border-radius: 1.25rem; }
.subhero-art {
    display: grid;
    position: relative;
    isolation: isolate;
    place-items: center;
    width: 100%;
    aspect-ratio: 16 / 8.6;
    border: 1px solid #d6e5fb;
    background:
        linear-gradient(110deg, #fff0 55%, #d6e7ff7a),
        repeating-linear-gradient(90deg, #dbe8fb 0 1px, transparent 1px 27px),
        repeating-linear-gradient(#dbe8fb 0 1px, transparent 1px 27px),
        #eff6ff;
    color: var(--gold-dark);
}
.subhero-art--flow { background-color: #f5faff; }
.subhero-art--layers { background-color: #f0f6ff; }
.subhero-art--network { background-color: #f1f7ff; }
.subhero-sketch { display: block; width: min(100%, 730px); max-height: 100%; height: auto; }
.sketch-path { stroke: var(--sketch-line); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sketch-path--soft { stroke: var(--sketch-border); }
.sketch-shadow, .sketch-tint { fill: var(--sketch-soft); }
.sketch-panel { fill: white; stroke: var(--sketch-border); stroke-width: 1.45; }
.sketch-panel--strong { stroke: var(--sketch-line); }
.sketch-line { stroke: #b9cfee; stroke-width: 4; stroke-linecap: round; }
.sketch-dot { fill: #8eb5ec; }
.sketch-button, .sketch-node-main { fill: var(--gold); }
.sketch-halo { fill: #e9f3ff87; stroke: var(--sketch-border); stroke-width: 1; }
.sketch-nodes { fill: #fff; stroke: var(--sketch-line); stroke-width: 1.5; }
.subhero-art--stat .subhero-sketch { opacity: .58; transform: translateX(12%); }
.subhero-art-label {
    position: absolute;
    bottom: .62rem;
    left: .65rem;
    max-width: calc(100% - 1.3rem);
    padding: .31rem .57rem;
    border: 1px solid #cbdffb;
    border-radius: .35rem;
    background: #f9fcff;
    color: var(--gold-dark);
    font: 750 .63rem/1.4 var(--mono, monospace);
    text-transform: uppercase;
    letter-spacing: .08em;
}
.subhero-stat {
    position: absolute;
    bottom: .7rem;
    left: .7rem;
    max-width: calc(100% - 1.4rem);
    margin: 0;
    padding: clamp(.55rem, 1.8vw, 1.25rem);
    border: 1px solid #cbdffb;
    border-radius: .8rem;
    background: #f9fcff;
    color: var(--gold-dark);
}
.subhero-stat strong { display: block; font-size: clamp(2.25rem, 5.8vw, 5.6rem); letter-spacing: -.08em; line-height: .93; }
.subhero-stat span { display: block; margin-top: .38rem; color: var(--ink); font-size: .77rem; font-weight: 750; }
.subhero-figure img { display: block; width: 100%; height: auto; }
.subhero-figure figcaption { padding: .8rem 1rem; color: var(--muted); background: #f2f7ff; font-size: .82rem; }

.inner-soft-section { background: #f6f9ff; border-block: 1px solid #e5edf9; }
body:not(.page-template-home) main .section-head { display: block; margin-bottom: 0; }
body:not(.page-template-home) main .section-head > p { max-width: 55ch; margin-top: .85rem; }
.inner-heading, .inner-content-split, .inner-benefit-panel, .editorial-quote, .public-faq-grid {
    display: grid;
    align-items: start;
    gap: clamp(1.3rem, 4vw, 4rem);
}
.inner-heading { align-items: end; }
.inner-heading > p { max-width: 53ch; }
.inner-heading > .button { justify-self: start; }
.inner-card-grid { margin-top: clamp(1.55rem, 3.5vw, 2.8rem); }
.inner-list, .editorial-rows { padding: 0; list-style: none; }
.inner-card { min-width: 0; border-color: #dce6f3; background: #fff; }
.inner-card .number, .offer-card .number, .process-step .number {
    display: inline-grid;
    place-items: center;
    min-width: 2.2rem;
    min-height: 2rem;
    margin-bottom: .95rem;
    padding-inline: .45rem;
    border: 1px solid #d4e2f8;
    border-radius: .47rem;
    background: #edf4ff;
    color: var(--gold-dark);
}
.inner-card h3, .editorial-row h3, .offer-card h3, .process-step h3 { margin: 0 0 .52rem; overflow-wrap: break-word; }
.inner-card p, .editorial-row p { margin: 0; }
.inner-card a, .editorial-row a, .local-tech-list a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .23em;
}
.inner-card a:hover, .editorial-row a:hover, .local-tech-list a:hover { color: var(--gold); }
.offer-grid, .process-steps, .locations-grid { display: grid; gap: clamp(.72rem, 1.55vw, 1.3rem); margin-top: clamp(1.55rem, 3.5vw, 2.8rem); }
.offer-card, .process-step {
    min-width: 0;
    padding: clamp(1.05rem, 2.9vw, 2.4rem);
    border: 1px solid #dce6f3;
    border-radius: 1.05rem;
    background: #fff;
}
.offer-card { display: flex; align-items: flex-start; flex-direction: column; }
.offer-card p { max-width: 51ch; margin-bottom: clamp(1.05rem, 2vw, 1.6rem); }
.offer-card .button { margin-top: auto; }
.offer-card--primary { background: linear-gradient(140deg, #f7faff 20%, #edf4ff); border-color: #d0e0f8; }
.offer-card--primary h3 { font-size: clamp(1.6rem, 2.6vw, 2.8rem); }
.process-step { border-top: 2px solid #8eb7fa; }
.process-step strong { display: block; margin-top: .9rem; color: var(--gold-dark); font-size: .91rem; }
.editorial-rows { margin: 0; border-top: 1px solid #dce6f3; }
.editorial-row {
    display: grid;
    grid-template-columns: 2.1rem minmax(0, 1fr);
    align-items: baseline;
    gap: .65rem 1rem;
    padding: clamp(.95rem, 2.3vw, 1.6rem) 0;
    border-bottom: 1px solid #dce6f3;
}
.editorial-rows--boxed { border: 1px solid #dce6f3; border-radius: 1.05rem; padding-inline: clamp(.8rem, 2.3vw, 1.7rem); }
.editorial-rows--boxed .editorial-row:last-child { border-bottom: 0; }
.editorial-row--wide { grid-template-columns: minmax(0, 1fr); }
.editorial-row--wide .eyebrow { margin-bottom: .6rem; }
.editorial-row--text p { font-size: clamp(.98rem, 1.45vw, 1.14rem); color: var(--ink); }
.inner-benefit-panel .button { margin-top: 1.1rem; }
.editorial-quote blockquote {
    margin: 0;
    padding-left: clamp(.8rem, 2.6vw, 1.8rem);
    border-left: 3px solid #a2c5f8;
    color: var(--ink);
    font-size: clamp(1.45rem, 3.7vw, 3.8rem);
    font-weight: 760;
    line-height: 1.14;
    letter-spacing: -.052em;
    text-wrap: balance;
}
.inner-callout p { margin: 0 0 1.2rem; }
.outcome-list { margin: 0; }
.outcome-list li {
    position: relative;
    padding: clamp(.92rem, 2vw, 1.3rem) .6rem clamp(.92rem, 2vw, 1.3rem) 1.72rem;
    border-bottom: 1px solid #d2e0f2;
    color: var(--ink);
    font-size: clamp(1rem, 1.65vw, 1.22rem);
}
.outcome-list li:first-child { border-top: 1px solid #d2e0f2; }
.outcome-list li::before {
    content: "";
    position: absolute;
    left: .35rem;
    top: calc(1.15em + .45rem);
    width: .43rem;
    height: .43rem;
    border-radius: 50%;
    background: var(--gold);
}
.locations-grid li { min-width: 0; }
.location-card {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
    transition: background-color .22s ease, border-color .22s ease;
}
.location-featured .location-card { background: #edf5ff; border-color: #b6cdf4; }
.location-card:hover { background: #eaf4ff; border-color: #8bb5f4; }
.location-card:hover h3 { color: var(--gold-dark); text-decoration: underline; text-underline-offset: .18em; }
.local-jump, .place-chips { display: flex; flex-wrap: wrap; gap: .45rem .55rem; }
.local-jump { padding-top: 1.05rem; }
.local-jump a, .place-chips a {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    border: 1px solid #d2e1f7;
    border-radius: 100vw;
    padding: .43rem .92rem;
    background: #f9fbff;
    color: var(--gold-dark);
    text-decoration: none;
    font-size: .86rem;
    font-weight: 740;
}
.local-jump a:hover, .place-chips a:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.place-chips { margin: 0 0 1.2rem; }
.local-intro-text p { margin: 0; font-size: clamp(1rem, 1.65vw, 1.22rem); }
.local-intro-text .local-note {
    margin-top: 1rem;
    padding: .95rem 1rem;
    border-left: 2px solid #a4c2f5;
    background: #f4f8ff;
    color: var(--muted);
    font-size: .91rem;
}
.local-tech-list article { padding: 1rem 0; border-top: 1px solid #d2e0f2; }
.local-tech-list h3 { margin: 0 0 .4rem; }
.local-tech-list p { margin: 0; }
.public-faq { background: #f7faff; border-block: 1px solid #e7eef8; }
.public-faq .section-head .button { margin-top: 1.05rem; }
.public-faq .faq-list details { border: 1px solid #dce6f3; border-radius: .72rem; background: #fff; }
.public-faq .faq-list details + details { margin-top: .55rem; }
.public-faq .faq-list details[open] { border-color: #adc9f4; }
.public-faq .faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .9rem;
    min-height: 3rem;
    padding: .9rem clamp(.7rem, 2vw, 1.35rem);
    border-radius: .72rem;
    list-style: none;
    cursor: pointer;
    color: var(--ink);
    font-weight: 750;
}
.faq-list summary::-webkit-details-marker { display: none; }
.public-faq .faq-list summary::after, .public-faq .faq-list details[open] summary::after { content: none; }
.public-faq .faq-list summary:hover { color: var(--gold-dark); }
.faq-indicator {
    display: grid;
    place-items: center;
    flex: 0 0 1.7rem;
    height: 1.7rem;
    border: 1px solid #c7d9f5;
    border-radius: 50%;
    background: #f1f6ff;
    color: var(--gold-dark);
}
.faq-indicator::before, .faq-indicator::after {
    content: "";
    grid-area: 1 / 1;
    width: .68rem;
    height: 1px;
    background: currentColor;
}
.faq-indicator::after { transform: rotate(90deg); transition: transform .2s ease; }
.faq-list details[open] .faq-indicator { background: var(--gold); border-color: var(--gold); color: #fff; }
.faq-list details[open] .faq-indicator::after { transform: rotate(0deg); }
.faq-answer { max-width: 67ch; padding: 0 clamp(.7rem, 2vw, 1.35rem) .95rem; }
.public-faq .faq-answer p { margin: 0; padding: 0; }

.inner-portfolio-grid { display: grid; gap: clamp(1.15rem, 3.5vw, 3rem) clamp(.8rem, 1.8vw, 1.6rem); margin-top: 1.6rem; }
.inner-project { min-width: 0; padding: clamp(.56rem, 1.25vw, .95rem); border: 1px solid #dce6f3; border-radius: 1.05rem; background: #fff; }
.inner-project-image {
    display: block;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: .69rem;
    background: #edf4ff;
    aspect-ratio: 10 / 7;
}
.inner-project-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .35s var(--ease, ease);
}
.inner-project-image picture { display: block; height: 100%; }
.inner-project-image:hover img { transform: scale(1.025); }
.inner-project-image-label {
    position: absolute;
    right: .55rem;
    bottom: .55rem;
    border: 1px solid #d3e3fa;
    border-radius: 100vw;
    padding: .4rem .66rem;
    background: #fff;
    color: var(--gold-dark);
    font-size: .76rem;
    font-weight: 760;
}
.inner-project-copy { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .55rem; padding: .85rem .23rem .38rem; align-items: baseline; }
.inner-project-copy h3 { margin: .23rem 0 .3rem; }
.inner-project-copy p { margin: 0; }
.inner-project-modal:not([hidden]) {
    display: grid;
    place-items: center;
    position: fixed;
    inset: 0;
    z-index: 150;
    padding: .8rem;
    background: #142341d9;
}
.inner-project-dialog {
    width: min(100%, 1120px);
    max-height: calc(100dvh - 1.6rem);
    overflow: auto;
    background: #fff;
    border-radius: 1rem;
    padding: .7rem;
}
.inner-project-dialog > button { display: flex; margin: 0 0 .55rem auto; }
.inner-project-frame { background: #edf4ff; border-radius: .65rem; overflow: hidden; }
.inner-project-frame img { display: block; width: 100%; height: auto; max-height: 77dvh; object-fit: contain; }
.contact-page-grid, .legal-page-grid { display: grid; gap: clamp(1.35rem, 5vw, 4.5rem); align-items: start; }
.contact-page-grid { padding-top: clamp(.7rem, 3.2vw, 2.8rem); }
.contact-page-intro { padding-top: clamp(.25rem, 1.7vw, 1.35rem); }
.contact-expectations {
    max-width: 54ch;
    margin-top: clamp(1.15rem, 3vw, 2rem);
    padding: clamp(.85rem, 2vw, 1.35rem);
    border: 1px solid #d9e7fa;
    border-radius: .9rem;
    background: #f5f9ff;
}
.contact-expectations h2 { margin: 0 0 .55rem; font-size: clamp(1.2rem, 1.7vw, 1.48rem); letter-spacing: -.035em; }
.contact-expectations p { margin: 0; font-size: .92rem; }
.contact-page-address {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1.1rem;
    margin-top: 1.1rem;
    font-style: normal;
}
.contact-page-address a { color: var(--gold-dark); text-underline-offset: .2em; overflow-wrap: anywhere; font-weight: 750; }
.contact-page-form { min-width: 0; background: #fff; border: 1px solid #d6e4f7; border-radius: 1.2rem; padding: clamp(.95rem, 3.25vw, 2.3rem); }
.contact-map { min-height: 230px; display: grid; align-items: stretch; border: 1px solid #d6e4f7; border-radius: 1.1rem; overflow: hidden; background: #eff6ff; }
.contact-map-prompt { align-self: center; padding: clamp(1.1rem, 4vw, 2.4rem); }
.contact-map-prompt .button { margin-top: .85rem; }
.contact-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }
.legal-index { background: #f6faff; border: 1px solid #dce6f3; padding: 1.1rem; border-radius: .85rem; }
.legal-index ol { margin: .65rem 0 0; padding-left: 1.15rem; }
.legal-index li + li { margin-top: .45rem; }
.legal-index a { color: var(--gold-dark); text-underline-offset: .2em; }
.legal-page-content { min-width: 0; max-width: 76ch; }
.legal-page-content h2 { font-size: clamp(1.5rem, 3vw, 2.35rem); margin-bottom: .65rem; }
.legal-page-content section + section { margin-top: 2rem; }
.legal-page-content p { overflow-wrap: anywhere; }
.legal-page-content p + p { margin-top: .72rem; }

@media (min-width: 580px) {
    .offer-grid, .process-steps, .locations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .location-featured { grid-column: span 2; }
}
@media (min-width: 700px) {
    .inner-portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .legal-page-grid { grid-template-columns: minmax(12rem, .32fr) minmax(0, 1fr); }
}
@media (min-width: 800px) {
    .subhero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
    .inner-heading, .inner-content-split, .inner-benefit-panel, .editorial-quote, .public-faq-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
    .contact-page-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
    .offer-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .offer-card { grid-column: span 2; }
    .offer-card--primary, .offer-card:nth-child(n+6) { grid-column: span 3; }
    .process-steps, .locations-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
    .inner-portfolio-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .inner-project { grid-column: span 2; }
    .inner-project--featured { grid-column: span 3; }
    .locations-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: no-preference) {
    .subhero-art:not(.subhero-art--stat) .subhero-sketch { animation: study-enter .5s var(--ease, ease-out) both; }
    @keyframes study-enter {
        from { transform: translateY(7px); }
        to { transform: translateY(0); }
    }
}
@media (prefers-reduced-motion: reduce) {
    .location-card, .inner-project-image img, .faq-indicator::after { transition: none; }
    .inner-project-image:hover img { transform: none; }
}
