/* Full-frame revision: every photograph uses its native aspect ratio. */
body .photo img{display:block!important;width:100%!important;height:auto!important;max-height:none!important;object-fit:contain!important;object-position:center!important;transform:none!important;animation:none!important;background:transparent!important}
body .photo{display:block!important;aspect-ratio:auto!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;background:transparent!important}
body .card-image .photo,body .gallery-grid .photo,body .about-split>.photo,body .service-editorial>.photo{aspect-ratio:auto!important;height:auto!important;min-height:0!important;overflow:hidden!important}
body .card-image{align-self:center;min-width:0;overflow:hidden}
body .gallery-grid figure{min-width:0}
body .v1 .service-card:first-child .card-image .photo{min-height:0!important}
body .about-split>.photo{align-self:center}
body .service-card:hover img,body .gallery-grid figure:hover img{transform:none!important}
body .fullframe-hero{width:100%!important;max-width:none!important;margin:0!important;border-radius:0!important;min-height:0!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto!important;align-items:stretch!important;overflow:hidden!important;position:relative!important;background:var(--deep)!important;color:#fff!important;isolation:isolate}
body .fullframe-hero>.hero-media,body .fullframe-hero>.photo{grid-area:1/1!important;position:relative!important;inset:auto!important;width:100%!important;height:auto!important;min-height:0!important;align-self:start!important;z-index:0!important;order:0!important}
body .fullframe-hero .hero-media .photo{width:100%!important;height:auto!important}
body .fullframe-hero:after{content:''!important;display:block!important;position:absolute!important;inset:0!important;z-index:1!important;background:linear-gradient(90deg,#071221eb 0%,#071221b5 38%,#07122125 80%)!important;pointer-events:none}
body.v3 .hero.fullframe-hero:after{background:linear-gradient(270deg,#073a40f5 0%,#073a40c4 36%,#073a4020 80%)!important}
body .fullframe-hero>.hero-content,body .fullframe-hero>.inner-copy{grid-area:1/1!important;position:relative!important;z-index:2!important;align-self:center!important;justify-self:start!important;width:min(680px,calc(100% - 72px))!important;max-width:none!important;margin:0 0 0 max(36px,calc((100vw - 1240px)/2))!important;padding:32px 0!important;color:white!important}
body.v3 .hero.fullframe-hero>.hero-content{justify-self:end!important;margin:0 max(36px,calc((100vw - 1240px)/2)) 0 0!important;width:min(570px,calc(100% - 72px))!important}
body .fullframe-hero h1{font-size:clamp(2rem,4vw,4.2rem)!important;line-height:1.1;margin:.2em 0 .45em}
body .fullframe-hero .eyebrow{color:#fff!important}
body .fullframe-hero .outline{color:white!important;border-color:white!important}
body .fullframe-details p{max-width:60ch}
/* Image-backed CTA retains full photo as a right-hand composition rather than cropping it. */
body .cta:has(>.photo){display:grid;grid-template-columns:1.15fr 1fr;align-items:center;min-height:0;background:var(--deep);color:white}
body .cta:has(>.photo)>.photo{grid-area:1/2;position:relative!important;inset:auto!important;z-index:0!important;width:100%!important}
body .cta:has(>.photo):before{display:none!important}
body .cta:has(>.photo)>.cta-inner{grid-area:1/1;display:block;width:auto;margin:0;padding:clamp(28px,4vw,65px);min-height:0}
body .cta:has(>.photo) .btn{margin-top:12px}
body.v2 header .header-cta{background:#fff;color:#174eb0}
body.v3 header .header-cta{background:#a6e4d4;color:#073a40}
body.v2 header .desktop>a:hover,body.v2 header .desktop summary:hover,body.v3 header .desktop>a:hover,body.v3 header .desktop summary:hover{color:#fff;text-decoration:underline}
body .rotating-text{white-space:normal!important;overflow-wrap:anywhere;min-width:0}
@media(max-width:900px){
 body .fullframe-hero{grid-template-rows:auto auto!important}
 body .fullframe-hero:after{display:none!important}
 body .fullframe-hero>.hero-content,body .fullframe-hero>.inner-copy,body.v3 .hero.fullframe-hero>.hero-content{display:contents!important}
 body .fullframe-title{grid-area:1/1;z-index:2;align-self:end;position:relative;padding:30px 20px 12px;background:linear-gradient(0deg,#06131be8,#06131b00);color:#fff;min-width:0}
 body .fullframe-title h1{font-size:clamp(1.45rem,5vw,2.65rem)!important;margin:0;max-width:95%}
 body .fullframe-title .eyebrow{font-size:.65rem;margin-bottom:5px}
 body .fullframe-details{grid-area:2/1;z-index:2;padding:20px 20px 25px;background:var(--deep);color:#fff;min-width:0}
 body .fullframe-details .actions{margin-top:14px}
 body .fullframe-details .hero-name{margin-top:14px}
 body .cta:has(>.photo){grid-template-columns:1fr}
 body .cta:has(>.photo)>.photo{grid-area:1/1}
 body .cta:has(>.photo)>.cta-inner{grid-area:2/1;padding:28px 20px}
}
@media(max-width:800px){body.v3 .service-card:has(.card-image),body.v3 .service-card:last-child:has(.card-image){display:flex;flex-direction:column}.v3 .card-image{width:100%}body .card-image{width:100%}.v1 .service-card:first-child .card-image{width:100%}}
@media(prefers-reduced-motion:no-preference){body .fullframe-title,body .fullframe-details{animation:enter .7s ease both}}


/* ===== Final enhancement pass ===== */
.brand img{width:150px!important;max-height:116px!important;height:auto!important;object-fit:contain!important}
@media(max-width:1100px){.brand img{width:132px!important;max-height:100px!important}}
@media(max-width:800px){.brand img{width:104px!important;max-height:82px!important}}
header{backdrop-filter:saturate(130%) blur(10px)}
.desktop>a,.desktop summary{position:relative;padding:.35rem 0}
.desktop>a:after,.desktop summary:after{content:'';position:absolute;left:0;bottom:-6px;width:100%;height:2px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .28s ease,opacity .28s ease;opacity:.65}
.desktop>a:hover:after,.desktop summary:hover:after{transform:scaleX(1)}

/* Animated intro splash */
.intro-splash{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;background:radial-gradient(circle at center,#183763 0%,#091a2f 55%,#040b14 100%);overflow:hidden;transition:opacity .65s ease,visibility .65s ease}
.intro-splash.hide{opacity:0;visibility:hidden}
.intro-core{position:relative;z-index:2;display:grid;justify-items:center;gap:14px;text-align:center;color:#fff}
.intro-core img{width:min(220px,42vw);height:auto;filter:drop-shadow(0 16px 26px rgba(0,0,0,.25))}
.intro-core p{margin:0;font-weight:700;letter-spacing:.08em;text-transform:uppercase;font-size:.86rem;color:#f5f7fb}
.intro-paint{position:absolute;border-radius:50%;filter:blur(12px);opacity:.75;animation:paintFloat 10s ease-in-out infinite alternate}
.intro-paint-a{width:42vmax;height:42vmax;background:radial-gradient(circle,#ffd36a 0%,#d0a13d 40%,transparent 70%);left:-10vmax;top:-8vmax}
.intro-paint-b{width:38vmax;height:38vmax;background:radial-gradient(circle,#2b84ff 0%,#1450be 42%,transparent 72%);right:-10vmax;top:8vmax;animation-delay:-2s}
.intro-paint-c{width:36vmax;height:36vmax;background:radial-gradient(circle,#36c0aa 0%,#0b705f 42%,transparent 72%);left:28vmax;bottom:-12vmax;animation-delay:-4s}
@keyframes paintFloat{from{transform:translate3d(0,0,0) scale(1) rotate(0deg)}to{transform:translate3d(2vmax,-1vmax,0) scale(1.12) rotate(12deg)}}

/* Left-to-right headline ticker */
.headline-ticker{background:linear-gradient(90deg,var(--deep),color-mix(in srgb, var(--deep) 72%, white));color:#fff;border-block:1px solid #ffffff22;overflow:hidden}
.headline-ticker .ticker-shell{display:flex;align-items:center;gap:18px;padding:12px 0}
.headline-ticker strong{font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--stripaccent);flex:none}
.headline-ticker .ticker-run{overflow:hidden;flex:1;white-space:nowrap}
.headline-ticker .ticker-track{display:inline-block;padding-left:0;animation:tickerForward 22s linear infinite}
.headline-ticker .ticker-track span{display:inline-flex;align-items:center;gap:12px;margin-right:34px}
.headline-ticker .ticker-track b{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--stripaccent)}
@keyframes tickerForward{from{transform:translateX(-100%)}to{transform:translateX(100vw)}}

/* Overlay CTA with background image */
body .cta:has(>.photo){display:grid!important;grid-template-columns:1fr!important;align-items:stretch!important;position:relative!important;overflow:hidden!important;min-height:380px!important}
body .cta:has(>.photo)>.photo{grid-area:1/1!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;z-index:0!important}
body .cta:has(>.photo)>.photo img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center center!important}
body .cta:has(>.photo):before{display:block!important;content:''!important;position:absolute!important;inset:0!important;background:linear-gradient(90deg,rgba(7,18,33,.9) 0%,rgba(7,18,33,.78) 36%,rgba(7,18,33,.38) 70%,rgba(7,18,33,.15) 100%)!important;z-index:1!important}
body .cta:has(>.photo)>.cta-inner{grid-area:1/1!important;display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:24px!important;position:relative!important;z-index:2!important;min-height:380px!important;padding:clamp(34px,5vw,76px)!important}
body .cta:has(>.photo)>.cta-inner>div{max-width:700px}
body .cta .btn{align-self:flex-start}

/* Full-width overlay hero refinement */
body .fullframe-hero .fullframe-title,body .fullframe-hero .fullframe-details{background:transparent!important}
body .fullframe-hero .fullframe-title{backdrop-filter:none}
body .fullframe-hero .fullframe-details{max-width:58ch}
body .fullframe-hero .actions .btn{box-shadow:0 12px 32px rgba(0,0,0,.18)}
body .inner-hero.fullframe-hero .fullframe-title a{color:#fff;text-decoration:underline;text-underline-offset:4px}

/* Home content blocks */
.feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.feature-card,.highlight-card,.story-panel{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:0 10px 30px #0000000c}
.feature-card{position:relative;overflow:hidden}
.feature-card:before{content:'';position:absolute;inset:auto auto 0 0;width:72px;height:72px;background:linear-gradient(135deg,var(--accent),transparent);opacity:.13;border-radius:18px 18px 0 0}
.feature-card h3,.highlight-card h3,.story-panel h3{margin-bottom:.5rem}
.feature-card p,.highlight-card p,.story-panel p{color:var(--muted);margin-bottom:0}
.story-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:28px;align-items:center}
.story-visual{border-radius:var(--radius);overflow:hidden;border:1px solid var(--line);box-shadow:0 18px 44px #00000014}
.story-visual .photo{aspect-ratio:1.45}
.highlight-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.highlight-card ul{margin:0;padding-left:18px;color:var(--muted)}
.highlight-card li{margin:.5rem 0}
.news-blocks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.news-card{background:linear-gradient(180deg,var(--card),color-mix(in srgb, var(--bg) 85%, white));border:1px solid var(--line);border-radius:var(--radius);padding:22px;box-shadow:0 12px 25px #0000000d}
.news-card small{display:block;margin-bottom:10px;color:var(--accenttext);font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.news-card p{margin:0;color:var(--muted)}

/* Gallery as autoplay carousel */
.gallery-section .gallery-grid{display:flex!important;overflow:auto hidden;scroll-snap-type:x mandatory;gap:18px;padding-bottom:8px;scrollbar-width:none}
.gallery-section .gallery-grid::-webkit-scrollbar{display:none}
.gallery-section .gallery-grid figure{flex:0 0 min(32%,390px);scroll-snap-align:start}
.gallery-section .gallery-controls{display:flex!important;justify-content:flex-end;gap:10px;margin-top:12px}
.gallery-controls button{box-shadow:0 8px 18px #00000014}

/* Scroll to top */
.scroll-top{position:fixed;right:20px;bottom:92px;z-index:40;width:50px;height:50px;border:none;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,var(--accent),var(--deep));color:#fff;box-shadow:0 14px 32px rgba(0,0,0,.25);opacity:0;visibility:hidden;transform:translateY(12px) scale(.92);transition:opacity .25s,visibility .25s,transform .25s}
.scroll-top svg{width:24px;height:24px}
.scroll-top.show{opacity:1;visibility:visible;transform:translateY(0) scale(1)}
.scroll-top:hover{transform:translateY(-2px) scale(1.03)}

/* Better mobile handling */
@media(max-width:1024px){
  .feature-grid,.highlight-row,.news-blocks{grid-template-columns:repeat(2,minmax(0,1fr))}
  .story-grid{grid-template-columns:1fr}
  .gallery-section .gallery-grid figure{flex-basis:min(48%,420px)}
}
@media(max-width:900px){
  body .cta:has(>.photo)>.cta-inner{min-height:0!important;align-items:flex-end!important;padding:30px 20px!important}
  body .cta:has(>.photo):before{background:linear-gradient(180deg,rgba(7,18,33,.84) 0%,rgba(7,18,33,.6) 40%,rgba(7,18,33,.32) 100%)!important}
  .headline-ticker .ticker-shell{padding:10px 0}
}
@media(max-width:800px){
  .feature-grid,.highlight-row,.news-blocks{grid-template-columns:1fr}
  .gallery-section .gallery-grid figure{flex-basis:82%}
  .headline-ticker strong{display:none}
  body .cta:has(>.photo)>.cta-inner{display:block!important}
  body .cta:has(>.photo) .btn{margin-top:16px}
  .scroll-top{right:14px;bottom:84px;width:46px;height:46px}
}
@media(prefers-reduced-motion:reduce){
  .headline-ticker .ticker-track,.intro-paint{animation:none!important}
}

/* Mobile hero overlay correction only: all hero content shares the image layer. */
@media(max-width:900px){
 body .fullframe-hero{grid-template-rows:minmax(0,auto)!important;align-items:stretch!important}
 body .fullframe-hero>.hero-media,body .fullframe-hero>.photo{grid-area:1/1!important;align-self:stretch!important;min-height:0!important}
 body .fullframe-hero:after,body.v3 .hero.fullframe-hero:after{display:block!important;background:linear-gradient(90deg,rgba(6,17,30,.91),rgba(6,17,30,.72) 62%,rgba(6,17,30,.47))!important;inset:0!important}
 body .fullframe-hero>.hero-content,body .fullframe-hero>.inner-copy,body.v3 .hero.fullframe-hero>.hero-content{display:flex!important;flex-direction:column;justify-content:center;align-items:flex-start;grid-area:1/1!important;position:relative!important;z-index:2!important;align-self:stretch!important;justify-self:stretch!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:clamp(10px,3.3vw,32px)!important;gap:0;color:#fff!important;text-shadow:0 1px 5px #0007}
 body .fullframe-hero .fullframe-title,body .fullframe-hero .fullframe-details{position:relative!important;display:block!important;align-self:auto!important;grid-area:auto!important;width:100%;max-width:64ch!important;padding:0!important;margin:0!important;background:transparent!important;color:#fff!important}
 body .fullframe-hero .fullframe-title h1{font-size:clamp(18px,4.8vw,40px)!important;line-height:1.12!important;margin:3px 0 7px!important;max-width:100%!important}
 body .fullframe-hero .fullframe-title .eyebrow{font-size:clamp(9px,2.35vw,13px)!important;line-height:1.25;letter-spacing:.065em;margin:0!important}
 body .fullframe-hero .fullframe-details p{font-size:clamp(12px,2.9vw,17px)!important;line-height:1.35!important;margin:0 0 8px!important;color:#fff!important}
 body .fullframe-hero .fullframe-details .actions{display:flex;flex-wrap:wrap;gap:6px;margin:0!important}
 body .fullframe-hero .fullframe-details .btn{width:auto!important;min-height:44px!important;padding:7px 10px!important;font-size:clamp(10.5px,2.65vw,15px)!important;line-height:1.15;gap:5px;white-space:normal;text-shadow:none}
 body .fullframe-hero .fullframe-details .btn svg{width:15px;height:15px}
 body .fullframe-hero .fullframe-details .hero-name{font-size:clamp(9px,2.1vw,12px);line-height:1.2;margin-top:7px!important;color:#fff!important}
 body .inner-hero.fullframe-hero .fullframe-title{font-size:clamp(11px,2.5vw,14px);line-height:1.3}
}
