/* Shared palette. Brand artwork stays blue/orange; text gets its own contrast. */
:root,html[data-theme=light]{
 --brand-blue:#0055ff;--orange:#ff8c20;
 --ink:#111c32;--muted:#526077;--blue:#0055ff;
 --surface:#ffffff;--paper:#ffffff;--panel:#ffffff;--line:#dfe5ee;
 --action:#0055ff;--action-hover:#1749cf;
}
html[data-theme=dark]{
 --brand-blue:#0055ff;--orange:#ff8c20;
 --ink:#ffffff;--muted:#c4cfdf;--blue:#3b82ff;
 --surface:#04142e;--paper:#04142e;--panel:#081d3d;--line:#263c5b;
 --action:#0055ff;--action-hover:#1749cf;
}
/* A consistent canvas from the header through every page to the footer. */
html[data-theme] body,
html[data-theme] .header,
html[data-theme] footer,
html[data-theme] .hero,
html[data-theme] .services-hero,
html[data-theme] .about-hero,
html[data-theme] .section,
html[data-theme] .approach,
html[data-theme] .contact,
html[data-theme] .founders-section,
html[data-theme] .strip,
html[data-theme] .mobile-nav{background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme] .header{background:var(--surface)}
html[data-theme] footer{border-top:1px solid var(--line)}
html[data-theme] .card,
html[data-theme] .leader,
html[data-theme] .scope-block,
html[data-theme] .deliverables,
html[data-theme] .service-brief,
html[data-theme] .service-jump a,
html[data-theme] .enquiry-guide,
html[data-theme] .leader-profile,
html[data-theme] .about-brand,
html[data-theme] .brief,
html[data-theme] .nodes>div,
html[data-theme] .connection-panel{background:var(--panel);color:var(--ink);border-color:var(--line)}
html[data-theme] .about-brand{border:1px solid var(--line);box-shadow:none}
html[data-theme] .brief{border-top:3px solid var(--brand-blue)}
html[data-theme] .card:hover{border-color:var(--blue);box-shadow:none}
html[data-theme] .contact-fallback{background:transparent}
html[data-theme] .footer-bottom,
html[data-theme] .brand-baseline,
html[data-theme] .capability-tags span,
html[data-theme] .process-grid li,
html[data-theme] .project-checklist li,
html[data-theme] .audience-grid article,
html[data-theme] .contact-detail>a{border-color:var(--line)}
html[data-theme] .footer-top p,
html[data-theme] .footer-bottom,
html[data-theme] .about-brand>p,
html[data-theme] .brand-caption,
html[data-theme] .brand-baseline,
html[data-theme] .capability-tags span,
html[data-theme] .brief>p,
html[data-theme] .signature,
html[data-theme] .card-top>span,
html[data-theme] .nodes small{color:var(--muted)}
html[data-theme] .about-brand strong{color:var(--ink)}
html[data-theme] .eyebrow,
html[data-theme] .profile-trigger,
html[data-theme] .leader-role,
html[data-theme] .card-top>.icon,
html[data-theme] .brief .eyebrow{color:var(--blue)}
html[data-theme] .footer-top nav a:hover{color:var(--blue)}
html[data-theme] .principles .icon,
html[data-theme] .working-principles article>.icon{background:var(--panel);color:var(--blue);border:1px solid var(--line)}
html[data-theme] .about-brand>img,
html[data-theme] .brand-node img{background:transparent;padding:0;border-radius:0}
/* Blue actions in both modes, rather than white and several unrelated blues. */
html[data-theme] .button,
html[data-theme] .primary,
html[data-theme] .light,
html[data-theme] .nav-cta,
html[data-theme] .mobile-nav .nav-cta,
html[data-theme] .hero-branded .hero-actions .primary{
 background:var(--action);color:#ffffff;border-color:var(--action);
}
html[data-theme] .button:hover,
html[data-theme] .primary:hover,
html[data-theme] .light:hover,
html[data-theme] .nav-cta:hover,
html[data-theme] .mobile-nav .nav-cta:hover,
html[data-theme] .hero-branded .hero-actions .primary:hover{background:var(--action-hover);color:#ffffff}
html[data-theme] .contact-actions button{
 background:var(--panel);color:var(--ink);border:1px solid var(--line);
}
html[data-theme] .contact-actions button:hover{background:var(--surface);color:var(--blue);border-color:var(--blue)}
html[data-theme] .mobile-nav a:hover,
html[data-theme] .mobile-nav a[aria-current=page],
html[data-theme] .service-brief summary:hover,
html[data-theme] .service-jump a:hover{background:var(--panel);color:var(--blue)}
html[data-theme] .language-control,
html[data-theme] .theme-toggle{background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme] .theme-toggle:hover{background:var(--panel);border-color:var(--blue)}
/* The hero follows the selected theme; the photographic artwork stays intact. */
html[data-theme] .hero.hero-branded{background:var(--surface);color:var(--ink)}
html[data-theme=light] .hero-branded::before{
 background:linear-gradient(90deg,#ffffff 0%,#ffffff 29%,rgba(255,255,255,.96) 38%,rgba(255,255,255,.65) 48%,transparent 65%);
}
html[data-theme=dark] .hero-branded::before{
 background:linear-gradient(90deg,#04142e 0%,rgba(4,20,46,.96) 29%,rgba(4,20,46,.55) 45%,transparent 62%);
}
html[data-theme] .hero-branded h1 em{color:var(--blue)}
html[data-theme] .hero-branded .eyebrow{color:var(--blue)}
html[data-theme] .hero-branded .lead,
html[data-theme] .hero-branded .hero-note{color:var(--muted);border-color:var(--line)}
html[data-theme] .hero-branded .text-link{color:var(--blue)}
html[data-theme] .hero-branded .text-link:hover{color:var(--ink)}
html[data-theme] .hero-branded a:focus-visible{outline-color:var(--orange)}
html[data-theme] .logo img,html[data-theme] .footer-top>a img{filter:none}
html[data-theme] ::selection{background:var(--brand-blue);color:#fff}

/* Clear actions and balanced navigation. */
html[data-theme] .button.secondary,html[data-theme] .profile-trigger{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:48px;padding:12px 18px;border:1px solid var(--blue);border-radius:6px;background:var(--panel);color:var(--blue);font-size:13px;font-weight:600;line-height:1.5;text-align:center;text-decoration:none}
html[data-theme] .button.secondary:hover,html[data-theme] .leader-details summary:hover .profile-trigger{background:var(--action);border-color:var(--action);color:#fff}
html[data-theme] .card-link{margin-top:auto;width:100%;padding:12px 18px}
html[data-theme] .hero-actions{display:flex;flex-wrap:wrap;align-items:stretch;gap:14px}
html[data-theme] .hero-actions .button{min-height:54px}
html[data-theme] .company-more,html[data-theme] .about-process-link{margin-top:24px}
html[data-theme] .profile-trigger{width:fit-content}
html[data-theme] .header-row{display:grid;grid-template-columns:1fr auto auto;gap:20px}
html[data-theme] .logo{grid-column:1;grid-row:1;justify-self:start}
html[data-theme] .site-preferences{grid-column:2;grid-row:1;margin-left:0}
html[data-theme] .header-contact{grid-column:3;grid-row:1;margin-left:0}
html[data-theme] .desktop-nav{grid-column:1;grid-row:1;justify-self:center;gap:24px;padding-left:150px;margin:0;font-size:13px}
html[data-theme] .desktop-nav a{display:flex;align-items:center;min-height:44px;white-space:nowrap}
@media(min-width:1200px){html[data-theme] .header-row{position:relative;grid-template-columns:1fr auto auto}html[data-theme] .desktop-nav{position:absolute;left:50%;transform:translateX(-50%);padding-left:0}}
@media(max-width:1199px){html[data-theme] .desktop-nav{display:none}html[data-theme] .header-row{grid-template-columns:1fr auto auto auto;gap:14px}html[data-theme] .menu-toggle{display:block;grid-column:4;grid-row:1;min-width:44px;min-height:44px}}
@media(max-width:600px){html[data-theme] .header-row{grid-template-columns:1fr auto auto;gap:8px}html[data-theme] .header-contact{display:none}html[data-theme] .menu-toggle{grid-column:3}html[data-theme] .hero-actions{flex-direction:column}html[data-theme] .hero-actions .button{width:100%}html[data-theme] .leader-profile .button{display:flex;width:100%;margin-right:0}}

/* Homepage welcome: blue brand reveal, one soft shine, then staggered content. */
.brand-intro{display:none}
html[data-brand-intro=play] .brand-intro{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;background:radial-gradient(ellipse at center,#f2f6ff 0%,#fff 70%);pointer-events:none;animation:outlink-welcome-dismiss 3.6s cubic-bezier(.4,0,.2,1) forwards}
.brand-intro-art{position:relative;width:min(280px,65vw);aspect-ratio:1600/428;isolation:isolate;animation:outlink-logo-arrive .65s cubic-bezier(.2,.7,.2,1) both,outlink-logo-breathe .75s ease-in-out 1.15s 2}
.brand-intro-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.intro-white{opacity:.12;filter:grayscale(1)}
.intro-blue{clip-path:inset(0 100% 0 0);animation:outlink-logo-colour 1s cubic-bezier(.4,0,.2,1) .1s forwards}
.intro-shine{position:absolute;inset:-30% -12%;background:linear-gradient(105deg,transparent 35%,#ffffffb3 50%,transparent 65%);mix-blend-mode:screen;transform:translateX(-140%);opacity:0;animation:outlink-logo-shine .55s ease 1.1s both}
html[data-brand-intro=play] .hero-branded .hero-media{animation:outlink-content-reveal .6s ease 2.85s both}
html[data-brand-intro=play] .hero-copy h1{animation:outlink-content-reveal .55s ease 2.95s both}
html[data-brand-intro=play] .hero-copy .lead{animation:outlink-content-reveal .5s ease 3.05s both}
html[data-brand-intro=play] .hero-copy .hero-actions{animation:outlink-content-reveal .45s ease 3.15s both}
@keyframes outlink-welcome-dismiss{0%,78%{opacity:1;visibility:visible}100%{opacity:0;visibility:hidden}}
@keyframes outlink-logo-arrive{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:none}}
@keyframes outlink-logo-colour{to{clip-path:inset(0 0 0 0)}}
@keyframes outlink-logo-breathe{0%,100%{transform:scale(1);filter:drop-shadow(0 0 0 #0055ff00)}50%{transform:scale(1.035);filter:drop-shadow(0 0 12px #0055ff28)}}
@keyframes outlink-logo-shine{0%{opacity:0;transform:translateX(-140%)}30%{opacity:.65}100%{opacity:0;transform:translateX(140%)}}
@keyframes outlink-content-reveal{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(max-width:600px){@keyframes outlink-content-reveal{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}}
@media(prefers-reduced-motion:reduce){html[data-brand-intro=play] .brand-intro{display:none}html[data-brand-intro=play] .hero-media,html[data-brand-intro=play] .hero-copy h1,html[data-brand-intro=play] .hero-copy .lead,html[data-brand-intro=play] .hero-copy .hero-actions{animation:none}}

.language-picker{position:relative;flex-shrink:0}
html[data-theme] .language-control{font:600 12px var(--body);gap:8px;padding:0 12px;min-height:44px;cursor:pointer;transition:border-color .18s,background .18s;outline:none}
html[data-theme] .language-control:hover,html[data-theme] .language-control[aria-expanded=true]{border-color:var(--blue);background:var(--panel)}
html[data-theme] .language-control:focus-within{outline:none}
html[data-theme] .language-control:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.language-chevron{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6;transition:transform .18s}
[aria-expanded=true] .language-chevron{transform:rotate(180deg)}
.language-options{position:absolute;right:0;top:calc(100% + 10px);width:174px;padding:6px;border:1px solid var(--line);border-radius:10px;background:var(--panel);box-shadow:0 12px 32px #00000024;z-index:30}
.language-options[hidden]{display:none}
.language-options button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:44px;padding:10px 12px;border:0;border-radius:6px;background:transparent;color:var(--ink);font:500 13px var(--body);cursor:pointer;text-align:left}
.language-options button span{visibility:hidden;color:var(--blue)}
.language-options button[aria-pressed=true]{font-weight:700;color:var(--blue)}
.language-options button[aria-pressed=true] span{visibility:visible}
.language-options button:hover{background:var(--surface);color:var(--blue)}
.language-options button:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
@media(max-width:600px){html[data-theme] .language-control{font-size:11px;padding:0 8px;gap:5px}.language-control>.icon{width:15px;height:15px}.language-chevron{width:12px}}
@media(prefers-reduced-motion:reduce){.brand-intro-art{animation:none}}

.back-to-top{position:fixed;right:max(24px,env(safe-area-inset-right));bottom:max(24px,env(safe-area-inset-bottom));z-index:9;display:grid;place-items:center;width:48px;height:48px;padding:12px;border:1px solid var(--action);border-radius:50%;background:var(--action);color:#fff;box-shadow:0 5px 18px #00194030;cursor:pointer;transition:background .2s,transform .2s}
.back-to-top[hidden]{display:none}
.back-to-top svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.back-to-top:hover{background:var(--action-hover);transform:translateY(-3px)}
.back-to-top:focus-visible{outline:2px solid var(--blue);outline-offset:4px}
.footer-bottom{padding-bottom:82px}
@media(max-width:600px){.back-to-top{width:44px;height:44px;padding:10px;right:max(16px,env(safe-area-inset-right));bottom:calc(16px + env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.back-to-top{transition:none}.back-to-top:hover{transform:none}}

/* Service imagery only: preserve the approved theme and navigation layout. */
.service-photo{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:6px;display:block}
.service-photo-card>.service-photo{margin-bottom:24px}
.service-detail-photo{margin-bottom:28px}
.service-photo-card{min-width:0}

/* Closing CTA and footer adapted from the design branch; scoped to these areas. */
.cta-section{padding:0 0 89px}
.cta-band{display:grid;grid-template-columns:minmax(0,1.618fr) minmax(0,1fr);align-items:center;gap:55px;padding:89px;border-radius:24px;background:var(--action);color:#fff}
html[data-theme] .cta-band .eyebrow{display:inline-flex;align-items:center;margin:0 0 21px;padding:5px 13px;border:1px solid #ffffff66;border-radius:999px;background:#ffffff1f;color:#fff;letter-spacing:.1em}
.cta-band h2{color:#fff;font-size:clamp(30px,2.2vw + 14px,42px)}
.cta-band p:not(.eyebrow){margin-top:21px;color:#ffffffe0;font-size:18px;line-height:1.618;max-width:32rem}
html[data-theme] .cta-band .button{justify-self:end;background:#fff;color:#0b2a6b;border-color:#fff}
html[data-theme] .cta-band .button:hover{background:#e8efff;color:#0b2a6b}
footer{padding:89px 0 34px}
.footer-top{grid-template-columns:minmax(0,1.618fr) minmax(0,1fr) auto;gap:55px}
.footer-top nav{flex-wrap:nowrap;gap:13px 21px;font-size:15px}
.footer-top p{font-size:15px;line-height:1.618}
.footer-bottom{margin-top:55px;padding-top:21px;font-size:13px}
@media(max-width:1000px){.footer-top{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:34px}.footer-top nav{grid-column:1/-1;justify-content:flex-start;flex-wrap:wrap}}
@media(max-width:860px){.cta-band{grid-template-columns:minmax(0,1fr);padding:55px 34px;gap:34px}html[data-theme] .cta-band .button{justify-self:start}}
@media(max-width:640px){.cta-section{padding-bottom:55px}.cta-band{padding:55px 21px}html[data-theme] .cta-band .button{justify-self:stretch;justify-content:center}.footer-top{grid-template-columns:minmax(0,1fr)}.footer-bottom{flex-direction:column;gap:8px}}

/* A single consultation route, sharing existing appearance and language controls. */
.consultation-page{padding:34px 0 80px;scroll-margin-top:96px}
.consultation-heading{max-width:760px;margin-bottom:44px}
.consultation-heading h1{font-size:clamp(34px,4.5vw,56px);margin-bottom:20px}
.consultation-heading>p:not(.eyebrow){font-size:18px;color:var(--muted);max-width:640px}
.consultation-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:48px;align-items:start}
.consultation-card{border:1px solid var(--line);border-top:4px solid var(--blue);border-radius:12px;padding:36px;background:var(--panel)}
.consultation-card h2,.consultation-guide h2{font-size:26px;line-height:1.25;margin-bottom:16px}
.consultation-card>p:not(.eyebrow){color:var(--muted)}
.consultation-card .consultation-address{font-size:clamp(18px,2vw,25px);font-weight:600;color:var(--ink);margin:28px 0 20px;overflow-wrap:anywhere}
.consultation-card .contact-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:0}
.consultation-hint{font-size:14px;line-height:1.6;margin-top:20px}
.consultation-guide ol{list-style:decimal;padding-left:24px;margin:24px 0 32px}
.consultation-guide li{padding:0 0 22px 8px;color:var(--blue)}
.consultation-guide li h3{font-size:17px;color:var(--ink);margin-bottom:8px}
.consultation-guide li p,.consultation-direct p{color:var(--muted);font-size:15px}
.consultation-direct{border-top:1px solid var(--line);padding-top:20px}
.consultation-direct summary{cursor:pointer;font-weight:600;min-height:44px;padding:10px 0;color:var(--ink)}
.consultation-direct>div{padding:12px 0}.consultation-direct .button{margin-top:20px}
@media(max-width:800px){.consultation-grid{grid-template-columns:minmax(0,1fr);gap:36px}.consultation-heading{margin-bottom:32px}}
@media(max-width:480px){.consultation-card{padding:24px 20px}.consultation-card .contact-actions{flex-direction:column}.consultation-card .contact-actions>*{width:100%}}

/* Keep the explicit Home link centred without overlapping logo/preferences. */
@media(min-width:1200px){html[data-theme] .header-row{grid-template-columns:auto minmax(0,1fr) auto auto;gap:20px}html[data-theme] .desktop-nav{position:static;transform:none;grid-column:2;justify-self:center;gap:18px}html[data-theme] .site-preferences{grid-column:3}html[data-theme] .header-contact{grid-column:4}}
.mobile-nav a[aria-current=page]{color:var(--blue);font-weight:700}
