/* How We Work: steps (faded numeral behind each title, rule between steps) beside a photo that bleeds to the right
 * edge with a review card in its lower-left corner. */
.ocf-commitments { background: var(--ocf-bg); }

.ocf-commitments-grid {
    width: min(100% - (var(--container-pad) * 2), var(--container-max));
    margin-inline: auto;
}

.ocf-commitments--photo .ocf-commitments-grid {
    display: grid;
    grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
    gap: calc(var(--ocf-grid-gap) * 3.5);
    align-items: center;
    width: auto;
    margin-left: max(var(--container-pad), calc((100% - var(--container-max)) / 2));
    margin-right: 0;
}

.ocf-commitments-heading { margin-bottom: calc(var(--ocf-grid-gap) * 1); }

.ocf-commitment {
    position: relative;
    padding: calc(var(--ocf-grid-gap) * 1.333) 0 calc(var(--ocf-grid-gap) * 1.167);
    border-bottom: var(--card-border-width) solid var(--ocf-border);
    isolation: isolate;
}

.ocf-commitment-num {
    position: absolute;
    top: calc(var(--ocf-grid-gap) * 0.5);
    left: -0.18em;
    z-index: -1;
    color: var(--ocf-primary);
    font-family: var(--ocf-font-heading), system-ui, sans-serif;
    font-size: clamp(4.5rem, 6vw, 6rem);
    line-height: 1;
    opacity: 0.12;
}

.ocf-commitment h3 {
    margin: 0 0 6px;
    font-family: var(--ocf-font-body), system-ui, sans-serif;
    font-size: calc(var(--font-body-size) * 1.3);
    font-weight: var(--font-weight-semibold);
    line-height: 1.3;
}

.ocf-commitment p {
    color: var(--ocf-body);
    max-width: 52ch;
}

.ocf-commitments-photo {
    position: relative;
    margin: 0;
    min-height: 600px;
    overflow: hidden;
    border-radius: var(--image-radius) 0 0 var(--image-radius);
    box-shadow: var(--image-shadow);
}

.ocf-commitments-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ocf-commitments-review {
    position: absolute;
    left: 28px;
    bottom: 28px;
    display: grid;
    gap: 12px;
    width: min(360px, calc(100% - 56px));
    padding: 24px 28px 26px;
    border-radius: var(--card-radius);
    background: var(--dakota-bg-alt);
    color: var(--ocf-heading);
    font-size: calc(var(--font-body-size) * 0.94);
    line-height: 1.55;
}

.ocf-commitments-review__stars { color: var(--dakota-star); letter-spacing: 0.14em; }
.ocf-commitments-review strong { font-size: var(--ocf-font-small-size); font-weight: var(--font-weight-semibold); }

@media (max-width: 1023px) {
    .ocf-commitments--photo .ocf-commitments-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: calc(var(--ocf-grid-gap) * 2);
        width: min(100% - (var(--container-pad) * 2), var(--container-max));
        margin-inline: auto;
    }

    .ocf-commitments-photo {
        min-height: 0;
        aspect-ratio: 4 / 3;
        border-radius: var(--image-radius);
    }
}

@media (max-width: 640px) {
    .ocf-commitments-photo { aspect-ratio: auto; min-height: 380px; }
    .ocf-commitments-review { left: 16px; bottom: 16px; width: calc(100% - 32px); padding: 20px 22px; }
}

/* OCF_AGENT_BLOCK:about-commitments-match-story-image-size START */
.ocf-commitments--photo .ocf-commitments-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: calc(var(--ocf-grid-gap) * 2.5);
    align-items: start;
    width: min(100% - (var(--container-pad) * 2), var(--container-max));
    margin-inline: auto;
}

.ocf-commitments-photo {
    min-height: 0;
    height: var(--ocf-about-story-image-height);
    border-radius: var(--image-radius);
}
/* OCF_AGENT_BLOCK:about-commitments-match-story-image-size END */

/* OCF_AGENT_BLOCK:mobile-commitments-stack START */
@media (max-width: 767px) {
    /* The later photo/story sizing rule can override the earlier tablet stack. Keep the feature list full width. */
    .ocf-commitments--photo .ocf-commitments-grid {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        gap: 24px;
        width: min(100% - 40px, var(--container-max));
        margin-inline: auto;
    }

    /* Place the supporting owner image between the section heading and numbered features. */
    .ocf-commitments-copy { display: contents; }
    .ocf-commitments-heading { order: 1; margin: 0; }
    .ocf-commitments-photo {
        order: 2;
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: auto;
        border-radius: var(--image-radius);
    }
    .ocf-commitments-photo img {
        position: static;
        display: block;
        width: 100%;
        height: auto;
        max-height: 460px;
        object-fit: contain;
        object-position: center;
    }
    .ocf-commitments-list { order: 3; min-width: 0; }
    .ocf-commitment p { max-width: none; }
}
/* OCF_AGENT_BLOCK:mobile-commitments-stack END */

/* OCF_AGENT_BLOCK:commitment-step-redesign START */
/* Clear stacked process steps: number above heading, never behind text */
#commitments .ocf-commitment{position:relative;isolation:isolate;padding:22px 0 28px;min-width:0}
#commitments .ocf-commitment-num{position:static;display:block;z-index:auto;opacity:1;color:#b47a00;font-size:clamp(2.5rem,4vw,3.5rem);font-weight:800;line-height:1;letter-spacing:-.045em;margin:0 0 14px;transform:none}
#commitments .ocf-commitment h3{position:relative;z-index:1;margin:0 0 9px;line-height:1.25}
#commitments .ocf-commitment p{position:relative;z-index:1;margin:0;line-height:1.65}
#commitments .ocf-commitment + .ocf-commitment{border-top:1px solid rgba(25,25,35,.13)}
@media(max-width:767px){#commitments .ocf-commitment{padding:18px 0 23px}#commitments .ocf-commitment-num{font-size:2.7rem;margin-bottom:10px}}
@media(prefers-reduced-motion:no-preference){
#commitments .ocf-commitment{animation:commitment-slide-in .65s both;animation-timing-function:cubic-bezier(.2,.75,.25,1)}
#commitments .ocf-commitment:nth-child(2){animation-delay:.13s}
#commitments .ocf-commitment:nth-child(3){animation-delay:.26s}
#commitments .ocf-commitment:nth-child(n+4){animation-delay:.39s}
@keyframes commitment-slide-in{from{opacity:0;transform:translateX(-30px)}to{opacity:1;transform:translateX(0)}}
}
@media(prefers-reduced-motion:reduce){#commitments .ocf-commitment{animation:none!important;transform:none!important;opacity:1!important}}
/* OCF_AGENT_BLOCK:commitment-step-redesign END */

/* OCF_AGENT_BLOCK:commitment-step-refinement START */
#commitments .ocf-commitment-num{color:#ffb400;}
#commitments .ocf-commitment:first-child{padding-top:0;}
@media(prefers-reduced-motion:no-preference){#commitments .ocf-commitment{animation:commitment-slide-in .7s cubic-bezier(.2,.75,.25,1) both;animation-delay:0s}#commitments .ocf-commitment:nth-child(2){animation-delay:.16s}#commitments .ocf-commitment:nth-child(3){animation-delay:.32s}#commitments .ocf-commitment:nth-child(n+4){animation-delay:.48s}}
@media(prefers-reduced-motion:reduce){#commitments .ocf-commitment{animation:none!important;opacity:1!important;transform:none!important}}
/* OCF_AGENT_BLOCK:commitment-step-refinement END */

/* OCF_AGENT_BLOCK:commitment-step-header-panels START */
#commitments .ocf-commitment-header{display:flex;align-items:center;gap:16px;padding:14px 18px;border:1px solid rgba(255,180,0,.45);border-left:5px solid #ffb400;border-radius:13px;background:#fff9e8;box-shadow:0 3px 12px rgba(20,22,34,.045);margin-bottom:14px;min-width:0}
#commitments .ocf-commitment-header .ocf-commitment-num{display:flex;flex:0 0 48px;width:48px;height:48px;align-items:center;justify-content:center;margin:0;border-radius:10px;background:#ffb400;color:#17151d;font-size:1.7rem;font-weight:850;line-height:1}
#commitments .ocf-commitment-header h3{margin:0;color:#17151d;font-size:clamp(1.1rem,1.7vw,1.45rem);line-height:1.25;overflow-wrap:anywhere}
#commitments .ocf-commitment>p{padding-left:2px}
@media(max-width:767px){#commitments .ocf-commitment-header{gap:12px;padding:12px;border-radius:11px}#commitments .ocf-commitment-header .ocf-commitment-num{flex-basis:42px;width:42px;height:42px;font-size:1.45rem}#commitments .ocf-commitment-header h3{font-size:1.12rem}}
@media(prefers-reduced-motion:no-preference){#commitments .ocf-commitment{animation:commitment-slide-in .7s cubic-bezier(.2,.75,.25,1) both}}
/* OCF_AGENT_BLOCK:commitment-step-header-panels END */

/* OCF_AGENT_BLOCK:commitment-border-scroll-animation START */
/* Clean bordered step headers: no left accent strip or shadow */
#commitments .ocf-commitment-header{border:1px solid rgba(255,180,0,.65);border-left-width:1px;box-shadow:none;background:#fff9e8}
/* Scroll-triggered reveal from the right, staggered per step */
@media(prefers-reduced-motion:no-preference){
#commitments .ocf-commitment{animation-name:commitment-enter-from-right;animation-duration:.7s;animation-fill-mode:both;animation-timing-function:cubic-bezier(.2,.75,.25,1)}
@keyframes commitment-enter-from-right{from{opacity:0;transform:translateX(44px)}to{opacity:1;transform:translateX(0)}}
@supports(animation-timeline:view()){
#commitments .ocf-commitment{animation-timeline:view();animation-range:entry 0% entry 75%;animation-delay:0s}
}
}
@media(prefers-reduced-motion:reduce){#commitments .ocf-commitment{animation:none!important;opacity:1!important;transform:none!important}}
/* OCF_AGENT_BLOCK:commitment-border-scroll-animation END */

/* OCF_AGENT_BLOCK:commitment-smooth-scroll-reveal START */
/* Controlled scroll reveal: smooth, consistent timing instead of scroll-linked animation */
@media(prefers-reduced-motion:no-preference){
#commitments .ocf-commitment{animation:none!important}
#commitments.js-commitment-motion .ocf-commitment{opacity:0;transform:translateX(28px);transition:opacity .62s ease-out,transform .62s cubic-bezier(.22,.7,.3,1);transition-delay:0s}
#commitments.js-commitment-motion .ocf-commitment.is-step-visible{opacity:1;transform:translateX(0)}
}
@media(prefers-reduced-motion:reduce){#commitments .ocf-commitment{animation:none!important;opacity:1!important;transform:none!important;transition:none!important}}
/* OCF_AGENT_BLOCK:commitment-smooth-scroll-reveal END */

/* OCF_AGENT_BLOCK:commitment-slower-upward-motion START */
/* Slower upward entrance for process steps */
@media(prefers-reduced-motion:no-preference){
#commitments.js-commitment-motion .ocf-commitment{opacity:0;transform:translateY(36px);transition:opacity 1.15s ease-out,transform 1.15s cubic-bezier(.22,.7,.3,1)}
#commitments.js-commitment-motion .ocf-commitment.is-step-visible{opacity:1;transform:translateY(0)}
}
@media(prefers-reduced-motion:reduce){#commitments .ocf-commitment{opacity:1!important;transform:none!important;transition:none!important;animation:none!important}}
/* OCF_AGENT_BLOCK:commitment-slower-upward-motion END */

/* OCF_AGENT_BLOCK:commitments-layout START */
/* How We Build: cards left, full device mockup right. Overrides conflicting #commitments rules from Additional CSS. */
#commitments::after { content: none !important; display: none !important; }
html body section#commitments.ocf-commitments {
  position: relative !important; left: auto !important; top: auto !important;
  width: auto !important; max-width: none !important; transform: none !important;
  margin-left: 0 !important; margin-right: 0 !important; padding-right: 0 !important;
}
html body #commitments > .ocf-commitments-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 56px !important;
  align-items: center !important;
  width: min(100% - (var(--container-pad) * 2), var(--container-max)) !important;
  max-width: none !important;
  margin-left: auto !important; margin-right: auto !important;
}
html body #commitments .ocf-commitments-copy { display: block !important; min-width: 0; }
html body #commitments .ocf-commitments-photo {
  position: relative !important; width: 100% !important; min-width: 0 !important;
  margin: 0 !important; height: auto !important; min-height: 0 !important; aspect-ratio: auto !important;
  overflow: visible !important; border-radius: 0 !important; box-shadow: none !important; background: none !important;
}
html body #commitments .ocf-commitments-photo img {
  position: static !important; inset: auto !important; display: block !important;
  width: 100% !important; height: auto !important; max-width: 100% !important; max-height: none !important;
  object-fit: contain !important; object-position: center !important; border-radius: 0 !important;
}
html body #commitments .ocf-commitments-review {
  position: static !important; left: auto !important; bottom: auto !important;
  width: 100% !important; margin-top: 20px !important;
}
@media (max-width: 899px) {
  html body #commitments > .ocf-commitments-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 36px !important;
    width: min(100% - 40px, var(--container-max)) !important;
  }
  html body #commitments .ocf-commitments-photo { width: 100% !important; }
  html body #commitments .ocf-commitments-photo img { width: 100% !important; max-width: 100% !important; }
}
@media (max-width: 480px) {
  html body #commitments > .ocf-commitments-grid { width: calc(100% - 32px) !important; }
}
/* OCF_AGENT_BLOCK:commitments-layout END */

/* OCF_AGENT_BLOCK:commitments-blue-step-panels START */
/* OCF_AGENT_BLOCK:commitments-blue-step-panels START */
#commitments .ocf-commitment-header{
  border:1px solid #B8DFFF!important;background:#EAF5FF!important
}
#commitments .ocf-commitment-header .ocf-commitment-num{
  background:#0094F7!important;color:#fff!important
}
#commitments .ocf-commitment-header h3{color:#071B3A!important}
/* OCF_AGENT_BLOCK:commitments-blue-step-panels END */
/* OCF_AGENT_BLOCK:commitments-blue-step-panels END */

/* OCF_AGENT_BLOCK:commitments-mockup-motion START */
#commitments { overflow-x: clip; }
#commitments .ocf-commitments-photo { transform-origin: 100% 50%; }
#commitments .ocf-commitments-photo.is-mockup-pending { opacity: 0; transform: translate3d(56px, 0, 0); }
#commitments .ocf-commitments-photo.is-mockup-pending,
#commitments .ocf-commitments-photo.is-mockup-in { transition: opacity 760ms cubic-bezier(0.22, 0.61, 0.36, 1), transform 760ms cubic-bezier(0.22, 0.61, 0.36, 1); }
#commitments .ocf-commitments-photo.is-mockup-in { opacity: 1; transform: none; }
#commitments .ocf-commitments-photo:hover,
#commitments .ocf-commitments-photo:focus-visible {
  z-index: 3;
  transform: scale(1.02);
  box-shadow: 0 34px 64px -30px color-mix(in srgb, var(--ocf-heading) 55%, transparent);
  transition: transform 320ms ease-out, box-shadow 320ms ease-out;
}
#commitments .ocf-commitments-photo:focus-visible { outline: 3px solid var(--ocf-primary); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  #commitments .ocf-commitments-photo,
  #commitments .ocf-commitments-photo:hover,
  #commitments .ocf-commitments-photo:focus-visible { transition: none !important; transform: none !important; opacity: 1 !important; }
}
/* OCF_AGENT_BLOCK:commitments-mockup-motion END */
