/* =====================================================================
   Home page (index.html) — 2026 refresh
   ---------------------------------------------------------------------
   Values follow the approved mockup
   (fvl-tpl-homepage-refresh.first-virtue-7787.chatgpt.site), in px.

   The header and footer still come from js/header_footer.js and are
   styled by css/main.css. Everything here is scoped under `.home` /
   `home-*` classes so it does not leak into them. It also undoes the
   globals that base.css and main.css would otherwise apply to the new
   content: html font-size 62.5% and fixed line-height, and the bare
   `p` and `span` rules in main.css.
   ===================================================================== */

html {
    scroll-behavior: smooth;
    /* Keep anchor targets clear of the fixed site header. */
    scroll-padding-top: 63px;
}

.home {
    /* Tangerine and warm-gray palette from the new logo (mockup 2026-11-05). */
    --orange: #fe7f24;
    --orange-text: #fe7f24;   /* orange for small text: readable on white */
    --tint: #fff6ed;          /* light orange background */
    --ink: #646464;
    --muted: #6c6c6a;
    --cream: #fafafa;
    --line: #e6e6e3;

    /* Clear the fixed <header-component> bar (63px tall). */
    padding-top: 63px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: normal;
    color: var(--ink);
    background: var(--cream);
}

/* Undo main.css globals inside the home content. */
.home span {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.home p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 23px;
    text-align: left;
}

.home a {
    color: inherit;
    text-decoration: none;
}

.home a:focus-visible {
    outline: 3px solid #276a95;
    outline-offset: 5px;
}

.home-wrap {
    max-width: 1320px;
    padding: 0 40px;
    margin: auto;
}

/* ---------- Shared bits ---------- */

.home-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background: var(--orange);
    color: #4e4034;
    padding: 17px 23px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--orange);
    transition: 0.2s;
}

.home a.home-button {
    color: #4e4034;
}

.home-button:hover {
    background: #fe9a50;
    border-color: #fe9a50;
}

.home .home-button__arrow {
    font-size: 19px;
}

.home-eyebrow {
    font-size: 11px;
    line-height: 1.6;
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
    color: #71716e;
    display: flex;
    align-items: center;
    gap: 11px;
}

.home-eyebrow::before {
    content: "";
    width: 25px;
    height: 2px;
    background: var(--orange);
}

.home-h2 {
    font-size: 42px;
    font-weight: 500;
    letter-spacing: -1.4px;
    line-height: 1.15;
    margin: 18px 0 0;
}

.home-section {
    padding: 75px 0;
}

.home-section--white {
    background: #fff;
}

.home-heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: end;
    margin-bottom: 44px;
}

.home .home-heading p {
    margin: 0;
}

/* ---------- Hero ---------- */

.home-hero {
    padding: 76px 0 55px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 65px;
    align-items: center;
}

.home-hero__title {
    font-size: clamp(43px, 4.6vw, 66px);
    font-weight: 500;
    letter-spacing: -2.8px;
    line-height: 1.06;
    margin: 27px 0;
}

.home-hero__title em {
    font-style: normal;
    color: #fe7f24;
}

.home .home-hero p {
    max-width: 490px;
}

.home-hero .home-button {
    margin-top: 8px;
}

/* The hero eyebrow is a full sentence and may wrap to two lines. */
.home-hero .home-eyebrow {
    max-width: 480px;
    letter-spacing: 1.3px;
}

.home .home-hero .home-hero__note {
    font-weight: 600;
    color: var(--ink);
}

/* Illustration: documents -> structured data */
.home-visual {
    background: #f2f2ef;
    min-height: 440px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 35px;
    /* Keep the z-indexed pieces below the fixed site header. */
    isolation: isolate;
}

.home-visual::before,
.home-visual::after {
    content: "";
    position: absolute;
    border: 1px solid #e1e1dd;
    width: 470px;
    height: 470px;
    border-radius: 50%;
    top: -210px;
    right: -220px;
}

.home-visual::after {
    width: 590px;
    height: 590px;
    right: -280px;
    top: -270px;
}

.home-visual__label {
    color: #747470;
    position: absolute;
    z-index: 2;     /* on phones the grey data card reaches under the label */
    top: 26px;
    left: 28px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.7px;
}

.home-document {
    background: #fff;
    width: 45%;
    padding: 22px 18px;
    box-shadow: 0 10px 30px #7777770d;
    transform: rotate(-6deg);
    position: relative;
    z-index: 1;
}

.home-document__label {
    font-size: 11px;
    color: var(--orange-text);
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 26px;
}

.home-bar {
    height: 5px;
    background: #e1e1dc;
    margin: 11px 0;
}

.home-bar--short {
    width: 58%;
}

.home-flow {
    color: var(--orange);
    font-size: 33px;
    margin: 0 12px;
    z-index: 1;
}

.home-database {
    background: #858681;
    color: #fff;
    position: relative;
    z-index: 1;
    padding: 24px 19px;
    width: 51%;
    box-shadow: 0 15px 30px #77777718;
}

.home-database strong {
    font-size: 16px;
    font-weight: 500;
}

.home-table {
    margin: 22px 0 20px;
}

.home-table__row {
    display: grid;
    grid-template-columns: 8px 1fr 1fr;
    gap: 10px;
    border-bottom: 1px solid #ffffff40;
    padding: 9px 0;
}

.home-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ffb47c;
}

.home-cell {
    height: 4px;
    background: #ffffff80;
}

.home-data-bottom {
    font-size: 9px;
    letter-spacing: 1px;
    color: #fff;
}

.home-visual__caption {
    color: #6a6a67;
    position: absolute;
    bottom: 25px;
    left: 28px;
    right: 28px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 10px;
    letter-spacing: 0.6px;
}

.home .home-visual__caption-right {
    color: #6a6a67;
    text-align: right;
}

/* Proof points under the hero */
.home-proof {
    border-top: 1px solid var(--line);
    padding: 26px 0 34px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.home-proof > div {
    padding: 0 25px;
    border-left: 1px solid var(--line);
}

.home-proof > div:first-child {
    padding-left: 0;
    border: 0;
}

.home-proof strong {
    color: #6a6a67;
    font-size: 15px;
    display: block;
    margin-bottom: 7px;
}

.home-proof small {
    font-size: 12px;
    color: #737370;
}

/* ---------- The U.S.–Vietnam advantage ---------- */

.home-timezone {
    background: var(--tint);
    border-top: 1px solid #f3e5d8;
}

.home-timezone .home-heading {
    margin-bottom: 0;
}

.home .home-heading .home-timezone__tagline {
    margin-top: 20px;
    font-weight: 600;
    color: var(--ink);
}

.home .home-heading .home-timezone__note {
    margin-top: 15px;
    font-weight: 600;
    color: var(--ink);
}

/* ---------- Our core services (mockup: .core-*) ---------- */

.home-core-intro {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    align-items: end;
    margin-bottom: 38px;
}

.home-core-intro .home-h2 {
    font-size: 43px;
    max-width: 660px;
}

.home .home-core-tagline {
    color: var(--orange-text);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.5;
    margin: 20px 0 0;
}

.home .home-core-lead {
    max-width: 390px;
    margin: 0;
}

.home-core-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.home-core-card {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    min-height: 275px;
    padding: 28px 23px 25px;
    background: #fafafa;
    border: 1px solid #e5e5e2;
}

/* Cards 4 and 5 share the second row. */
.home-core-card:nth-child(4),
.home-core-card:nth-child(5) {
    grid-column: span 3;
}

.home-core-card--featured {
    background: var(--tint);
    border-top: 4px solid var(--orange);
    padding-top: 25px;
}

.home .home-core-num {
    color: #737370;
    font-size: 12px;
    letter-spacing: 1px;
}

.home-core-icon {
    width: 36px;
    height: 36px;
    margin-top: 23px;
    color: var(--orange);
}

.home-core-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-core-card h3 {
    color: #686865;
    font-size: 23px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin: 27px 0 17px;
}

.home-core-card--featured h3 {
    font-weight: 600;
}

.home .home-core-card p {
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

.home-core-cta {
    margin-top: 30px;
}

html.lang-vi .home-core-intro .home-h2 {
    font-size: 39px;
}

html.lang-vi .home-core-card h3 {
    font-size: 22px;
}

html.lang-vi .home-core-card {
    min-height: 300px;
}

/* ---------- The FVL & TPL advantage ---------- */

.home-advantage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.home-advantage .home-h2 {
    font-size: 45px;
    max-width: 440px;
}

.home .home-lead {
    margin-top: 25px;
}

.home-principle {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 10px;
}

.home-principle:first-child {
    padding-top: 0;
}

.home-principle b {
    color: var(--orange-text);
    font-size: 16px;
}

.home-principle h3 {
    color: #686865;
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 500;
}

.home .home-principle p {
    font-size: 14px;
    margin: 0;
}

/* ---------- Call to action band ---------- */

.home-cta {
    background: #ffba86;
    padding: 55px 0;
    color: #4e4034;
}

.home-cta .home-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 35px;
}

.home-cta .home-h2 {
    margin: 0;
    font-size: 40px;
}

.home .home-cta p {
    color: #59493b;
    margin: 14px 0 0;
    font-size: 15px;
}

.home-cta .home-button {
    background: #fff;
    border-color: #fff;
    white-space: nowrap;
}

.home .home-cta a.home-button {
    color: #64645f;
}

.home-cta .home-button:hover {
    background: #fff7ef;
    border-color: #fff7ef;
}

/* ---------- Tablet ---------- */

@media (max-width: 1000px) {
    .home-core-intro {
        gap: 35px;
    }

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

    .home-core-card,
    .home-core-card:nth-child(4) {
        grid-column: span 1;
        min-height: 260px;
    }

    .home-core-card:nth-child(5) {
        grid-column: span 2;
        min-height: 260px;
    }

    html.lang-vi .home-core-card {
        min-height: 270px;
    }
}

@media (max-width: 900px) {
    .home-wrap {
        padding: 0 25px;
    }

    .home-hero {
        gap: 30px;
        padding-top: 45px;
    }

    .home-visual {
        min-height: 370px;
        padding: 25px 18px;
    }

    .home-hero__title {
        font-size: 47px;
    }

    .home-heading {
        gap: 35px;
    }

    .home-advantage {
        gap: 40px;
    }

    .home-proof strong {
        font-size: 13px;
    }

    .home-proof small {
        font-size: 11px;
    }
}

/* ---------- Mobile ---------- */

@media (max-width: 650px) {
    .home-hero {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-bottom: 30px;
    }

    .home-hero__title {
        font-size: 49px;
        letter-spacing: -2px;
    }

    .home-visual {
        min-height: 340px;
    }

    .home-proof {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .home-proof > div {
        padding: 0;
        border: 0;
    }

    .home-heading,
    .home-advantage {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .home-h2,
    .home-advantage .home-h2 {
        font-size: 35px;
    }

    .home-section {
        padding: 50px 0;
    }

    .home-core-intro {
        display: block;
    }

    .home .home-core-lead {
        margin-top: 22px;
    }

    .home-core-intro .home-h2,
    html.lang-vi .home-core-intro .home-h2 {
        font-size: 32px;
    }

    .home-core-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-core-card,
    .home-core-card:nth-child(4),
    .home-core-card:nth-child(5),
    html.lang-vi .home-core-card {
        grid-column: span 1;
        min-height: 0;
        padding: 23px;
    }

    /* Keep the 01-05 order on phones (the mockup moved card 02 to the top). */
    .home-core-card--featured {
        padding-top: 20px;
    }

    .home-core-card h3 {
        margin-top: 18px;
    }

    .home-core-icon {
        margin-top: 18px;
    }

    .home-hero .home-eyebrow {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .home-cta .home-wrap {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-cta .home-h2 {
        font-size: 34px;
    }
}

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

/* ---------------------------------------------------------------------
   Optional announcement popup. Its markup is commented out in
   index.html; these rules (moved from css/index.css) keep it working
   if it is switched back on.
   --------------------------------------------------------------------- */

.modal {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    display: flex;
    z-index: 2;
}

.modal_overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: block;
}

.modal_body {
    --growth-from: 0.7;
    --growth-to: 1;
    margin: auto;
    position: relative;
    z-index: 2;
    border-radius: 5px;
    animation: growth linear 0.1s;
    padding: 30px 30px;
    background-color: #ebebeb;
}

.modal_body img {
    height: 323px;
    width: 809px;
}

@keyframes growth {
    from {
        transform: scale(var(--growth-from));
    }

    to {
        transform: scale(var(--growth-to));
    }
}

.hidden {
    display: none;
}

.modal_close {
    font-size: 3rem;
    color: #666;
    position: absolute;
    top: 0rem;
    right: 0.4rem;
}

.modal_close:hover {
    cursor: pointer;
}

/* Phones: keep the two illustration captions clear of the dark card. */
@media (max-width: 650px) {
    .home-visual {
        padding-bottom: 78px;
    }

    .home-visual__caption {
        flex-direction: column;
        gap: 4px;
        bottom: 18px;
    }

    .home .home-visual__caption-right {
        text-align: left;
    }
}

/* Vietnamese: sizes from the mockup's vi.html (html[lang="vi"] rules). */
html.lang-vi .home-hero__title {
    font-size: clamp(35px, 3.7vw, 53px);
    letter-spacing: -1.7px;
    line-height: 1.14;
}

html.lang-vi .home-h2 {
    font-size: 36px;
    line-height: 1.2;
}

html.lang-vi .home-visual__caption {
    font-size: 9px;
    letter-spacing: 0;
    gap: 15px;
}

html.lang-vi .home-data-bottom {
    font-size: 8px;
    line-height: 1.6;
}

html.lang-vi .home-visual__label {
    font-size: 9px;
}

html.lang-vi .home-proof strong {
    line-height: 1.5;
}

html.lang-vi .home-eyebrow {
    letter-spacing: 1px;
}

@media (max-width: 650px) {
    html.lang-vi .home-hero__title {
        font-size: 41px;
    }

    html.lang-vi .home-h2 {
        font-size: 31px;
    }

    html.lang-vi .home-visual__caption {
        flex-direction: column;
        gap: 6px;
    }

    html.lang-vi .home-hero .home-eyebrow {
        letter-spacing: 0.7px;
    }
}

/* =====================================================================
   Photos (homepage option 2, 2026-11-06): the time-zone band gets a photo
   on the right, the FVL & TPL advantage a row of 3 photos, the
   call-to-action band a team photo and a careers link.
   The photos (images/home/) are free Pexels photos standing in for the
   company's own; replace them under new file names (7-day image cache).
   ===================================================================== */

/* Same warm grade on every photo, so they sit with the beige / grey / orange palette. */
.home-photo {
    filter: sepia(0.16) saturate(0.88) contrast(0.96) brightness(1.04);
}

/* Time-zone band: text left, photo right. */
.home-section.home-timezone {
    padding: 95px 0;
}

.home-timezone .home-timezone__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    grid-template-rows: auto 1fr;
    column-gap: 70px;
    row-gap: 28px;
    align-items: start;
}

.home-timezone__layout > div:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.home-timezone__layout > div:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
}

.home-timezone__photo {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: stretch;
    position: relative;
    min-height: 400px;
    margin: 0;
}

.home-timezone__photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 40%;
}

.home-timezone__photo figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px 22px 16px;
    background: linear-gradient(transparent, rgba(78, 64, 52, 0.78));
    color: #fff6ed;
    font-size: 14px;
}

/* FVL & TPL advantage: 3 photos, same ratio. */
.home-adv-photos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 80px;
}

.home-adv-photos figure {
    margin: 0;
}

.home-adv-photos img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.home .home-adv-photos figcaption {
    width: fit-content;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 2px solid var(--orange);
    font-size: 14px;
    color: var(--ink);
}

/* Call-to-action band: text, button and careers link left; photo right
   (swapped on 2026-11-07, user). Phones stack it, photo first. */
.home-cta .home-cta__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 64px;
    row-gap: 0;
    align-items: center;
}

.home-cta__photo {
    grid-column: 2;
    grid-row: 1 / span 3;
    margin: 0;
}

.home-cta__photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: 50% 40%;
}

.home-cta__layout > div {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
}

.home-cta__layout > a.home-button {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    margin-top: 28px;
}

.home .home-cta .home-cta__careers {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
    margin: 22px 0 0;
    font-size: 14px;
    color: #4e4034;
}

.home .home-cta__careers a {
    color: #4e4034;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Phones: one column. */
@media (max-width: 650px) {
    .home-section.home-timezone {
        padding: 55px 0;
    }

    .home-timezone .home-timezone__layout {
        grid-template-columns: 1fr;
        row-gap: 22px;
    }

    .home-timezone__layout > div:nth-child(1),
    .home-timezone__layout > div:nth-child(2) {
        grid-column: 1;
    }

    .home-timezone__photo {
        grid-column: 1;
        grid-row: 3;
        min-height: 250px;
    }

    .home-adv-photos {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-top: 46px;
    }

    .home-cta .home-cta__layout {
        grid-template-columns: 1fr;
    }

    .home-cta__photo {
        grid-column: 1;
        grid-row: auto;
        margin-bottom: 26px;
    }

    .home-cta__layout > div,
    .home-cta__layout > a.home-button,
    .home .home-cta .home-cta__careers {
        grid-column: 1;
        grid-row: auto;
    }
}

/* =====================================================================
   Our Customers & Partners (2026-11-06): heading in the same left / right
   layout as "Our core services" (home-core-intro); one large featured office
   photo, then smaller photos in a 3-column gallery (2 columns on phones);
   rounded photo corners and a subtle zoom on hover; closing line with the
   button on the right.
   Photos: images/home/home-partners-*, free Pexels photos standing in for
   the company's own customer-visit photos (replace under new file names).
   ===================================================================== */
.home-partners__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 22px;
}

.home-partners__card {
    margin: 0;
}

.home-partners__card--featured {
    grid-column: 1 / -1;
}

.home-partners__media {
    overflow: hidden;
    border-radius: 14px;
    background: var(--cream);
}

.home-partners__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home-partners__card--featured .home-partners__media img {
    height: 560px;
    aspect-ratio: auto;
}

.home-partners__card:hover .home-partners__media img {
    transform: scale(1.04);
}

.home .home-partners__card h3 {
    color: #686865;
    font-size: 21px;
    font-weight: 500;
    letter-spacing: -0.3px;
    margin: 16px 0 4px;
    transition: color 0.2s;
}

.home .home-partners__card:hover h3 {
    color: var(--orange);
}

.home .home-partners__card p {
    font-size: 14px;
    margin: 0;
}

.home-partners__close {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-top: 52px;
    padding-top: 34px;
    border-top: 1px solid var(--line);
}

.home .home-partners__close h3 {
    color: var(--ink);
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -0.8px;
    line-height: 1.25;
    margin: 0;
}

.home .home-partners__close p {
    max-width: 620px;
    margin: 12px 0 0;
}

.home-partners__close .home-button {
    flex-shrink: 0;
}

/* Closing block with a photo (since 2026-11-07): title, text and button on the left,
   the aerial team photo on the right (swapped 2026-11-07, user); stacked (photo first) on phones. */
.home-partners__close--photo {
    display: grid;
    /* photo column 70% of half the width (user, 2026-11-07): 0.7 x 1/2 = 7 : 13 */
    grid-template-columns: minmax(0, 13fr) minmax(0, 7fr);
    align-items: center;
    gap: 56px;
}

.home-partners__close-photo {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    overflow: hidden;
    border-radius: 14px;
    /* the inline style adds a tiny blurred preview of the photo, shown while it loads */
    background: var(--cream) center / cover no-repeat;
}

.home-partners__close-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 4;
    object-fit: cover;
}

.home-partners__close-body {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
}

@media (max-width: 650px) {
    .home-partners__close--photo {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .home-partners__close-photo {
        grid-column: auto;
        grid-row: auto;
        border-radius: 12px;
    }

    .home-partners__close-body {
        grid-column: auto;
        grid-row: auto;
        gap: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-partners__media img {
        transition: none;
    }

    .home-partners__card:hover .home-partners__media img {
        transform: none;
    }
}

/* Phones: 2-column gallery (featured photo and the last one full width). */
@media (max-width: 650px) {
    .home-partners__grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px 14px;
    }

    .home-partners__card:last-child {
        grid-column: 1 / -1;
    }

    .home-partners__media {
        border-radius: 12px;
    }

    .home-partners__card--featured .home-partners__media img {
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .home .home-partners__card h3 {
        font-size: 17px;
        margin-top: 12px;
    }

    .home .home-partners__card p {
        font-size: 13px;
        line-height: 1.5;
    }

    .home-partners__close {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        margin-top: 38px;
    }

    .home .home-partners__close h3 {
        font-size: 25px;
    }
}

/* =====================================================================
   Back-to-top button (.home-totop), added to the live homepage 2026-11-07.
   It appears after 500px of scrolling; the ring fills as you scroll down
   (script at the end of index.html).
   ===================================================================== */

.home-totop {
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 900;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--orange);
    color: #4e4034;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(78, 64, 52, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(0.9);
    transition: opacity 0.3s, transform 0.3s, visibility 0s linear 0.3s, background 0.2s;
}

.home-totop.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.3s, transform 0.3s, background 0.2s;
}

.home-totop:hover {
    background: #fe9a50;
}

.home-totop:focus-visible {
    outline: 3px solid #276a95;
    outline-offset: 6px;
}

.home-totop__arrow {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s;
}

.home-totop:hover .home-totop__arrow {
    transform: translateY(-2px);
}

/* Progress ring around the button */
.home-totop__ring {
    position: absolute;
    inset: -6px;
    width: calc(100% + 12px);
    height: calc(100% + 12px);
    transform: rotate(-90deg);
    pointer-events: none;
}

.home-totop__ring circle {
    fill: none;
    stroke-width: 2.5;
}

.home-totop__track {
    stroke: rgba(254, 127, 36, 0.2);
}

.home-totop__bar {
    stroke: #fe7f24;
    stroke-linecap: round;
    stroke-dasharray: 191.64;
    stroke-dashoffset: 191.64;
}

@media (max-width: 650px) {
    /* Smaller on phones (user, 2026-11-07: "hơi to"), so it covers less text. */
    .home-totop {
        right: 12px;
        bottom: 14px;
        width: 36px;
        height: 36px;
        box-shadow: 0 6px 16px rgba(78, 64, 52, 0.22);
    }

    .home-totop__ring {
        inset: -4px;
        width: calc(100% + 8px);
        height: calc(100% + 8px);
    }

    .home-totop__ring circle {
        stroke-width: 3;
    }

    .home-totop__arrow {
        width: 15px;
        height: 15px;
        stroke-width: 2.4;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-totop {
        transition: none;
    }
}

@media print {
    .home-totop {
        display: none;
    }
}

/* =====================================================================
   Homepage layout since 2026-11-07 (design D, chosen from the demos
   mau_a..d_demo.html): eyebrow and title on one line, the copy in two
   columns, then 4 photo tiles in a row (.homed-tile). A tile opens its
   section (.homec-pane: services / timezone / approach / partners) in a
   centered popup (.homec-drawer.homed-modal, full screen on phones);
   script at the end of index.html. Everything here is scoped under
   .homed-* / .homec-* classes. The older rules above serve the backup
   pages (index_20261107_bk.html, index_20261107b_bk.html).
   ===================================================================== */

/* Section texts reused from the one-screen layout */
.home .home-explore__tagline {
    margin: 0 0 14px;
    color: var(--ink);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.5;
}

.home .home-explore__note {
    margin-bottom: 0;
    color: var(--ink);
    font-weight: 600;
}

@media (max-width: 650px) {
    .home .home-explore__tagline {
        font-size: 17px;
    }
}

.homed-wrap { max-width: 1320px; margin: 0 auto; padding: 42px 40px 20px; }
.home .homed-title { margin: 16px 0 24px; font-size: clamp(40px, 3.9vw, 62px); font-weight: 500; letter-spacing: -2.2px; line-height: 1.08; color: var(--ink); text-wrap: balance; }
html.lang-vi .home .homed-title { font-size: clamp(28px, 2.45vw, 40px); letter-spacing: -1.1px; line-height: 1.16; }
.homed-title em { font-style: normal; color: #fe7f24; }
.homed-intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: end; }
.home .homed-intro p { margin: 0 0 12px; }
.home .homed-intro .homed-note { margin-bottom: 0; font-weight: 600; color: var(--ink); }
.homed-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.home a.homed-link { font-size: 14px; font-weight: 600; color: #4e4034; text-decoration: underline; text-underline-offset: 3px; }
.home a.homed-link:hover { color: #e06a14; }
.homed-proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); } /* 18px (was 22px): offsets the bigger 16px text, so the first screen keeps its height */
.home .homed-proof > span { display: flex; align-items: center; gap: 8px; font-size: 16px; color: #5e5e5b; } /* same size as the intro text ("Backlogs growing...") */
.homed-proof i { color: var(--orange); }

.homed-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.homed-tile {
  display: flex; flex-direction: column;
  width: 100%; padding: 0;
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: #fff; color: inherit; font-family: inherit; text-align: left; cursor: pointer;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.homed-tile:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(78, 64, 52, .12); border-color: #ffba86; }
.homed-tile:focus-visible { outline: 3px solid #276a95; outline-offset: 3px; }
.homed-tile.is-active { border-color: var(--orange); }
.homed-tile img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 16 / 10; object-fit: cover;
  transition: transform .5s ease;
}
.homed-tile:hover img { transform: scale(1.04); }
.home .homed-tile__media { display: block; overflow: hidden; }
.home .homed-tile__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 4px 14px; padding: 16px 18px 18px; }
.home .homed-tile__eyebrow { grid-column: 1 / -1; font-size: 10px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; color: #8a8a86; }
.home .homed-tile__eyebrow b { margin-right: 6px; color: var(--orange); }
.home .homed-tile__title { font-size: 19px; font-weight: 500; line-height: 1.3; color: var(--ink); }
html.lang-vi .home .homed-tile__title { font-size: 17px; }
.home .homed-tile__go { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--tint); color: #e06a14; font-size: 16px; transition: background .2s, color .2s; }
.homed-tile:hover .homed-tile__go, .homed-tile.is-active .homed-tile__go { background: var(--orange); color: #4e4034; }

/* ================= Side drawer ================= */
.homec-scrim {
  position: fixed; inset: 0; z-index: 1990;
  background: rgba(30, 22, 16, .5);
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility 0s .3s;
}
.homec-scrim.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }
.homec-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 2000;
  display: flex; flex-direction: column;
  width: min(720px, 100vw);
  background: #fff;
  box-shadow: -30px 0 60px rgba(0, 0, 0, .25);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .38s cubic-bezier(.2, .8, .2, 1), visibility 0s .38s;
}
.homec-drawer.is-open { transform: none; visibility: visible; transition: transform .38s cubic-bezier(.2, .8, .2, 1); }
.homec-drawer__head {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 22px 16px 40px;
  border-bottom: 1px solid var(--line);
}
.homec-steps { display: flex; flex: 1; gap: 6px; min-width: 0; }
.homec-step {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: #6c6c6a;
  font: 600 13px/1.2 Arial, Helvetica, sans-serif;
  white-space: nowrap; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.home .homec-step b { color: var(--orange); font-size: 11px; }
.homec-step:hover { border-color: var(--orange); color: #4e4034; }
.homec-step.is-active { background: var(--orange); border-color: var(--orange); color: #4e4034; }
.home .homec-step.is-active b { color: #4e4034; }
.homec-close {
  flex: none; display: grid; place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: 50%;
  background: #fff; color: #4e4034; font-size: 17px; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.homec-close:hover { background: var(--tint); border-color: var(--orange); }
.homec-step:focus-visible, .homec-close:focus-visible, .homec-next:focus-visible { outline: 3px solid #276a95; outline-offset: 2px; }
.homec-drawer__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 32px 40px 40px; }

html.homec-lock { overflow: hidden; }
html.homec-lock body { padding-right: var(--homec-sbw, 0); }

/* The drawer from design C becomes a centered popup here. */
.homec-drawer.homed-modal {
  top: 50%; left: 50%; right: auto; bottom: auto;
  width: min(1040px, calc(100vw - 48px));
  height: min(860px, calc(100vh - 48px));
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .3);
  opacity: 0;
  transform: translate(-50%, -47%) scale(.97);
  transition: transform .3s ease, opacity .3s ease, visibility 0s .3s;
}
.homec-drawer.homed-modal.is-open { opacity: 1; transform: translate(-50%, -50%); transition: transform .3s ease, opacity .3s ease; }
.homec-pane { animation: homec-fade .35s ease; }
@keyframes homec-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.home .homec-pane__title { margin: 12px 0 0; font-size: 34px; font-weight: 500; letter-spacing: -.9px; line-height: 1.15; color: var(--ink); }
html.lang-vi .home .homec-pane__title { font-size: 29px; letter-spacing: -.5px; }
.home .homec-pane .home-core-tagline { margin: 10px 0 8px; }
.home .homec-pane .homec-lead { font-size: 15px; margin: 0 0 22px; }

/* Services list */
.homec-list { list-style: none; margin: 0; padding: 0; }
.homec-list li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.homec-list li:last-child { border-bottom: 1px solid var(--line); }
.homec-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--tint); }
.homec-ico svg { width: 26px; height: 26px; fill: none; stroke: var(--orange); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.home .homec-list h3 { margin: 2px 0 4px; font-size: 17px; font-weight: 600; color: #5e5e5b; }
.home .homec-list h3 small { margin-right: 8px; color: var(--orange); font-size: 12px; }
.home .homec-list p { margin: 0; font-size: 14px; line-height: 1.6; }

/* Time zone: live clocks */
.home .homec-pane .home-explore__tagline { margin-top: 18px; }
.homec-clocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 26px 0; }
.homec-clock { padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fafafa; }
.homec-clock--us { background: #fff; }
.homec-clock--vn { background: var(--tint); border-color: #ffba86; }
.home .homec-clock__city { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #8a8a86; }
.homec-clock__city i { font-size: 15px; color: #b9b2ab; }
.homec-clock--vn .homec-clock__city i { color: var(--orange); }
.home .homec-clock__time { display: block; margin-top: 10px; font-size: 30px; font-weight: 500; letter-spacing: -.8px; color: #4e4034; }
.home .homec-clock__day { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.home .homec-clocks-note { margin: 24px 0 10px; font-size: 13px; color: #8a8a86; }
.homec-clocks-note ~ .homec-clocks { margin-top: 0; } /* note sits above the clocks (2026-11-09) */
.homec-pane .home-explore__photo { margin-top: 6px; }

/* Commitment */
.homec-pane .home-principle { padding: 18px 0; }
.homec-pane .home-principle:first-child { padding-top: 18px; border-top: 1px solid var(--line); }
.homec-pane .home-adv-photos { margin-top: 26px; gap: 12px; }
.home .homec-pane .home-adv-photos img { border-radius: 10px; }
.home .homec-pane .home-adv-photos figcaption { font-size: 13px; }

/* Partners */
.homec-pane .home-partners__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
.homec-pane .home-partners__card:last-child { grid-column: auto; }
.home .homec-pane .home-partners__card h3 { margin-top: 12px; font-size: 17px; }
.homec-pane .home-partners__close--photo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; margin-top: 30px; padding-top: 26px; }
.home .homec-pane .home-partners__close h3 { font-size: 24px; }
.home .homec-pane .home-partners__close p { font-size: 14px; }
.homec-pane .home-partners__close-body { gap: 20px; }

/* "Next" link and the shared call to action at the end of the drawer */
.homec-next {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  width: 100%; margin-top: 28px; padding: 16px 20px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  font: 600 15px/1.35 Arial, Helvetica, sans-serif; color: #4e4034; text-align: left; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.homec-next:hover { border-color: var(--orange); background: var(--tint); }
.home .homec-next small { display: block; margin-bottom: 3px; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: #8a8a86; }
.home .homec-next__arrow { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: #4e4034; font-size: 16px; }
.homec-cta {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 22px;
  margin-top: 30px; padding: 24px 26px; border-radius: 16px; background: var(--tint);
}
.home .homec-cta h3 { margin: 0 0 4px; font-size: 21px; font-weight: 600; color: #4e4034; }
.home .homec-cta p { margin: 0; font-size: 14px; }
.home .homec-cta .homec-cta__careers { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid #ffd9bd; font-size: 13px; }
.home .homec-cta__careers a { margin-left: 6px; color: #e06a14; font-weight: 600; }


/* Wider popup: use the room */
@media (min-width: 651px) {
  .homed-modal .homec-drawer__head { padding-left: 48px; }
  .homed-modal .homec-drawer__scroll { padding: 34px 48px 44px; }
  .homed-modal .homec-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 34px; }
  .homed-modal .homec-list li:last-child { border-bottom: 0; }
  /* Partners: "Connecting at Our Office" on its own row, the other 3 photos on one row (user, 2026-11-07) */
  .homed-modal .homec-pane .home-partners__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 18px; }
  .homed-modal .homec-pane .home-partners__card:first-child { grid-column: 1 / -1; }
  .homed-modal .homec-pane .home-partners__card:first-child .home-partners__media img { aspect-ratio: 21 / 8; }
  .home .homed-modal .homec-pane .home-partners__card:first-child h3 { font-size: 21px; }
  .homed-modal .homec-pane .home-partners__close--photo { grid-template-columns: minmax(0, 13fr) minmax(0, 7fr); gap: 40px; }
  /* Intro text uses the full popup width and is justified, so lines reach the right edge
     (user, 2026-11-09: the 760px cap and the ragged edge left a gap on the right). Desktop only. */
  .homed-modal .homec-pane .homec-lead, .homed-modal .homec-pane > p { max-width: none; text-align: justify; }
}

@media (min-width: 1001px) and (max-height: 820px) {
  .homed-wrap { padding-top: 26px; padding-bottom: 16px; }
  .home .homed-title { margin: 12px 0 16px; font-size: clamp(38px, 3.4vw, 52px); }
  .home .homed-intro p { font-size: 15px; margin-bottom: 8px; }
  .homed-proof { margin-top: 16px; padding-top: 14px; }
  .home .homed-proof > span { font-size: 15px; }
  .homed-tiles { gap: 14px; margin-top: 26px; }
  .homed-tile img { aspect-ratio: 16 / 9; }
  .home .homed-tile__body { padding: 12px 16px 14px; }
}

@media (max-width: 1000px) {
  .homed-wrap { padding: 30px 28px 20px; }
  .homed-intro { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .homed-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 30px; }
}

@media (max-width: 650px) {
  .homed-wrap { padding: 26px 16px 16px; }
  .home .homed-title { font-size: 38px; letter-spacing: -1.5px; }
  html.lang-vi .home .homed-title { font-size: 30px; letter-spacing: -1px; }
  .home .homed-intro p { font-size: 15px; }
  .home .homed-proof > span { font-size: 15px; }
  .homed-tiles { gap: 10px; margin-top: 26px; }
  .homed-tile { border-radius: 14px; }
  .homed-tile img { aspect-ratio: 4 / 3; }
  .home .homed-tile__body { grid-template-columns: minmax(0, 1fr); padding: 11px 12px 13px; }
  .home .homed-tile__eyebrow { font-size: 9px; letter-spacing: 1px; }
  .home .homed-tile__title, html.lang-vi .home .homed-tile__title { font-size: 15px; }
  .home .homed-tile__go { display: none; }

  .homec-drawer.homed-modal { top: 0; left: 0; width: 100vw; height: 100%; border-radius: 0; transform: translateY(24px); }
  .homec-drawer.homed-modal.is-open { transform: none; }
  .homec-drawer__head { padding: 12px 12px 12px 16px; gap: 10px; }
  .homec-steps { overflow-x: auto; scrollbar-width: none; }
  .homec-steps::-webkit-scrollbar { display: none; }
  .homec-step { padding: 7px 10px; font-size: 12px; }
  .homec-close { width: 38px; height: 38px; }
  .homec-drawer__scroll { padding: 24px 18px 30px; }

  .home .homec-pane__title { font-size: 27px; }
  html.lang-vi .home .homec-pane__title { font-size: 24px; }
  .homec-clocks { grid-template-columns: 1fr; gap: 8px; }
  .homec-clock { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; padding: 12px 14px; }
  .home .homec-clock__time { grid-row: 1 / span 2; grid-column: 2; margin: 0; font-size: 24px; text-align: right; }
  .home .homec-clock__day { grid-column: 1; }
  .homec-pane .home-adv-photos { grid-template-columns: 1fr 1fr; }
  .homec-pane .home-adv-photos figure:first-child { grid-column: 1 / -1; }
  .homec-pane .home-partners__close--photo { grid-template-columns: 1fr; }
  .homec-cta { grid-template-columns: 1fr; padding: 20px; }

  /* Partners on phones too: "Connecting at Our Office" on its own row, the other 3 on one row (user, 2026-11-07) */
  .homed-modal .homec-pane .home-partners__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 10px; }
  .homed-modal .homec-pane .home-partners__card:first-child { grid-column: 1 / -1; }
  .homed-modal .homec-pane .home-partners__card:first-child .home-partners__media img { aspect-ratio: 16 / 10; }
  .homed-modal .homec-pane .home-partners__card:not(:first-child) .home-partners__media img { aspect-ratio: 1 / 1; }
  .homed-modal .homec-pane .home-partners__media { border-radius: 10px; }
  .home .homed-modal .homec-pane .home-partners__card h3 { margin-top: 8px; font-size: 14px; line-height: 1.3; }
  .home .homed-modal .homec-pane .home-partners__card:first-child h3 { margin-top: 10px; font-size: 17px; }
  .home .homed-modal .homec-pane .home-partners__card p { margin-top: 3px; font-size: 12px; line-height: 1.45; }
}

@media (prefers-reduced-motion: reduce) {
  .homec-drawer, .homec-scrim, .homed-tile, .homed-tile img { transition: none; }
  .homec-pane { animation: none; }
}

/* Call to action under the tiles (2026-11-07, user): the same box that ends every popup section.
   Since 2026-11-09 (user), left to right in 5 : 4 : 3 columns: the photo -> "What's waiting on your
   desk?" + sub-text -> "Talk to Our Team" (normal size, at the start of its column); the careers link sits under the text and
   the button. .homed-cta__body uses display: contents on desktop so its children join the 3 columns.
   The photo is inside the light-orange box with a 12px frame and at least as tall as the tile photos
   above (computed with container units: tile = (box width - 3 x tile gap) / 4, minus the tile's 2px
   border, divided by the tile photo ratio; keep --tile-gap / --tile-ratio in step with the tiles).
   The box at the end of each popup section (.homec-cta without .homed-cta) is unchanged. */
.homed-cta {
  --cta-py: 20px;
  --cta-px: 32px;
  --cta-frame: 12px;
  --tile-gap: 18px;
  --tile-ratio: 1.6;
  container-type: inline-size;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
  grid-template-rows: 1fr auto auto 1fr;
  gap: 0 40px;
  margin-top: 22px;
  padding: var(--cta-py) var(--cta-px);
  overflow: hidden;
}
.homed-cta__photo {
  --photo-h: 184px;
  grid-column: 1; grid-row: 1 / -1; align-self: stretch;
  position: relative; overflow: hidden; border-radius: 10px;
  min-height: calc(var(--photo-h) + 16px); /* a little taller than the tile photos, more of the table shows (user, 2026-11-09) */
  margin: calc(var(--cta-frame) - var(--cta-py)) 0 calc(var(--cta-frame) - var(--cta-py)) calc(var(--cta-frame) - var(--cta-px));
}
@supports (width: 1cqw) {
  .homed-cta__photo { --photo-h: calc(((100cqw + 2 * var(--cta-px) - 3 * var(--tile-gap)) / 4 - 2px) / var(--tile-ratio)); }
}
.home .homed-cta__photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 50% 37%;
}
.homed-cta__body { display: contents; }
.homed-cta__text { grid-column: 2; grid-row: 2; align-self: center; min-width: 0; }
.home .homed-cta .home-button { grid-column: 3; grid-row: 2; align-self: center; justify-self: start; }
.home .homed-cta h2 { margin: 0 0 2px; font-size: 22px; font-weight: 600; letter-spacing: -.2px; color: #4e4034; text-wrap: balance; }
/* Sub-text as large as the intro text at the top of the page (user, 2026-11-09) */
.home .homed-cta .homed-cta__text p { font-size: 16px; line-height: 1.7; }
.home .homed-cta .homec-cta__careers { grid-column: 2 / 4; grid-row: 3; margin-top: 16px; padding-top: 14px; }
.home .homed-cta .homec-cta__careers a { white-space: nowrap; }

/* Narrow desktops: a tighter button so it stays on one line in its column */
@media (min-width: 1001px) and (max-width: 1199px) {
  .home .homed-cta .home-button { gap: 16px; padding-left: 18px; padding-right: 18px; white-space: nowrap; }
}

@media (min-width: 1001px) and (max-height: 820px) {
  .homed-cta { --cta-py: 14px; --cta-px: 26px; --tile-gap: 14px; --tile-ratio: 1.7778; margin-top: 18px; }
  .home .homed-cta .homed-cta__text p { font-size: 15px; }
}

/* Tablets: photo left half, text / button / careers link stacked on the right. */
@media (max-width: 1000px) {
  .homed-cta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: none; column-gap: 28px; }
  .homed-cta__photo { grid-row: 1; min-height: 200px; }
  .homed-cta__body { grid-column: 2; grid-row: 1; align-self: center; min-width: 0;
    display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
  .homed-cta__text { align-self: stretch; }
  .home .homed-cta .home-button { align-self: flex-start; justify-self: auto; }
  .home .homed-cta .homec-cta__careers { align-self: stretch; margin-top: 0; padding-top: 12px; }
}

/* Phones: the photo becomes a strip across the top of the box. */
@media (max-width: 650px) {
  .homed-cta { --cta-py: 20px; --cta-px: 20px; grid-template-columns: minmax(0, 1fr); row-gap: 18px; margin-top: 22px; }
  .home .homed-cta h2 { font-size: 19px; }
  .home .homed-cta .homed-cta__text p { font-size: 15px; }
  .homed-cta__photo { grid-column: 1; grid-row: 1; min-height: 0; aspect-ratio: 16 / 9;
    margin: calc(var(--cta-frame) - var(--cta-py)) calc(var(--cta-frame) - var(--cta-px)) 0; }
  .homed-cta__body { grid-column: 1; grid-row: 2; }
}
