/* =============================================================
   ConnectedOps Advisory — shared styles
   Tokens, type scale, components, nav, page hero, footer.
   Design canvas is 1440px: every fluid value reaches its design
   size at 1440 and scales down to the tablet/mobile minimums.
   Breakpoints: 1279 (laptop) · 1199 (nav) · 1023 (tablet) · 767 (mobile)
   ============================================================= */

:root {
  --bg: #081523;
  --bg-deep: #040f20;
  --panel: #091e38;
  --panel-hover: #0b2344;
  --orange: #fda100;
  --orange-dim: #774b00;
  --orange-soft: #c27c00;
  --track: #313131;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --line: rgba(255, 255, 255, 0.35);
  --ink: #081523;

  /* layout */
  --max: 1440px;
  --gutter: clamp(16px, 2.778vw, 40px);   /* 40px at 1440 */
  --indent: clamp(0px, 4.722vw, 68px);    /* statements sit at 108px = gutter + indent */
  --nav-top: clamp(12px, 2.778vw, 40px);
  --nav-h: 67px;

  /* type scale (max = design size) */
  --fs-18: clamp(16px, 1.25vw, 18px);
  --fs-20: clamp(17px, 1.389vw, 20px);
  --fs-24: clamp(18px, 1.667vw, 24px);
  --fs-32: clamp(22px, 2.222vw, 32px);
  --fs-40: clamp(28px, 2.778vw, 40px);
  --fs-48: clamp(30px, 3.333vw, 48px);
  --fs-64: clamp(34px, 4.444vw, 64px);

  /* motion */
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.22s;
  --t-med: 0.4s;
}

/* ---------- Fonts (Gilroy, self-hosted) ---------- */
@font-face { font-family: "Gilroy"; font-weight: 300; font-style: normal; font-display: swap; src: url("../assets/fonts/Gilroy-Light.woff2") format("woff2"); }
@font-face { font-family: "Gilroy"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/Gilroy-Regular.woff2") format("woff2"); }
@font-face { font-family: "Gilroy"; font-weight: 500; font-style: normal; font-display: swap; src: url("../assets/fonts/Gilroy-Medium.woff2") format("woff2"); }
@font-face { font-family: "Gilroy"; font-weight: 600; font-style: normal; font-display: swap; src: url("../assets/fonts/Gilroy-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Gilroy"; font-weight: 700; font-style: normal; font-display: swap; src: url("../assets/fonts/Gilroy-Bold.woff2") format("woff2"); }

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Gilroy", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-weight: 300;
  color: var(--white);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
em { font-style: normal; color: var(--orange); }
h1, h2, h3 { font-weight: 600; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 6px; }

.wrap {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Line breaks that only exist at desktop widths */
@media (max-width: 1023px) { .br-d { display: none; } }

/* =============================================================
   Shared components
   ============================================================= */

/* Orange disc + white ring indicator */
.dots {
  display: inline-flex;
  width: 48px;
  height: 24px;
  flex: 0 0 auto;
  position: relative;
}
.dots::before,
.dots::after {
  content: "";
  position: absolute;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}
.dots::before { left: 0; background: var(--orange); }
.dots::after { left: 24px; border: 2px solid var(--white); }

.dots--lg { width: 64px; height: 32px; }
.dots--lg::before,
.dots--lg::after { width: 32px; height: 32px; }
.dots--lg::after { left: 32px; border-width: 2.5px; animation: ringPulse 3s ease-in-out infinite; }
.dots--center { display: flex; margin: 0 auto; }

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.9); opacity: 0.75; }
}

/* Eyebrow label */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: var(--fs-18);
  line-height: 1.333;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* Big statements */
.statement {
  margin-top: clamp(24px, 2.85vw, 41px);
  padding-left: var(--indent);
  font-size: var(--fs-32);
  line-height: 1.344;
  font-weight: 300;
  max-width: 1300px;
}
.statement--accent {
  margin-top: 20px;
  color: var(--orange);
  font-weight: 600;
}

.section-title {
  margin-top: 13px;
  text-align: center;
  font-size: var(--fs-40);
  line-height: 1.225;
  font-weight: 600;
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 41px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease,
              border-color var(--t-fast) ease, transform var(--t-fast) ease,
              box-shadow var(--t-fast) ease;
}
.btn__icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  transition: transform var(--t-fast) ease;
}
.btn:focus-visible .btn__icon { transform: translate(2px, -2px); }
.btn:active { transform: scale(0.97); }

.btn--light { background: var(--white); color: var(--ink); }
.btn--light:focus-visible {
  background: var(--orange);
  box-shadow: 0 8px 24px rgba(253, 161, 0, 0.28);
}

.btn--ghost {
  height: 43px;
  border: 1px solid var(--white);
  color: var(--white);
}
.btn--ghost:focus-visible { background: var(--white); color: var(--ink); }

@media (hover: hover) {
  .btn:hover .btn__icon { transform: translate(2px, -2px); }
  .btn--light:hover {
    background: var(--orange);
    color: var(--ink);
    box-shadow: 0 8px 24px rgba(253, 161, 0, 0.28);
  }
  .btn--ghost:hover { background: var(--white); color: var(--ink); }
}

.btn-row { display: flex; flex-wrap: wrap; gap: 4px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; }
.chip {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--white);
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  font-weight: 400;
  white-space: nowrap;
  color: var(--white);
  background: transparent;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease,
              border-color var(--t-fast) ease, transform var(--t-fast) ease,
              box-shadow var(--t-fast) ease;
}
.chip--orange { border-color: var(--orange); color: var(--orange); }
.chip--sm { padding: 0 13px; }
.chip:focus-visible,
.chip.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}
.chip--orange:focus-visible { color: var(--ink); }

@media (hover: hover) {
  .chip:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }
  .chip--orange:hover { color: var(--ink); }
  a.chip:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(253, 161, 0, 0.25); }
}

/* Cards */
.card {
  position: relative;
  border-radius: 24px;
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) ease, border-color var(--t-med) ease;
}
.card--outline { border: 1px solid var(--orange); }
@media (hover: hover) {
  .card--outline:hover {
    box-shadow: 0 0 0 1px rgba(253, 161, 0, 0.35), 0 24px 60px rgba(0, 0, 0, 0.35);
  }
}

/* Logo wordmark */
.logo {
  font-size: 20px;
  line-height: 25px;
  font-weight: 500;
  white-space: nowrap;
  transition: opacity var(--t-fast) ease;
}
.logo span { color: var(--orange); }
.logo--lg { font-size: var(--fs-32); line-height: 1.22; font-weight: 400; }
@media (hover: hover) { .logo:hover { opacity: 0.85; } }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out) var(--d, 0s), transform 0.9s var(--ease-out) var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

/* =============================================================
   NAV
   ============================================================= */
.nav {
  position: fixed;
  top: var(--nav-top);
  left: 0;
  right: 0;
  z-index: 100;
  transition: top var(--t-med) var(--ease-out);
}
.nav__bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: var(--nav-h);
  padding: 0 13px 0 40px;
  border-radius: 999px;
  background: var(--panel);
  transition: background-color var(--t-med) ease, box-shadow var(--t-med) ease;
}
.nav.is-scrolled { top: 16px; }
.nav.is-scrolled .nav__bar,
.nav.is-open .nav__bar {
  background: rgba(9, 30, 56, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.667vw, 24px);
  margin-left: auto;
  margin-right: clamp(14px, 1.667vw, 24px);
}
.nav__links a {
  position: relative;
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  white-space: nowrap;
  padding: 6px 0;
  transition: color var(--t-fast) ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease-out);
}
.nav__links a.is-current { color: var(--orange); }
.nav__links a.is-current::after { transform: scaleX(1); }
@media (hover: hover) {
  .nav__links a:hover { color: var(--orange); }
  .nav__links a:hover::after { transform: scaleX(1); }
}

.nav__toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-left: 8px;
  border-radius: 50%;
}
.nav__toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--white);
  transition: transform var(--t-med) var(--ease-out), top var(--t-med) var(--ease-out);
}
.nav__toggle span:nth-child(1) { top: 17px; }
.nav__toggle span:nth-child(2) { top: 26px; }
.nav.is-open .nav__toggle span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

/* Mobile panel */
.nav__panel {
  position: absolute;
  top: calc(var(--nav-h) + 8px);
  left: var(--gutter);
  right: var(--gutter);
  z-index: 1;
  padding: 12px 24px 24px;
  border-radius: 24px;
  background: rgba(9, 30, 56, 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--t-med) ease, transform var(--t-med) var(--ease-out), visibility 0s linear var(--t-med);
}
.nav.is-open .nav__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--t-med) ease, transform var(--t-med) var(--ease-out), visibility 0s;
}
.nav__panel a:not(.btn) {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 18px;
  font-weight: 400;
}
.nav__panel a.is-current { color: var(--orange); }
.nav__panel .btn { margin-top: 20px; }

@media (max-width: 1199px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .nav__toggle { display: block; }
}
@media (min-width: 1200px) {
  .nav__panel { display: none; }
}
@media (max-width: 767px) {
  :root { --nav-h: 58px; }
  .nav__bar { padding: 0 6px 0 20px; }
  .nav__cta { display: none; }
  .nav__toggle { margin-left: auto; }
  .logo { font-size: 18px; }
}

html.nav-locked { overflow: hidden; }

/* =============================================================
   Subpage header: breadcrumb + hero banner
   ============================================================= */
.page { padding-top: calc(var(--nav-top) + var(--nav-h) + 40px); }

.crumbs {
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.crumbs a { transition: color var(--t-fast) ease; }
.crumbs [aria-current] { color: var(--orange); }
@media (hover: hover) { .crumbs a:hover { color: var(--orange); } }

.page-hero { padding-top: 33px; }
.page-hero__banner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(220px, 23.6vw, 340px);
  padding: 40px clamp(24px, 7.36vw, 106px);
  border-radius: 24px;
  overflow: hidden;
  background: #02060d;
  isolation: isolate;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  animation: heroDrift 36s ease-in-out infinite alternate;
  will-change: transform;
}
.page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 13, 0.55) 0%, rgba(2, 6, 13, 0) 55%);
}
.page-hero__title {
  font-size: var(--fs-48);
  line-height: 1.333;
  font-weight: 600;
}
@keyframes heroDrift {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.06) translate(-14px, -10px); }
}
@media (max-width: 767px) {
  .page-hero { padding-top: 20px; }
  .page-hero__banner { min-height: 200px; align-items: flex-end; padding: 28px 24px; }
  .page-hero__bg::after { background: linear-gradient(0deg, rgba(2, 6, 13, 0.75) 0%, rgba(2, 6, 13, 0.1) 70%); }
}

/* =============================================================
   FOOTER
   ============================================================= */
.footer {
  position: relative;
  min-height: 418px;
  margin-top: clamp(64px, 6.94vw, 100px);
  overflow: hidden;
  background: var(--panel);
}
.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 508fr) minmax(0, 872fr);
  padding-top: 61px;
  padding-right: 0;
  padding-left: calc(var(--gutter) + clamp(0px, 1.39vw, 20px));
  padding-bottom: clamp(150px, 13vw, 190px);
}
.footer__brand { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.footer__copy {
  font-size: 16px;
  line-height: 20px;
  color: var(--muted);
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 232fr)) minmax(0, 176fr);
  column-gap: 0;
}
.footer__col { padding-right: 16px; }
.footer__col h3 {
  font-size: var(--fs-20);
  line-height: 1.25;
  font-weight: 600;
  color: var(--orange);
}
.footer__col a {
  position: relative;
  display: table;
  margin-top: 4px;
  font-size: 16px;
  line-height: 25px;
  color: var(--muted);
  transition: color var(--t-fast) ease, transform var(--t-fast) ease;
}
.footer__col h3 + a { margin-top: 15px; }
.footer__col a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease-out);
}
@media (hover: hover) {
  .footer__col a:hover { color: var(--orange); transform: translateX(3px); }
  .footer__col a:hover::after { transform: scaleX(1); }
}

.footer__wordmark {
  position: absolute;
  left: 50%;
  bottom: 2.43vw;
  transform: translateX(-50%);
  font-size: 9.72vw;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -0.012em;
  background: linear-gradient(90deg, #22272a 0%, #6b4a10 22%, #c88405 50%, #6b4a10 78%, #22272a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  pointer-events: none;
  user-select: none;
}
.footer__wordmark.reveal { transform: translate(-50%, 24px); }
.footer__wordmark.reveal.is-in { transform: translateX(-50%); }

@media (max-width: 1023px) {
  .footer__inner { grid-template-columns: 1fr; gap: 40px; padding-left: var(--gutter); padding-right: var(--gutter); }
  .footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 16px; }
  .footer__brand { flex-direction: row; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
}
@media (max-width: 767px) {
  .footer__inner { padding-top: 48px; padding-bottom: 72px; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .footer__brand { flex-direction: column; align-items: flex-start; }
}

/* =============================================================
   QA mode (?static) + reduced motion
   ============================================================= */
.is-static *, .is-static *::before, .is-static *::after {
  transition: none !important;
  animation: none !important;
}
.is-static .reveal { opacity: 1; transform: none; }
.is-static .footer__wordmark.reveal { transform: translateX(-50%); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__bg, .page-hero__bg { animation: none; }
}
