/* ==========================================================================
   Dark Sky Solutions — public site
   Palette and type are taken from the company logo: navy field, white
   letterforms, the orange swoosh as the single accent.
   ========================================================================== */

:root {
  --ink: #0a1330;
  --ink-2: #13224a;
  --ink-3: #1c2f5e;
  --line-dark: #2c4272;

  --sky: #2e6fa8;          /* link/accent on light backgrounds (AA on white) */
  --sky-bright: #4fa3e3;   /* accent on dark backgrounds */
  --ember: #b4661f;        /* accent on light backgrounds (AA on white) */
  --ember-bright: #eb9242; /* accent on dark backgrounds */

  --text: #1b2439;
  --muted: #55637f;
  --paper: #f4f7fc;
  --border: #e1e7f1;
  --white: #ffffff;

  --font-display: Georgia, 'Times New Roman', Times, serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --wrap: 1180px;
  --gap: 1.5rem;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(10, 19, 48, .06), 0 4px 12px rgba(10, 19, 48, .06);
  --shadow-md: 0 12px 32px rgba(10, 19, 48, .12);
  --header-h: 72px;
}

/* ------------------------------------------------------------------ reset */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.18;
  margin: 0 0 .6em;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.15rem; }
li { margin-bottom: .4rem; }

a { color: var(--sky); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ember); color: #fff; padding: .75rem 1.25rem; font-weight: 700;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ----------------------------------------------------------------- layout */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  padding-inline: 1.25rem;
  margin-inline: auto;
}

.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--tight { padding: clamp(2.2rem, 4vw, 3.2rem) 0; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink); color: #dbe4f5; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--stars {
  background: var(--ink) url('/img/band-bg.jpg') center / cover no-repeat;
  color: #dbe4f5;
}
.section--stars h2 {
  color: #01ffad; /* or var(--text-light, #f8fafc) */
}

.section-head { max-width: 46rem; margin-bottom: 2.4rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin-bottom: 0; }
.section--dark .section-head p, .section--stars .section-head p { color: #a9bade; }

.eyebrow {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: .6rem;
}
.section--dark .eyebrow, .section--stars .eyebrow, .hero .eyebrow { color: var(--ember-bright); }

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.split { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .split--wide-left { grid-template-columns: 1.15fr .85fr; } }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit; font-weight: 700; font-size: .95rem;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--ember); color: #fff; }
.btn--primary:hover { background: #9d571a; color: #fff; }
.btn--sky { background: var(--sky); color: #fff; }
.btn--sky:hover { background: #24557f; color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn--outline { border-color: var(--border); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--sky); color: var(--sky); }
.btn--block { width: 100%; justify-content: center; }

/* ----------------------------------------------------------------- header */

.topbar {
  background: var(--ink-2);
  color: #b9c8e6;
  font-size: .85rem;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.topbar .wrap { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; align-items: center; justify-content: space-between; padding: .5rem 0; }
.topbar a { color: #d8e3f7; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar-items { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; align-items: center; }
.topbar-badge { color: #8fa5cd; }
@media (max-width: 720px) { .topbar { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10, 19, 48, .97);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand-text { display: none; color: #fff; line-height: 1.15; }
.brand-text strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.brand-text span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sky-bright); }
@media (min-width: 560px) { .brand-text { display: block; } }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
  width: 44px; height: 40px; padding: 0 10px;
  background: transparent; border: 1px solid rgba(255, 255, 255, .3); border-radius: 8px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 980px) { .nav-toggle { display: none; } }

.site-nav { display: none; }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: .8rem .2rem; color: #cfdcf3; text-decoration: none;
  font-weight: 600; font-size: .95rem; border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ember-bright); }

@media (max-width: 979px) {
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); padding: .5rem 1.25rem 1.25rem; box-shadow: var(--shadow-md); }
  .site-nav .btn { margin-top: .9rem; }
}
@media (min-width: 980px) {
  .site-nav { display: block; }
  .site-nav ul { display: flex; align-items: center; gap: 1.5rem; }
  .site-nav a { border: 0; padding: .4rem 0; }
  .header-cta { margin-left: 1.2rem; }
}

/* ------------------------------------------------------------------- hero */

.hero {
  position: relative;
  background: var(--ink) url('/img/hero-bg.jpg') center / cover no-repeat;
  color: #dce5f6;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 7vw, 5rem);
}
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero-lede { font-size: clamp(1rem, 1.6vw, 1.15rem); color: #b6c6e5; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-grid { display: grid; gap: clamp(2rem, 4vw, 3rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }

.hero-portals { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.chip {
  display: inline-block; padding: .35rem .85rem; border-radius: 999px;
  font-size: .8rem; font-weight: 600;
  background: rgba(79, 163, 227, .16); color: #cfe3f8; border: 1px solid rgba(79, 163, 227, .38);
}

/* ------------------------------------------- signature: readiness checker */

.readiness {
  background: rgba(16, 30, 68, .88);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 1.6rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(2px);
}
.readiness h2 { font-size: 1.3rem; color: #fff; margin-bottom: .3rem; }
.readiness .readiness-intro { font-size: .9rem; color: #a9bade; margin-bottom: 1.1rem; }

.readiness-list { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .45rem; }
.readiness-list li { margin: 0; }
.readiness-list label {
  display: flex; align-items: flex-start; gap: .7rem;
  padding: .6rem .8rem; border-radius: 8px; cursor: pointer;
  background: rgba(255, 255, 255, .04); border: 1px solid transparent;
  font-size: .92rem; color: #d5e0f4; transition: background-color .15s ease, border-color .15s ease;
}
.readiness-list label:hover { background: rgba(255, 255, 255, .08); }
.readiness-list input { margin: .25rem 0 0; accent-color: var(--ember-bright); width: 17px; height: 17px; flex: none; }
.readiness-list input:checked + span { color: #fff; }

.readiness-meter { margin-bottom: 1rem; }
.readiness-track { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.readiness-fill { height: 100%; width: 0; background: var(--ember-bright); border-radius: 999px; transition: width .35s ease; }
.readiness-score { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .5rem; gap: 1rem; }
.readiness-score strong { font-family: var(--font-display); font-size: 1.5rem; color: #fff; }
.readiness-verdict { font-size: .88rem; color: var(--sky-bright); }

/* ------------------------------------------------------------------ cards */

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  height: 100%;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cfd9ea; }
.card h3 { margin-bottom: .45rem; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--sky); }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.card .card-link { margin-top: auto; font-weight: 700; font-size: .9rem; text-decoration: none; }
.card .card-link::after { content: ' →'; }

.section--dark .card, .section--stars .card {
  background: rgba(255, 255, 255, .05);
  border-color: var(--line-dark);
  box-shadow: none;
}
.section--dark .card p, .section--stars .card p { color: #a9bade; }

.icon-tile {
  width: 46px; height: 46px; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 1rem;
  background: rgba(46, 111, 168, .1); color: var(--sky);
  border: 1px solid rgba(46, 111, 168, .22);
}
.icon-tile svg { width: 22px; height: 22px; }
.icon-tile--ember { background: rgba(180, 102, 31, .1); color: var(--ember); border-color: rgba(180, 102, 31, .25); }
.section--dark .icon-tile, .section--stars .icon-tile {
  background: rgba(79, 163, 227, .16); color: var(--sky-bright); border-color: rgba(79, 163, 227, .35);
}
.section--dark .icon-tile--ember, .section--stars .icon-tile--ember {
  background: rgba(235, 146, 66, .16); color: var(--ember-bright); border-color: rgba(235, 146, 66, .35);
}

.media-card { padding: 0; overflow: hidden; }
.media-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.media-card .media-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }

/* ------------------------------------------------------------- fact strip */

.facts { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { background: #fff; padding: 1.4rem 1.2rem; }
.fact strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); line-height: 1.1; }
.fact span { font-size: .85rem; color: var(--muted); }

/* --------------------------------------------------------------- process */

.steps { counter-reset: step; display: grid; gap: 1.2rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }
.step {
  position: relative; padding: 1.4rem;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line-dark); border-radius: var(--radius);
}
.step-num {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--sky-bright); color: var(--ink); font-family: var(--font-display); font-weight: 700;
  margin-bottom: .9rem;
}
.step:nth-child(even) .step-num { background: var(--ember-bright); }
.step h3 { font-size: 1.05rem; color: #fff; margin-bottom: .35rem; }
.step p { font-size: .9rem; color: #a9bade; margin-bottom: .6rem; }
.step .step-output { font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--sky-bright); }
.step:nth-child(even) .step-output { color: var(--ember-bright); }

/* ------------------------------------------------------------ checklists */

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.9rem; margin: 0; font-size: .95rem; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: .42em;
  width: 11px; height: 6px; border-left: 2.5px solid var(--ember); border-bottom: 2.5px solid var(--ember);
  transform: rotate(-45deg);
}
.section--dark .ticks li::before, .section--stars .ticks li::before { border-color: var(--ember-bright); }

/* ------------------------------------------------------------ testimonial */

.quote { padding: 1.8rem; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid var(--line-dark); height: 100%; }
.quote blockquote { margin: 0 0 1rem; font-family: var(--font-display); font-size: 1.1rem; line-height: 1.5; color: #fff; }
.quote figcaption { font-size: .88rem; color: var(--sky-bright); }
.quote figcaption span { display: block; color: #8fa5cd; }

/* --------------------------------------------------------------- clients */

.logo-strip { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center; justify-content: center; }
.logo-strip img { max-height: 52px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s ease, opacity .2s ease; }
.logo-strip a:hover img { filter: none; opacity: 1; }

/* ---------------------------------------------------------------- gallery */

.gallery-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery-grid img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--border); }

/* ------------------------------------------------------------------ forms */

.form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.field { display: block; }
.field > span, .field-label { display: block; font-size: .85rem; font-weight: 700; color: var(--ink); margin-bottom: .35rem; }
.field .hint { font-weight: 400; color: var(--muted); }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="password"], input[type="number"], input[type="date"], input[type="search"],
select, textarea {
  width: 100%;
  padding: .7rem .85rem;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(46, 111, 168, .15);
  outline: none;
}
textarea { min-height: 8rem; resize: vertical; }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: #b3261e; }

.error-text { display: block; color: #b3261e; font-size: .82rem; margin-top: .3rem; font-weight: 600; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-sm); }

.alert { padding: .9rem 1.1rem; border-radius: 8px; margin-bottom: 1.2rem; font-size: .93rem; font-weight: 600; }
.alert--success { background: #e8f5ec; color: #16603a; border: 1px solid #bfe0cc; }
.alert--error { background: #fdeceb; color: #8c1d18; border: 1px solid #f3c7c4; }

/* ---------------------------------------------------------------- footer */

.site-footer { background: var(--ink); color: #a9bade; padding-top: clamp(3rem, 5vw, 4rem); }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; font-family: var(--font-body); letter-spacing: .04em; text-transform: uppercase; }
.site-footer a { color: #c3d1ec; text-decoration: none; }
.site-footer a:hover { color: var(--ember-bright); text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.footer-brand img { height: 62px; margin-bottom: 1rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .55rem; font-size: .93rem; }
.footer-bottom {
  margin-top: 2.5rem; padding: 1.2rem 0; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .85rem;
}
.social-row { display: flex; gap: .6rem; margin-top: 1rem; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .04);
}
.social-row svg { width: 17px; height: 17px; }

/* ------------------------------------------------------------------- misc */

.page-head { background: var(--ink) url('/img/band-bg.jpg') center / cover no-repeat; color: #cdd9f0; padding: clamp(2.5rem, 5vw, 3.8rem) 0; }
.page-head h1 { color: #fff; margin-bottom: .5rem; }
.breadcrumbs { font-size: .85rem; color: #93a8cf; }
.breadcrumbs a { color: #cfdcf3; text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }

.prose { max-width: 46rem; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose img { border-radius: var(--radius); margin: 1.5rem 0; }
.prose blockquote {
  margin: 1.5rem 0; padding: 1rem 1.4rem; background: var(--paper);
  border-radius: var(--radius); font-family: var(--font-display); font-size: 1.05rem;
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: .6rem .8rem; text-align: left; }
.prose th { background: var(--paper); }

.meta { font-size: .85rem; color: var(--muted); }

.pagination { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-top: 2.5rem; }
.pagination a, .pagination span {
  min-width: 40px; padding: .5rem .8rem; text-align: center; border-radius: 8px;
  border: 1px solid var(--border); text-decoration: none; font-weight: 600; font-size: .9rem;
}
.pagination .is-current { background: var(--ink); color: #fff; border-color: var(--ink); }

.cta-band { background: var(--ink-2); color: #d5e0f4; border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 2.6rem); }
.cta-band h2 { color: #fff; margin-bottom: .5rem; }
.cta-band p { color: #a9bade; margin-bottom: 1.4rem; }

.contact-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; }
.contact-lines li { display: flex; gap: .9rem; align-items: flex-start; margin: 0; }
.contact-lines .icon-tile { margin-bottom: 0; flex: none; }
.contact-lines strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-lines a { text-decoration: none; font-weight: 600; }

.map-frame { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.map-frame iframe { display: block; width: 100%; height: 340px; border: 0; }

.whatsapp-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #073b21;
  box-shadow: 0 8px 22px rgba(6, 41, 22, .35);
}
.whatsapp-float svg { width: 28px; height: 28px; }
.whatsapp-float:hover { color: #073b21; transform: scale(1.05); }

.empty-note { color: var(--muted); font-style: italic; }

/* ------------------------------------------------------------------- a11y */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

@media print {
  .site-header, .topbar, .whatsapp-float, .site-footer, .hero-actions { display: none !important; }
  body { color: #000; }
}

.form-note { margin-top: .9rem; margin-bottom: 0; }

/* ==========================================================================
   Motion
   Animations only run once the "js" class is present (set by head.js, removed
   again if site.js never initialises). Every animation ends at opacity 1, and
   every reduced-motion user gets the finished state immediately.
   ========================================================================== */

@keyframes dss-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes dss-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes dss-slide-left {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes dss-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Above-the-fold: plays on load, staggered, no scroll listener involved. */
.js .hero-enter > * { animation: dss-rise .62s cubic-bezier(.22, .68, .36, 1) both; }
.js .hero-enter > *:nth-child(1) { animation-delay: .05s; }
.js .hero-enter > *:nth-child(2) { animation-delay: .13s; }
.js .hero-enter > *:nth-child(3) { animation-delay: .21s; }
.js .hero-enter > *:nth-child(4) { animation-delay: .29s; }
.js .hero-enter > *:nth-child(5) { animation-delay: .37s; }
.js .hero-panel { animation: dss-slide-left .7s cubic-bezier(.22, .68, .36, 1) .22s both; }

/* Below-the-fold: revealed by IntersectionObserver in site.js. */
.js .reveal { opacity: 0; }
.js .reveal.is-in { animation: dss-rise .6s cubic-bezier(.22, .68, .36, 1) both; }
.js .reveal-stagger > * { opacity: 0; }
.js .reveal-stagger.is-in > * { animation: dss-rise .55s cubic-bezier(.22, .68, .36, 1) both; }
.js .reveal-stagger.is-in > *:nth-child(1) { animation-delay: .04s; }
.js .reveal-stagger.is-in > *:nth-child(2) { animation-delay: .12s; }
.js .reveal-stagger.is-in > *:nth-child(3) { animation-delay: .20s; }
.js .reveal-stagger.is-in > *:nth-child(4) { animation-delay: .28s; }
.js .reveal-stagger.is-in > *:nth-child(5) { animation-delay: .36s; }
.js .reveal-stagger.is-in > *:nth-child(6) { animation-delay: .44s; }

/* Underline that draws itself in when a section heading appears. */
.rule-in { display: block; width: 62px; height: 3px; background: var(--ember); border-radius: 2px; margin-bottom: 1.1rem; transform-origin: left; }
.section-head--center .rule-in { margin-inline: auto; transform-origin: center; }
.js .reveal.is-in .rule-in { animation: dss-grow .5s ease .18s both; }

/* Cards lift a little more decisively now there is motion elsewhere. */
.card { transition: transform .22s cubic-bezier(.22,.68,.36,1), box-shadow .22s ease, border-color .22s ease; }
.card:hover { transform: translateY(-5px); }

@media (prefers-reduced-motion: reduce) {
  .js .hero-enter > *,
  .js .hero-panel,
  .js .reveal,
  .js .reveal.is-in,
  .js .reveal-stagger > *,
  .js .reveal-stagger.is-in > * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .js .reveal.is-in .rule-in { animation: none !important; transform: none !important; }
}

/* ==========================================================================
   Hero journey panel — replaces the static checklist in the hero.
   Auto-advances through the five stages of a bid; clickable dots let a
   visitor stop and read any stage. Falls back to a plain readable list.
   ========================================================================== */

.journey {
  background: rgba(16, 30, 68, .9);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 1.7rem;
  box-shadow: var(--shadow-md);
}
.journey-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .3rem; }
.journey-head h2 { font-size: 1.25rem; color: #fff; margin: 0; }
.journey-count { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sky-bright); }
.journey-intro { font-size: .9rem; color: #a9bade; margin-bottom: 1.25rem; }

.journey-track { position: relative; }

.journey-stage { display: grid; grid-template-columns: 52px 1fr; gap: 1rem; align-items: start; }
.journey-stage + .journey-stage { margin-top: 1.1rem; }

.journey-num {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
  background: rgba(79, 163, 227, .16); color: var(--sky-bright);
  border: 1px solid rgba(79, 163, 227, .4);
}
.journey-stage:nth-child(even) .journey-num { background: rgba(235, 146, 66, .16); color: var(--ember-bright); border-color: rgba(235, 146, 66, .42); }

.journey-stage h3 { font-size: 1.08rem; color: #fff; margin: .25rem 0 .3rem; }
.journey-stage p { font-size: .92rem; color: #a9bade; margin: 0 0 .5rem; }
.journey-out { font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--sky-bright); }
.journey-stage:nth-child(even) .journey-out { color: var(--ember-bright); }

.journey-foot { margin-top: 1.4rem; }
.journey-bar { height: 4px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; margin-bottom: 1.1rem; }
.journey-bar span { display: block; height: 100%; width: 20%; background: var(--ember-bright); border-radius: 999px; transition: width .5s cubic-bezier(.22,.68,.36,1); }
.journey-dots { display: flex; gap: .45rem; justify-content: center; margin-bottom: 1.1rem; }
.journey-dots button {
  width: 26px; height: 6px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.22); transition: background-color .25s ease, width .25s ease;
}
.journey-dots button[aria-current="true"] { background: var(--ember-bright); width: 40px; }

/* With JavaScript running, only the active stage is shown and it animates in.
   Without it, all five stages stay in the document as a plain list. */
.js .journey-track .journey-stage { display: none; }
.js .journey-track .journey-stage.is-active { display: grid; animation: dss-fade .45s ease both; }
.js .journey-track .journey-stage.is-active .journey-num { animation: dss-rise .5s cubic-bezier(.22,.68,.36,1) both; }
.js .journey-track .journey-stage.is-active .journey-body { animation: dss-rise .5s cubic-bezier(.22,.68,.36,1) .06s both; }

.no-js-note { display: none; }

@media (prefers-reduced-motion: reduce) {
  .js .journey-track .journey-stage.is-active,
  .js .journey-track .journey-stage.is-active .journey-num,
  .js .journey-track .journey-stage.is-active .journey-body { animation: none !important; }
  .journey-bar span { transition: none; }
}

/* ==========================================================================
   Homepage imagery
   ========================================================================== */

.illo { position: relative; }
.illo img, .illo svg { width: 100%; height: auto; display: block; }
.illo-frame {
  background: linear-gradient(150deg, #0d1c3f 0%, #16305e 100%);
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  padding: clamp(1rem, 3vw, 1.8rem);
  box-shadow: var(--shadow-md);
}

/* Floating caption chips over the illustration. */
.illo-tag {
  position: absolute;
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem .85rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  font-size: .82rem; font-weight: 700; color: var(--ink);
  white-space: nowrap;
}
.illo-tag svg { width: 15px; height: 15px; flex: none; }
.illo-tag--one { top: 6%; left: -4%; color: var(--sky); }
.illo-tag--two { bottom: 12%; right: -3%; color: var(--ember); }
@media (max-width: 640px) {
  .illo-tag--one { left: 0; }
  .illo-tag--two { right: 0; }
}
.js .illo-tag { animation: dss-rise .6s cubic-bezier(.22,.68,.36,1) both; }
.js .illo-tag--one { animation-delay: .45s; }
.js .illo-tag--two { animation-delay: .6s; }

/* Photo band — only rendered when real photographs exist in the gallery. */
.photo-band { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.photo-band figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-dark); }
.photo-band img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s cubic-bezier(.22,.68,.36,1); }
.photo-band figure:hover img { transform: scale(1.05); }
.photo-band figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.6rem .9rem .7rem;
  background: linear-gradient(to top, rgba(6,13,33,.9), transparent);
  color: #fff; font-size: .85rem; font-weight: 600;
}

/* Service and industry cards gain a picture when one has been uploaded. */
.card-figure { margin: -1.6rem -1.6rem 1.2rem; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.card-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s cubic-bezier(.22,.68,.36,1); }
.card:hover .card-figure img { transform: scale(1.05); }

/* Number strip with counting animation. */
.count-strip { display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 700px) { .count-strip { grid-template-columns: repeat(4, 1fr); } }
.count-cell { background: rgba(255,255,255,.04); padding: 1.5rem 1.2rem; text-align: center; }
.count-cell strong { display: block; font-family: var(--font-display); font-size: 1.55rem; color: #fff; line-height: 1.15; margin-bottom: .3rem; }
.count-cell span { font-size: .86rem; color: #a9bade; }

/* Readiness checker on a light background (the bid review page). */
.readiness--light {
  background: linear-gradient(155deg, #0d1c3f 0%, #17315f 100%);
}
.readiness-note { font-size: .82rem; color: #8fa5cd; margin: .9rem 0 0; }
