/* Whole-page space theme. One fixed starfield (starfield.js) sits behind every public page and the page content is dark, so the stars
   show through. Loaded after the page's own stylesheets so it wins. Light panels from the designer's handoff are retired here. */

/* ---- The stars: a static fallback under the WebGL canvas ---- */
html{background:#10191f}
body::before{content:'';position:fixed;inset:0;z-index:-2;pointer-events:none;background-image:radial-gradient(ellipse at 72% 22%,#29354e60,transparent 57%),radial-gradient(ellipse at 18% 78%,#23504a35,transparent 45%),radial-gradient(circle,#dfe9f0 .6px,transparent 1.1px),radial-gradient(circle,#b9cbe0 .5px,transparent 1px),radial-gradient(circle,#fff .8px,transparent 1.3px);background-size:auto,auto,173px 149px,97px 113px,311px 263px;background-position:0 0,0 0,11px 23px,47px 71px,131px 89px;opacity:.85}
body>.starfield{position:fixed;inset:0;z-index:-1}

/* ---- Pages: transparent over the stars, light text ---- */
html body.service-page,html body.galaxy-page,html body.legal-page,html body.lost-page{background:transparent;background-image:none;color:#e2e5e7;color-scheme:dark;--ink:#e2e5e7;--paper:#e2e5e7;--muted:#b9c7cd;--line:#ffffff24;--steel:transparent}
html body.service-page,html body.galaxy-page{--world-ink:color-mix(in srgb,var(--world-accent,#c1e65c) 25%,#e8eef0);--muted:#b9c7cd}

/* Heroes and the bands that used to be solid: see-through. */
.service-page .hero,.space-page .hero,.galaxy-page .galaxy-hero,.galaxy-page .galaxy-hero.lost-hero{background:transparent;background-image:none;border-color:#ffffff1c}
.galaxy-page .galaxy-hero{background-image:none}
.service-page .service-route,.space-page nav.service-route{background:#10191f99;background-image:none;border-color:#ffffff1c;color:#d7e2e6}
.space-page .service-route a{border-color:#ffffff1c!important}
.space-page .service-route a:hover{background:#ffffff0a}
.service-page .contact-section,.galaxy-page .contact-section{background:#10191f99;background-image:none;border-color:#ffffff1c;color:#e2e5e7}
.system-band,.home-band,.home-proof{background:transparent}

/* Text that was dark-on-light. */
.service-page .intro,.service-page .section-intro,.service-page .prose p,.service-page .steps p,.service-page .feature-grid p,.service-page .faq-list p,.service-page .contact-layout>div>p:not(.eyebrow),.galaxy-page .steps p,.galaxy-page .contact-layout>div>p:not(.eyebrow),.galaxy-page .section-intro,.galaxy-page .home-band p,.service-page .plan-blurb,.service-page .plan-foot p,.service-page .plan-notes li,.service-page .plan-notes dt{color:#c3d0d5}
.service-page h1,.service-page h2,.service-page h3,.galaxy-page h2,.galaxy-page h3{color:#e8eef0}
.service-page h1 em{color:var(--world-accent)}
.service-page .eyebrow,.galaxy-page .eyebrow{color:var(--world-accent,#c1e65c)}
.service-page .steps li:before,.galaxy-page .steps li:before,.service-page .contact-people small,.galaxy-page .contact-people small{color:var(--world-accent,#c1e65c)}
.service-page .steps li,.service-page .feature-grid article,.service-page .faq-list article,.service-page .plan,.service-page .plan-specs,.service-page .plan-specs li,.service-page .plan-foot,.service-page .plan-notes dl div{border-color:#ffffff24}
.service-page .feature-grid article:before,.space-page .feature-grid article:before{color:var(--world-accent)}
.service-page .feature-grid article:after,.space-page .feature-grid article:after,.service-page .plan:after{border-color:var(--world-accent)}
.service-page .feature-grid article:before{background:var(--world-accent)}
.space-page .feature-grid article:before{background:none}
.space-page .feature-grid article{background:#10191f66;border-color:#ffffff24}
.space-page .feature-grid article:hover{background:#10191fa0}
.service-page .plan{background:#10191f80}
.service-page .plan-tier,.service-page .plan-price,.service-page .plan-notes dd{color:var(--world-accent)}
.service-page .check input{accent-color:var(--world-accent)}

/* The coloured CMS panel keeps its own tint, now over the stars. */
.service-page .cms-section,.space-page .cms-section{background:color-mix(in srgb,var(--world-glow,#24615c) 34%,#0b1318e6);color:#e2e5e7}

/* Forms on the page (the slide-out contact panel stays light). */
.service-page .enquiry-form,.galaxy-page .enquiry-form{background:#10191fcc;background-image:none;border-color:#ffffff2e;color:#e2e5e7}
.space-page .enquiry-form:before{border-color:var(--world-accent)}
.service-page .enquiry-form label,.galaxy-page .enquiry-form label{color:#e2e5e7}
.service-page .enquiry-form input:not([type=checkbox]),.service-page .enquiry-form textarea,.galaxy-page .enquiry-form input:not([type=checkbox]),.galaxy-page .enquiry-form textarea{background:#0b1318;color:#e8eef0;border-color:#ffffff40}
.service-page select,.galaxy-page select{background-color:#0b1318;color:#e8eef0}
.service-page .form-notice,.galaxy-page .form-notice{border-color:var(--world-accent,#799d46)}
.service-page a:focus-visible,.service-page button:focus-visible,.service-page input:focus-visible,.service-page textarea:focus-visible,.service-page select:focus-visible,.service-page summary:focus-visible,.galaxy-page .contact-section :focus-visible{outline-color:var(--world-accent,#c1e65c)}

/* Buttons that sat on light panels keep their dark label on the accent fill. */
.service-page .button,.galaxy-page .contact-section .button{color:#17191c}
.service-page .button.secondary{color:#e2e5e7;background:transparent;border-color:#e2e5e7}

/* Header and footer are already dark; let the stars show behind the footer too. */
.site-footer{background:#17191ccc}

/* Home world cards: the designer's per-card ink colours are dark, so the accent carries the colour now. */
.world-card{border-color:#ffffff24;background:#10191f80}
.world-card:hover{background:#10191fb3}
.world-card:after{border-color:var(--card-accent)}
.world-card .eyebrow,.world-card-link{color:var(--card-accent)}
.world-card h3{color:#e8eef0}
.world-card p{color:#c3d0d5}

/* Pricing wraps its content in a div that carried its own light theme. */
.pricing-planet-page{background:transparent;color:#e2e5e7;color-scheme:dark;--world-ink:#d4e9ee;--muted:#b9c7cd}

/* Our work: the project list sat on a solid panel. */
.work-world{background:#10191f80}

/* 404: the hero was a solid panel. */
.lost-page .galaxy-hero,.lost-page .lost-hero{background:transparent;background-image:none}

/* Menu button: the hamburger and the X are green. */
.menu-toggle,.menu-toggle .menu-icon,.menu-toggle[aria-expanded="true"]{color:var(--accent,#c1e65c)}
.site-header .menu-toggle,.site-header .menu-icon{color:#c1e65c}

/* Phones: the process steps ("A clear starting point", "How we work") are a tight list, number and title on one line, so the page scrolls less. */
@media(max-width:720px){
  .steps{gap:0;margin-top:20px}
  .steps li{display:grid;grid-template-columns:auto 1fr;column-gap:12px;align-items:baseline;padding:14px 0}
  .steps h3{margin:0;font-size:20px;letter-spacing:-.4px}
  .steps p{grid-column:2;margin-top:4px;font-size:14px;line-height:1.55}
}

/* Phones: tighter gaps between the page sections. */
@media(max-width:720px){
  .section,.service-page .section,.space-page .section{padding-block:32px}
  .service-page .cms-section,.space-page .cms-section,.service-page .contact-section,.galaxy-page .contact-section,.home-band{padding-block:34px}
  .section h2{margin-bottom:0}
}

/* Contact button: lives in the sticky menu beside the logo (it used to float on the screen edge). */
.brand-group{display:flex;align-items:center;gap:22px;min-width:0}
.header-contact{display:inline-flex;align-items:center;gap:8px;flex-shrink:0;padding:11px 16px;background:#c1e65c;color:#17191c;font:700 11px/1 'Courier New',monospace;letter-spacing:2px;text-transform:uppercase;clip-path:polygon(0 0,calc(100% - 9px) 0,100% 9px,100% 100%,9px 100%,0 calc(100% - 9px))}
.header-contact:hover{text-decoration:none;filter:brightness(1.07)}
.header-contact:focus-visible{clip-path:none;outline-color:#fff;outline-offset:3px}
@media(max-width:720px){
  .brand-group{gap:12px}
  .header-contact{padding:10px 12px;letter-spacing:1.4px;font-size:10px}
}

/* The slide-out contact panel is in the browser's top layer, above the page starfield, so it carries its own stars. */
.contact-panel{color-scheme:dark;color:#e2e5e7;background-color:#10191f;background-image:radial-gradient(ellipse at 72% 18%,#29354e60,transparent 57%),radial-gradient(ellipse at 18% 82%,#23504a35,transparent 45%),radial-gradient(circle,#dfe9f0 .6px,transparent 1.1px),radial-gradient(circle,#b9cbe0 .5px,transparent 1px),radial-gradient(circle,#fff .8px,transparent 1.3px);background-size:auto,auto,173px 149px,97px 113px,311px 263px;background-position:0 0,0 0,11px 23px,47px 71px,131px 89px;border-left-color:#c1e65c66}
.contact-panel h2,.contact-panel h3{color:#e8eef0}
.contact-panel p{color:#c3d0d5}
.contact-panel .eyebrow,.contact-panel .contact-people small{color:#c1e65c}
.contact-panel a{color:#e2e5e7}
.contact-panel .enquiry-form{background:#10191fcc;background-image:none;border-color:#ffffff2e;color:#e2e5e7}
.contact-panel .enquiry-form label,.contact-panel .enquiry-form legend,.contact-panel .enquiry-form span,.contact-panel .enquiry-form small{color:#e2e5e7}
.contact-panel .enquiry-form input:not([type=checkbox]),.contact-panel .enquiry-form textarea,.contact-panel select{background:#0b1318;color:#e8eef0;border-color:#ffffff40}
.contact-panel .button{color:#17191c}

/* Contact button: centred in the space between the logo and the menu (or menu button). */
.brand-group{display:contents}
.header-inner{justify-content:space-between}
@media(max-width:720px){.header-inner{flex-wrap:nowrap}}

/* Phones: the Home hero intro line is hidden to shorten the page. */
@media(max-width:720px){.galaxy-intro>div>p:not(.eyebrow){display:none}.galaxy-intro .button{margin-top:0}}

/* Service pages: the label at the start of the page menu is the service's name. */
.space-page .route-label{text-transform:uppercase}

/* Desktop: the menu already ends with "Let's talk", so the green Contact button beside the logo is for phones only. */
@media(min-width:721px){.header-contact{display:none}}

/* Home world cards: the "Explore ..." links are 2px larger and heavier. */
.world-card-link{font-size:13px;font-weight:600}
@media(max-width:720px){.world-card-link{font-size:15px}}

/* Phones: no text smaller than 16px. Anything already larger is left alone. The logo's "NEW MEDIA" letters are part of the logo and are not included. */
@media(max-width:720px){
  html body a.header-contact,
  html body a.header-contact span,
  html body details.services-menu span,
  html body div.dropdown a,
  html body a.nav-contact,
  html body span.h1-kicker,
  html body div.galaxy-intro p,
  html body a.button,
  html body a.system-planet small,
  html body a.system-planet span,
  html body a.system-planet b,
  html body div.system-caption span,
  html body span.system-readout,
  html body ul.home-proof-grid span,
  html body p.eyebrow,
  html body span.eyebrow,
  html body a.world-card p,
  html body span.world-card-link,
  html body a.text-link,
  html body ol.steps p,
  html body div.wrap.contact-layout p,
  html body div.contact-people small,
  html body p.small,
  html body div.enquiry-form.hail-card p,
  html body a.button span,
  html body div.wrap.footer-news p,
  html body div.form-trap label,
  html body div.newsletter-fields label,
  html body button.button,
  html body button.button span,
  html body label.check span,
  html body label.check a,
  html body div.wrap.footer-top p,
  html body div.wrap.footer-top a,
  html body div.footer-services a,
  html body div.wrap.footer-bottom span,
  html body div.wrap.footer-bottom a,
  html body div.contact-panel-bar span,
  html body button.contact-panel-close,
  html body div.contact-panel-body p,
  html body div.form-row label,
  html body div.form-row span,
  html body form.enquiry-form label,
  html body form.enquiry-form span,
  html body a.hero-more,
  html body div.planet-caption span,
  html body div.planet-caption small,
  html body div.hero-route.wrap span,
  html body div.hero-route.wrap i,
  html body div.hero-route.wrap a,
  html body span.route-label,
  html body nav.service-route a,
  html body div.faq-list p,
  html body div.system-band-intro p,
  html body a.system-planet.is-current small,
  html body a.system-planet.is-current span,
  html body a.system-planet.is-current b,
  html body a.button.secondary,
  html body p.plan-tier,
  html body p.plan-price span,
  html body p.plan-blurb,
  html body ul.plan-specs b,
  html body ul.plan-specs li,
  html body div.plan-notes li,
  html body div.plan-notes dt,
  html body div.plan-notes dd,
  html body small.work-readout,
  html body span.work-moon-number,
  html body div.industry-filter label,
  html body p.industry-summary,
  html body p.work-meta,
  html body li.work-item p,
  html body p.work-service,
  html body p.work-service a,
  html body span.orbit-caption,
  html body nav.policy-index p,
  html body nav.policy-index a,
  html body div.lost-readout p,
  html body div.lost-readout a{font-size:16px!important}
}

/* Mobile: leave room for the larger system caption */
@media(max-width:720px){html body .solar-system{padding-bottom:130px}html body .system-caption{bottom:12px}}

/* Mobile planet labels: number above the name, no slash */
.system-planet .num-slash{font-style:normal}
@media(max-width:720px){
html body .system-planet>span{flex-direction:column;gap:2px;position:relative;text-align:center}
html body .system-planet .num-slash{display:none}
html body .system-planet>span b{position:absolute;top:6px;right:8px}
}
@media(max-width:720px){
html body .system-planet>span{min-width:108px;padding-inline:22px}
}

/* Tidy line breaks: balanced headings and labels, no single-word last lines in text */
html body :is(h1,h2,h3,h4,.eyebrow,.h1-kicker,.route-label,.system-planet>span,.system-caption span,small,figcaption,.home-proof-grid span,.home-proof-grid strong){text-wrap:balance}
html body :is(p,li,dd){text-wrap:pretty}
html body :is(h1,h2) em{display:block;text-wrap:balance}
@media(max-width:720px){html body :is(label,.consent) span,html body form span{text-wrap:pretty}html body :is(.section,.statement,.contact-section) h2{font-size:clamp(30px,9.6vw,38px)}}
/* Mobile proof strip: the last two items get a full row so the text does not wrap into 5 lines */
@media(max-width:720px){html body .home-proof-grid>li:nth-child(n+3){grid-column:1/-1;border-right:0;padding-inline:14px}html body .home-proof-grid>li:nth-child(3){border-bottom:1px solid #abc5d226}}
@media(max-width:720px){html body .team-roles,html body .team-meet{display:block;white-space:nowrap}html body .team-dot{display:none}}
@media(max-width:720px){html body .wide-br{display:none}}
