/* =========================================================
   Sage Edge — technology consultancy
   Brand (from the LinkedIn logo + cover): deep navy + sage on
   cool light grey; fine sage "threads"; wide-tracked caps.
   Type:  Outfit (headings, caps) + Figtree (text).
   ========================================================= */

:root {
  --navy:      #0c1c29;
  --navy-2:    #162633;
  --navy-line: #2a3a47;
  --sage:      #768564;   /* accents, icons, rules — not small text on light */
  --sage-ink:  #55634a;   /* sage text on light backgrounds (AA) */
  --sage-hi:   #a3b48a;   /* sage text on navy (AA) */
  --mist:      #f5f5f4;
  --stone:     #ebebe9;
  --white:     #ffffff;
  --ink:       #0c1c29;
  --muted:     #4a5560;
  --line:      #d9dcd8;

  --maxw: 1160px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 4px;

  --head: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --text: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; font-family: var(--text); font-size: 1.0625rem; line-height: 1.65;
  background: var(--mist); color: var(--ink); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
::selection { background: var(--navy); color: var(--mist); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: .6rem 1rem;
}
.skip-link:focus { left: 0; }

.eyebrow {
  margin: 0 0 1rem; font-family: var(--head); font-weight: 500;
  font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; color: var(--sage-ink);
}
.eyebrow::before {
  content: ""; display: block; width: 56px; height: 2px; margin-bottom: 1.1rem;
  background: linear-gradient(90deg, transparent, var(--sage) 30%, var(--sage) 70%, transparent);
}

/* ---------------- NAV ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 245, 244, .9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand__owl { width: 38px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--head); font-weight: 500; font-size: 1.12rem;
  letter-spacing: .28em; text-transform: uppercase;
}
.brand__sub {
  font-family: var(--head); font-size: .58rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--muted); margin-top: .25rem;
}
.nav__links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  text-decoration: none; font-family: var(--head); font-size: .82rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.nav__links a:hover { color: var(--ink); }
.nav__links .nav__cta {
  color: var(--mist); background: var(--navy); padding: .62rem 1.15rem; border-radius: var(--radius);
}
.nav__links .nav__cta:hover { background: var(--navy-2); color: #fff; }

.nav__toggle { display: none; flex-direction: column; gap: 6px; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform .2s ease; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------------- BUTTONS ---------------- */
.btn {
  display: inline-flex; align-items: center; padding: .9rem 1.5rem; border-radius: var(--radius);
  font-family: var(--head); font-weight: 500; font-size: .86rem; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none; border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--solid { background: var(--navy); color: var(--mist); }
.btn--solid:hover { background: var(--navy-2); }
.btn--line { border-color: var(--navy); color: var(--navy); }
.btn--line:hover { background: var(--navy); color: var(--mist); }
.btn--sage { background: var(--sage-hi); color: var(--navy); }
.btn--sage:hover { background: #b6c69c; }
.btn--ghost { border-color: rgba(245, 245, 244, .35); color: var(--mist); }
.btn--ghost:hover { border-color: var(--mist); }

/* ---------------- HERO ---------------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(720px, calc(100vh - 72px));
  display: flex; align-items: center;
  background: linear-gradient(115deg, #fbfbfa 0%, var(--mist) 45%, var(--stone) 100%);
}
.threads { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.threads__field path { fill: none; stroke: var(--sage); stroke-width: .7; opacity: .45; vector-effect: non-scaling-stroke; }
.threads__edge {
  fill: none; stroke: var(--sage); stroke-width: 2.5; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s .3s cubic-bezier(.6, 0, .2, 1) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__panel {
  position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: 44%;
  background:
    radial-gradient(600px 400px at 70% 30%, rgba(118, 133, 100, .18), transparent 70%),
    var(--navy);
  clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%);
  display: grid; place-items: center;
}
.hero__panel img { width: clamp(110px, 12vw, 160px); margin-left: 18%; opacity: .95; }

.hero__inner { padding-block: clamp(4rem, 9vw, 6.5rem); }
.hero__copy { max-width: 600px; }
.hero__title {
  margin: 0; font-family: var(--head); font-weight: 500; color: var(--navy);
  font-size: clamp(2.3rem, 5.6vw, 4.1rem); line-height: 1.05; letter-spacing: -.02em;
  text-wrap: balance;
}
.hero__lede { margin: 1.5rem 0 0; max-width: 52ch; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.18rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

/* ---------------- SECTION HEADS ---------------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--stone { background: var(--stone); }
.head { max-width: 680px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.head__title {
  margin: 0; font-family: var(--head); font-weight: 500; color: var(--navy);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.12; letter-spacing: -.015em;
}
.head__sub { margin: 1rem 0 0; color: var(--muted); }
.head--dark .eyebrow { color: var(--sage-hi); }
.head--dark .head__title { color: var(--mist); }

/* ---------------- SERVICES (navy, five columns) ---------------- */
.services { background: var(--navy); color: var(--mist); padding: clamp(4rem, 9vw, 6.5rem) 0; }
.svc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.svc__item { padding: .5rem 1.6rem 1rem; text-align: center; border-left: 1px solid var(--navy-line); }
.svc__item:first-child { border-left: 0; }
.svc__icon {
  width: 52px; height: 52px; margin: 0 auto 1.4rem; fill: none; stroke: var(--sage-hi);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.svc__title {
  margin: 0 0 .9rem; font-family: var(--head); font-weight: 500; font-size: .95rem;
  letter-spacing: .14em; text-transform: uppercase; line-height: 1.45;
}
.svc__item p { margin: 0; color: rgba(245, 245, 244, .74); font-size: .95rem; line-height: 1.6; }

/* ---------------- AI GOVERNANCE ---------------- */
.gov { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.gov__out {
  margin-top: 2rem; padding: 1.5rem 1.6rem; border-radius: var(--radius);
  background: var(--navy); color: rgba(245, 245, 244, .82);
}
.gov__out p { margin: 0; }
.gov__out .gov__out-label {
  margin-bottom: .5rem; font-family: var(--head); font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--sage-hi);
}
.gov__note { margin: 1.2rem 0 0; font-size: .92rem; color: var(--muted); }

.gov__areas { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.2rem 2rem; }
.gov__area { padding-left: 1.2rem; border-left: 2px solid var(--sage); }
.gov__area dt { font-family: var(--head); font-weight: 500; font-size: 1.15rem; line-height: 1.3; color: var(--navy); }
.gov__area dd { margin: .5rem 0 0; color: var(--muted); font-size: .96rem; }

/* ---------------- WORK ---------------- */
.work { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.case {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 2rem 2.1rem; border-top: 3px solid var(--sage);
}
.case__tag {
  margin: 0 0 .9rem; font-family: var(--head); font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--sage-ink); font-weight: 500;
}
.case__title { margin: 0 0 .6rem; font-family: var(--head); font-weight: 500; font-size: 1.3rem; line-height: 1.25; color: var(--navy); }
.case p:last-child { margin: 0; color: var(--muted); }

/* ---------------- APPROACH ---------------- */
.arc {
  list-style: none; margin: 0; padding: 0; counter-reset: arc;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.arc__step { counter-increment: arc; position: relative; padding-top: 2.6rem; }
.arc__step::before {
  content: "0" counter(arc); position: absolute; top: 0; left: 0;
  font-family: var(--head); font-size: .8rem; letter-spacing: .2em; color: var(--sage-ink);
  background: var(--stone); padding-right: .8rem; z-index: 1;
}
.arc__step::after {
  content: ""; position: absolute; top: .55rem; left: 0; right: -2rem; height: 1px; background: var(--sage);
}
.arc__step:last-child::after { right: 0; }
.arc__title {
  margin: 0 0 .6rem; font-family: var(--head); font-weight: 500; font-size: 1.5rem; color: var(--navy);
}
.arc__step p { margin: 0; color: var(--muted); font-size: .98rem; }

.engage { margin-top: clamp(3.5rem, 7vw, 5rem); padding-top: 2.5rem; border-top: 1px solid #cfd3ce; }
.engage__title {
  margin: 0 0 1.6rem; font-family: var(--head); font-weight: 500; font-size: .85rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--navy);
}
.engage__grid { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.engage__grid div { background: var(--mist); border-radius: var(--radius); padding: 1.5rem 1.6rem; }
.engage__grid dt { font-family: var(--head); font-weight: 500; font-size: 1.12rem; color: var(--navy); }
.engage__grid dt span {
  display: block; margin-top: .2rem; font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--sage-ink);
}
.engage__grid dd { margin: .7rem 0 0; color: var(--muted); font-size: .96rem; }

/* ---------------- FOUNDER ---------------- */
.founder { display: grid; grid-template-columns: 300px 1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
.founder__photo {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius);
  filter: grayscale(.15); box-shadow: 14px 14px 0 var(--sage);
}
.founder__body { max-width: 640px; }
.founder__body .head__title { margin-bottom: 1.2rem; }
.founder__body > p { color: var(--muted); margin: 0 0 1rem; }
.founder__body .founder__more { margin: 1.6rem 0 0; display: flex; gap: 1.5rem; }
.founder__more a { color: var(--sage-ink); font-weight: 600; text-underline-offset: 4px; }
.founder__more a:hover { color: var(--navy); }

/* ---------------- CONTACT ---------------- */
.contact {
  background:
    radial-gradient(700px 360px at 50% 0%, rgba(118, 133, 100, .2), transparent 70%),
    var(--navy);
  color: var(--mist); padding: clamp(4.5rem, 10vw, 7rem) 0; text-align: center;
}
.contact__inner { max-width: 720px; }
.contact__owl { width: 64px; margin: 0 auto 1.6rem; }
.contact__title {
  margin: 0; font-family: var(--head); font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -.015em; line-height: 1.1;
}
.contact__sub { margin: 1.1rem auto 2.2rem; max-width: 52ch; color: rgba(245, 245, 244, .74); }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }

/* ---------------- FOOTER ---------------- */
.footer { background: var(--navy); color: rgba(245, 245, 244, .62); border-top: 1px solid var(--navy-line); padding: 1.8rem 0; font-size: .88rem; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.footer__name { font-family: var(--head); letter-spacing: .28em; text-transform: uppercase; color: var(--mist); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--mist); }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1120px) and (min-width: 861px) {
  .nav__links { gap: 1.2rem; }
  .nav__links a { letter-spacing: .08em; }
  .brand__sub { display: none; }
}

@media (max-width: 1020px) {
  .svc { grid-template-columns: repeat(3, 1fr); row-gap: 2.5rem; }
  .svc__item:nth-child(4) { border-left: 0; }
  .arc { grid-template-columns: repeat(2, 1fr); row-gap: 2.8rem; }
  .arc__step:nth-child(2)::after { right: 0; }
}

@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--mist); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav__links.is-open { max-height: 420px; }
  .nav__links a { display: block; padding: 1rem var(--pad); }
  .nav__links .nav__cta { border-radius: 0; }

  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .threads { top: auto; bottom: 120px; left: -40%; width: 180%; height: 38%; }
  .hero__panel {
    position: relative; width: 100%; height: 150px; order: 2;
    clip-path: polygon(0 28%, 100% 0, 100% 100%, 0 100%);
    background: var(--navy);
  }
  .hero__panel img { margin: 1.5rem 0 0; width: 84px; }
  .hero__inner { order: 1; padding-bottom: 3rem; }

  .work { grid-template-columns: 1fr; }
  .gov { grid-template-columns: 1fr; }
  .engage__grid { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; }
  .founder__photo { max-width: 240px; }
}

@media (max-width: 640px) {
  .brand__sub { display: none; }
  .svc { grid-template-columns: 1fr; row-gap: 0; }
  .svc__item { border-left: 0; border-top: 1px solid var(--navy-line); padding: 2rem 0; }
  .svc__item:first-child { border-top: 0; padding-top: 0; }
  .arc { grid-template-columns: 1fr; }
  .arc__step::after { right: 0; }
  .gov__areas { grid-template-columns: 1fr; gap: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .threads__edge { animation: none; stroke-dashoffset: 0; }
  * { transition: none !important; }
}
