/* Digital Solutions Technology — v2 stylesheet
   Editorial / boutique-advisory layout: dark charcoal + gold, serif headings,
   hairline-divided grids. */

:root {
  --dark: #101215;
  --dark-2: #1c2026;
  --dark-3: #08090b;
  --ink: #1f2124;
  --muted: #61635f;
  --cream: #f3eee5;
  --paper: #fffdf9;
  --gold: #aa7b39;
  --gold-light: #d2aa69;
  --gold-deep: #8f6b14;
  --line: #d9d2c6;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; color-scheme: light; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: .7rem 1rem;
  color: var(--dark);
  background: var(--gold-light);
}
.skip-link:focus { top: 1rem; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  color: #fff;
  background: rgba(16, 18, 21, .97);
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}
.header-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 104px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand { display: block; }
.brand img { width: auto; height: 68px; }

.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav a {
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .69rem;
  white-space: nowrap;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -.55rem;
  height: 1px;
  background: var(--gold-light);
  transition: right .2s ease;
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after { right: 0; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .45);
  font-size: 1.3rem;
  cursor: pointer;
}

/* ---------- shared ---------- */

main { min-height: 60vh; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.narrow { max-width: 860px; }

h1, h2, h3 {
  margin-top: 0;
  color: var(--dark);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .78rem;
  font-weight: 700;
}

.button {
  display: inline-block;
  margin-top: 18px;
  padding: 14px 22px;
  color: #fff;
  border: 1px solid var(--gold);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .75rem;
  transition: background .2s ease, color .2s ease;
}
.button:hover, .button:focus-visible { color: #fff; background: var(--gold); }
.dark-button { color: var(--dark); }
.dark-button:hover, .dark-button:focus-visible { color: #fff; }

.section { padding: 92px 0; }
.section.alt { background: var(--cream); }
.section.navy { color: #fff; background: var(--dark); }
.section h2 { font-size: clamp(2.25rem, 4vw, 4.2rem); }
.section.navy h2, .section.navy h3 { color: #fff; }
.section.navy .prose-lead, .section.navy .lead { color: rgba(255, 255, 255, .84); }
.section.navy strong { color: #fff; }

.prose-lead { font-size: 1.1rem; }
.lead-dark { max-width: 760px; color: var(--muted); font-size: 1.16rem; }

.section-heading {
  margin-bottom: 38px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
}
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 1.05rem; }

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 80px;
  align-items: start;
}
.intro-grid p { font-size: 1.1rem; }

.title {
  margin: 0;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
}

.founder-grid {
  display: grid;
  grid-template-columns: clamp(240px, 28vw, 340px) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.founder-portrait {
  margin: 0;
  position: relative;
  padding: 10px 0 0 10px;
}
.founder-portrait::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 62%;
  height: 62%;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
}
.founder-portrait img {
  display: block;
  width: 100%;
  height: auto;
}

#founder h2 { margin-bottom: 10px; }
.bio {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.bio p { margin: 0 0 1.15rem; color: var(--muted); }
.bio p:last-child { margin-bottom: 0; }

/* ---------- hero ---------- */

.hero { color: #fff; background: var(--dark); }
.home-hero {
  min-height: 620px;
  display: grid;
  align-items: center;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
}
.hero-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, .82fr);
  gap: clamp(46px, 7vw, 90px);
  align-items: center;
}
.hero-copy { max-width: 680px; padding: 110px 0; }
.hero h1 { color: #fff; font-size: clamp(3rem, 6vw, 5.6rem); margin-bottom: 10px; }
.hero-kicker {
  margin: 0 0 26px;
  color: var(--gold-light);
  font: 400 clamp(1.7rem, 3vw, 2.65rem)/1.2 var(--serif);
}
.hero .lead {
  max-width: 650px;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.hero-panel {
  padding: clamp(28px, 4vw, 40px);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .18);
  border-top: 4px solid var(--gold);
}
.hero-panel .label {
  margin: 0 0 6px;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: .17em;
  font-size: .72rem;
  font-weight: 700;
}
.fact-list { margin: 0; }
.fact-list div {
  padding: 18px 0;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}
.fact-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.fact-list dt {
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.5;
}
.fact-list dd { margin: 0; color: #fff; font-size: .95rem; }

/* ---------- marker band ---------- */

.marker-band {
  color: rgba(255, 255, 255, .82);
  background: var(--dark-2);
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.marker-band ul {
  margin: 0;
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 30px;
  list-style: none;
}
.marker-band li {
  display: flex;
  align-items: center;
  gap: 30px;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .72rem;
  font-weight: 700;
}
.marker-band li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  transform: rotate(45deg);
  background: var(--gold);
}

/* ---------- quotes ---------- */

.quote-grid {
  margin-top: 44px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.quote-grid blockquote {
  margin: 0;
  min-height: 190px;
  padding: 38px;
  display: flex;
  align-items: center;
  color: var(--dark);
  background: var(--paper);
  font: 400 clamp(1.15rem, 2vw, 1.5rem)/1.4 var(--serif);
}
.closer {
  margin: 0;
  color: var(--dark);
  font: 400 1.35rem/1.5 var(--serif);
}

/* ---------- services ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service { padding: 38px; background: var(--paper); }
.service.lead { grid-column: 1 / -1; }
.service.lead h3 { font-size: 1.9rem; }
.service.lead p { max-width: 68ch; font-size: 1.08rem; }
.service-number {
  display: block;
  margin-bottom: 26px;
  color: var(--gold);
  font: 400 1.15rem var(--serif);
}
.service h3 { font-size: 1.65rem; margin-bottom: 12px; }
.service p { margin-bottom: 0; color: var(--muted); font-size: 1.02rem; }

/* ---------- expanding network graphic ---------- */

.network-figure { margin: 64px auto 0; }
.network-frame { overflow-x: auto; }   /* safety net; nothing should overflow now */

/* Two compositions ship; CSS picks one. The landscape box cannot be scaled into
   a portrait viewport and stay legible, so phones get the portrait geometry
   rather than a shrunken or side-scrolling copy of the wide one. */
.network-svg { display: block; width: 100%; height: auto; }

/* The portrait box is nearly square, so left to fill a tablet it would render
   ~830px tall. Cap it and centre it: that also fixes the label size, which is
   in viewBox units and therefore a function of rendered width. */
.network-svg-portrait { display: none; max-width: 460px; margin: 0 auto; }

@media (max-width: 900px) {
  .network-svg-landscape { display: none; }
  .network-svg-portrait { display: block; }
}

.net-node { fill: var(--gold-light); }

/* Hover lift. The scale lives on the wrapping <g> so it never fights the
   reveal transform on the circle itself — two elements, two transforms.
   transform-origin is emitted per node in user units, so no dependence on
   transform-box for the group. The hit circle is a transparent 16px target:
   the visible nodes are 4.5-7px and are otherwise almost unhittable. */
.net-hit { fill: transparent; }
.net-node-group {
  transition: transform 200ms ease-out;
  cursor: default;                 /* it is not clickable; don't imply it is */
}
.net-node-group:hover { transform: scale(1.45); }
.net-node-group:hover .net-node { fill: #fff; }
.net-core { fill: #fff; }
.net-edge { stroke: rgba(210, 170, 105, .42); stroke-width: 1; fill: none; }
.net-label {
  fill: rgba(255, 255, 255, .74);
  font: 400 12px var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
}
/* Label size is in viewBox user units, so it must grow as the drawing is
   scaled down, or it renders at ~5px on a phone. Stepped, not fluid: SVG user
   units have no meaningful vw equivalent. */
/* Only the portrait composition is shown below 900px, and its labels are sized
   for that geometry. The landscape labels stay at 12px: they were laid out at
   that size and grow into the viewBox edge if enlarged. */
@media (max-width: 900px) { .net-label { font-size: 22px; letter-spacing: .08em; } }
.net-label-core { fill: #fff; letter-spacing: .14em; }

.network-caption {
  max-width: 62ch;
  margin: 26px auto 0;
  color: rgba(255, 255, 255, .72);
  font-size: 1.02rem;
  text-align: center;
}

/* Hidden only once JS has taken over — see the driver in index.php. */
.net-ready .net-node,
.net-ready .net-edge,
.net-ready .net-label {
  opacity: 0;
  transition: opacity 900ms ease-out, transform 900ms ease-out, fill 200ms ease-out;
}
.net-ready .net-node,
.net-ready .net-label {
  transform: scale(.6);
  transform-origin: center;
  transform-box: fill-box;      /* required: SVG otherwise scales from the whole canvas */
}
.net-ready .net-edge {
  stroke-dasharray: var(--edge-length, 400);
  stroke-dashoffset: var(--edge-length, 400);
  transition: opacity 600ms ease-out, stroke-dashoffset 1100ms ease-out;
}
.net-ready .net-visible.net-node,
.net-ready .net-visible.net-label { opacity: 1; transform: scale(1); }
.net-ready .net-visible.net-edge { opacity: 1; stroke-dashoffset: 0; }

/* ---------- engagement steps ---------- */

.engagement-list { border-top: 1px solid var(--line); }
.engagement {
  padding: 30px 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 26px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
}
.engagement-number { color: var(--gold); font: 400 2rem var(--serif); }
.engagement strong {
  display: block;
  color: var(--dark);
  font: 400 clamp(1.6rem, 3vw, 2.4rem)/1.15 var(--serif);
}
.engagement-fit {
  display: block;
  max-width: 740px;
  margin-top: 10px;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.55;
}

/* ---------- closing ---------- */

.closing-invitation { text-align: center; background: var(--cream); }
.closing-invitation .lead-dark { margin-right: auto; margin-left: auto; }
.closing-invitation .wrap { margin: 0 auto; }

/* ---------- footer ---------- */

.site-footer {
  color: rgba(255, 255, 255, .76);
  background: var(--dark-3);
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.footer-main {
  padding: 58px 0 40px;
  display: grid;
  grid-template-columns: 1.25fr .75fr .75fr;
  gap: 60px;
}
.footer-main img { width: 190px; margin-bottom: 20px; }
.footer-main p { margin: 0; font-size: .9rem; max-width: 340px; }
.footer-main h2 {
  color: var(--gold-light);
  font: 700 .78rem var(--sans);
  text-transform: uppercase;
  letter-spacing: .16em;
}
.footer-main a { display: block; margin: 7px 0; text-decoration: none; font-size: .9rem; }
.footer-main a:hover, .footer-main a:focus-visible { color: #fff; }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .78rem;
}
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---------- links in prose ---------- */

.prose-lead a { color: var(--gold); text-underline-offset: 4px; }
.section.navy .prose-lead a { color: var(--gold-light); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 20px 20px;
    background: rgba(16, 18, 21, .99);
    border-bottom: 1px solid rgba(255, 255, 255, .13);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; font-size: .78rem; }
  .site-nav a::after { display: none; }
  .header-inner { position: relative; min-height: 76px; }

  .hero-panel-grid,
  .intro-grid,
  .founder-grid,
  .section-heading { grid-template-columns: 1fr; gap: 40px; }
  .founder-portrait { max-width: 300px; }
  .section-heading { align-items: start; }
  .hero-copy { padding: 72px 0 0; }
  .home-hero { min-height: 0; padding-bottom: 72px; }
  .section { padding: 66px 0; }

  .marker-band ul { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .brand img { height: 52px; }
  .quote-grid,
  .service-grid { grid-template-columns: 1fr; }
  .quote-grid blockquote { min-height: 0; padding: 28px; }
  .service { padding: 28px; }
  .footer-main { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .engagement { grid-template-columns: 48px minmax(0, 1fr); gap: 16px; }
  .marker-band ul { flex-direction: column; gap: 12px; }
  .marker-band li + li::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-nav a::after, .button { transition: none; }
  .net-ready .net-node, .net-ready .net-label { transform: none; }
  .net-ready .net-edge { stroke-dasharray: none; stroke-dashoffset: 0; }
  .net-node-group, .net-node-group:hover { transform: none; transition: none; }
}
