/* Shared foundation; global tokens and block defaults live in theme.json. */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

img,
video {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
p,
li {
    overflow-wrap: break-word;
}

a {
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;
}

a:hover {
    text-decoration-thickness: 2px;
}

:where(a, button, input, textarea, select, summary):focus-visible {
    outline: 3px solid var(--wp--preset--color--cobalt);
    outline-offset: 4px;
}

.hcg-header {
    border-bottom: 1px solid var(--wp--preset--color--border);
    padding-block: var(--wp--preset--spacing--50);
}

.hcg-header__inner,
.hcg-footer__inner {
    gap: var(--wp--preset--spacing--50);
}

.hcg-header .wp-block-site-title {
    max-width: 15rem;
}

.hcg-header .wp-block-navigation {
    margin-left: auto;
}

.hcg-header .wp-block-navigation__container {
    gap: var(--wp--preset--spacing--50);
}

.hcg-header .wp-block-buttons {
    margin: 0;
}

.hcg-footer {
    border-top: 1px solid var(--wp--preset--color--border);
    padding-block: var(--wp--preset--spacing--60);
    margin-top: var(--wp--preset--spacing--70);
}

.hcg-label {
    font-family: var(--wp--preset--font-family--mono);
    font-size: var(--wp--preset--font-size--small);
    letter-spacing: 0.04em;
}

.hcg-main {
    padding-block: var(--wp--preset--spacing--70);
    min-height: 45vh;
}

/* Keep narrow reading columns on the same left edge as the page heading.
   Wide sections and project images retain their existing width. */
.hcg-main > .wp-block-post-content.wp-block-post-content {
    max-width: var(--wp--style--global--wide-size);
    margin-inline: auto !important;
    padding-inline: 0;
}

.hcg-main > .wp-block-post-content > :where(:not(.alignwide):not(.alignfull)) {
    margin-left: 0 !important;
    margin-right: auto !important;
}

.hcg-main > .wp-block-post-date {
    max-width: var(--wp--style--global--wide-size);
}

.wp-block-post-featured-image img {
    display: block;
    background: var(--wp--preset--color--white);
}

@media (max-width: 600px) {
    .hcg-header__inner {
        flex-wrap: nowrap;
    }

    .hcg-header .wp-block-site-title {
        max-width: 10rem;
        font-size: 1rem;
    }

    .hcg-header > .hcg-header__inner > .wp-block-buttons {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Editorial compositions use the same classes in the editor and on the site. */
.hcg-home-main {
    margin-block-start: 0;
}

.hcg-hero {
    padding-top: clamp(2.5rem, 5vw, 4.5rem);
}

.hcg-eyebrow {
    margin-bottom: 1.6rem;
}

.hcg-eyebrow::before {
    content: "";
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    margin-right: 0.7rem;
    border-radius: 50%;
    background: var(--wp--preset--color--cobalt);
}

.hcg-hero__heading {
    max-width: 1120px;
    margin-block: 0;
    font-size: clamp(2.7rem, 6.8vw, 6.5rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.hcg-hero__summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.hcg-hero__intro {
    max-width: 34rem;
    margin: 0;
}

.hcg-hero__summary > .wp-block-buttons {
    flex-shrink: 0;
    margin: 0;
    gap: 0.75rem;
}

.hcg-feature {
    display: grid;
    grid-template-columns: 0.85fr 2fr;
    gap: 0;
    background: var(--wp--preset--color--ink);
    color: var(--wp--preset--color--paper);
    margin-top: clamp(2rem, 4vw, 3.5rem);
}

.hcg-feature__copy {
    padding: clamp(1.5rem, 3vw, 2.6rem);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.hcg-feature__copy h2 {
    font-size: clamp(1.8rem, 3.5vw, 3.1rem);
    margin-block: 2rem 0;
}

.hcg-feature__copy a,
.hcg-cta a {
    color: inherit;
}

.hcg-feature__copy > :last-child {
    margin-top: 2rem;
    font-size: 0.72rem;
}

.hcg-feature__image {
    align-self: center;
    margin: 0;
    padding: 1.5rem 1.5rem 1.5rem 0;
}

.hcg-feature__image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

.hcg-section {
    padding-block: clamp(3.5rem, 8vw, 7rem);
    margin-block-start: 0;
    border-bottom: 1px solid var(--wp--preset--color--border);
}

.hcg-section > .hcg-label {
    margin-top: 0;
    margin-bottom: 2rem;
}

.hcg-section > h2 {
    max-width: 18ch;
    margin-top: 0;
    margin-bottom: 2rem;
    white-space: pre-line;
    text-wrap: balance;
}

.hcg-section__intro {
    max-width: 38rem;
}

.hcg-work-slot {
    padding: clamp(1.5rem, 4vw, 3rem);
    background: #eeede7;
    margin-block: 2.5rem 1.5rem;
    border-left: 3px solid var(--wp--preset--color--cobalt);
}

.hcg-work-slot h3 {
    margin-top: 0;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.hcg-work-slot p {
    max-width: 42rem;
}

.hcg-service-row {
    display: grid;
    grid-template-columns: 3rem 1.1fr 1fr;
    align-items: start;
    gap: 1.5rem;
    border-top: 1px solid var(--wp--preset--color--border);
    padding-block: 1.75rem;
    margin-top: 0;
}

.hcg-services > h2 {
    margin-bottom: 3rem;
}

.hcg-service-row > * {
    margin: 0;
}

.hcg-service-row > .hcg-label {
    padding-top: 0.2rem;
}

.hcg-service-row h3 {
    font-size: clamp(1.35rem, 2.4vw, 1.9rem);
    line-height: 1.2;
}

.hcg-service-row h3 a {
    color: var(--wp--preset--color--ink);
    text-decoration: none;
}

.hcg-service-row h3 a:hover {
    text-decoration: underline;
}

.hcg-service-row h3 span {
    display: inline-block;
    padding-left: 0.25rem;
    color: var(--wp--preset--color--cobalt);
}

.hcg-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 7vw, 7rem);
    margin-top: 3rem;
}

.hcg-two-column > * {
    margin-top: 0;
    min-width: 0;
}

.hcg-capability h3 {
    font-size: 1.6rem;
    margin-top: 0;
}

.hcg-lead {
    font-size: var(--wp--preset--font-size--lead);
    line-height: 1.5;
}

.hcg-about > h2 {
    max-width: 23ch;
}

.hcg-process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.hcg-process-step {
    margin: 0;
    border-top: 2px solid var(--wp--preset--color--ink);
    padding-top: 1rem;
}

.hcg-process-step h3 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
}

.hcg-process-step .hcg-label {
    color: var(--wp--preset--color--cobalt);
    margin-top: 0;
}

.hcg-cta {
    margin-top: clamp(3rem, 7vw, 6rem);
    padding: clamp(1.5rem, 5vw, 4.5rem);
    background: var(--wp--preset--color--cobalt);
    color: white;
}

.hcg-cta > .hcg-label {
    margin-top: 0;
}

.hcg-cta h2 {
    font-size: clamp(2.4rem, 6vw, 5.5rem);
    line-height: 1.03;
    letter-spacing: -0.045em;
    white-space: pre-line;
    margin-block: 2rem 3rem;
}

.hcg-cta__bottom {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    align-items: flex-end;
}

.hcg-cta__bottom > p {
    max-width: 33rem;
    margin: 0;
}

.hcg-cta__bottom .wp-block-buttons {
    flex-shrink: 0;
    margin: 0;
}

.hcg-cta .wp-block-button__link {
    background: white;
    color: var(--wp--preset--color--cobalt);
}

.hcg-cta :where(a, button):focus-visible {
    outline-color: white;
}

.hcg-prose > h2 {
    margin-top: 3rem;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.hcg-post-list__item {
    padding-block: 2rem;
    border-top: 1px solid var(--wp--preset--color--border);
}

.hcg-post-list .wp-block-post-template {
    margin-bottom: 3rem;
}

.hcg-post-list .wp-block-post-title {
    margin-top: 0;
}

.hcg-not-found {
    padding-block: 2rem;
}

.hcg-not-found h1 {
    white-space: pre-line;
}

.hcg-not-found > p {
    max-width: 40rem;
}

@media (max-width: 1000px) {
    .hcg-hero__summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .hcg-feature {
        grid-template-columns: 1fr 1.8fr;
    }

    .hcg-feature__copy > :last-child {
        margin-top: 1rem;
    }

    .hcg-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .hcg-feature {
        grid-template-columns: 1fr;
    }

    .hcg-feature__copy {
        padding-bottom: 0;
    }

    .hcg-feature__copy h2 {
        margin-top: 0.5rem;
    }

    .hcg-feature__image {
        padding: 1.5rem;
    }

    .hcg-two-column {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hcg-service-row {
        grid-template-columns: 2rem 1fr;
        gap: 0.75rem;
    }

    .hcg-service-row > p:last-child {
        grid-column: 2;
    }

    .hcg-cta__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 390px) {
    .hcg-process-grid {
        grid-template-columns: 1fr;
    }

    .hcg-hero__summary .wp-block-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .hcg-hero__summary .wp-block-button__link {
        width: 100%;
        text-align: center;
    }
}
