/* GDNet — site styles (replaces the Mobirise/Bootstrap theme) */

:root {
  --bg: #eef1f3;
  --surface: #f8f9fa;
  --ink: #13233a;
  --slate: #56657a;
  --rule: #cdd5dd;
  --amber: #e9a400;
  --navy-2: #1c3150;
  --on-ink: #e6ebf0;
  --on-ink-muted: #9fb0c3;

  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  --step-4: clamp(2.6rem, 1.6rem + 4vw, 4.5rem);

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 10vw, 8rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }

a { color: inherit; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

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

.skip {
  position: absolute; left: -999px; top: 0.5rem;
  background: var(--ink); color: #fff; padding: 0.5rem 1rem; z-index: 10;
}
.skip:focus { left: 0.5rem; }

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

.site-header { border-bottom: 1px solid var(--rule); }

.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; text-decoration: none;
}
.brand-mark { width: 1.6rem; height: 1.6rem; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); }
.nav a { text-decoration: none; color: var(--slate); font-weight: 500; font-size: var(--step--1); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 0.4em; }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.9rem; padding: 0.7rem 1.35rem; line-height: 1.2;
  border-radius: 999px; border: 1.5px solid var(--ink);
  font: inherit; font-weight: 600; font-size: var(--step--1);
  text-decoration: none; transition: background-color 0.15s, color 0.15s;
}
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.nav .btn { color: var(--ink); min-height: 2.4rem; padding: 0.55rem 1rem; }
.nav .btn:hover { color: #fff; }

.text-link {
  font-weight: 600; text-decoration: underline; text-decoration-color: var(--amber);
  text-decoration-thickness: 2px; text-underline-offset: 0.3em;
}
.text-link:hover { text-decoration-color: currentColor; }

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

.hero { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3.5rem, 7vw, 5.5rem); }

.hero .wrap {
  display: grid; gap: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
}

.hero h1 { font-size: var(--step-4); max-width: 15ch; }

.hero-lede { margin-top: 1.5rem; font-size: var(--step-1); color: var(--slate); max-width: 34rem; line-height: 1.5; }

.hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

.topology { width: 100%; height: auto; overflow: visible; }
.topology .edge { stroke: var(--rule); stroke-width: 2; }
.topology .node { fill: var(--surface); stroke: #9aa7b5; stroke-width: 2; }
.topology .node-end { fill: var(--ink); stroke: var(--ink); }
.topology .route {
  fill: none; stroke: var(--amber); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: trace 1.8s cubic-bezier(.6, 0, .25, 1) 0.4s forwards;
}
.topology .hop { fill: var(--amber); opacity: 0; animation: blink 0.3s ease-out forwards; }
.topology .label { font: 600 13px var(--font); fill: var(--slate); letter-spacing: 0; }
.topology .label-ink { fill: var(--ink); }

@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes blink { to { opacity: 1; } }

.topology-caption { margin-top: 0.75rem; font-size: var(--step--1); color: var(--slate); }

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--rule); }

.section-head { display: grid; gap: 1rem; max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--slate); font-size: var(--step-1); line-height: 1.5; }

/* Capabilities */

.capabilities { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(2rem, 3.5vw, 3rem); }
@media (max-width: 1180px) { .capabilities { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.capability { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.capability h3 { font-size: var(--step-2); }
.capability p { margin-top: 0.75rem; color: var(--slate); }
.capability ul { margin-top: 1.25rem; padding: 0; list-style: none; display: grid; gap: 0.4rem; }
.capability li { padding-left: 1.1rem; position: relative; }
.capability li::before {
  content: ""; position: absolute; left: 0; top: 0.68em;
  width: 0.45rem; height: 0.45rem; border-radius: 50%; border: 2px solid var(--slate);
}

/* ---------- Work (dark band) ---------- */

.work { background: var(--ink); color: var(--on-ink); }
.section.work + .section { border-top: 0; }
.work .section-head p { color: var(--on-ink-muted); }

.work-list { list-style: none; padding: 0; border-top: 1px solid var(--navy-2); }

.work-item {
  display: grid; align-items: center; gap: 0.5rem 2rem;
  grid-template-columns: 7.5rem minmax(0, 1.1fr) minmax(0, 1.6fr) 6rem;
  padding-block: 1.5rem; border-bottom: 1px solid var(--navy-2);
}

.logo-chip {
  width: 7.5rem; height: 5.5rem; border-radius: 0.5rem;
  display: grid; place-items: center; padding: 0.6rem 0.9rem; background: #fff;
}
.logo-chip img { height: 2.3rem; width: auto; max-width: 100%; object-fit: contain; }
.logo-chip--square img { height: 4.3rem; }
.logo-chip--icon img { height: 3rem; } /* 48px source, shown near native size */
.logo-chip--dark { background: #fff; }
.logo-chip--mono { background: #fff; color: var(--ink); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }

.work-item h3 { font-size: var(--step-1); letter-spacing: -0.015em; }
.work-meta { color: var(--on-ink-muted); font-size: var(--step--1); margin-top: 0.15rem; }
.work-desc { color: var(--on-ink); }
.work-item a.text-link { white-space: nowrap; font-size: var(--step--1); justify-self: end; }

.work-foot { margin-top: 2.5rem; }
.work .btn-line { color: #fff; border-color: #fff; }
.work .btn-line:hover { background: #fff; color: var(--ink); }

/* ---------- About teaser / about page ---------- */

.about-split,
.hero .wrap.about-split {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); align-items: start;
}
.portrait { border-radius: 0.75rem; width: 100%; aspect-ratio: 914 / 950; object-fit: cover; filter: grayscale(0.15); }

.pullquote { font-size: var(--step-3); font-weight: 600; letter-spacing: -0.025em; line-height: 1.12; max-width: 18ch; }
.prose { margin-top: 1.75rem; display: grid; gap: 1.1rem; max-width: 36rem; color: var(--slate); }
.prose strong { color: var(--ink); font-weight: 600; }
.about-actions { margin-top: 2rem; }

.page-title { font-size: var(--step-4); max-width: 14ch; }
.page-intro { margin-top: 1.25rem; font-size: var(--step-1); color: var(--slate); max-width: 38rem; line-height: 1.5; }

.facts { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; border-top: 1px solid var(--rule); padding-top: 1.5rem; }
.facts dt { font-size: var(--step--1); color: var(--slate); }
.facts dd { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin-top: 0.25rem; }

/* ---------- References page ---------- */

.ref-group + .ref-group { margin-top: clamp(3.5rem, 7vw, 5rem); }
.ref-group > h2 { font-size: var(--step-2); padding-bottom: 1rem; border-bottom: 2px solid var(--ink); }

.ref {
  display: grid; gap: 1rem 2.5rem;
  grid-template-columns: 7.5rem minmax(0, 0.9fr) minmax(0, 1.6fr);
  padding-block: 1.75rem; border-bottom: 1px solid var(--rule);
}
.ref .logo-chip { background: #fff; border: 1px solid var(--rule); }
.ref .logo-chip--dark, .ref .logo-chip--mono { background: #fff; border-color: var(--rule); }
.ref h3 { font-size: var(--step-1); letter-spacing: -0.015em; }
.ref-meta { margin-top: 0.25rem; color: var(--slate); font-size: var(--step--1); }
.ref-body { display: grid; gap: 0.75rem; max-width: 40rem; }
.ref-body p { color: var(--slate); }
.ref-body p:first-child { color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; }
.tags li { font-size: 0.8125rem; font-weight: 500; padding: 0.3rem 0.75rem; border: 1px solid var(--rule); border-radius: 999px; color: var(--slate); background: var(--surface); }

/* ---------- Contact ---------- */

.contact-line {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem 2rem;
  border-block: 1px solid var(--rule); padding-block: clamp(1.75rem, 4vw, 2.75rem);
}
.contact-line h2 { font-size: var(--step-3); }
.contact-email {
  font-size: var(--step-3); font-weight: 600; letter-spacing: -0.025em;
  text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--amber);
  text-underline-offset: 0.18em; overflow-wrap: anywhere;
}
.contact-email:hover { text-decoration-color: currentColor; }
.contact-note { margin-top: 1.25rem; color: var(--slate); }

/* ---------- Footer ---------- */

.site-footer { padding-block: 2rem 2.5rem; font-size: var(--step--1); color: var(--slate); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Error page ---------- */

.error-page { min-height: 60vh; display: grid; align-content: center; }
.error-page p { margin-top: 1.25rem; color: var(--slate); font-size: var(--step-1); max-width: 34rem; }
.error-page .hero-actions { margin-top: 2rem; }

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

.apps-head {
  display: grid; gap: 1.25rem clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.apps-head h2 { font-size: var(--step-3); max-width: 14ch; }
.apps-head p { color: var(--slate); font-size: var(--step-1); line-height: 1.5; }
.apps-points { margin-top: 1.25rem; padding: 0; list-style: none; display: grid; gap: 0.4rem; }
.apps-points li { padding-left: 1.1rem; position: relative; }
.apps-points li::before {
  content: ""; position: absolute; left: 0; top: 0.68em;
  width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--amber);
}
.apps-shot img { width: 100%; border-radius: 0.75rem; background: var(--ink); }
.apps-shot figcaption { margin-top: 0.9rem; font-size: var(--step--1); color: var(--slate); max-width: 46rem; }
.ref-shot { border-radius: 0.5rem; width: 100%; max-width: 40rem; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero .wrap, .about-split, .hero .wrap.about-split { grid-template-columns: 1fr; }
  .topology-wrap { max-width: 34rem; }
  .capabilities, .apps-head { grid-template-columns: 1fr; }
  .work-item { grid-template-columns: 7.5rem minmax(0, 1fr); }
  .work-desc, .work-item > .text-link { grid-column: 2; justify-self: start; }
  .ref { grid-template-columns: 7.5rem minmax(0, 1fr); }
  .ref-body { grid-column: 1 / -1; }
  .portrait { max-width: 22rem; }
}

@media (max-width: 560px) {
  .site-header .wrap { gap: 1rem; }
  .nav { gap: 1rem; }
  .nav .btn { padding: 0.5rem 0.85rem; }
  .work-item, .ref { grid-template-columns: 1fr; }
  .work-desc, .work-item > .text-link { grid-column: 1; }
  .logo-chip { width: 6.5rem; height: 4.75rem; }
  .logo-chip img { height: 2rem; }
  .logo-chip--square img { height: 3.6rem; }
  .logo-chip--icon img { height: 3rem; }
  .facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .topology .route { animation: none; stroke-dashoffset: 0; }
  .topology .hop { animation: none; opacity: 1; }
}
