/* ============================================================================
   Codespark Infotech — "Meridian Noir"
   ----------------------------------------------------------------------------
   A dark, restrained skin over meridian.css. Layout and structure live there;
   this file swaps the palette and surfaces:

     · near-black ground, three layered greys, 1px hairlines at low opacity
     · ONE accent: the logo's orange, kept for the primary CTA, the single
       highlighted headline word, the meridian ticks and the overlap bar
     · no category colours: icons, stripes and tags are monochrome
     · display type set in Instrument Sans 600, tight-tracked, with a
       white-to-grey gradient on the big headlines

   Everything here is static CSS: it renders the same with JavaScript off.
   ========================================================================== */

:root {
  color-scheme: dark;

  --bg: #0a0a0b;
  --ink: #0a0a0b;
  --ink-2: #111113;
  --paper: #0a0a0b;
  --sheet: #111113;            /* raised surface */
  --sheet-2: #161618;          /* raised surface, hover */
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  --text: #ededef;
  --text-strong: #ffffff;
  --muted: #8b8d94;
  --muted-dim: #7e8087; /* 4.5:1+ on every dark surface (was #62646b, 3.3:1) */
  --rule: rgba(255, 255, 255, 0.08);
  --rule-strong: rgba(255, 255, 255, 0.14);

  --accent: #f26522;
  --accent-lift: #ff7433;
  --accent-ink: #ff8a50;       /* orange for text on near-black */
  --accent-display: #ff6a2a;

  /* the category palette collapses to greys: one accent, no rainbow */
  --c-orange: #8b8d94; --c-orange-deep: #d4d4d8;
  --c-sun: #8b8d94;    --c-sun-deep: #d4d4d8;
  --c-green: #8b8d94;  --c-green-deep: #d4d4d8;
  --c-pink: #8b8d94;   --c-pink-deep: #d4d4d8;
  --c-teal: #8b8d94;   --c-teal-deep: #d4d4d8;
  --brass: var(--accent);
  --brass-lift: var(--accent-lift);
  --brass-deep: var(--accent-ink);
  --error: #ff6b6b;

  --r-m: 10px;
  --r-l: 16px;

  --f-display: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --grad-text: linear-gradient(180deg, #ffffff 20%, rgba(255, 255, 255, 0.58) 100%);
}

/* The ink surfaces in meridian.css re-declare their own palette; bring them
   onto the same scale so dark bands are a step, not a different world. */
.band-ink,
.ai-offer,
.ftr {
  --paper: #0c0c0e;
  --sheet: #131315;
  --text: #ededef;
  --text-strong: #ffffff;
  --muted: #8b8d94;
  --muted-dim: #7e8087; /* 4.5:1+ on every dark surface (was #62646b, 3.3:1) */
  --rule: rgba(255, 255, 255, 0.08);
  --accent-ink: #ff8a50;
  --accent-lift: #ff7433;
  --accent-display: #ff6a2a;
  --brass-deep: #ff8a50;
}
.band-sheet { --sheet: #131315; background: #0c0c0e; }

body {
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: color-mix(in srgb, var(--accent) 40%, transparent); color: #fff; }

/* paper grain becomes a barely-there film grain */
.grain { mix-blend-mode: soft-light; opacity: 0.55; }

/* ---------- Rhythm ---------- */

.band { padding: 128px 0; }
.band-tight { padding: 72px 0; }
.band-flush { padding-top: 0; }
.band + .band:not(.band-ink):not(.band-sheet):not(.band-flush) { border-top: 1px solid var(--rule); }
.band-ink, .band-sheet { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.band-ink {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255, 255, 255, 0.035), transparent 70%),
    #0c0c0e;
}

/* ---------- Type ---------- */

.h1 {
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.h2 {
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.06;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
}
.h3 { font-weight: 600; letter-spacing: -0.012em; color: var(--text-strong); }
.lead { color: var(--muted); }
.eyebrow { color: var(--muted); letter-spacing: 0.16em; font-size: 0.68rem; }

/* gradient headline text. When motion-fx splits a headline into words the
   gradient moves onto each word, so transformed words never lose it. */
.h1:not([data-fx-split]), .h2:not([data-fx-split]),
.h1 .fx-w > span, .h2 .fx-w > span {
  background-image: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.h1 .line > span { padding-bottom: 0.02em; }
.h1 em, .h1 em .fx-w > span, .h2 em, .h2 em .fx-w > span {
  background-image: linear-gradient(180deg, #ff8a50 10%, #f26522 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.h1:not([data-fx-split]) em { -webkit-text-fill-color: transparent; }

/* ---------- Buttons ---------- */

.btn { border-radius: 10px; font-weight: 500; letter-spacing: -0.01em; }
.btn-primary {
  background: var(--accent);
  color: #0a0a0b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 0 1px rgba(242, 101, 34, 0.7),
    0 6px 18px -10px rgba(242, 101, 34, 0.5);
}
.btn-primary:hover { background: var(--accent-lift); color: #0a0a0b; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--rule-strong);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.24); color: #fff; }

/* ---------- Header ---------- */

.hdr.is-solid {
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--rule);
}
.nav-menu > a:not(.btn), .nav-drop-btn { color: var(--muted); }
.nav-menu > a:not(.btn):hover, .nav-drop-btn:hover, .nav-drop.is-open .nav-drop-btn { color: #fff; }
.mega {
  background: rgba(14, 14, 16, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--rule);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}
.mega-h { color: var(--muted-dim); }
.mega-col a { color: var(--muted); }
.mega-col a:hover { color: #fff; }
.mega-all { color: var(--text); }
.nav-toggle { border-color: var(--rule-strong); }

/* ---------- Hero ---------- */

.hero { padding: calc(var(--hdr) + 104px) 0 24px; text-align: center; }
.hero .wrap-plain { position: relative; }
/* a cool spotlight falling from above the headline */
.hero::before {
  top: -360px;
  left: 50%;
  right: auto;
  width: min(1200px, 130vw);
  aspect-ratio: auto;
  height: 900px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 34% 50% at 50% 38%, rgba(255, 255, 255, 0.075), transparent 72%),
    conic-gradient(from 180deg at 50% 0%, transparent 160deg, rgba(255, 255, 255, 0.035) 175deg,
      rgba(255, 255, 255, 0.05) 180deg, rgba(255, 255, 255, 0.035) 185deg, transparent 200deg);
  -webkit-mask-image: linear-gradient(#000 40%, transparent 85%);
  mask-image: linear-gradient(#000 40%, transparent 85%);
  filter: none;
}
/* a fine grid that fades out toward the edges */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 78%);
}
.hero-eyebrow {
  justify-content: center;
  display: inline-flex;
  margin: 0 auto 34px;
  padding: 7px 16px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: var(--muted);
}
.hero-eyebrow > span + span { border-left-color: var(--rule-strong); }
.hero-eyebrow .dot { box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.18), 0 0 12px rgba(242, 101, 34, 0.8); }
.hero:not(.hero-page) .h1 { font-size: clamp(2.9rem, 8vw, 6.6rem); margin: 0 auto 28px; }
.hero .hero-sub { margin: 0 auto 40px; max-width: 58ch; }
.hero-actions { justify-content: center; margin-bottom: 72px; }
.hero .ob { margin: 0 auto; text-align: left; position: relative; }
/* the one accent glow: a low backlight behind the key card */
.hero:not(.hero-page) .wrap-plain::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -150px;
  width: min(1000px, 100%);
  height: 460px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 50% 45% at 50% 60%, rgba(242, 101, 34, 0.16), transparent 70%);
  pointer-events: none;
}

/* subpage heroes stay left-aligned beside the content rail */
.hero-page { text-align: left; padding: calc(var(--hdr) + 72px) 0 40px; }
.hero-page .h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
.hero-page .hero-actions { justify-content: flex-start; }
.hero-page::before {
  top: -360px; left: 20%; height: 640px;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(242, 101, 34, 0.1), transparent 70%);
}
.hero-page::after {
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 25% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 90% at 25% 0%, #000 20%, transparent 75%);
}
.breadcrumb, .breadcrumb a { color: var(--muted-dim); }
.breadcrumb a:hover { color: var(--text); }

/* ---------- Surfaces: dark glass panels ---------- */

.svc, .ai-card, .work-card, .subservice, .ob, .rail-next, .ai-offer {
  background: var(--glass), var(--sheet);
  border: 1px solid var(--rule);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.svc { padding: 28px 26px 24px; }
.svc:hover, .work-card:hover {
  transform: none;
  border-color: var(--rule-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 48px -28px rgba(0, 0, 0, 0.8);
}
.svc-icon, .ind-icon {
  background: rgba(255, 255, 255, 0.04);
  color: #d4d4d8;
  border: 1px solid var(--rule);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.svc .svc-ai { border-left-color: var(--rule-strong); color: var(--muted); }
.svc .svc-more { color: var(--text); }
.svc:hover .svc-more { color: #fff; }
.svc-also { color: var(--muted); }
.svc-also a { color: var(--text); text-decoration-color: var(--rule-strong); }

.work-tag { color: var(--muted); }
.ai-offer {
  background:
    radial-gradient(ellipse 60% 120% at 100% 50%, rgba(242, 101, 34, 0.1), transparent 70%),
    var(--glass), #111113;
}
.model { border-top: 1px solid var(--rule-strong); position: relative; }
.model::before {
  content: ""; position: absolute; left: 0; top: -1px; width: 28px; height: 1px; background: var(--accent);
}
.region-lon { color: var(--text); }
.region li::before { background: var(--rule-strong); }
.proc-inner { background: var(--glass), #111113; border-color: var(--rule); }
.proc-when { color: var(--muted); }
.stack-key { color: var(--muted); }
.chip { background: rgba(255, 255, 255, 0.03); border-color: var(--rule); }

/* ---------- The overlap card ---------- */

.ob { border-radius: 18px; padding: 28px 32px 24px; }
.ob-track { background: rgba(255, 255, 255, 0.04); }
.ob-bar-you { background: rgba(255, 255, 255, 0.14); }
.ob-bar-us { background: rgba(255, 255, 255, 0.26); }
.ob-bar-lap {
  background: linear-gradient(90deg, #f26522, #ff8a50);
  box-shadow: 0 0 18px -2px rgba(242, 101, 34, 0.55);
}
.ob-val-lit { color: var(--accent-ink); }
.ob-time { color: var(--text-strong); }

/* ---------- Marquee: monochrome credibility row ---------- */

.marquee { border-color: var(--rule); }
.marquee-group img {
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.42;
  transition: opacity 0.3s var(--ease);
}
.marquee-group img:hover { opacity: 0.9; transform: none; }

/* ---------- FAQ, forms, footer ---------- */

.faq summary { font-weight: 600; color: var(--text-strong); }
.faq summary:hover { color: #fff; }
.faq summary::after { border-color: var(--muted); }
.field input, .field select, .field textarea { background-color: rgba(255, 255, 255, 0.03); border-color: var(--rule-strong); } /* background-color, not the shorthand: the shorthand wiped the select's arrow */
/* The open dropdown list is drawn by the OS: tell it the control is dark and give
   the options our surface + text, or they inherit near-white text on a white list. */
.field select { color-scheme: dark; }
.field select option { background-color: var(--sheet); color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-dim); }
.need-pill span:hover { border-color: rgba(255, 255, 255, 0.3); }
.need-pill input:checked + span { color: #0a0a0b; }
.iti__selected-country:hover .iti__selected-country-primary { background: rgba(255, 255, 255, 0.05); }
.iti__dropdown-content { background: #131315; }
.iti__country { color: var(--text); }
.ftr { border-top: 1px solid var(--rule); background: #08080a; }
.ftr-k { color: var(--muted-dim); }

/* ---------- Mobile ---------- */

@media (max-width: 780px) {
  .band { padding: 88px 0; }
  .band-tight { padding: 52px 0; }
  .hero { padding: calc(var(--hdr) + 56px) 0 16px; }
  .hero-page { padding: calc(var(--hdr) + 44px) 0 28px; }
  .hero-eyebrow { border: 0; background: none; box-shadow: none; padding: 0; flex-direction: column; gap: 6px; }
  .hero-eyebrow > span + span { padding-left: 0; border-left: 0; }
  .hero-actions { margin-bottom: 56px; }
  .nav-menu { background: #0a0a0b; }
  .hero::after { background-size: 44px 44px; }
}

/* footer: headings and icons go quiet; the accent stays on the CTA link only */
.ftr-col h4 { color: var(--muted-dim); }
.ftr-ico { color: var(--muted); }
.ftr-col .ftr-all { color: var(--text); }
