/* Shared type scale; pt values follow the agreed Word-style sizes. */
:root{--type-section:39pt;--type-eyebrow:11pt;--type-card:16pt;--type-body:12pt;--type-action:11pt;--type-small:10pt;--type-field:12pt}
body{font-size:var(--type-body)}
.section h2,.contact h2,.projects h2{font-size:var(--type-section);line-height:1.15}
.section .eyebrow{font-size:var(--type-eyebrow);line-height:1.6}
p,.about p,.cards p,.steps p,.principles p,.contact>div>p,.contact-intro>p,.section-title>p{font-size:var(--type-body);line-height:1.8}
.section .lead{font-size:18pt;line-height:1.5}
.cards h3,.steps h3,.principles h3,.contact form h3{font-size:var(--type-card);line-height:1.4}
header nav,header nav a,.button,.button.small,header .header-cta,.cards a,.text-link,.scroll-hint{font-size:var(--type-action);line-height:1.5}
.hero-sub{font-size:var(--type-action);line-height:1.8}
.contact label,.contact .privacy-check,.contact input,.contact textarea{font-size:var(--type-field);line-height:1.55}
.contact input,.contact textarea{padding:12px 14px}
.contact .form-note,.contact .form-status,.certificate-note,.certificate-info>span,footer>p,footer>div,footer small{font-size:var(--type-small);line-height:1.7}
.certificate-info h3{font-size:var(--type-body);line-height:1.5}
.legal-content p{font-size:var(--type-body);line-height:1.8}.legal-content h3{font-size:14pt;line-height:1.5}.legal-toolbar h2{font-size:21pt}
.gallery-bottom strong{font-size:var(--type-card)}.gallery-bottom p{font-size:var(--type-small)}.project-overlay strong{font-size:var(--type-card)}.project-overlay>span{font-size:var(--type-small)}
/* Original portrait: smaller, sharp, with no image masks. */
.about-visual .about-photo.portrait.portrait-editorial{width:min(100%,360px);height:auto;max-height:none;aspect-ratio:auto}
.about-visual .about-photo.portrait.portrait-editorial img{width:100%;height:auto;max-height:none;object-fit:contain;filter:none;mask:none;-webkit-mask:none;transform:none}
.about-visual .portrait-editorial .profile-caption{margin:16px 0 0}
.portrait-editorial .profile-caption strong{font-size:var(--type-body);line-height:1.5}
.portrait-editorial .profile-caption>span{font-size:var(--type-small);line-height:1.5}
/* The arrow follows the invitation and stays close to it. */
.scroll-hint{gap:12px;letter-spacing:1.6px}
/* Distribute the three contact groups across the full form height. */
.contact{align-items:stretch}
.contact>.contact-info{display:flex;flex-direction:column;justify-content:space-between;gap:36px;align-self:stretch;min-width:0}
.contact-intro .eyebrow{margin-top:0}.contact-intro .contact-statement{margin:26px 0 0}
.contact-details{display:flex;flex-direction:column;gap:18px}.contact-details .contact-link{margin:0;font-size:15pt;line-height:1.5;min-width:0;overflow-wrap:anywhere}
.contact-info>.social-icons{margin:0;align-self:flex-start;flex-shrink:0}
#contact-form{min-width:0}#contact-form button[type=submit]{font-size:var(--type-action);justify-content:center}
@media(max-width:1050px) and (min-width:701px){.contact-details .contact-link{font-size:13pt}.contact>.contact-info{gap:28px}}
@media(max-width:700px){
 :root{--type-section:27pt;--type-eyebrow:10pt;--type-card:15pt;--type-body:11pt;--type-action:11pt;--type-small:10pt;--type-field:12pt}
 .section h2,.contact h2,.projects h2{font-size:var(--type-section)}
 .section .lead{font-size:15pt}
 .about-visual .about-photo.portrait.portrait-editorial{width:min(100%,290px)}
 .contact>.contact-info{justify-content:flex-start;gap:28px}
 .contact-details{gap:12px}.contact-details .contact-link{font-size:13pt}
 .contact-intro .contact-statement{margin-top:22px}
 .scroll-hint{letter-spacing:1px;gap:10px}
 .legal-toolbar h2{font-size:17pt}
}

/* Frame the photo only; the caption stays outside, beneath it. */
.portrait-frame{position:relative;width:100%;padding:7px;border:1px solid #c0ff0c40;border-top-color:#ffffff38;border-radius:12px;background:linear-gradient(140deg,#ffffff09,#c0ff0c04),#090c08;box-shadow:inset 0 1px 0 #ffffff08,0 15px 35px #0005}
.about-visual .about-photo.portrait.portrait-editorial .portrait-frame img{border-radius:6px}
/* Shared scrollbars on the page, dialogs and text areas. */
:root{color-scheme:dark;--scroll-track:#0b0e09;--scroll-thumb:#87a83b}
*,html,body,.legal-content,.certificate-document{scrollbar-width:thin;scrollbar-color:var(--scroll-thumb) var(--scroll-track)}
::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track{background:var(--scroll-track)}::-webkit-scrollbar-thumb{background:var(--scroll-thumb);border:3px solid var(--scroll-track);border-radius:10px}::-webkit-scrollbar-thumb:hover{background:var(--lime)}::-webkit-scrollbar-corner{background:var(--scroll-track)}
@supports selector(::-webkit-scrollbar){*,html,body,.legal-content,.certificate-document{scrollbar-width:auto;scrollbar-color:auto}}
@media(forced-colors:active){*,html,body,.legal-content,.certificate-document{scrollbar-color:auto}}

/* Compact contact information beside a wider form. */
.contact{grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);gap:7%;align-items:start}
.contact>.contact-info{justify-content:flex-start;align-self:start;gap:32px}
.contact-info>.social-icons{margin-top:4px}
#contact-form{width:100%}
@media(max-width:900px){.contact{grid-template-columns:1fr;gap:36px}.contact>.contact-info{gap:28px}}
/* Service cards are single, keyboard-accessible click targets. */
.cards article{cursor:pointer}.cards article>a.service-card-hit{position:absolute;inset:0;z-index:3;display:block;margin:0;padding:0;border:0;border-radius:inherit;background:transparent}
.cards article>a.service-card-hit:focus-visible{outline:2px solid var(--lime);outline-offset:-3px}
.cards article>p{margin-bottom:0}
/* Symmetrical legal headers with a separate close control. */
#legal-viewer[open]{display:flex;flex-direction:column}
.legal-toolbar{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:16px;flex-shrink:0;align-items:center}
.legal-toolbar>div{grid-column:2;grid-row:1;text-align:center;min-width:0}
.legal-toolbar .legal-close{grid-column:3;grid-row:1;align-self:start}
.legal-toolbar .legal-logo{margin:0 auto 14px;object-position:center}
.legal-toolbar h2{text-align:center;overflow-wrap:anywhere}
#legal-viewer .legal-content{min-height:0;max-height:none;flex:0 1 auto;overflow:auto}
/* Slightly larger header, retaining its transparent hero treatment. */
:root{--header-height:100px}
header,header.compact{height:var(--header-height);grid-template-columns:192px minmax(0,1fr) 192px}
header .brand img,header.compact .brand img{width:192px;height:72px}
html{scroll-padding-top:112px}
@media(min-width:701px) and (max-width:1050px){:root{--header-height:90px}header,header.compact{grid-template-columns:165px minmax(0,1fr)}header .brand img,header.compact .brand img{width:165px;height:66px}html{scroll-padding-top:102px}}
@media(max-width:700px){
 :root{--header-height:100px}
 header,header.compact{grid-template-columns:46px minmax(0,1fr) 46px}
 header .brand{min-width:0;max-width:100%}
 header .brand img,header.compact .brand img{width:180px;max-width:100%;height:72px}
 header nav,header.compact nav{top:var(--header-height);max-height:calc(100dvh - var(--header-height))}
 html{scroll-padding-top:112px}
 .legal-toolbar{grid-template-columns:44px minmax(0,1fr) 44px;gap:10px;padding-inline:14px}
 .legal-toolbar .legal-logo{margin-bottom:10px}
}

/* Let the opening scene follow its content instead of reserving empty space. */
.hero{height:auto;min-height:0;max-height:none;padding:calc(var(--header-height) + 65px) calc(max(0px,(100% - 1440px)/2) + 7%) 26px}
.hero>.hero-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 55%}
.hero .hero-content{position:relative;top:auto;left:auto;right:auto;max-width:720px}
.hero .scroll-hint{position:relative;top:auto;left:auto;right:auto;bottom:auto;width:fit-content;margin-top:24px;z-index:1}
@media(min-width:701px) and (max-width:1050px){.hero{padding-inline:6%}}
@media(max-width:700px){.hero{height:auto;min-height:0;max-height:none;padding:calc(var(--header-height) + 40px) 24px 22px}.hero>.hero-img{object-position:63% center}.hero .scroll-hint{margin-top:22px}}
/* The gallery uses the same smoked glass as the legal dialogs. */
#gallery{width:min(1100px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:0;border:1px solid #e0eef733;border-top-color:#f5fcff5c;border-left-color:#e0eef745;border-radius:18px;background:linear-gradient(122deg,#f0f8ff1b,#e1edf509 25%,#ffffff03 49%,#c0ff0c05),#0f1214a8;backdrop-filter:blur(26px) saturate(125%);-webkit-backdrop-filter:blur(26px) saturate(125%);box-shadow:inset 0 1px 0 #ffffff18,0 24px 100px #0008;overflow:hidden}
#gallery[open]{display:flex;flex-direction:column}
#gallery::backdrop{background:#0008;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.gallery-header{position:relative;display:flex;align-items:center;justify-content:center;padding:14px 70px;min-height:76px;flex-shrink:0;border-bottom:1px solid #ffffff20}
.gallery-header .gallery-brand{width:120px;height:46px;object-fit:contain}
#gallery .gallery-close{top:15px;right:16px;background:#ffffff08;border-color:#ffffff24;box-shadow:inset 0 1px 0 #ffffff0e}
.gallery-media{min-height:0;overflow:hidden;margin:16px 16px 0;border:1px solid #ffffff15;border-radius:10px;background:#0005}
#gallery #gallery-image{display:block;width:100%;height:min(58dvh,650px);object-fit:contain;object-position:center;touch-action:pan-y;background:transparent}
#gallery .gallery-bottom{padding:18px 22px;flex-shrink:0}
#gallery .gallery-bottom button{background:#ffffff08;border-color:#ffffff25;box-shadow:inset 0 1px 0 #ffffff10}
#gallery .gallery-bottom button:hover,#gallery .gallery-close:hover{border-color:var(--lime);color:var(--lime)}
.project img.project-watermark{position:absolute;inset:auto 18px 70px auto;width:100px;height:38px;object-fit:contain;opacity:.5;z-index:2;pointer-events:none;transform:none!important;filter:none}
img{-webkit-user-drag:none;-webkit-touch-callout:none}.hero-img,.project img,.gallery-media img,.service-visual img,.portrait-frame img{user-select:none;-webkit-user-select:none}
@media(max-width:700px){#gallery{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:14px}.gallery-header{min-height:68px;padding:10px 62px}.gallery-header .gallery-brand{width:105px;height:42px}#gallery .gallery-close{top:11px;right:12px}.gallery-media{margin:10px 10px 0;border-radius:8px}#gallery #gallery-image{height:52dvh}#gallery .gallery-bottom{padding:14px 12px}.project img.project-watermark{width:85px;height:33px;right:14px;bottom:64px}}
@media(prefers-reduced-transparency:reduce){#gallery{background:#151819;backdrop-filter:none;-webkit-backdrop-filter:none}}

/* Introductory copy belongs directly below its section heading. */
.certificates .section-title,.services .section-title{display:block}
.section-title .section-intro{max-width:none;margin:18px 0 0;font-size:var(--type-body);line-height:1.8}
/* Return to the earlier plain card numbers, without a badge. */
.cards article{--service-image-height:200px}
.cards .service-visual{height:var(--service-image-height)}
.cards .card-number{top:calc(var(--service-image-height) + 26px);right:28px;left:auto;font-size:36px;line-height:1;font-weight:600;letter-spacing:-1px;color:#b2bca5;padding:0;background:none;border:0;border-radius:0;backdrop-filter:none;-webkit-backdrop-filter:none}
.cards h3{padding-right:48px;min-height:36px}
@media(min-width:701px) and (max-width:1050px){.cards article{--service-image-height:170px}.cards .card-number{right:20px}}
@media(max-width:700px){.cards article{--service-image-height:210px}.cards .card-number{font-size:38px;right:28px}}
/* A more generous form, keeping the left-hand information together. */
.contact{grid-template-columns:minmax(0,.68fr) minmax(0,1.32fr);gap:5%}
@media(max-width:1050px){.contact{grid-template-columns:1fr;gap:36px}}
/* Keep just the moving arrow, without an enclosing outline. */
.scroll-hint .scroll-arrow{border:0;border-radius:0;background:none}
/* Underline and colour respond together on the two secondary links. */
.text-link{position:relative;border-bottom:0;transition:color .25s ease,transform .25s ease}
.text-link::after{content:"";position:absolute;bottom:0;left:0;width:100%;height:1px;background:var(--lime);transform:scaleX(.35);transform-origin:left;transition:transform .3s ease}
.text-link:hover,.text-link:focus-visible{color:var(--lime);transform:translateX(3px)}
.text-link:hover::after,.text-link:focus-visible::after{transform:scaleX(1)}
@media(prefers-reduced-motion:reduce){.text-link,.text-link::after{transition:none}.text-link:hover,.text-link:focus-visible{transform:none}}
/* The gallery top bar now contains only its close button. */
.gallery-header{min-height:64px;padding:0;border-bottom:0}
#gallery .gallery-close{top:8px}
.gallery-media{margin-top:0}
@media(max-width:700px){.gallery-header{min-height:60px;padding:0}#gallery .gallery-close{top:7px}.gallery-media{margin-top:0}}
/* Keep each complete certificate within the available viewport. */
#certificate-viewer{width:min(1000px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:hidden}
#certificate-viewer[open]{display:flex;flex-direction:column}
.certificate-toolbar{flex:0 0 auto}
#certificate-viewer .certificate-document{min-height:0;overflow:hidden;padding:12px;max-height:none;display:flex;justify-content:center;align-items:center}
#certificate-viewer .certificate-document img{width:auto;height:auto;max-width:100%;max-height:calc(100dvh - 124px);object-fit:contain}
@media(max-width:650px){#certificate-viewer{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}#certificate-viewer .certificate-document{padding:8px}#certificate-viewer .certificate-document img{max-height:calc(100dvh - 104px)}}
[hidden]{display:none!important}.cms-preview-banner{background:#c0ff0c;color:#101506;font:600 14px/1.5 Arial;padding:12px 22px;text-align:center}.cms-preview-banner a{text-decoration:underline;margin-left:14px}.cms-custom{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:6%;border-top:1px solid #c0ff0c45}.cms-custom img{width:100%;max-height:480px;object-fit:cover;border-radius:12px}.certificate-grid:empty,.cards:empty,.steps:empty{display:none}.certificate-grid{grid-template-columns:repeat(auto-fit,minmax(min(270px,100%),1fr))}.cards{grid-template-columns:repeat(auto-fit,minmax(min(290px,100%),1fr))}.steps{grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr))}@media(max-width:700px){.cms-custom{grid-template-columns:1fr;gap:24px}}
/* Social links react to pointer and keyboard focus. */
.social-icons a.social-icon{position:relative;transition:color .22s ease,transform .32s cubic-bezier(.2,.8,.2,1),filter .3s ease;transform-origin:center;will-change:auto}
.social-icons a.social-icon::after{content:"";position:absolute;left:4px;right:4px;bottom:-9px;height:2px;background:var(--lime);opacity:0;transform:scaleX(.25);transition:opacity .25s ease,transform .3s ease;pointer-events:none}
.social-icons a.social-icon:hover,.social-icons a.social-icon:focus-visible{color:var(--lime);transform:translateY(-5px) scale(1.08);filter:drop-shadow(0 0 9px #c0ff0c50)}
.social-icons a.social-icon:hover::after,.social-icons a.social-icon:focus-visible::after{opacity:1;transform:scaleX(1)}
.social-icons a.social-icon:active{transform:translateY(-1px) scale(.97)}
@media(prefers-reduced-motion:reduce){.social-icons a.social-icon,.social-icons a.social-icon::after{transition:none}.social-icons a.social-icon:hover,.social-icons a.social-icon:focus-visible,.social-icons a.social-icon:active{transform:none}}
/* Contact links share the social icons' motion and lime highlight. */
.contact-details .contact-link{width:fit-content;max-width:100%;transition:color .22s ease,transform .32s cubic-bezier(.2,.8,.2,1)}
.contact-details .contact-link svg{transition:transform .32s cubic-bezier(.2,.8,.2,1),filter .3s ease,stroke .22s ease}
.contact-details .contact-link:hover,.contact-details .contact-link:focus-visible{color:var(--lime);transform:translateX(5px)}
.contact-details .contact-link:hover svg,.contact-details .contact-link:focus-visible svg{stroke:var(--lime);transform:scale(1.12) rotate(-6deg);filter:drop-shadow(0 0 7px #c0ff0c60)}
.contact-details .contact-link:active{transform:translateX(2px)}
@media(prefers-reduced-motion:reduce){.contact-details .contact-link,.contact-details .contact-link svg{transition:none}.contact-details .contact-link:hover,.contact-details .contact-link:focus-visible,.contact-details .contact-link:active,.contact-details .contact-link:hover svg,.contact-details .contact-link:focus-visible svg{transform:none}}
.contact .form-note:empty{display:none}
.cms-ul,.cms-ol{padding-left:1.35em;margin:.5em 0}.cms-li{position:relative}.cms-ul>.cms-li::before{content:'•';position:absolute;left:-1.15em;color:var(--lime)}.cms-ol{counter-reset:cms-item}.cms-ol>.cms-li{counter-increment:cms-item}.cms-ol>.cms-li::before{content:counter(cms-item)'.';position:absolute;left:-1.35em;color:var(--lime)}
/* Existing preview cards use a discreet white logo; uploaded photos contain their adaptive watermark. */
.project img.project-watermark{opacity:.32;filter:brightness(0) invert(1)}

/* Empty references use an architectural illustration until the first publication. */
.reference-placeholder{grid-column:1/-1;position:relative;isolation:isolate;display:flex;align-items:center;min-height:340px;overflow:hidden;border:1px solid #b9c8ad20;border-radius:14px;background:linear-gradient(115deg,#141a12,#0a0e0a)}
.reference-placeholder-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:right center;pointer-events:none;z-index:-1;opacity:.75}
.reference-placeholder-copy{padding:48px 52px;max-width:56%}
.reference-placeholder-label{display:block;font-size:10pt;letter-spacing:2px;text-transform:uppercase;color:#b6c0af;margin-bottom:22px}
.reference-placeholder h3{margin:0 0 16px;font-size:36pt;font-weight:600;letter-spacing:-1.5px;line-height:1.15}
.reference-placeholder h3 span{color:var(--lime)}
.reference-placeholder p{margin:0;max-width:330px;color:#a8b3a0;font-size:var(--type-body);line-height:1.7}
#back-top{border:0;border-radius:0;background:none;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none;color:var(--lime);transition:color .2s}
#back-top svg{width:28px;height:34px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#back-top:hover,#back-top:focus-visible{color:#efffc4}
@media(prefers-reduced-motion:no-preference){#back-top svg{animation:back-top-float 2s ease-in-out infinite}#back-top:hover svg,#back-top:focus-visible svg{animation-duration:1s}@keyframes back-top-float{0%,100%{transform:translateY(3px);opacity:.65}50%{transform:translateY(-5px);opacity:1}}}
@media(max-width:700px){.reference-placeholder{min-height:310px;align-items:flex-start}.reference-placeholder-copy{max-width:100%;padding:30px 26px 140px}.reference-placeholder-label{font-size:9pt;letter-spacing:1.5px;margin-bottom:16px}.reference-placeholder h3{font-size:29pt;letter-spacing:-1px}.reference-placeholder p{max-width:260px}.reference-placeholder-art{height:270px;inset:auto -45px -50px auto;width:100%;object-fit:cover;opacity:.5}}

/* Paged references: six cards, three columns on desktop and two on mobile. */
.reference-browser{position:relative;min-width:0}
.project-grid.is-carousel{display:flex;gap:0;align-items:stretch;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;max-width:100%;position:relative}
.project-grid.is-carousel .reference-page{display:grid;flex:0 0 100%;min-width:0;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-content:start;scroll-snap-align:start;scroll-snap-stop:always}
.project-grid.is-carousel .project{height:auto;aspect-ratio:8/5;width:100%;margin:0;border-radius:12px;scroll-snap-align:none;scroll-snap-stop:normal}
.project-grid.is-carousel .project:focus-visible{outline:2px solid var(--lime);outline-offset:-3px}
.project-grid.is-carousel .project-overlay{padding:20px}
.project-grid.is-carousel .project-overlay strong{font-size:20px;line-height:1.3;overflow-wrap:anywhere}
.project-grid.is-carousel .project-overlay>span{font-size:13px;margin-top:3px;line-height:1.25;min-height:0}
.project-grid.is-carousel .project-overlay>span b{font-size:22px;line-height:1;flex-shrink:0}
.reference-controls{position:absolute;inset:0;pointer-events:none;margin:0}
.reference-controls button{position:absolute;top:var(--reference-arrow-y,50%);transform:translateY(-50%);display:grid;place-items:center;width:48px;height:48px;padding:6px;border:0;border-radius:0;background:none;color:var(--lime);cursor:pointer;pointer-events:auto;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none;opacity:0;transition:opacity .2s,color .2s}
.reference-controls .reference-prev{left:0}.reference-controls .reference-next{right:0}
.reference-browser:hover .reference-controls button,.reference-browser:has(:focus-visible) .reference-controls button{opacity:1}
.project-grid.is-carousel::-webkit-scrollbar{display:none;width:0;height:0}
.reference-controls button:hover{color:#efffc4;background:none}
.reference-controls button:focus-visible{outline:2px solid var(--lime);outline-offset:3px}
.reference-controls button:disabled{visibility:hidden;pointer-events:none}
.reference-controls svg{width:30px;height:34px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 2px 5px #0009)}
@media(hover:none){.reference-controls button{opacity:1}}
.services .principles-heading{font-size:clamp(24px,2.5vw,32px);line-height:1.3;margin:38px 0 0;padding:28px 0 0;border-top:1px solid var(--line);letter-spacing:-.5px}
.principles-heading+.principles{border-top:0;margin-top:26px;padding-top:0}
@media(min-width:701px) and (max-width:1000px){.project-grid.is-carousel .reference-page{gap:16px}.project-grid.is-carousel .project-overlay{padding:15px}.project-grid.is-carousel .project-overlay strong{font-size:17px}}
@media(max-width:700px){.project-grid.is-carousel .reference-page{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.project-grid.is-carousel .project{aspect-ratio:1/1.1}.project-grid.is-carousel .project-overlay{padding:12px}.project-grid.is-carousel .project-overlay strong{font-size:15px;line-height:1.3}.project-grid.is-carousel .project-overlay>span{font-size:12px}.reference-controls button{width:44px;height:44px;padding:6px}.services .principles-heading{margin-top:30px;padding-top:24px}.principles-heading+.principles{margin-top:0}}

/* Stable photo frame and the shared legal-panel smoke glass. */
html{scrollbar-gutter:stable}
#gallery{height:min(860px,calc(100dvh - 32px));max-height:calc(100dvh - 32px)}
#legal-viewer,#gallery,#certificate-viewer{background:linear-gradient(122deg,rgba(240,248,255,.105),rgba(225,237,245,.035) 25%,rgba(255,255,255,.012) 49%,rgba(192,255,12,.018)),rgba(15,18,20,.66);border:1px solid rgba(224,238,247,.2);border-top-color:rgba(245,252,255,.36);border-left-color:rgba(224,238,247,.27);backdrop-filter:blur(26px) saturate(125%);-webkit-backdrop-filter:blur(26px) saturate(125%);box-shadow:inset 0 1px 0 #ffffff18,inset 0 -1px 0 #c0ff0c0b,0 24px 100px #0008;border-radius:18px}
#gallery[open]{display:grid;grid-template-rows:64px minmax(0,1fr) 176px}
#legal-viewer::backdrop,#gallery::backdrop,#certificate-viewer::backdrop{background:#0008;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
#gallery .gallery-header{height:64px;min-height:0;padding:0;background:transparent}
#gallery .gallery-media{position:relative;min-width:0;min-height:0;margin:0 16px;border:1px solid #ecf4ff24;border-radius:10px;background:#0a0f152b}
#gallery #gallery-image{position:absolute;inset:0;display:block;width:100%;height:100%;max-height:100%;object-fit:contain;object-position:center;background:transparent;transform:none}
#gallery .gallery-media[data-loading=true]::after{content:'Kép betöltése…';position:absolute;left:50%;bottom:16px;transform:translateX(-50%);padding:8px 14px;border:1px solid #ffffff20;border-radius:20px;background:#111a22c9;color:#edf1f4;font-size:13px;white-space:nowrap;pointer-events:none}
#gallery .gallery-bottom{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;gap:18px;align-items:center;min-height:0;padding:14px 22px}
#gallery .gallery-bottom>div{min-width:0;min-height:0;max-height:100%;overflow:hidden;overflow-wrap:anywhere}
#gallery .gallery-bottom strong{display:block;font-size:18px;line-height:1.35}
#gallery .gallery-bottom p{margin:6px 0 0;font-size:14px;line-height:1.5;color:#d2dbe1}
#gallery .gallery-bottom button,#gallery .gallery-close,#certificate-viewer .certificate-close,#legal-viewer .legal-close{background:#ffffff08;border-color:#ffffff24;box-shadow:inset 0 1px 0 #ffffff0e;backdrop-filter:none;-webkit-backdrop-filter:none}
@media(max-width:700px){#gallery{height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}#gallery[open]{grid-template-rows:56px minmax(0,1fr) 176px}#gallery .gallery-header{height:56px}#gallery .gallery-media{margin:0 10px;border-radius:8px}#gallery .gallery-bottom{grid-template-columns:44px minmax(0,1fr) 44px;gap:10px;padding:12px}#gallery .gallery-bottom button{width:44px;min-width:44px;height:44px}#gallery .gallery-bottom strong{font-size:16px}#gallery .gallery-bottom p{font-size:13px}}
@media(max-height:500px){#gallery[open]{grid-template-rows:48px minmax(0,1fr) 134px}#gallery .gallery-header{height:48px}#gallery .gallery-close{top:3px}#gallery .gallery-bottom{padding-block:8px}}
@media(prefers-reduced-transparency:reduce){#legal-viewer,#gallery,#certificate-viewer{background:#151819;backdrop-filter:none;-webkit-backdrop-filter:none}#legal-viewer::backdrop,#gallery::backdrop,#certificate-viewer::backdrop{background:#000c;backdrop-filter:none;-webkit-backdrop-filter:none}}

/* Certificate popups share the gallery smoke glass, with the full document visible. */
.legal-toolbar,#certificate-viewer .certificate-toolbar{background:linear-gradient(132deg,#ffffff05,transparent 55%,#c0ff0c04);border-bottom-color:#ffffff20}
#certificate-viewer .certificate-document{background:transparent}
#certificate-viewer .certificate-close:hover{border-color:var(--lime);color:var(--lime)}

/* Certificate overview cards use the process-card frame and reflections. */
.certificate-grid .certificate-card,.certificate-grid .certificate-card.latest{
 position:relative;isolation:isolate;overflow:hidden;
 background:linear-gradient(122deg,rgba(240,248,255,.105) 0%,rgba(225,237,245,.035) 25%,rgba(255,255,255,.012) 49%,rgba(192,255,12,.018) 100%),rgba(15,18,20,.48);
 border:1px solid rgba(224,238,247,.16);border-top-color:rgba(245,252,255,.32);border-left-color:rgba(224,238,247,.22);
 -webkit-backdrop-filter:blur(22px) saturate(125%);backdrop-filter:blur(22px) saturate(125%);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.09),inset 0 -1px 0 rgba(192,255,12,.045),0 16px 40px rgba(0,0,0,.4);
;border-radius:12px;transition:transform .35s,border-color .35s}
.certificate-grid .certificate-card::before{
 content:"";position:absolute;inset:0;z-index:0;pointer-events:none;border-radius:inherit;
 background:linear-gradient(132deg,transparent 17%,rgba(255,255,255,.032) 17.2%,rgba(255,255,255,.012) 46%,transparent 46.2%),radial-gradient(ellipse at 5% 0%,rgba(215,237,255,.055),transparent 58%);
}
.certificate-grid .certificate-card::after{
 content:"";position:absolute;pointer-events:none;top:0;left:10%;right:12%;height:1px;
 background:linear-gradient(90deg,transparent,rgba(248,252,255,.5),rgba(192,255,12,.16),transparent);
}
.certificate-grid .certificate-card>*{position:relative;z-index:1}
.certificate-grid .certificate-card:hover{transform:translateY(-6px);border-color:#c0ff0c55}
.certificate-grid .certificate-card:focus-visible{outline:2px solid var(--lime);outline-offset:3px}
@media(prefers-reduced-transparency:reduce){.certificate-grid .certificate-card,.certificate-grid .certificate-card.latest{background:#151819;backdrop-filter:none;-webkit-backdrop-filter:none}}
@media(prefers-reduced-motion:reduce){.certificate-grid .certificate-card{transition:none}.certificate-grid .certificate-card:hover{transform:none}}
/* Wider company-story column, with less empty space beside the original portrait. */
@media(min-width:901px){.about{grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:4%}.about>div>p:not(.eyebrow):not(.lead){max-width:none}.about-visual .about-photo.portrait.portrait-editorial{margin-left:0;margin-right:auto}}
@media(max-width:700px){#legal-viewer,#gallery,#certificate-viewer{border-radius:14px}}
.cms-rich-link{text-decoration:underline;text-underline-offset:.16em;text-decoration-thickness:1px}.cms-rich-link:hover{color:var(--lime)}
/* Match the compact gap below the green rules used by the reference/process blocks. */
.about,.contact{padding-top:15px}.about{align-items:start}
@media(max-width:700px){.about,.contact{padding-top:10px}}

/* Consistent section rhythm and intentional rows at intermediate widths. */
.section{padding-top:15px;padding-bottom:44px}
.section .eyebrow{margin:0 0 16px}
.section-title{margin-bottom:28px}
.certificate-grid,.cards{grid-template-columns:repeat(3,minmax(0,1fr))}
.steps{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:28px}
.certificate-card{padding:18px}
.certificate-card img{height:clamp(160px,17vw,220px)}
.certificate-top{margin-bottom:14px}
.certificate-info h3{margin:16px 0 10px}
.certificate-note{margin-top:16px}
.about>div>p:not(.eyebrow):not(.lead){text-align:left}
#rolunk [style*="text-align:justify"],#rolunk [style*="text-align: justify"]{text-align:left!important}
.about-visual .about-photo.portrait.portrait-editorial{margin-left:auto;margin-right:auto}
.about-visual .portrait-editorial .profile-caption{margin-top:10px}
.contact-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px;margin-bottom:18px}
.contact-field{min-width:0}
.contact .contact-field label{margin:0 0 8px}
.contact .contact-field input{margin:0;width:100%}
/* Long descriptions open in a readable panel; the photo footer never scrolls. */
#gallery .gallery-copy{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:4px;min-height:0;max-height:100%}
#gallery #gallery-title,#gallery #gallery-caption{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;flex:none;overflow-wrap:anywhere;margin:0}
#gallery #gallery-title{max-height:2.7em}
#gallery #gallery-caption{max-height:3em;min-height:0}
#gallery #gallery-count{flex:none;font-size:12px;line-height:1.5;font-variant-numeric:tabular-nums;color:var(--lime);letter-spacing:.04em;margin:0}
#gallery .gallery-bottom .gallery-more{align-self:center;flex:none;display:inline-block;width:auto;min-width:0;height:auto;min-height:28px;margin:0;padding:3px 8px;border:0;border-radius:4px;background:transparent;box-shadow:none;color:var(--lime);font:inherit;font-size:13px;line-height:22px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
#gallery .gallery-bottom .gallery-more[hidden]{display:none}
#gallery .gallery-bottom .gallery-more:hover{background:#c0ff0c12}
#gallery .gallery-more:focus-visible,#gallery-details button:focus-visible{outline:2px solid var(--lime);outline-offset:3px}
#gallery-details{width:min(720px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:0;border:1px solid #dfeef74d;border-radius:16px;background:#161b1c;color:#f6f8f9;box-shadow:0 24px 100px #000b;overflow:hidden}
#gallery-details[open]{display:flex;flex-direction:column}
#gallery-details::backdrop{background:#0009;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.gallery-details-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:20px;align-items:start;padding:22px 24px;border-bottom:1px solid #ffffff24}
.gallery-details-toolbar h2{margin:4px 0 0;font-size:clamp(20px,3vw,26px);line-height:1.35;letter-spacing:-.3px;overflow-wrap:anywhere}
#gallery-details .gallery-details-close{display:grid;place-items:center;width:44px;height:44px;border:1px solid #ffffff40;border-radius:9px;background:#ffffff08;color:#fff;font-size:22px;cursor:pointer}
#gallery-details .gallery-details-close:hover{color:var(--lime);border-color:var(--lime)}
.gallery-details-content{min-height:0;padding:22px 24px;overflow:auto;overscroll-behavior:contain}
.gallery-details-content p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.7;color:#dbe1e4}
@media(max-width:700px){#gallery #gallery-title{max-height:2.7em}.gallery-details-toolbar{padding:16px;gap:12px}.gallery-details-content{padding:16px}}
@media(max-height:500px){#gallery #gallery-title,#gallery #gallery-caption{-webkit-line-clamp:1}#gallery #gallery-title{max-height:1.35em}#gallery #gallery-caption{max-height:1.5em}#gallery .gallery-copy{gap:2px}}
/* Align the portrait with the second heading line (the lime “számít.”). */
@media(min-width:901px){.about-visual{margin-top:0;padding-top:calc(var(--type-eyebrow)*1.6 + 16px + var(--type-section)*1.15)}}
@media(max-width:1100px){.steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.about{grid-template-columns:1fr;gap:28px}.about-visual{padding:0;margin:0}.cards{grid-template-columns:1fr;max-width:620px;margin-left:auto;margin-right:auto}.contact{grid-template-columns:1fr;gap:30px}}
@media(max-width:700px){
 .section{padding-top:10px;padding-bottom:36px}.section .eyebrow{margin-bottom:16px}.section-title{margin-bottom:24px}
 .certificate-grid{grid-template-columns:1fr}.certificate-card img{height:auto}.certificate-top{margin-bottom:4px}.certificate-info h3{margin-top:4px}
 .contact-fields{grid-template-columns:1fr;gap:18px}.steps{gap:14px}.about-visual .portrait-editorial .profile-caption{margin-top:10px}
}
@media(max-width:520px){.steps{grid-template-columns:1fr}}
/* Keep the final contact anchor reachable even in tall browser windows. */
main>.contact:last-child{min-height:calc(100svh - var(--header-height) - 12px - var(--page-footer-height,180px))}
