/* ===== Arsela Resources - brand tokens (from official guidelines) ===== */
:root {
  /* Primary */
  --navy: #0B2A4A;
  --charcoal: #2B2F33;

  /* Secondary */
  --cool-grey: #6B7280;
  --light-grey: #E5E7EB;

  /* Accent (use sparingly per brand) */
  --electric: #2F80ED;

  /* Neutrals (derived from light-grey) */
  --bg: #FFFFFF;
  --bg-alt: #F7F8FA;
  --bg-soft: #F1F3F6;

  /* Semantic */
  --ink: var(--navy);
  --ink-2: var(--charcoal);
  --ink-mute: var(--cool-grey);
  --rule: rgba(11, 42, 74, 0.12);
  --rule-soft: rgba(11, 42, 74, 0.07);

  /* Type - Inter as web fallback for Aptos per the guidelines */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Spacing scale */
  --pad-x: clamp(20px, 4vw, 56px);
  --section: clamp(80px, 10vw, 140px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--navy); color: #fff; }

/* Layout */
.wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* Type utilities */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cool-grey);
}
.eyebrow .dash {
  display: inline-block;
  width: 24px; height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 10px;
}

/* Image placeholders - grid-textured */
.img-ph {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(11, 42, 74, 0.04) 0 14px,
      rgba(11, 42, 74, 0.08) 14px 28px
    ),
    var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--cool-grey);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
}
.img-ph::after {
  content: ""; position: absolute; inset: 0;
  border: 1px solid var(--rule-soft);
  pointer-events: none;
}

/* Buttons - brand-compliant */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 0;
  transition: all 180ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover { background: #0d3357; }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--rule);
}
.btn-ghost:hover { border-color: var(--navy); }
.btn-on-dark {
  background: #fff;
  color: var(--navy);
}
.btn-on-dark:hover { background: var(--light-grey); }
.btn-ghost-on-dark {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.32);
}
.btn-ghost-on-dark:hover { border-color: #fff; }
.btn .arrow { transition: transform 180ms ease; display: inline-block; }
.btn:hover .arrow { transform: translateX(3px); }

/* Inline arrow link */
.arrow-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: color 180ms ease, border-color 180ms ease;
}
.arrow-link:hover { color: var(--electric); border-color: var(--electric); }
.arrow-link .arrow { transition: transform 180ms ease; }
.arrow-link:hover .arrow { transform: translateX(3px); }

/* ===== Brand visual elements (from guidelines) ===== */

/* "Data wave" motif - a soft sinusoidal stroke, used at 10–20% opacity */
.data-wave {
  position: absolute;
  pointer-events: none;
  color: var(--navy);
  opacity: 0.10;
}

/* "A" monogram watermark - uses the real brand monogram PNG.
   Element is empty <div class="a-mono"></div>; size with width/height via inline style. */
.a-mono {
  position: absolute;
  pointer-events: none;
  user-select: none;
  background: url("brand/arsela-a-monogram.png") center / contain no-repeat;
  opacity: 0.04;
  /* Default size; pages override via inline style on the element. */
  width: clamp(400px, 50vw, 700px);
  aspect-ratio: 1024 / 683;
}
/* Sub-pages in /services/ reference brand from one level up */
body[data-page="strategy"] .a-mono,
body[data-page="technology-ai"] .a-mono,
body[data-page="operations"] .a-mono,
body[data-page="carbon"] .a-mono {
  background-image: url("../brand/arsela-a-monogram.png");
}
/* The dark navy footer / cta block needs a white-tinted version.
   We desaturate-to-white by filtering the navy monogram. */
.cta-block:not(.light) .a-mono,
.outcomes .a-mono,
.page-head .a-mono,
.preview .a-mono {
  /* Invert + brightness pushes the navy monogram to white; the alpha stays. */
  filter: brightness(0) invert(1);
  opacity: 0.05;
}

/* Sidebar element - vertical brand bar (used on section pages / dividers) */
.brand-bar {
  width: 4px;
  background: var(--navy);
  align-self: stretch;
}
.brand-bar.accent { background: var(--electric); }

/* Logo lockup (HTML wordmark fallback for use on dark backgrounds where the JPEG can't go) */
.logo-mark {
  display: inline-flex; align-items: center; gap: 12px;
}
.logo-mark .a-mark {
  width: 36px; height: 36px;
  position: relative;
  flex: none;
}
.logo-mark .a-mark svg { width: 100%; height: 100%; display: block; }
.logo-mark .wm {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.04em;
  line-height: 1;
  color: inherit;
}
.logo-mark .wm small {
  display: block;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--cool-grey);
  margin-top: 4px;
}
.logo-mark.on-dark .wm small { color: rgba(255,255,255,0.55); }

/* The image-form logo (use on light backgrounds only, per brand) */
.logo-img {
  height: 32px;
  width: auto;
  display: block;
}

/* ============================================================
   NAV - shared across all pages (rendered by site-chrome.js)
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.93);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule-soft);
}
.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 40px;
  height: 76px;
}
.nav-logo img { height: 30px; width: auto; display: block; }
.nav-links {
  display: flex; gap: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.nav-links a {
  position: relative;
  padding: 10px 0;
  transition: color 150ms ease;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.current { color: var(--navy); }
.nav-links a.current::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--electric);
}
.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-burger {
  display: none;
  appearance: none; border: 0; background: transparent;
  width: 40px; height: 40px;
  padding: 10px;
  cursor: pointer;
  flex-direction: column; justify-content: space-between;
  align-items: stretch;
}
.nav-burger span {
  display: block;
  width: 100%; height: 2px;
  background: var(--navy);
  transition: transform 180ms ease, opacity 180ms ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 20px 0 28px;
  border-top: 1px solid var(--rule-soft);
}
.nav-mobile a {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.nav-mobile a:last-child { border-bottom: 0; }
.nav-mobile a.btn { padding: 14px 22px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-burger { display: flex; }
  .nav-mobile:not([hidden]) { display: flex; }
}

/* ============================================================
   FOOTER - shared
   ============================================================ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.footer-logo {
  display: inline-block;
  margin-bottom: 20px;
}
.footer-logo img {
  height: 44px;
  width: auto;
  display: block;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 12px;
  max-width: 42ch;
  color: rgba(255,255,255,0.65);
}
.footer-tag {
  font-size: 13px !important;
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500;
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0 0 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.footer-col ul li { padding: 7px 0; color: rgba(255,255,255,0.65); }
.footer-col ul li a { color: rgba(255,255,255,0.78); transition: color 150ms ease; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  padding-top: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { grid-template-columns: 1fr; }
}

/* ============================================================
   PAGE HEADER - used by all internal pages
   ============================================================ */
.page-head {
  position: relative;
  padding: clamp(72px, 9vw, 120px) 0 clamp(56px, 7vw, 96px);
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
.page-head .a-mono {
  width: clamp(400px, 50vw, 720px);
  right: -10%;
  bottom: -35%;
}
.page-head-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}
.page-head .eyebrow {
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
}
.page-head .eyebrow::before { content: ""; width: 24px; height: 1px; background: rgba(255,255,255,0.7); }
.page-head h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: #fff;
  margin: 0;
  text-wrap: balance;
}
.page-head h1 .accent { color: #6BA6F7; }
.page-head .lede {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  max-width: 50ch;
  padding-bottom: 6px;
  text-wrap: pretty;
  margin: 0;
}
.page-head .lede p { margin: 0 0 14px; }
.page-head .lede p:last-child { margin-bottom: 0; }

.page-head .meta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.18);
  position: relative; z-index: 1;
}
.page-head .meta-row .k {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}
.page-head .meta-row .v {
  font-size: 17px; font-weight: 500;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
@media (max-width: 860px) {
  .page-head-grid { grid-template-columns: 1fr; gap: 24px; }
  .page-head .meta-row { grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* ============================================================
   SECTION HEADER - used inside content sections
   ============================================================ */
.section {
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
}
.section.alt { background: var(--bg-alt); }
.section.navy { background: var(--navy); color: #fff; }
.section.navy .sec-head h2 { color: #fff; }
.section.navy .sec-head h2 .accent { color: #6BA6F7; }
.section.navy .sec-head .eyebrow,
.section.navy .sec-head .sub { color: rgba(255,255,255,0.78); }
.section.navy .sec-head .eyebrow::before { background: rgba(255,255,255,0.7); }

.sec-head {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 80px);
}
.sec-head .eyebrow {
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cool-grey);
  display: flex; align-items: center; gap: 12px;
}
.sec-head .eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--cool-grey); }
.sec-head h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.07;
  letter-spacing: -0.028em;
  color: var(--navy);
  margin: 18px 0 0;
  text-wrap: balance;
}
.sec-head h2 .accent { color: var(--electric); }
.sec-head .sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 50ch;
  padding-bottom: 6px;
  text-wrap: pretty;
  margin: 0;
}
.sec-head .sub p { margin: 0 0 12px; }
.sec-head .sub p:last-child { margin-bottom: 0; }
@media (max-width: 860px) {
  .sec-head { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .sec-head h2 { margin-top: 8px; }
}

/* ============================================================
   "What we support" card grid - used on each service detail page
   ============================================================ */
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.support-card {
  background: #fff;
  padding: clamp(24px, 2.4vw, 32px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
}
.section.alt .support-card { background: var(--bg-alt); }
.support-card .num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--electric);
  margin-bottom: 4px;
}
.support-card h3 {
  font-weight: 600;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0 0 10px;
  text-wrap: balance;
}
.support-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  text-wrap: pretty;
}
@media (max-width: 980px) {
  .support-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .support-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Service tiles - used on home + services hub
   ============================================================ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.svc {
  background: #fff;
  padding: clamp(28px, 3vw, 44px);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  min-height: 380px;
  transition: background 220ms ease;
  position: relative;
}
.svc:hover { background: var(--bg-alt); }
.section.alt .svc { background: var(--bg-alt); }
.section.alt .svc:hover { background: #fff; }

.svc-top {
  display: flex; justify-content: space-between; align-items: start;
}
.svc-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--electric);
  font-weight: 500;
}
.svc-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--navy);
  color: #fff;
  flex: none;
}
.svc h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(20px, 1.9vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0;
  text-wrap: balance;
}
.svc p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  max-width: 44ch;
  text-wrap: pretty;
}
.svc-foot {
  padding-top: 18px;
  border-top: 1px solid var(--rule-soft);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--cool-grey);
}
.svc-foot .read {
  color: var(--navy);
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500;
}
.svc:hover .svc-foot .read { color: var(--electric); }
.svc:hover .svc-foot .read .arrow { transform: translateX(3px); }
.svc-foot .read .arrow { display: inline-block; transition: transform 180ms ease; }
@media (max-width: 740px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc { min-height: 0; }
}

/* ============================================================
   CTA block - navy "Suggested closing section"
   ============================================================ */
.cta-block {
  padding: clamp(72px, 9vw, 120px) 0;
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-block.light {
  background: #fff;
  color: var(--navy);
  border-top: 1px solid var(--rule);
}
.cta-block .a-mono {
  width: clamp(400px, 50vw, 700px);
  right: -8%;
  bottom: -32%;
}
.cta-block.light .a-mono { opacity: 0.05; filter: none; }
.cta-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: end;
  position: relative;
  z-index: 1;
}
.cta-grid .eyebrow {
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.cta-grid .eyebrow::before { content: ""; width: 24px; height: 1px; background: rgba(255,255,255,0.7); }
.cta-block.light .cta-grid .eyebrow { color: var(--cool-grey); }
.cta-block.light .cta-grid .eyebrow::before { background: var(--cool-grey); }
.cta-grid h2 {
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.028em;
  color: #fff;
  margin: 0;
  text-wrap: balance;
}
.cta-block.light .cta-grid h2 { color: var(--navy); }
.cta-grid h2 .accent { color: #6BA6F7; }
.cta-block.light .cta-grid h2 .accent { color: var(--electric); }
.cta-right p {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  margin: 0 0 28px;
  max-width: 44ch;
  text-wrap: pretty;
}
.cta-block.light .cta-right p { color: var(--ink-2); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .cta-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   Eyebrow / inline label utility
   ============================================================ */
.eyebrow {
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cool-grey);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px; background: currentColor;
  display: inline-block;
}
.eyebrow.no-dash::before { display: none; }
.section.navy .eyebrow { color: rgba(255,255,255,0.6); }
.section.navy .eyebrow::before { background: rgba(255,255,255,0.7); }
