/*
Theme Name: Chomoku
Description: A custom block theme scaffolded by Studio Code.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chomoku
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/
/* Layout and readable defaults */
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-site-blocks main { padding-block: 64px; }
.wp-site-blocks main.is-flush { padding-block: 0; }
body { overflow-wrap: break-word; }
img { max-width: 100%; }
a { text-underline-offset: .25em; }
:focus-visible { outline: 2px solid var(--wp--preset--color--green); outline-offset: 4px; }
.cm-section, .chomoku-section { padding-block: clamp(56px,7vw,96px); }
.cm-section + .cm-section, .wp-block-post-content > .wp-block-group { margin-block-start: 0; }
.cm-section-inner > h2 { margin-top: 14px; margin-bottom: 32px; }
.cm-section-inner > .wp-block-columns { margin-block: 32px; }
.cm-white, .section-light { background: var(--wp--preset--color--white); }
.section-dark, .section-subtle { background: var(--wp--preset--color--subtle); color: var(--wp--preset--color--text); }
.code-label { font-family: var(--wp--preset--font-family--space-mono); color: var(--wp--preset--color--green); font-size: 11px; letter-spacing: .12em; }
.cm-lead, .hero-lead { font-size: 18px; line-height: 1.95; }
.cm-note, .hero-note { font-size: 13px; color: var(--wp--preset--color--muted); }
.cm-text-link { font-size: 14px; font-weight: 700; margin-top: 24px; }
.cm-number { font-family: var(--wp--preset--font-family--space-mono); font-size: 14px; color: var(--wp--preset--color--green); }
.cm-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.wp-block-buttons { gap: 12px; }
.wp-block-button.is-style-outline .wp-element-button { border: 1px solid var(--wp--preset--color--line); color: var(--wp--preset--color--text); background: transparent; }
/* Shared header, footer and secondary pages */
.site-header { background: var(--wp--preset--color--background); color: var(--wp--preset--color--text); padding-block: 20px; border-bottom: 1px solid var(--wp--preset--color--line); }
.header-row { min-height: 40px; gap: 32px; }
.site-brand { font-size: 24px; font-weight: 700; letter-spacing: .08em; margin: 0; }
.site-brand small { font-size: 11px; letter-spacing: .16em; margin-left: 8px; }
.site-brand a, .site-header .wp-block-navigation a { color: inherit; text-decoration: none; }
.site-header .wp-block-navigation__submenu-container { background: var(--wp--preset--color--white); color: var(--wp--preset--color--text); border: 1px solid var(--wp--preset--color--line); padding: 16px; min-width: 230px; }
.site-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--background); color: var(--wp--preset--color--text); padding: 24px; }
.site-footer { background: var(--wp--preset--color--background); padding-block: 48px; border-top: 1px solid var(--wp--preset--color--line); }
.site-footer p { font-size: 13px; line-height: 2.2; }
.cm-page-intro, .page-intro { background: var(--wp--preset--color--background); padding-block: 80px; border-bottom: 1px solid var(--wp--preset--color--line); }
.cm-page-intro h1 { font-size: clamp(30px,3.8vw,48px); }
.page-intro h1 strong { color: var(--wp--preset--color--green); }
/* Hero: copy and editable diagram */
.cm-hero { padding-block: clamp(56px,7vw,96px); }
.cm-hero-columns { gap: 7%; align-items: center !important; margin-bottom: 0; }
.cm-hero-columns > .wp-block-column:first-child { flex-basis: 56%; }
.cm-hero-columns > .wp-block-column:last-child { flex-basis: 37%; }
.cm-hero h1 { margin-block: 20px 24px; }
.cm-hero .cm-lead { font-size: 16px; }
.cm-hero .wp-block-buttons { margin-top: 32px; }
.cm-flow { border-top: 2px solid var(--wp--preset--color--text); padding-top: 20px; }
.cm-flow .is-style-process { border-top: 1px solid var(--wp--preset--color--line); padding-block: 20px; position: relative; padding-left: 52px; }
.cm-step-index { position: absolute; left: 0; top: 20px; margin: 0; color: var(--wp--preset--color--green); font-family: var(--wp--preset--font-family--space-mono); font-size: 13px; }
.cm-flow h3 { margin: 0 0 6px; font-size: 22px; }
.cm-flow .is-style-process p:last-child { margin-top: 0; font-size: 13px; color: var(--wp--preset--color--muted); }
.cm-flow-end { background: var(--wp--preset--color--primary); padding: 14px 20px; font-size: 14px; font-weight: 700; }
.cm-proof { border-block: 1px solid var(--wp--preset--color--line); padding-block: 18px; }
.cm-proof-text { margin: 0; color: var(--wp--preset--color--muted); font-size: 12px; }
/* Sections and reusable treatments */
.wp-block-columns { gap: 32px; }
.wp-block-column { min-width: 0; }
.is-style-card, .is-style-dark-card { padding: 26px; background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--line); border-radius: 6px; height: 100%; box-sizing: border-box; }
.is-style-card h3 { margin-top: 10px; }
.is-style-card p, .is-style-dark-card p { font-size: 14px; }
.is-style-card p:not(.code-label):not(.price):not(.cm-number) { color: var(--wp--preset--color--muted); }
.is-style-process { border-top: 1px solid var(--wp--preset--color--line); padding-top: 20px; }
.cm-four { gap: 16px; }
.cm-four h3 { font-size: 18px; }
.cm-four .is-style-card { padding: 20px; }
.cm-problem { border-left: 3px solid var(--wp--preset--color--primary); padding-left: 18px; font-size: 17px; }
.cm-person-columns { gap: 64px; align-items: center !important; }
.cm-person-columns > .wp-block-column:first-child { flex-basis: 28%; }
.cm-person-columns > .wp-block-column:last-child { flex-basis: 64%; }
.cm-portrait { margin: 0; }
.cm-portrait img { width: 220px; height: 250px; object-fit: cover; object-position: center; border-radius: 4px; }
.cm-profile h3 { margin-block: 8px; }
.cm-message h3 { font-size: clamp(24px,2.7vw,32px); }
.cm-case-feature { padding: clamp(24px,4vw,48px); border: 1px solid var(--wp--preset--color--line); border-top: 3px solid var(--wp--preset--color--green); background: var(--wp--preset--color--background); }
.cm-case-feature > h3 { font-size: clamp(24px,2.7vw,32px); }
.cm-before, .cm-after { padding: 20px 24px; background: var(--wp--preset--color--white); border-left: 2px solid var(--wp--preset--color--line); }
.cm-after { border-color: var(--wp--preset--color--primary); }
.cm-before p, .cm-after p { font-size: 14px; }
.cm-boundary { padding: 24px; border-left: 3px solid var(--wp--preset--color--primary); background: var(--wp--preset--color--background); }
.cm-info-row { border-bottom: 1px solid var(--wp--preset--color--line); padding-block: 20px; margin-block: 0 !important; }
.cm-info-row > .wp-block-column:first-child { flex-basis: 24%; }
.cm-info-row > .wp-block-column:last-child { flex-basis: 70%; }
.cm-info-row h3, .cm-info-row p { margin: 0; font-size: 15px; }
.cm-cta { background: var(--wp--preset--color--subtle); border-top: 1px solid var(--wp--preset--color--line); }
.cm-cta .wp-block-buttons { margin-top: 28px; }
.wp-block-details { padding: 22px 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.wp-block-details summary { font-weight: 700; cursor: pointer; }
.wp-block-details p { color: var(--wp--preset--color--muted); font-size: 14px; }
.price { font-size: 27px !important; font-weight: 700; }
/* Compatibility with existing content pages */
.card-grid { gap: 24px; margin-block: 32px; }
.card-number { color: var(--wp--preset--color--green); font-size: 28px; }
.portrait img { width: 144px; height: 160px; object-fit: cover; border-radius: 4px; }
.representative { gap: 32px; padding: 32px; }
.fine-print { background: var(--wp--preset--color--subtle); padding: 16px; }
.inquiry-context:has(p:empty) { display: none; }
.inquiry-context:has(p:not(:empty)) { padding: 20px; border: 1px solid var(--wp--preset--color--primary); }
/* Responsive */
@media (max-width: 900px) and (min-width: 782px) { .site-header .wp-block-navigation { font-size: 11px; gap: 16px; } .cm-four h3 { font-size: 16px; } }
@media (max-width: 781px) {
 .cm-hero-columns, .cm-person-columns { gap: 36px; }
 .cm-hero h1 { font-size: clamp(34px,8.5vw,52px); }
 .cm-hero .cm-lead br { display: none; }
 .cm-flow { margin-top: 8px; }
 .cm-flow .is-style-process { padding-block: 16px; }
 .cm-step-index { top: 16px; }
 .cm-section-inner > h2 { margin-bottom: 24px; }
 .cm-section-inner > .wp-block-columns { margin-block: 24px; }
 .cm-portrait img { width: 150px; height: 170px; }
 .cm-page-intro, .page-intro { padding-block: 56px; }
 .card-grid { grid-template-columns: 1fr !important; }
 .cm-info-row { gap: 8px; }
 .cm-person-columns .wp-block-column, .cm-hero-columns .wp-block-column { flex-basis: 100% !important; }
 .representative { flex-direction: column; }
 .wp-block-button__link { font-size: 14px; }
 .cm-four { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Migrated collections: original imagery, readable articles, shared palette. */
.cm-content-query .wp-block-post-template { gap: 32px; }
.cm-content-query .wp-block-post-template > li { min-width: 0; }
.cm-content-card { height: 100%; padding: 20px; border: 1px solid var(--wp--preset--color--light); border-radius: 12px; background: var(--wp--preset--color--background); color: var(--wp--preset--color--text); }
.cm-content-card .wp-block-post-featured-image { margin: 0 0 20px; }
.cm-content-card .wp-block-post-featured-image img { aspect-ratio: 16/9; object-fit: contain; background: var(--wp--preset--color--subtle); border-radius: 6px; }
.cm-content-card .wp-block-post-title { font-size: 20px; line-height: 1.65; margin-block: 12px; }
.cm-content-card .wp-block-post-title a { color: inherit; text-decoration: none; }
.cm-content-card .wp-block-post-title a:hover { text-decoration: underline; }
.cm-content-card .wp-block-post-date { font-size: 13px; color: var(--wp--preset--color--muted); }
.cm-content-card .wp-block-post-excerpt { font-size: 14px; line-height: 1.8; }
.cm-content-query .wp-block-query-pagination { margin-top: 48px; gap: 20px; }
.cm-article-header { padding-block: 64px; }
.cm-article-header .wp-block-post-title { font-size: clamp(26px, 4vw, 42px); line-height: 1.5; }
.cm-article-header .wp-block-post-date { color: var(--wp--preset--color--muted); font-size: 14px; }
.cm-article-header .wp-block-post-terms a { color: var(--wp--preset--color--primary); }
.cm-article-body { padding-block: 48px; }
.cm-article-body .wp-block-post-featured-image img { width: 100%; height: auto; }
.cm-article-body .wp-block-post-content { line-height: 1.95; }
.cm-article-body .wp-block-post-content h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.55; margin-top: 56px; }
.cm-article-body .wp-block-post-content h3 { font-size: 23px; line-height: 1.6; margin-top: 40px; }
.cm-article-body .wp-block-post-content h4 { font-size: 20px; }
.cm-article-body .wp-block-image img { max-width: 100%; height: auto; }
.cm-article-back { padding-block: 0 64px; }
.is-style-cm-panel-orange, .is-style-cm-panel-cyan, .is-style-cm-panel-light { padding: 24px; border-radius: 12px; color: var(--wp--preset--color--text); }
.is-style-cm-panel-orange { background: color-mix(in srgb, var(--wp--preset--color--orange) 12%, var(--wp--preset--color--background)); }
.is-style-cm-panel-cyan { background: color-mix(in srgb, var(--wp--preset--color--primary) 12%, var(--wp--preset--color--background)); }
.is-style-cm-panel-light { background: var(--wp--preset--color--subtle); }
@media (max-width: 781px) {
 .cm-content-query .wp-block-post-template { grid-template-columns: minmax(0, 1fr); }
 .cm-content-card { height: auto; }
 .cm-article-header { padding-block: 48px; }
 .cm-article-body { padding-block: 32px; }
}

.cm-content-query .is-style-card { padding: 20px; }
.cm-content-query .wp-block-post-title { font-size: 19px; line-height: 1.65; }
.cm-content-query .wp-block-post-title a { color: var(--wp--preset--color--text); }
.cm-content-query .wp-block-post-date { font-size: 12px; color: var(--wp--preset--color--muted); }
.cm-content-query .wp-block-post-featured-image { margin: 0 0 20px; }
.cm-content-query .wp-block-post-featured-image img { aspect-ratio: 16/9; object-fit: contain; }
/* QA: consistent button sizing and contained dropdowns at intermediate widths. */
.wp-block-button.is-style-outline .wp-element-button { padding: 15px 23px; }
.site-header .wp-block-navigation__submenu-container { box-sizing: border-box; right: 0; left: auto; }
@media (max-width: 900px) {
 .site-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
 .site-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
 .site-header .is-menu-open .wp-block-navigation__submenu-container { min-width: 0; padding: 12px 0; border: 0; }
}

/* Visual refresh: illustrated steps, open editorial layouts and organic imagery. */
.cm-hero-visual { position: relative; isolation: isolate; padding: 12px 0; }
.cm-hero-visual::before { content: ''; position: absolute; width: 86%; height: 76%; top: 9%; right: -2%; background: var(--wp--preset--color--mint-wash); border-radius: 50% 46% 42% 58%; z-index: -1; }
.cm-diagram-caption { font-size: 15px; font-weight: 700; text-align: right; color: var(--wp--preset--color--green); margin: 0; }
.cm-stairs { align-items: end; gap: 0 !important; padding-top: 116px; position: relative; }
.cm-stairs .is-style-stair-step { position: relative; padding: 24px 15px; min-height: 174px; box-sizing: border-box; background: var(--wp--preset--color--subtle); border-radius: 18px 18px 0 0; margin: 0; }
.cm-stairs .is-style-stair-step:nth-child(2) { min-height: 240px; background: var(--wp--preset--color--mint-soft); }
.cm-stairs .is-style-stair-step:nth-child(3) { min-height: 306px; background: var(--wp--preset--color--primary); }
.cm-stairs .is-style-stair-step:nth-child(4) { min-height: 372px; background: var(--wp--preset--color--green); color: var(--wp--preset--color--white); }
.cm-stairs .is-style-stair-step > svg { position: absolute; width: 100%; height: 108px; top: -108px; left: 0; margin: 0; color: var(--wp--preset--color--text); }
.cm-stage-no { font-family: var(--wp--preset--font-family--space-mono); font-size: 12px; letter-spacing: .1em; margin: 0; }
.cm-stairs h3 { font-size: 18px; line-height: 1.5; margin: 14px 0 10px; }
.cm-stage-note { font-size: 12px; line-height: 1.8; margin: 0; }
.cm-stair-foot { margin-top: 18px; text-align: center; font-size: 12px; color: var(--wp--preset--color--muted); }
.cm-hero-columns > .wp-block-column:first-child { flex-basis: 47%; }
.cm-hero-columns > .wp-block-column:last-child { flex-basis: 49%; }
.cm-hero h1 { font-size: clamp(34px,4.2vw,56px); }
.cm-service-overview .cm-stairs { padding-top: 110px; }
.cm-service-overview .cm-note { margin-top: 30px; }
/* More airy support roadmap; no repeated card outlines. */
.cm-support-section .cm-four { gap: 32px; position: relative; margin-top: 48px; }
.cm-support-section .is-style-card { border: 0; background: transparent; padding: 0; border-radius: 0; }
.cm-support-section .cm-number { background: var(--wp--preset--color--mint-wash); color: var(--wp--preset--color--green); border-radius: 50%; width: 48px; height: 48px; text-align: center; line-height: 48px; margin-bottom: 20px; position: relative; }
.cm-support-section .wp-block-column:not(:last-child) .cm-number::after { content: '→'; position: absolute; left: 75px; color: var(--wp--preset--color--green); font-size: 22px; }
.cm-support-section .cm-problem { border: 0; padding-left: 22px; position: relative; }
.cm-support-section .cm-problem::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--wp--preset--color--primary); position: absolute; left: 0; top: 12px; }
/* Portrait as a personal note, not a business card. */
.cm-people-section { position: relative; }
.cm-people-section .cm-profile { padding: 18px 0; }
.cm-people-section .cm-portrait { position: relative; isolation: isolate; }
.cm-people-section .cm-portrait::before { content: ''; position: absolute; left: -18px; bottom: 0; width: 240px; height: 220px; border-radius: 50% 50% 42% 46%; background: var(--wp--preset--color--mint-soft); z-index: -1; transform: rotate(-8deg); }
.cm-people-section .cm-portrait img { border-radius: 45% 45% 12px 12px; }
.cm-message { position: relative; padding-left: 24px; border-left: 2px solid var(--wp--preset--color--primary); }
/* A visual reconciliation process, with human review as the last stage. */
.cm-cases-section .cm-case-feature { border: 0; border-radius: 28px; padding: 40px; background: var(--wp--preset--color--mint-wash); }
.cm-reconcile { gap: 44px; margin-block: 34px; }
.cm-diagram-node { text-align: center; position: relative; }
.cm-diagram-node svg { width: 180px; height: 130px; max-width: 100%; margin-inline: auto; color: var(--wp--preset--color--green); }
.cm-diagram-node h3 { font-size: 18px; margin-block: 10px; }
.cm-diagram-node p { font-size: 13px; line-height: 1.8; margin-top: 10px; }
.cm-reconcile > .wp-block-column:not(:last-child) .cm-diagram-node::after { content: '→'; position: absolute; top: 55px; right: -32px; font-size: 26px; color: var(--wp--preset--color--green); }
.cm-cases-section .cm-section-inner > .wp-block-columns .is-style-card { border: 0; border-left: 2px solid var(--wp--preset--color--line); background: transparent; border-radius: 0; padding: 0 24px; }
.cm-service-case { background: var(--wp--preset--color--mint-wash); }
/* Features and services are editorial rows, not bordered boxes. */
.cm-why-section .is-style-card { background: transparent; border: 0; border-top: 2px solid var(--wp--preset--color--green); border-radius: 0; padding: 28px 0 0; }
.cm-why-section .wp-block-columns { gap: 44px; }
.cm-service-detail .is-style-card { border: 0; border-left: 2px solid var(--wp--preset--color--primary); border-radius: 0; background: transparent; padding: 0 0 0 28px; }
.cm-service-detail .cm-section-inner > .code-label { font-size: 12px; }
.cm-experience-section .is-style-card { border: 0; border-radius: 0; border-top: 1px solid var(--wp--preset--color--green); background: transparent; padding: 24px 0; }
/* Illustrated learning spread with three linked rows. */
.cm-learning-split { gap: 56px; align-items: center !important; }
.cm-learning-split > .wp-block-column { flex-basis: 50%; }
.cm-workshop-image { margin: 0; }
.cm-workshop-image img { width: 100%; height: auto; border-radius: 42% 42% 18px 18px; }
.cm-learning-visual { position: relative; }
.cm-image-caption { font-size: 12px; color: var(--wp--preset--color--muted); margin-top: 14px; }
.is-style-editorial-row { position: relative; padding: 22px 0 22px 42px; border-bottom: 1px solid var(--wp--preset--color--line); }
.is-style-editorial-row .cm-number { position: absolute; left: 0; top: 24px; margin: 0; }
.is-style-editorial-row h3 { font-size: 20px; margin: 0 0 8px; }
.is-style-editorial-row p { font-size: 14px; margin-top: 8px; }
.is-style-editorial-row .cm-text-link { margin-top: 10px; }
.cm-course-rows > p { margin-bottom: 12px; }
.cm-training-intro .wp-block-columns { margin-bottom: 0; }
.cm-training-intro h1 { font-size: clamp(30px,3.5vw,46px); }
.cm-training-intro .cm-workshop-image img { border-radius: 24px 48% 48% 24px; }
/* Publications use real imagery, without nested cards. */
.cm-journal-section .is-style-card, .cm-archives-section .is-style-card { padding: 0; background: transparent; border: 0; border-radius: 0; }
.cm-journal-section .wp-block-post-featured-image img, .cm-archives-section .wp-block-post-featured-image img { border-radius: 14px; }
.cm-archives-section .cm-archive-panel { border-top: 2px solid var(--wp--preset--color--green); padding-top: 24px; }
.cm-archives-section .wp-block-columns { gap: 64px; }
.cm-archives-section .wp-block-column:last-child .cm-archive-panel { border-top-color: var(--wp--preset--color--orange); }
.cm-archives-section .wp-block-column:last-child .wp-block-query { background: var(--wp--preset--color--background); padding: 26px; border-radius: 0 32px 32px 32px; }
.cm-process-section .is-style-process { border: 0; padding-top: 0; }
.cm-process-section .cm-number { font-size: 28px; color: var(--wp--preset--color--green); }
.cm-process-section .wp-block-column:nth-child(2) { padding-top: 35px; }
.cm-process-section .wp-block-column:nth-child(3) { padding-top: 70px; }
.cm-process-section .wp-block-column:nth-child(4) { padding-top: 105px; }
@media (max-width: 781px) {
 .cm-hero-visual { padding-top: 12px; }
 .cm-hero-visual::before { height: 75%; }
 .cm-stairs { padding-top: 92px; }
 .cm-stairs .is-style-stair-step { min-height: 145px; padding: 18px 10px; border-radius: 12px 12px 0 0; }
 .cm-stairs .is-style-stair-step:nth-child(2) { min-height: 190px; }
 .cm-stairs .is-style-stair-step:nth-child(3) { min-height: 235px; }
 .cm-stairs .is-style-stair-step > svg { height: 82px; top: -82px; }
 .cm-stairs h3 { font-size: 14px; margin-top: 12px; }
 .cm-stage-note { font-size: 11px; }
 .cm-stairs-four { grid-template-columns: repeat(2,minmax(0,1fr)) !important; row-gap: 90px !important; }
 .cm-stairs-four .is-style-stair-step:nth-child(3) { min-height: 145px; }
 .cm-stairs-four .is-style-stair-step:nth-child(4) { min-height: 190px; }
 .cm-support-section .cm-four { gap: 24px; }
 .cm-support-section .is-style-card { padding-left: 70px; position: relative; min-height: 85px; }
 .cm-support-section .cm-number { position: absolute; left: 0; top: 0; }
 .cm-support-section .wp-block-column:not(:last-child) .cm-number::after { content: ''; width: 1px; height: 40px; background: var(--wp--preset--color--mint-soft); left: 24px; top: 58px; }
 .cm-people-section .cm-portrait::before { width: 175px; height: 145px; left: -10px; }
 .cm-message { padding-left: 18px; }
 .cm-cases-section .cm-case-feature { padding: 24px 20px; border-radius: 18px; }
 .cm-reconcile { gap: 40px; }
 .cm-diagram-node { min-height: 115px; text-align: left; padding-left: 125px; }
 .cm-diagram-node svg { position: absolute; left: 0; top: 0; width: 112px; height: 100px; }
 .cm-diagram-node h3 { font-size: 16px; }
 .cm-diagram-node p { font-size: 12px; }
 .cm-reconcile > .wp-block-column:not(:last-child) .cm-diagram-node::after { content: '↓'; left: 48px; right: auto; top: auto; bottom: -33px; }
 .cm-diagram-node p br { display: none; }
 .cm-learning-split { gap: 28px; }
 .cm-workshop-image img { border-radius: 36% 36% 14px 14px; }
 .cm-archives-section .wp-block-columns { gap: 48px; }
 .cm-why-section .wp-block-columns { gap: 24px; }
 .cm-process-section .wp-block-column:nth-child(n) { padding-top: 0; padding-left: 32px; border-left: 2px solid var(--wp--preset--color--mint-soft); }
}
.cm-stairs .is-style-stair-step a { color: inherit; }
.page-id-10 #problems .is-style-card { border: 0; border-radius: 0; padding: 12px 0 12px 22px; border-left: 3px solid var(--wp--preset--color--primary); background: transparent; }
.page-id-10 #why .is-style-card, .page-id-10 #private .is-style-dark-card { border: 0; border-top: 1px solid var(--wp--preset--color--green); border-radius: 0; padding: 20px 0; background: transparent; }
.page-id-10 #process .is-style-card, .page-id-11 #process .is-style-card { border: 0; border-left: 2px solid var(--wp--preset--color--mint-soft); border-radius: 0; padding: 0 0 0 20px; background: transparent; }
.page-id-10 #curriculum .is-style-card { border: 0; border-radius: 18px; background: var(--wp--preset--color--background); }
/* Header wordmark: full company name with a restrained mint signature. */
.site-header .site-brand { flex-shrink: 0; white-space: nowrap; }
.site-header .site-brand a { display: inline-flex; align-items: center; gap: 10px; line-height: 1; }
.site-header .site-brand a::before { content: ''; width: 4px; height: 29px; background: var(--wp--preset--color--primary); border-radius: 2px; margin-right: 2px; }
.site-header .site-brand small { font-size: 11px; font-weight: 500; letter-spacing: .12em; margin: 3px 0 0; }
.site-header .site-brand strong { font-size: 30px; font-weight: 700; letter-spacing: .12em; }
@media (max-width: 781px) {
 .site-header .site-brand strong { font-size: 27px; }
 .site-header .site-brand a { gap: 8px; }
 .site-header .site-brand a::before { height: 26px; }
}

/* Gentle hero artwork: fixed copy, one quiet entrance and a finite zoom. */
.cm-hero-motion { position: relative; isolation: isolate; overflow: hidden; min-height: 590px; box-sizing: border-box; display: grid; align-items: center; padding-block: 70px; }
.cm-hero-motion .cm-hero-art { position: absolute; inset: 0; max-width: none; margin: 0; z-index: -1; animation: cm-art-appear 1.2s ease-out both; }
.cm-hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center right; transform-origin: 76% 55%; animation: cm-art-zoom 18s ease-out both; }
.cm-hero-motion .cm-hero-content { width: 100%; box-sizing: border-box; margin-block: 0; }
.cm-hero-content > * { max-width: 47%; }
.cm-hero-content .cm-lead { max-width: 44%; }
@keyframes cm-art-appear { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@keyframes cm-art-zoom { from { transform: scale(1); } to { transform: scale(1.025); } }
@media (max-width: 781px) {
 .cm-hero-motion { display: flex; flex-direction: column; padding-block: 36px 0; min-height: 0; }
 .cm-hero-motion .cm-hero-content { order: 0; }
 .cm-hero-content > *, .cm-hero-content .cm-lead { max-width: 100%; }
 .cm-hero-motion .cm-hero-art { position: relative; inset: auto; order: 1; width: calc(100% + 40px); height: clamp(300px,85vw,500px); margin: 12px -20px 0; z-index: 0; overflow: hidden; }
 .cm-hero-art img { object-position: right center; }
}
@media (prefers-reduced-motion: reduce) {
 .cm-hero-motion .cm-hero-art, .cm-hero-art img { animation: none; transform: none; translate: none; opacity: 1; }
}

/* Contact actions share one clear yellow accent. */
.home .wp-block-button a[href$="/contact/"],
.site-header .wp-block-navigation a[href$="/contact/"] {
 background: var(--wp--preset--color--cta-yellow); color: var(--wp--preset--color--text); border-radius: 4px; font-weight: 700;
}
.site-header .wp-block-navigation a[href$="/contact/"] { padding: 12px 18px; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; box-sizing: border-box; }
.home .wp-block-button a[href$="/contact/"]:hover,
.site-header .wp-block-navigation a[href$="/contact/"]:hover { background: var(--wp--preset--color--cta-yellow-hover); color: var(--wp--preset--color--text); }
.home .wp-block-button a[href$="/contact/"]:focus-visible,
.site-header .wp-block-navigation a[href$="/contact/"]:focus-visible { outline: 3px solid var(--wp--preset--color--green); outline-offset: 4px; }

/* A personal invitation at the end of the homepage. */
.cm-contact-split { align-items: center !important; gap: 64px; margin-bottom: 0; }
.cm-contact-split > .wp-block-column:first-child { flex-basis: 60%; }
.cm-contact-split > .wp-block-column:last-child { flex-basis: 40%; }
.cm-contact-person { text-align: center; }
.cm-contact-person .cm-contact-quote { position: relative; display: inline-block; background: var(--wp--preset--color--white); border-radius: 20px 20px 20px 0; padding: 20px 26px; font-size: 19px; font-weight: 700; line-height: 1.7; color: var(--wp--preset--color--green); margin: 0 0 24px; }
.cm-contact-quote::after { content: ''; position: absolute; bottom: -12px; left: 48px; border-top: 14px solid var(--wp--preset--color--white); border-right: 16px solid transparent; }
.cm-contact-portrait { margin: 0 auto; max-width: 245px; }
.cm-contact-portrait img { display: block; width: 100%; height: auto; border-radius: 48% 48% 16px 16px; }
.cm-contact-name { font-size: 12px; margin-top: 18px; }
.cm-contact-name strong { font-size: 15px; }
@media (max-width: 781px) {
 .cm-contact-split { gap: 36px; }
 .cm-contact-person .cm-contact-quote { font-size: 17px; }
 .cm-contact-portrait { max-width: 200px; }
}
/* Bound the hero itself, not only its text, with symmetric outer gutters. */
.wp-block-post-content > .cm-hero-motion.alignfull {
 width: calc(100% - 40px);
 max-width: var(--wp--style--global--wide-size);
 margin-left: auto !important;
 margin-right: auto !important;
 padding-inline: 32px;
 min-height: 560px;
 grid-template-columns: minmax(0, 1fr);
 justify-items: center;
}
.cm-hero-motion .cm-hero-content { max-width: 100%; margin-inline: auto !important; }
.cm-section-inner { max-width: var(--wp--style--global--wide-size); margin-inline: auto !important; }
@media (max-width: 781px) {
 .wp-block-post-content > .cm-hero-motion.alignfull { padding-inline: 0; min-height: 0; }
 .cm-hero-motion .cm-hero-art { width: 100%; margin-inline: 0; }
}
@media (min-width: 782px) {
 .cm-hero-motion .cm-hero-art img { object-fit: contain; object-position: center right; }
 .cm-hero-motion .cm-hero-content .wp-block-buttons { max-width: 52%; gap: 8px; }
 .cm-hero-motion .wp-block-button__link { padding-inline: 18px; font-size: 14px; }
}
/* Separate hero copy and artwork so neither can overlap at any zoom level. */
.wp-block-post-content > .cm-hero-motion.alignfull {
 display: grid;
 grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
 gap: 28px;
 align-items: center;
 padding: 48px 0;
 min-height: 0;
 overflow: hidden;
}
.cm-hero-motion .cm-hero-content {
 grid-column: 1; grid-row: 1; width: 100%; min-width: 0;
}
.cm-hero-content > *,
.cm-hero-content .cm-lead,
.cm-hero-motion .cm-hero-content .wp-block-buttons { max-width: 100%; }
.cm-hero-motion h1 { font-size: clamp(34px, 3.8vw, 44px); }
.cm-hero-motion .cm-lead br { display: none; }
.cm-hero-motion .cm-hero-art {
 position: relative; inset: auto; grid-column: 2; grid-row: 1;
 width: 100%; height: 480px; margin: 0; max-width: 100%;
 z-index: 0; overflow: hidden; border-radius: 140px 0 0 0;
}
.cm-hero-motion .cm-hero-art img {
 width: 100%; height: 100%; object-fit: cover; object-position: right center;
}
@media (max-width: 781px) {
 .wp-block-post-content > .cm-hero-motion.alignfull { grid-template-columns: minmax(0,1fr); gap: 20px; padding-block: 36px 0; }
 .cm-hero-motion .cm-hero-content { grid-column: 1; grid-row: 1; }
 .cm-hero-motion .cm-hero-art { grid-column: 1; grid-row: 2; height: clamp(300px,85vw,480px); border-radius: 80px 0 0 0; }
}
/* Layered hero with a soft ivory reading surface fading into the artwork. */
@media (min-width: 782px) {
 .wp-block-post-content > .cm-hero-motion.alignfull {
  display: grid; grid-template-columns: minmax(0,1fr); gap: 0;
  padding: 54px 32px; min-height: 580px;
 }
 .cm-hero-motion .cm-hero-art {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; border-radius: 0; z-index: -2;
 }
 .cm-hero-motion .cm-hero-art img { object-fit: cover; object-position: right center; }
 .cm-hero-motion::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg,
   var(--wp--preset--color--background) 0%,
   rgba(255,252,242,.98) 26%,
   rgba(255,252,242,.93) 39%,
   rgba(255,252,242,.78) 48%,
   rgba(255,252,242,.22) 61%,
   rgba(255,252,242,0) 74%);
 }
 .cm-hero-motion .cm-hero-content { grid-column: 1; grid-row: 1; position: relative; }
 .cm-hero-content > *, .cm-hero-content .cm-lead { max-width: 49%; }
 .cm-hero-motion .cm-hero-content .wp-block-buttons { max-width: 55%; }
 .cm-hero-content .cm-note { max-width: 55%; }
 .cm-hero-motion .wp-block-button.is-style-outline .wp-element-button {
  background: rgba(255,252,242,.94); border-color: var(--wp--preset--color--muted);
 }
}
@media (min-width: 782px) {
 .cm-hero-motion .cm-hero-art { grid-area: auto; }
 .cm-hero-motion::after { grid-area: auto; }
}
