/*
Theme Name: Kancelaria MKK
Author: Codex
Description: Motyw WordPress dla Kancelarii Radcy Prawnego Maria Kustos-Kowalik.
Version: 1.0.0
Text Domain: mkk
*/

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600&display=swap");
@import url("./legacy-style.css");

:root {
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Manrope", Arial, Helvetica, sans-serif;
}
html { scroll-behavior: smooth; scroll-padding-top: 104px; }

body { letter-spacing: -.005em; }
h1, h2 { letter-spacing: -.035em; font-weight: 500; }
h1 { font-size: clamp(48px, 5.7vw, 61px); }
h3, .service-card h3, .article-card h3, .related-card h3, .faq-item h3 { letter-spacing: -.02em; }
.nav a, .button, .eyebrow, .text-link, .arrow-link { letter-spacing: .075em; }
.content-copy p, .article-body p, .page-lead, .hero-lead { text-wrap: pretty; }
.portrait-frame img { object-position: 52% 8%; }
.hero-visual { overflow: visible; }
.article-body .summary-box h2 { margin-top: 0; color: white; }
.hero .portrait-frame { overflow: hidden; clip-path: none; background: linear-gradient(145deg, #dceef8, #b8dff2); }
.hero .portrait-frame img { opacity: 0; }
.hero .portrait-frame::before { content: 'MKK'; position: absolute; z-index: 1; left: 50%; bottom: 8%; transform: translateX(-50%); color: rgba(8,127,198,.16); font: 800 clamp(90px,13vw,190px)/.7 var(--sans); letter-spacing: -.14em; pointer-events: none; }
.portrait-popout { position: absolute; z-index: 4; top: -16%; left: -11%; width: 122%; height: auto; max-height: none; object-fit: contain; filter: drop-shadow(0 24px 28px rgba(7,31,53,.18)); pointer-events: none; }
.hero-card { z-index: 5; }
@media (max-width: 900px) { .portrait-popout { display: none; } .hero .portrait-frame img { opacity: 1; } .hero .portrait-frame::before { display: none; } }

.wp-admin-bar .site-header { top: 32px; }
.wp-block-table { margin: 28px 0; }
.wp-block-table table { width: 100%; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.article-image { display: block; margin: -26px -26px 22px; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ice); }
.article-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.article-card:hover .article-image img { transform: scale(1.04); }
.article-featured { max-width: 1120px; margin: 36px 0 0; border-radius: 30px; overflow: hidden; box-shadow: 0 28px 80px rgba(7,31,53,.16); background: var(--ice); }
.article-featured img { display: block; width: 100%; aspect-ratio: 16 / 8; height: auto; object-fit: cover; }
.two-col .wp-post-image { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; box-shadow: 0 24px 70px rgba(7,31,53,.14); }
.toc-card .toc-list { margin: 0; padding-left: 0; list-style: none; counter-reset: toc; }
.toc-card .toc-list .toc-list { margin-top: 4px; padding-left: 14px; border-left: 1px solid var(--line); }
.toc-card li { margin: 0; }
.toc-card a { border-top: 1px solid var(--line); }
.toc-card .toc-level-1 > a { color: var(--navy); font-weight: 800; }
.toc-card .toc-level-2 > a { padding-left: 0; font-weight: 700; }
.toc-card .toc-level-3 > a { color: rgba(7,31,53,.72); font-size: 13px; }
.toc-card .toc-level-4 > a { color: rgba(7,31,53,.58); font-size: 12px; }
.article-body h2, .article-body h3, .article-body h4, .page-hero h1 { scroll-margin-top: 110px; }
.contact-hero { position: relative; overflow: hidden; padding: clamp(96px,12vw,166px) 7vw clamp(74px,9vw,122px); color: white; background: #061f35; }
.contact-hero__map { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.contact-hero__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.22) saturate(.88) contrast(1.05); opacity: .78; transform: scale(1.04); }
.contact-hero::after { content: ''; position: absolute; z-index: 0; inset: 0; background: linear-gradient(92deg, rgba(6,31,53,.86) 0%, rgba(6,31,53,.72) 40%, rgba(6,31,53,.28) 100%); pointer-events: none; }
.contact-hero::before { content: 'KONTAKT'; position: absolute; z-index: 1; right: -1.5vw; bottom: -0.18em; color: rgba(255,255,255,.08); font: 800 clamp(92px,18vw,292px)/.8 var(--sans); letter-spacing: -.12em; pointer-events: none; }
.contact-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1fr) minmax(240px,.38fr); gap: clamp(42px,10vw,150px); align-items: end; max-width: var(--max); margin: 0 auto; }
.contact-hero__copy { max-width: 820px; }
.contact-hero .breadcrumbs { color: rgba(255,255,255,.62); }
.contact-hero .breadcrumbs a { color: white; }
.contact-hero h1 { max-width: 800px; margin: 24px 0; font-size: clamp(45px,5.5vw,72px); color: white; }
.contact-hero .page-lead { max-width: 680px; color: rgba(255,255,255,.79); }
.contact-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 23px; margin-top: 34px; }
.button--light { color: var(--navy); border-color: white; background: white; }
.button--light:hover { color: white; border-color: #9edcff; background: transparent; }
.contact-hero__actions .text-link--light { min-height: 54px; padding: 0 22px; color: white; border: 1px solid rgba(255,255,255,.72); background: transparent; cursor: pointer; }
.contact-hero__actions .text-link--light:hover { color: var(--navy); border-color: white; background: white; }
.contact-hero__mark { display: grid; justify-items: end; gap: 10px; color: #9edcff; text-align: right; }
.contact-hero__mark span { font: 800 10px/1 var(--sans); letter-spacing: .25em; }
.contact-hero__mark strong { color: rgba(255,255,255,.2); font: 800 clamp(100px,15vw,220px)/.7 var(--sans); letter-spacing: -.14em; }
.contact-hero__mark i { color: white; font: 400 32px/1 var(--serif); font-style: normal; }
.contact-hub { padding-top: 82px; }
.contact-hub__grid { display: grid; grid-template-columns: minmax(280px,.78fr) minmax(0,1.22fr); gap: clamp(34px,7vw,104px); padding-top: 58px; align-items: stretch; }
.contact-details { display: flex; flex-direction: column; justify-content: space-between; min-height: 490px; padding: clamp(28px,4vw,56px); color: white; background: linear-gradient(145deg, #082e4b, #063557); }
.contact-details__intro h2 { margin: 17px 0 24px; color: white; font-size: clamp(30px,3vw,43px); }
.contact-details__intro > p:last-child, .contact-details__note { color: rgba(255,255,255,.73); }
.contact-details__links { display: grid; gap: 1px; margin: 34px 0 22px; border-top: 1px solid rgba(255,255,255,.18); }
.contact-details__links a { display: grid; gap: 5px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.18); transition: color .2s var(--ease); }
.contact-details__links a:hover { color: #8ed2ff; }
.contact-details__links small { color: #9edcff; font: 800 9px/1 var(--sans); letter-spacing: .15em; }
.contact-details__links strong { font: 600 17px/1.3 var(--sans); }
.contact-details__note { margin: 0 0 22px; font-size: 14px; line-height: 1.7; }
.contact-details .arrow-link { color: white; }
.contact-form { display: flex; flex-direction: column; min-height: 490px; padding: clamp(28px,4vw,54px); border: 1px solid var(--line); background: linear-gradient(135deg, #fff, #f3f9fc); box-shadow: 0 24px 65px rgba(7,31,53,.1); }
.contact-form h2 { margin: 16px 0 8px; font-size: clamp(32px,3vw,44px); }
.contact-form > p:not(.eyebrow) { margin: 0 0 22px; color: var(--muted); }
.contact-form label { display: block; margin: 14px 0 0; color: var(--navy); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.contact-form input:not([type="checkbox"]), .contact-form textarea { width: 100%; margin-top: 7px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); outline: none; background: transparent; color: var(--navy); font: 400 15px/1.5 var(--sans); letter-spacing: 0; text-transform: none; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue); }
.contact-form .consent { margin-top: 20px; }
.contact-form .submit { align-self: flex-start; width: auto; margin-top: 22px; }
.contact-hours { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0 7vw; color: white; background: #087fc6; }
.contact-hours > div { min-height: 156px; padding: 30px clamp(22px,3.6vw,54px); border-right: 1px solid rgba(255,255,255,.2); }
.contact-hours > div:last-child { border-right: 0; }
.contact-hours .eyebrow { margin: 0 0 14px; color: #d3efff; }
.contact-hours p:last-child, .contact-hours a { margin: 0; color: white; font: 400 clamp(17px,1.6vw,22px)/1.45 var(--serif); }
.contact-hours a:hover { color: var(--navy); }
.contact-next { padding-top: 112px; }
.contact-steps { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.contact-steps article { min-height: 258px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(135deg, #fff, #f3f9fc); }
.contact-steps b { color: var(--blue); font: 800 11px/1 var(--sans); letter-spacing: .12em; }
.contact-steps h3 { margin: 48px 0 12px; color: var(--navy); font: 400 27px/1.14 var(--serif); }
.contact-steps p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.page-hero--editorial { position: relative; overflow: hidden; isolation: isolate; }
.page-hero--editorial::after { content: 'MKK'; position: absolute; z-index: -1; right: 6vw; bottom: -0.22em; color: rgba(8,127,198,.045); font: 700 clamp(130px, 23vw, 370px)/.8 var(--sans); letter-spacing: -.12em; pointer-events: none; }
.page-layout { align-items: start; }
.page-main-content { min-width: 0; }
.page-visual { position: sticky; top: 120px; }
.page-visual--about { padding-top: 3px; }
.about-portrait { position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 4px 4px 80px 4px; background: var(--navy); box-shadow: 0 32px 78px rgba(7,31,53,.18); }
.about-portrait::before { content: 'PRAWO'; position: absolute; z-index: 2; top: 24px; right: -3px; transform: rotate(90deg) translateX(100%); transform-origin: top right; color: rgba(255,255,255,.72); font: 800 10px/1 var(--sans); letter-spacing: .28em; pointer-events: none; }
.about-portrait::after { content: 'MKK'; position: absolute; z-index: 2; left: 22px; bottom: 68px; color: rgba(255,255,255,.34); font: 700 clamp(64px,8vw,116px)/.8 var(--sans); letter-spacing: -.1em; pointer-events: none; }
.about-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; filter: saturate(.82) contrast(1.03); transform: scale(1.01); }
.about-portrait figcaption { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: grid; gap: 4px; padding: 24px 28px; color: white; background: linear-gradient(transparent, rgba(7,31,53,.88)); }
.about-portrait figcaption span { color: rgba(255,255,255,.72); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.about-portrait figcaption strong { font: 400 clamp(20px,2vw,28px)/1.15 var(--serif); }
.about-hero { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(340px,.72fr); gap: clamp(44px,8vw,132px); align-items: center; max-width: var(--max); margin: 0 auto; padding: 72px 6vw 104px; }
.about-hero__copy { max-width: 720px; }
.about-hero h1 { max-width: 760px; margin: 26px 0; font-size: clamp(46px,5.25vw,70px); letter-spacing: -.045em; }
.about-hero h1 em { color: var(--blue); font-style: italic; font-weight: 400; }
.about-hero .page-lead { max-width: 630px; margin-bottom: 32px; }
.about-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.about-hero__actions .text-link { color: var(--navy); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.about-hero__actions .text-link i { margin-left: 8px; color: var(--blue); font-style: normal; }
.about-hero__portrait { width: min(100%, 460px); justify-self: end; }
.about-introduction { padding-top: 0; }
.about-introduction__grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,.72fr); gap: clamp(38px,8vw,150px); align-items: start; margin: 20px 0 54px; }
.about-introduction h2, .about-story h2, .about-closing h2 { margin: 0; font-size: clamp(33px,3.6vw,53px); letter-spacing: -.04em; }
.about-introduction__text { color: var(--muted); font-size: 17px; line-height: 1.75; }
.about-introduction__text p:first-child { margin-top: 0; }
.about-credentials { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.about-credentials article { min-height: 236px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(135deg,#fff,rgba(235,245,251,.52)); }
.about-credentials span, .about-focus b { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.about-credentials h3 { margin: 20px 0 12px; font: 400 25px/1.15 var(--serif); color: var(--navy); }
.about-credentials p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.about-story { padding: 92px 6vw; background: var(--navy); color: white; }
.about-story__inner { display: grid; grid-template-columns: minmax(270px,.7fr) minmax(0,1fr); gap: clamp(44px,10vw,180px); max-width: var(--max); margin: 0 auto; }
.about-story .eyebrow { color: #b9dff5; }
.about-story h2 { max-width: 470px; }
.about-story__copy { color: rgba(255,255,255,.78); font-size: 16px; line-height: 1.78; }
.about-story__copy h2 { margin: 0 0 18px; color: #8ed2ff; font: 800 10px/1.25 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.about-story__copy p { margin: 0 0 25px; }
.about-focus__grid { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 24px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.about-focus__grid a { position: relative; min-height: 280px; padding: 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--navy); background: white; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease); }
.about-focus__grid a:hover { z-index: 1; background: #f8fcff; box-shadow: 0 24px 50px rgba(7,31,53,.12); transform: translateY(-7px); }
.about-focus__grid h3 { margin: 52px 0 12px; font: 400 28px/1.1 var(--serif); }
.about-focus__grid p { max-width: 290px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.about-focus__grid i { position: absolute; right: 30px; bottom: 28px; color: var(--blue); font-size: 25px; font-style: normal; }
.about-closing { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin: 0 6vw 86px; padding: 62px clamp(30px,6vw,94px); color: white; background: linear-gradient(115deg,#082e4b,#087fc6); }
.about-closing h2 { max-width: 680px; }
.about-closing > div > p:last-child { max-width: 520px; margin: 16px 0 0; color: rgba(255,255,255,.77); }
.about-closing .eyebrow { color: #bce7ff; }
.about-closing .button { flex: 0 0 auto; color: var(--navy); background: white; }
@media (max-width: 900px) { .about-hero, .about-introduction__grid, .about-story__inner { grid-template-columns: 1fr; } .about-hero__portrait { justify-self: start; } .about-credentials, .about-focus__grid { grid-template-columns: 1fr; } .about-credentials article, .about-focus__grid a { min-height: 0; } .about-closing { align-items: start; flex-direction: column; } }
@media (max-width: 900px) { .contact-hero__inner, .contact-hub__grid, .contact-hours, .contact-steps { grid-template-columns: 1fr; } .contact-hero__mark { display: none; } .contact-details, .contact-form { min-height: 420px; } .contact-hours { margin-inline: 6vw; } .contact-hours > div { min-height: 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.2); } .contact-hours > div:last-child { border-bottom: 0; } .contact-next { padding-top: 78px; } }
.related-inline { position: relative; margin: 0 7vw 104px; padding: 56px clamp(24px,5vw,76px) 64px; overflow: hidden; background: linear-gradient(135deg, #f1f8fc, #fff); border-top: 1px solid rgba(8,127,198,.18); }
.related-inline::after { content: 'BLOG'; position: absolute; top: 14px; right: -8px; color: rgba(7,31,53,.035); font: 800 clamp(70px,10vw,150px)/.8 var(--sans); letter-spacing: -.09em; pointer-events: none; }
.related-inline h2 { position: relative; z-index: 1; margin: 8px 0 34px; font-size: clamp(34px,3.8vw,56px); }
.section-kicker { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.section-kicker b { color: rgba(7,31,53,.23); font-size: 13px; letter-spacing: -.06em; }
.related-inline .related-grid { position: relative; z-index: 1; gap: 16px; }
.related-inline .related-card { position: relative; min-height: 214px; padding: 28px 28px 54px; border: 1px solid rgba(7,31,53,.12); background: rgba(255,255,255,.8); box-shadow: none; }
.related-inline .related-card h3 { margin: 18px 0 12px; font-size: clamp(23px,2vw,30px); }
.related-inline .related-card i { position: absolute; right: 25px; bottom: 21px; color: var(--blue); font-style: normal; font-size: 24px; transition: transform .25s var(--ease); }
.related-inline .related-card:hover { transform: translateY(-6px); box-shadow: 0 22px 42px rgba(7,31,53,.09); }
.related-inline .related-card:hover i { transform: translateX(6px); }
.related-blog .related-card { min-height: 340px; }
.related-blog .related-thumb { display: block; height: 126px; margin: -28px -28px 20px; overflow: hidden; background: var(--ice); }
.related-blog .related-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.related-blog .related-card:hover .related-thumb img { transform: scale(1.05); }
.blog-categories { display: flex; flex-wrap: wrap; gap: 10px; margin: -28px 0 42px; }
.blog-categories a { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 15px; border: 1px solid var(--line); color: var(--navy); background: white; font-size: 11px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.blog-categories a:hover, .blog-categories a.is-active { color: white; border-color: var(--blue); background: var(--blue); transform: translateY(-2px); }
.blog-pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 52px 0 14px; }
.pagination-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); color: var(--navy); background: white; font: 800 11px/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; transition: color .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); }
.pagination-link i { font: 400 20px/1 var(--serif); font-style: normal; transition: transform .25s var(--ease); }
.pagination-link:hover { color: white; border-color: var(--blue); background: var(--blue); transform: translateY(-2px); }
.pagination-link--prev:hover i { transform: translateX(-3px); }
.pagination-link--next:hover i { transform: translateX(3px); }
.pagination-link--muted { color: #a4b0ba; background: transparent; cursor: default; }
.pagination-status { display: inline-flex; align-items: baseline; gap: 6px; min-width: 52px; color: #84929d; font: 700 12px/1 var(--sans); letter-spacing: .08em; }
.pagination-status b { color: var(--blue); font-size: 19px; }
@media (max-width: 480px) { .blog-pagination { gap: 8px; } .pagination-link { padding: 0 12px; font-size: 10px; } .pagination-status { min-width: 38px; } }
@media (max-width: 900px) { .page-visual { position: static; } .related-inline { margin: 0 6vw 78px; } .about-portrait { max-width: 560px; } }
@media (max-width: 540px) { .page-hero--editorial::after { right: 2vw; } .related-inline { margin-inline: 0; padding: 42px 6vw 48px; } .about-portrait { border-radius: 4px 4px 52px 4px; } }
html[lang^="en"] footer .footer-top > div:nth-of-type(1) > span, html[lang^="en"] footer .footer-top > div:nth-of-type(2) > span, html[lang^="de"] footer .footer-top > div:nth-of-type(1) > span, html[lang^="de"] footer .footer-top > div:nth-of-type(2) > span { font-size: 0; }
html[lang^="en"] footer .footer-top > div:nth-of-type(1) > span::after { content: 'Address'; font-size: 9px; }
html[lang^="en"] footer .footer-top > div:nth-of-type(2) > span::after { content: 'Hours'; font-size: 9px; }
html[lang^="de"] footer .footer-top > div:nth-of-type(1) > span::after { content: 'Adresse'; font-size: 9px; }
html[lang^="de"] footer .footer-top > div:nth-of-type(2) > span::after { content: 'Öffnungszeiten'; font-size: 9px; }
.hero::before { content: 'MKK'; position: absolute; z-index: 1; right: 4.6vw; top: 8.5%; color: rgba(8,127,198,.15); font: 800 clamp(150px, 22vw, 340px)/.72 var(--sans); letter-spacing: -.16em; user-select: none; pointer-events: none; mix-blend-mode: multiply; text-shadow: 1px 1px 0 rgba(255,255,255,.48); }
.hero::after { content: 'PRAWO · RACIBÓRZ · PL — DE'; position: absolute; z-index: 1; right: 7.3vw; top: calc(8.5% + clamp(150px, 22vw, 340px) * .72); color: rgba(7,31,53,.42); font: 800 9px/1 var(--sans); letter-spacing: .2em; white-space: nowrap; pointer-events: none; }
@media (max-width: 900px) { .hero::before { right: 2vw; top: 13%; font-size: clamp(130px, 40vw, 280px); color: rgba(8,127,198,.13); } .hero::after { right: 6vw; top: calc(13% + clamp(130px, 40vw, 280px) * .72); } }
/* EN/DE home uses accessible modal triggers in place of links. Keep them visually identical to their link counterparts. */
button.arrow-link { border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; }
button.service-card { width: 100%; border-inline: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; appearance: none; -webkit-appearance: none; }
button.service-card:hover { color: inherit; }
.scroll-progress { position: fixed; z-index: 90; inset: 0 auto auto 0; width: 100%; height: 3px; background: var(--blue); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.hero::before { transform: translateY(calc(var(--hero-shift, 0px) * -1)); transition: transform .12s linear; }
.hero-visual { transform: translateY(calc(var(--hero-shift, 0px) * .18)); transition: transform .12s linear; }
/* Quiet scroll reveal: intentionally restrained so content remains the focus. */
.js .reveal { filter: blur(3px); will-change: opacity, transform, filter; transition: opacity .72s var(--ease), transform .72s var(--ease), filter .72s var(--ease); }
.js .reveal.is-visible { filter: blur(0); }
.service-list .reveal:nth-child(2), .article-grid .reveal:nth-child(2), .related-grid .reveal:nth-child(2) { transition-delay: .07s; }
.service-list .reveal:nth-child(3), .article-grid .reveal:nth-child(3), .related-grid .reveal:nth-child(3) { transition-delay: .14s; }
.service-list .reveal:nth-child(4), .article-grid .reveal:nth-child(4), .related-grid .reveal:nth-child(4) { transition-delay: .21s; }
.service-list .reveal:nth-child(5), .article-grid .reveal:nth-child(5), .related-grid .reveal:nth-child(5) { transition-delay: .28s; }
.service-list .reveal:nth-child(6), .article-grid .reveal:nth-child(6), .related-grid .reveal:nth-child(6) { transition-delay: .35s; }
.consult-modal { opacity: 0; transform: translateY(20px) scale(.985); transition: opacity .24s var(--ease), transform .24s var(--ease), overlay .24s allow-discrete, display .24s allow-discrete; }
.consult-modal[open] { opacity: 1; transform: none; }
.consult-modal[open].is-closing { opacity: 0; transform: translateY(14px) scale(.985); }
.consult-modal::backdrop { background: rgba(7,31,53,.0); backdrop-filter: blur(0); transition: background .24s var(--ease), backdrop-filter .24s var(--ease), overlay .24s allow-discrete, display .24s allow-discrete; }
.consult-modal[open]::backdrop { background: rgba(7,31,53,.64); backdrop-filter: blur(9px); }
.modal-box { overflow: hidden; border-top: 3px solid var(--blue); }
.modal-box::before { content: 'MKK'; position: absolute; right: 22px; bottom: -18px; color: rgba(8,127,198,.055); font: 800 105px/.8 var(--sans); letter-spacing: -.12em; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .scroll-progress, .hero::before, .hero-visual, .consult-modal, .consult-modal::backdrop { transition: none; } .js .reveal, .js .reveal.is-visible { filter: none; } }
.review-grid .ti-widget, .review-grid .ti-widget-container { width: 100%; grid-column: 1 / -1; }
.nav .menu-item { list-style: none; position: relative; }
.nav .sub-menu { position: absolute; top: 100%; left: -22px; min-width: 255px; padding: 14px; margin: 0; background: white; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(7,31,53,.13); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .25s, transform .25s; }
.nav .menu-item-has-children:hover .sub-menu, .nav .menu-item-has-children:focus-within .sub-menu { opacity: 1; pointer-events: auto; transform: none; }
.nav .sub-menu a { display: flex; min-height: 0; padding: 10px 12px; font-size: 13px; }
.nav .sub-menu a::after { display: none; }
.nav .sub-menu a:hover { color: var(--blue); background: var(--ice); }
@media (max-width: 860px) {
  .nav .sub-menu { position: static; display: grid; min-width: 0; padding: 0 0 10px 18px; border: 0; box-shadow: none; opacity: 1; pointer-events: auto; transform: none; }
}
