.consulting-home {
    --home-ink: #102d2b;
    --home-muted: #415754;
    --home-paper: #f7f7f0;
    --home-night: #091c1d;
    --home-mint: #88edc4;
    --home-green: #105c47;
    --home-rule: #c7d6cb;
}
.consulting-home .header-area2 { background: var(--home-night); }
.home-skip { position: fixed; top: 4px; left: 10px; padding: 12px 18px; z-index: 99999; background: white; color: var(--home-ink); transform: translateY(-150%); }
.home-skip:focus { transform: none; }
.ctc-home { color: var(--home-ink); background: var(--home-paper); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.ctc-home *, .ctc-home *::before, .ctc-home *::after { box-sizing: border-box; }
.ctc-home :is(h1,h2,h3,p,li,label,input,textarea,button,a) { font-family: inherit; }
.ctc-home :is(h1,h2,h3) { margin: 0; color: inherit; font-weight: 650; letter-spacing: -.045em; text-wrap: balance; }
.ctc-home h1 { font-size: clamp(3.1rem, 4.9vw, 5.3rem); line-height: 1.02; }
.ctc-home h2 { font-size: clamp(2.1rem, 3.6vw, 3.5rem); line-height: 1.07; }
.ctc-home h3 { font-size: clamp(1.43rem, 2.1vw, 1.9rem); line-height: 1.14; }
.ctc-home p, .ctc-home li { margin: 0; color: inherit; font-size: 1rem; line-height: 1.6; }
.ctc-home img { display: block; max-width: 100%; }
.ctc-home :is(a,button):focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.ctc-home :is(input,textarea):focus-visible { outline: 3px solid var(--home-mint); outline-offset: 2px; }
.ctc-home [id] { scroll-margin-top: 112px; }
.home-wrap { width: min(90%, 1216px); margin-inline: auto; }
.home-section { padding-block: clamp(48px, 6vw, 90px); }

.home-hero { background: var(--home-night); color: #fff; }
.home-hero-layout {
    display: grid;
    grid-template: "title photo" auto "detail photo" auto / minmax(0, .98fr) minmax(0, 1.02fr);
    align-content: center;
    column-gap: clamp(28px, 5vw, 86px);
    padding-block: clamp(128px, 10.8vw, 172px) clamp(46px, 5.1vw, 82px);
}
.home-hero h1 { grid-area: title; align-self: end; }
.home-hero h1 em { display: block; font-style: normal; color: var(--home-mint); }
.home-hero-image { object-position: 48% 48%; grid-area: photo; width: 100%; height: 100%; min-height: 0; aspect-ratio: 1.35; object-fit: cover; border-radius: 6px; }
.home-hero-details { grid-area: detail; align-self: start; padding-top: 22px; }
.home-hero-details p { max-width: 43ch; font-size: clamp(1.04rem, 1.4vw, 1.22rem); color: #e0eee7; }
.home-hero-details p + p { margin-top: .7em; }
.home-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 25px; }
.ctc-home .home-button, .ctc-home .home-text-link {
    display: inline-flex; align-items: center; gap: .55em; min-height: 44px;
    max-width: 100%; line-height: 1.4; font-size: .96rem; font-weight: 650;
}
.ctc-home .home-button { justify-content: center; padding: 12px 18px; color: var(--home-ink); background: var(--home-mint); border: 1px solid transparent; border-radius: 5px; text-decoration: none; cursor: pointer; }
.ctc-home .home-button:hover { background: #b0ffdf; }
.ctc-home .home-text-link { color: var(--home-green); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .24em; }
.ctc-home .home-text-link:is(:hover,:focus-visible) { text-decoration-color: currentColor; }
.ctc-home .home-actions .home-text-link, .ctc-home .home-contact .home-text-link { color: #d6ffed; }
.ctc-home .home-text-link i, .ctc-home .home-button i { flex: none; }

.home-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 28px; margin-bottom: clamp(24px, 3vw, 40px); }
.home-heading > .home-text-link { flex-shrink: 0; }
.home-service-grid, .home-project-grid, .home-reading-grid, .home-contact-grid, .home-pair { display: grid; gap: 24px; }
.home-service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.home-service-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--home-rule); border-radius: 8px; overflow: hidden; }
.home-service-photo { width: 100%; height: auto; aspect-ratio: 8/5; object-fit: cover; }
.home-service-copy { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: clamp(20px, 2.2vw, 30px); }
.ctc-home .home-service-name, .home-project .home-topic {
    margin: 0 0 12px; color: var(--home-green); font-size: .87rem; font-weight: 680; line-height: 1.4;
}
.home-service-copy h3 + p { margin-top: 15px; color: var(--home-muted); }
.ctc-home .home-list { list-style: disc outside; margin: 18px 0; padding: 0 0 0 1.25em; }
.ctc-home .home-list li { display: list-item; padding-inline-start: .18em; }
.ctc-home .home-list li + li { margin-top: .48em; }
.ctc-home .home-list li::marker { color: var(--home-green); }
.home-service-copy .home-text-link { margin-top: auto; }

.home-work { background: #e4eee7; }
.home-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-project { background: white; border: 1px solid var(--home-rule); border-radius: 8px; overflow: hidden; }
.home-project > img { width: 100%; height: auto; aspect-ratio: 12/7; object-fit: cover; }
.home-project > div { padding: clamp(20px, 2.3vw, 32px); }
.home-project h3 a, .home-reading li a { color: var(--home-ink); text-decoration: none; }
.home-project h3 a:hover, .home-reading li a:hover { text-decoration: underline; text-underline-offset: 3px; }
.home-project h3 i { color: var(--home-green); font-size: .8em; }
.home-project h3 + p { margin-top: 12px; color: var(--home-muted); }
.home-founder { display: grid; grid-template-columns: minmax(180px, 310px) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 80px); }
.home-project-grid + .home-founder { margin-top: clamp(32px, 5vw, 68px); padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid #b3c9bc; }
.home-founder img { width: 100%; height: auto; aspect-ratio: 1.22; border-radius: 6px; object-fit: cover; object-position: 50% 40%; }
.home-founder p { max-width: 57ch; margin-top: 14px; }
.home-founder .home-text-link { margin-top: 12px; }

.home-checks { background: #f0eee4; }
.home-checks h2 { max-width: 23ch; }
.home-check {
    display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); align-items: center;
    gap: clamp(28px, 5vw, 78px); margin-top: clamp(24px, 3vw, 44px);
}
.home-check + .home-check { border-top: 1px solid var(--home-rule); padding-top: clamp(28px, 4vw, 55px); }
.home-check img { width: 100%; height: auto; aspect-ratio: 3/2; border-radius: 6px; object-fit: cover; }
.home-check h3 { max-width: 24ch; font-size: clamp(1.65rem, 2.5vw, 2.3rem); }
.home-check h3 + p { max-width: 47ch; margin-top: 16px; }
.home-check .home-list { max-width: 45ch; }
@media (min-width: 721px) {
    .home-check + .home-check img { grid-column: 2; grid-row: 1; }
    .home-check + .home-check > div { grid-column: 1; grid-row: 1; }
}
@media (max-width: 720px) {
    .home-check { grid-template-columns: 1fr; gap: 20px; }
}
.home-reading-photo { width: 100%; height: auto; aspect-ratio: 2.25; object-fit: cover; border-radius: 6px; margin-bottom: 20px; }
.home-reading-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 78px); margin-top: 34px; }
.home-reading-grid > div { min-width: 0; }
.home-reading-grid ul { list-style: none; padding: 0; margin: 14px 0 8px; }
.home-reading-grid li { border-bottom: 1px solid var(--home-rule); }
.home-reading-grid li a { display: block; padding-block: 12px; line-height: 1.5; font-weight: 550; }
.home-reading-grid p { margin: 14px 0; }
.home-reading-grid p a { color: var(--home-green); text-decoration: underline; }

.home-contact { background: #0d2929; color: #fff; }
.home-contact-grid { grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr); gap: clamp(38px, 7vw, 110px); align-items: start; }
.home-contact h2 { max-width: 15ch; }
.home-contact-copy > p { max-width: 44ch; color: #e3eee8; margin-top: 18px; }
.home-contact-photo { width: 100%; height: auto; aspect-ratio: 2.2; object-fit: cover; object-position: 50% 65%; margin: 24px 0; border-radius: 5px; }
.home-contact-copy h3 { font-size: 1.25rem; letter-spacing: -.025em; }
.ctc-home .home-contact .home-list { margin: 12px 0; }
.ctc-home .home-contact .home-list li::marker { color: var(--home-mint); }
.home-contact-copy .home-phone { margin-top: 8px; }
.home-phone a { color: #d8ffed; text-decoration: underline; text-underline-offset: .2em; white-space: nowrap; }
.home-form { display: grid; gap: 16px; padding: clamp(18px, 2.6vw, 36px); border: 1px solid #426360; border-radius: 8px; }
.home-pair { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.home-form label { display: grid; gap: 6px; margin: 0; font-size: .95rem; font-weight: 550; color: #edf8f1; }
.home-form :is(input:not([type=hidden]),textarea) { width: 100%; min-width: 0; min-height: 44px; margin: 0; padding: 9px 12px; border: 1px solid #86a096; border-radius: 4px; background: #f7faf7; color: var(--home-ink); font-size: 1rem; }
.home-form textarea { resize: vertical; }
.home-form button { justify-self: start; }
.home-form .home-receipt { padding: 13px; color: var(--home-ink); background: #d8ffed; border-radius: 4px; }

/* Keep the shared navigation within the page between its phone and wide layouts. */
@media (min-width: 992px) and (max-width: 1399px) {
    .consulting-home .header-area2 .main-menu > ul > li { padding-inline: 3px; }
    .consulting-home .header-area2 .main-menu > ul > li > a { padding-inline: 8px; }
    .consulting-home .header-area2 .header-btn a { padding-inline: 16px; }
    .consulting-home .header-area2 .nav-right { gap: 12px; }
}

@media (max-width: 800px) {
    .home-wrap { width: min(90%, 660px); }
    .home-hero-layout { grid-template: "title" auto "photo" auto "detail" auto / minmax(0,1fr); padding-block: 118px 34px; }
    .ctc-home h1 { font-size: clamp(2.55rem, 7.7vw, 3.8rem); }
    .home-hero-image { height: auto; aspect-ratio: 1.65; margin-top: 20px; object-position: 48% 41%; }
    .home-hero-details { padding-top: 18px; }
    .home-actions { margin-top: 18px; }
    .home-section { padding-block: 44px; }
    .home-heading { align-items: flex-start; flex-direction: column; gap: 3px; margin-bottom: 18px; }
    .home-service-grid, .home-contact-grid { grid-template-columns: 1fr; }
    .home-service-grid { gap: 24px; }
    .home-service-card { display: grid; grid-template-columns: 40% 1fr; }
    .home-service-photo { height: 100%; }
    .home-service-copy { padding: 22px; }
    .home-project-grid { grid-template-columns: 1fr; }
    .home-founder { grid-template-columns: .72fr 1fr; }
    .home-contact h2 { max-width: 22ch; }
    .home-reading-grid { margin-top: 24px; gap: 28px; }
    .home-contact-grid { gap: 26px; }
}
@media (max-width: 640px) {
    .home-service-card { display: flex; }
    .home-service-photo { height: auto; }
    .home-founder, .home-reading-grid { grid-template-columns: 1fr; }
    .home-founder { gap: 20px; }
    .home-founder img { aspect-ratio: 1.45; object-position: 50% 30%; }
}
@media (max-width: 480px) {
    .home-pair { grid-template-columns: 1fr; }
}
