.home-refined main#main .hero{background:var(--theme-page);overflow:visible}
.home-refined main#main .hero-shade{display:none}
.home-refined main#main .hero-inner{display:grid;grid-template-columns:minmax(0,1.07fr) minmax(0,.93fr);gap:48px;min-height:620px;padding-block:48px;align-items:center}
.home-refined main#main .hero-copy{padding:0;width:auto;grid-column:2;grid-row:1;min-width:0}
.home-refined main#main .hero-photo{position:static;grid-column:1;grid-row:1;object-fit:contain;mask-image:none;width:100%;height:auto;border-radius:28px;box-shadow:0 20px 48px #00000014}
.home-refined main#main .hero h1{font-size:clamp(50px,4.6vw,70px);line-height:1.03;margin-bottom:22px}
.home-refined main#main .hero .lead{font-size:16px;line-height:1.7;margin-bottom:24px}
.home-refined main#main .hero .button-row{display:flex;flex-wrap:wrap;gap:10px}
.home-refined main#main .hero .button-row>.btn{font-size:12px;min-height:52px;padding-inline:17px}
.home-refined main#main .hero-notes{font-size:12px;flex-wrap:wrap;gap:14px;margin-top:22px}
.home-refined main#main .hero-stamp{position:static;grid-column:1;grid-row:2;border:0;background:none;backdrop-filter:none;box-shadow:none;margin-top:-30px;padding:0;justify-self:center}
.home-refined main#main .home-hero-icon{width:44px;height:44px;object-fit:contain;vertical-align:middle;margin:-12px 6px -12px -3px}
.home-refined main#main .service-grid{gap:22px;grid-template-columns:repeat(3,minmax(0,1fr))}
.home-refined main#main .service-card{background:var(--theme-surface);border:1px solid var(--theme-line);border-radius:24px;padding:0;box-shadow:0 12px 30px #00000008;display:flex;flex-direction:column}
.home-refined main#main .service-card>.service-card-image{background:var(--theme-surface-subtle);padding:16px 16px 0;height:auto}
.home-refined main#main .service-card>.service-card-image img{height:auto;width:100%;object-fit:contain;aspect-ratio:auto;border-radius:14px;transform:none}
.home-refined main#main .home-direction-icon{width:70px;height:70px;object-fit:contain;margin:16px 0 -6px 20px;order:-1}
.home-refined main#main .service-card-content{padding:22px;color:var(--theme-text)}
.home-refined main#main .category-title h3{font-size:26px;min-height:2.3em;max-width:none}
.home-refined main#main .category-title>span{color:var(--theme-accent-text);border-color:var(--theme-line);flex:none}
.home-refined main#main .category-links{gap:8px}
.home-refined main#main .category-links a,.home-refined main#main .category-links button{color:var(--theme-text-muted);background:var(--theme-surface-subtle);border:1px solid var(--theme-line);border-radius:10px;min-height:43px;font-size:12px;padding:10px 12px;line-height:1.5}
@media(max-width:700px){
.home-refined main#main .hero-inner{grid-template-columns:minmax(0,1fr);padding-block:20px;gap:19px;min-height:0}
.home-refined main#main .hero-photo{grid-column:1;grid-row:1;border-radius:20px}
.home-refined main#main .hero-copy{grid-column:1;grid-row:2}
.home-refined main#main .hero .eyebrow{font-size:9px;margin-bottom:13px}
.home-refined main#main .home-hero-icon{width:31px;height:31px;margin:-8px 5px -8px -2px}
.home-refined main#main .hero h1{font-size:40px;line-height:1.03;margin-bottom:16px;letter-spacing:-.05em}
.home-refined main#main .hero .lead{font-size:14px;line-height:1.65;margin-bottom:18px}
.home-refined main#main .hero .button-row{display:grid;grid-template-columns:1fr;gap:9px;max-width:none}
.home-refined main#main .hero .button-row>.btn{min-height:46px;font-size:12px;padding:11px 14px}
.home-refined main#main .hero-notes{font-size:11px;gap:7px;margin-top:18px;flex-direction:row}
.home-refined main#main .hero-stamp{grid-row:3;grid-column:1;justify-self:start;margin-top:0;font-size:11px}
.home-refined main#main .hero-stamp span{font-size:11px}
.home-refined main#main .service-grid{grid-template-columns:minmax(0,1fr);gap:18px}
.home-refined main#main .service-card{display:grid;grid-template-columns:72px minmax(0,1fr);padding:16px;column-gap:12px}
.home-refined main#main .home-direction-icon{width:70px;height:70px;grid-column:1;grid-row:1;margin:0;order:0}
.home-refined main#main .service-card>.service-card-image{grid-column:1/-1;grid-row:2;padding:0;margin-top:16px;background:none}
.home-refined main#main .service-card-content{display:contents;padding:0}
.home-refined main#main .category-title{grid-column:2;grid-row:1}
.home-refined main#main .category-title h3{font-size:24px;min-height:0;line-height:1.14}
.home-refined main#main .category-title>span{width:30px;height:30px}
.home-refined main#main .category-links{grid-column:1/-1;grid-row:3;margin-top:16px;display:grid;grid-template-columns:1fr}
}
.home-refined main#main .service-card-content{background:transparent}
.home-refined main#main .category-title,.home-refined main#main .category-title h3{color:var(--theme-text)}
.home-refined main#main .hero .eyebrow{display:flex;align-items:center;gap:8px}
.home-refined main#main .hero .eyebrow .red-dot{display:none}
.home-refined main#main .home-hero-icon{margin:0;flex:none;width:32px;height:32px}
.home-refined main#main #services .section-heading{margin-bottom:24px}
.home-refined main#main .service-grid>.service-card .service-card-content{background:transparent;padding:22px}
.home-refined main#main .service-grid>.service-card .category-links button{color:var(--theme-text-muted);background:var(--theme-surface-subtle);border:1px solid var(--theme-line);border-radius:10px;padding:10px 12px;min-height:43px}
@media(max-width:700px){.home-refined main#main .service-grid>.service-card .service-card-content{padding:0}}

/* Selected B: homepage-only photo overlay using approved OSIRIS assets/tokens. */
.home-refined main#main .hero{background:var(--theme-page);overflow:visible}
.home-refined main#main .hero-inner{display:block;min-height:0;padding-block:26px 30px}
.home-refined main#main .hero .eyebrow{margin:0 0 16px;display:flex;align-items:center;gap:8px;font-size:10px}
.home-refined main#main .home-visual{position:relative;isolation:isolate;--home-photo-height:600px;height:var(--home-photo-height);border-radius:24px;overflow:hidden;background:var(--theme-page);box-shadow:0 20px 50px #00000012}
.home-refined main#main .home-visual::before{content:'';position:absolute;z-index:1;inset:0 0 auto;height:var(--home-photo-height);pointer-events:none;background:linear-gradient(90deg,var(--theme-page) 0%,color-mix(in srgb,var(--theme-page) 94%,transparent) 26%,color-mix(in srgb,var(--theme-page) 76%,transparent) 40%,transparent 48%)}
.home-refined main#main .hero .hero-photo{position:static;display:block;width:100%;height:var(--home-photo-height);object-fit:contain;object-position:right center;mask-image:none;box-shadow:none;border-radius:0;margin:0}
.home-refined main#main .hero-copy{position:absolute;z-index:2;display:block;inset:38px auto auto 38px;width:44%;padding:0;min-width:0}
.home-refined main#main .hero h1{position:static;font-size:78px;line-height:1.02;letter-spacing:-.055em;margin:0 0 23px;max-width:none}
.home-refined main#main .hero .lead{font-size:16px;line-height:1.65;margin:0 0 24px;max-width:390px}
.home-refined main#main .hero .button-row{display:flex;flex-wrap:wrap;gap:10px;max-width:none}
.home-refined main#main .hero .button-row>.btn{min-height:50px;padding:12px 17px;font-size:12px;border-radius:13px}
.home-refined main#main .hero-notes{font-size:11px;gap:12px;margin-top:22px;flex-direction:row;flex-wrap:wrap}
.home-refined main#main .hero-stamp{position:static;display:flex;margin-top:20px;padding:0;border:0;background:none;box-shadow:none;backdrop-filter:none;font-size:11px;justify-self:auto}
.home-refined main#main .hero-stamp span{font-size:11px}
@media(max-width:700px){
.home-refined main#main .hero-inner{padding-block:19px 25px}
.home-refined main#main .hero .eyebrow{font-size:9px;margin-bottom:13px}
.home-refined main#main .home-visual{--home-photo-height:calc((100vw - 36px)*.66666667);height:auto;border-radius:18px;overflow:visible;box-shadow:none;background:none}
.home-refined main#main .home-visual::before{border-radius:18px;background:linear-gradient(90deg,color-mix(in srgb,var(--theme-page) 96%,transparent) 0%,color-mix(in srgb,var(--theme-page) 81%,transparent) 30%,color-mix(in srgb,var(--theme-page) 54%,transparent) 42%,transparent 48%)}
.home-refined main#main .hero .hero-photo{border-radius:18px}
.home-refined main#main .hero-copy{position:static;display:contents;inset:auto;width:auto}
.home-refined main#main .hero h1{position:absolute;z-index:2;left:15px;top:17px;width:48%;font-size:clamp(22px,7.1vw,30px);line-height:1.04;letter-spacing:-.05em;margin:0}
.home-refined main#main .hero .lead{font-size:14px;line-height:1.65;margin:17px 0 18px;max-width:none}
.home-refined main#main .hero .button-row{display:grid;grid-template-columns:1fr;gap:9px;max-width:none}
.home-refined main#main .hero .button-row>.btn{min-height:46px;padding:11px 14px;font-size:12px}
.home-refined main#main .hero-notes{font-size:11px;gap:7px;margin-top:18px}
.home-refined main#main .hero-stamp{margin-top:18px}
}

.home-refined main#main .hero{--home-warm:color-mix(in srgb,var(--brand-accent) 5%,var(--theme-page));background:var(--home-warm)}
.home-refined main#main .home-visual{--home-photo-height:570px;background:var(--home-warm);box-shadow:0 24px 60px #00000016}
.home-refined main#main .home-visual::before{background:linear-gradient(90deg,var(--home-warm) 0%,color-mix(in srgb,var(--home-warm) 94%,transparent) 28%,color-mix(in srgb,var(--home-warm) 72%,transparent) 42%,transparent 48%)}
.home-refined main#main .hero h1{font-size:74px}
.home-refined main#main .service-grid>.service-card{background:color-mix(in srgb,var(--brand-accent) 2%,var(--theme-surface));box-shadow:0 14px 34px #00000009}
@media(max-width:700px){
.home-refined main#main .hero-inner.container{width:100%;padding-top:19px}
.home-refined main#main .hero .eyebrow{margin-inline:18px}
.home-refined main#main .home-visual{--home-photo-height:calc(100vw*.66666667);height:auto;border-radius:0;background:none;box-shadow:none}
.home-refined main#main .home-visual::before{border-radius:0;background:linear-gradient(90deg,color-mix(in srgb,var(--home-warm) 95%,transparent) 0%,color-mix(in srgb,var(--home-warm) 78%,transparent) 32%,color-mix(in srgb,var(--home-warm) 46%,transparent) 43%,transparent 48%)}
.home-refined main#main .hero .hero-photo{border-radius:0}
.home-refined main#main .hero h1{left:18px;top:21px;font-size:clamp(24px,7.65vw,33px);width:48%}
.home-refined main#main .hero .lead,.home-refined main#main .hero .button-row,.home-refined main#main .hero-notes{margin-inline:18px}
.home-refined main#main .hero-stamp{margin-inline:18px}
}

@media(min-width:701px){.home-refined main#main .home-visual{height:auto}.home-refined main#main .hero .hero-photo{height:auto}.home-refined main#main .home-visual::before{height:100%}}

.home-refined main#main .home-direction-mark{display:contents}
/* Tablet: retain photo headline; keep supporting copy and actions reachable below it. */
@media(min-width:701px) and (max-width:1100px){
.home-refined main#main .home-visual{height:auto}
.home-refined main#main .home-visual::before{width:100%;height:auto;aspect-ratio:3/2}
.home-refined main#main .hero-copy{position:static;display:contents;inset:auto;width:auto}
.home-refined main#main .hero h1{position:absolute;z-index:2;left:24px;top:24px;width:46%;font-size:clamp(34px,4.8vw,52px);line-height:1.04;margin:0}
.home-refined main#main .hero .lead{font-size:16px;line-height:1.65;max-width:none;margin:20px 24px 18px}
.home-refined main#main .hero .button-row{display:flex;flex-wrap:wrap;gap:10px;margin-inline:24px}
.home-refined main#main .hero-notes{margin:18px 24px 24px}
}
