/* DataSpire v2: "The Spire"
   Emerald fields, gold as light, facet-cut corners, one family (Archivo, variable width). */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --abyss: #020d09;
  --ground: #04170f;
  --field: #072519;
  --field-raised: #0b3324;
  --emerald: #14855d;
  --emerald-light: #5fcf9f;
  --gold: #d6aa4f;
  --gold-light: #f2d590;
  --gold-deep: #9a7228;
  --text: #eef4f0;
  --text-soft: #a9c3b7;
  --text-soft-field: #9fd8bc;
  --hairline: #1d4535;

  --font: "Archivo", "Arial", sans-serif;

  --step--1: 0.9375rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --step-2: clamp(1.375rem, 1.1rem + 1.1vw, 1.875rem);
  --step-3: clamp(2rem, 1.2rem + 3.2vw, 3.75rem);
  --step-2b: clamp(1.75rem, 1.15rem + 2.4vw, 2.875rem);
  --step-4: clamp(2.75rem, 1.2rem + 6vw, 6rem);

  --gutter: 1.25rem;
  --wrap: 78rem;
  --section: clamp(5rem, 3rem + 8vw, 10rem);
  --target: 2.75rem;
  --cut: 0.75rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

@media (min-width: 48rem) {
  :root {
    --gutter: 2.5rem;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--emerald) var(--abyss);
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  caret-color: var(--gold);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--gold);
  color: var(--abyss);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 750;
  font-stretch: 118%;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--gold);
}

a:hover {
  color: var(--gold-light);
}

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}

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

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  background: var(--gold);
  color: var(--abyss);
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
}

.skip-link:hover {
  color: var(--abyss);
}

/* Content still to be supplied: marked, never disguised */
.tbc {
  font-weight: 600;
  font-stretch: 112%;
  color: var(--gold-light);
  outline: 1px dashed currentColor;
  outline-offset: 2px;
  padding: 0 0.3em;
  margin-inline: 0.15em;
  white-space: nowrap;
}

/* ---------- Facet-cut controls ---------- */

/* The cut is painted by the background itself, so focus outlines stay whole. */
@property --facet-fill {
  syntax: "<color>";
  inherits: false;
  initial-value: #0b3324;
}

.facet {
  --facet-fill: var(--field-raised);
  position: relative;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 650;
  font-stretch: 112%;
  font-size: var(--step-0);
  line-height: 1.25;
  text-decoration: none;
  color: var(--text);
  /* 0.53rem along the diagonal cuts a 0.75rem corner */
  background: linear-gradient(135deg, transparent 0.53rem, var(--facet-fill) 0.53rem calc(100% - 0.53rem), transparent 0);
  transition: --facet-fill 200ms var(--ease-out);
}

.facet--gold {
  --facet-fill: var(--gold);
  color: var(--abyss);
}

.facet.facet--gold:hover {
  --facet-fill: var(--gold-light);
  color: var(--abyss);
}

.facet:not(.facet--gold):hover {
  --facet-fill: var(--hairline);
}


.facet .tbc {
  outline: 0;
  padding: 0;
}

.contact-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1rem;
  margin-top: 0.5rem;
  font-size: var(--step--1);
  color: var(--text-soft);
}

.copy {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-soft);
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--gold);
  cursor: pointer;
}

.copy:hover {
  color: var(--gold-light);
}

.copy[hidden] {
  display: none;
}

.copy-status {
  font-weight: 600;
  color: var(--gold-light);
}

.copy-status:empty {
  display: none;
}

/* ---------- Wordmark ---------- */

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--target);
  font-weight: 750;
  font-stretch: 118%;
  font-size: 1.375rem;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
  color: var(--text);
}

@media (max-width: 29.99rem) {
  .site-header .wordmark {
    font-size: 1.1875rem;
  }

  .site-header .wrap {
    gap: 0 0.75rem;
  }

  .site-nav ul {
    gap: 0 0.875rem;
  }
}

.wordmark svg {
  width: 0.7em;
  height: 1.2em;
  flex: none;
  color: var(--gold);
}

.wordmark:hover {
  color: var(--text);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--abyss);
  border-bottom: 1px solid transparent;
}

/* Once the page scrolls, the header gets an edge (progressive). */
@supports (animation-timeline: scroll()) {
  .site-header {
    animation: header-edge linear both;
    animation-timeline: scroll();
    animation-range: 0 8rem;
  }

  @keyframes header-edge {
    to {
      border-bottom-color: var(--hairline);
    }
  }
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1.5rem;
  padding-block: 0.625rem;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 550;
  font-stretch: 100%;
  font-size: var(--step--1);
}

@media (min-width: 48rem) {
  .site-nav ul {
    gap: 0 1.5rem;
    font-stretch: 112%;
  }
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  text-decoration: none;
  color: var(--text-soft);
}

.site-nav a:hover {
  color: var(--gold-light);
}

.site-nav .nav-email-item {
  display: none;
}

@media (min-width: 48rem) {
  .site-nav .nav-email-item {
    display: list-item;
  }

  .site-nav .nav-email {
    display: inline-flex;
    min-height: var(--target);
    padding-block: 0.5rem;
    color: var(--abyss);
  }

  .site-nav .nav-email:hover {
    color: var(--abyss);
  }
}

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

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 72% 42%, rgba(20, 133, 93, 0.32), transparent 70%),
    radial-gradient(40% 30% at 70% 12%, rgba(214, 170, 79, 0.1), transparent 70%),
    var(--abyss);
}

.spire {
  position: absolute;
  top: 0.5rem;
  left: 28%;
  right: -8%;
  height: 46svh;
  pointer-events: none;
}

.spire__still,
.spire__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.spire__still {
  object-fit: contain;
  object-position: 50% 0;
  transition: opacity 1200ms var(--ease-out);
}

.spire__canvas {
  opacity: 0;
  transition: opacity 1200ms var(--ease-out);
}

.spire.is-live .spire__canvas {
  opacity: 1;
}

.spire.is-live .spire__still {
  opacity: 0;
}

/* On phones the headline sits over the foot of the spire, which fades out beneath it. */
.spire {
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 92%);
}

.hero__copy {
  position: relative;
  z-index: 1;
  padding-top: 26svh;
  padding-bottom: 2rem;
}

.hero h1 {
  font-size: min(var(--step-4), 11svh);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 11ch;
}

@media (min-width: 56rem) {
  .hero h1 {
    line-height: 0.94;
  }
}

.hero h1 .gold {
  color: var(--gold-light);
}

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

.hero .lede strong {
  color: var(--text);
  font-weight: 600;
}

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

/* What we build, as an index along the foot of the hero */
.hero__index {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--hairline);
}

.hero__index ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__index a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 3.5rem;
  font-weight: 600;
  font-stretch: 112%;
  font-size: var(--step--1);
  text-decoration: none;
  color: var(--text-soft);
}

.hero__index a::before {
  content: "";
  width: 0.4375rem;
  height: 0.4375rem;
  flex: none;
  background: var(--gold);
  rotate: 45deg;
}

.hero__index a:hover {
  color: var(--gold-light);
}

@media (min-width: 56rem) {
  .hero {
    min-height: min(calc(100svh - 4rem), 58rem);
    display: flex;
    flex-direction: column;
  }

  .spire {
    top: 1rem;
    bottom: 4rem;
    left: 42%;
    right: 0;
    width: auto;
    height: auto;
  }

  .spire__still {
    object-position: 50% 50%;
  }

  .spire {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero__copy {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding-top: 3rem;
    padding-bottom: 3.5rem;
  }

  .hero__copy > * {
    max-width: 44rem;
  }

  .hero__index {
    width: 100%;
  }

  .hero__index ul {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

.section {
  padding-block: var(--section);
}

.section__head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 2rem + 3vw, 5rem);
}

.section__head h2 {
  font-size: var(--step-3);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.035em;
}

.section__head p {
  margin-top: 1.25rem;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--text-soft);
  max-width: 38rem;
}

/* ---------- What we build ---------- */

.build-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.build-row {
  position: relative;
  display: grid;
  gap: 1rem 3rem;
  padding-block: 2.25rem 2.5rem;
  scroll-margin-top: 1.5rem;
}

/* Gold light running along the facet edge between rows */
.build-row::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep) 35%, var(--hairline) 70%);
  transform-origin: left;
}

.build-row h3 {
  font-size: var(--step-2b);
  font-stretch: 118%;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.build-row p {
  font-size: var(--step-1);
  line-height: 1.5;
  max-width: 34rem;
}

.examples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--step--1);
  color: var(--text-soft);
}

.examples li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.examples li::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  flex: none;
  background: var(--gold);
  rotate: 45deg;
}

@media (min-width: 56rem) {
  .build-row {
    grid-template-columns: 5fr 7fr;
    align-items: baseline;
    padding-block: 3rem 3.25rem;
  }
}

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

.support {
  background: var(--field);
}

.support .section__head p,
.cta .contact-help,
.cta .copy {
  color: var(--text-soft-field);
}

.support__grid {
  display: grid;
  gap: 2.5rem;
}

.panel {
  position: relative;
  padding-top: 1.75rem;
}

/* Edge light along the top facet of each supporting service */
.panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold) 30%, transparent 90%);
  transform-origin: left;
}

.panel h3 {
  font-size: var(--step-2);
}

.panel p {
  margin-top: 0.75rem;
  color: var(--text-soft-field);
  max-width: 36rem;
}

@media (min-width: 48rem) {
  .support__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* ---------- Director ---------- */

.director {
  display: grid;
  gap: 2.5rem 4rem;
  align-items: center;
}

.director h2 {
  font-size: var(--step-3);
}

.director__intro {
  margin-top: 1.25rem;
  font-size: var(--step-1);
  line-height: 1.5;
  max-width: 36rem;
}

.director__bio {
  margin-top: 1rem;
  color: var(--text-soft);
  max-width: 36rem;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.75rem;
  margin: 1.75rem 0 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--hairline);
  list-style: none;
  font-size: var(--step--1);
  color: var(--text-soft);
}

.facts li {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  padding-block: 0.625rem;
}

.facts li::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  flex: none;
  background: var(--gold);
  rotate: 45deg;
  translate: 0 -0.15em;
}

.facts a {
  display: inline-block;
  padding-block: 0.625rem;
  margin-block: -0.625rem;
}

@media (min-width: 56rem) {
  .director {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }

  .director__intro {
    margin-top: 0;
  }
}

/* ---------- Closing: contact ---------- */

.cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(50% 70% at 85% 60%, rgba(20, 133, 93, 0.3), transparent 70%),
    var(--field-raised);
  padding-block: var(--section);
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  z-index: 1;
  transform-origin: left;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold-light) 50%, var(--gold) 70%, transparent);
}

/* The spire again, still, as the page's bookend */
.cta__spire {
  display: none;
  height: auto;
  position: absolute;
  pointer-events: none;
}

.cta .wrap {
  position: relative;
}

.cta h2 {
  font-size: var(--step-3);
  max-width: 14ch;
}

.cta p {
  margin-top: 1.25rem;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--text-soft-field);
  max-width: 34rem;
}

.cta__email {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  margin-top: 2.5rem;
  padding-block: 0.25rem;
  font-size: clamp(1.5rem, 0.4rem + 4.4vw, 4.5rem);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--gold-light);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--gold);
  overflow-wrap: anywhere;
  transition: color 200ms var(--ease-out), text-decoration-color 200ms var(--ease-out);
}

.cta__email:hover {
  color: var(--text);
  text-decoration-color: var(--gold-light);
}

@media (max-width: 29.99rem) {
  .cta__email {
    font-stretch: 112%;
  }
}

.cta__phone {
  margin-top: 0.75rem;
}

.cta .cta__phone {
  font-size: var(--step-2);
  font-weight: 600;
  font-stretch: 112%;
  color: var(--text);
}

.cta__phone a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  color: var(--gold-light);
  text-decoration-color: var(--gold);
}

.cta__phone a:hover {
  color: var(--text);
}

.cta .next-steps {
  margin-top: 2rem;
  font-size: var(--step-0);
}

@media (min-width: 56rem) {
  .cta__spire {
    display: block;
    right: -3rem;
    bottom: -9rem;
    width: 30rem;
  }
}

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

.site-footer {
  background: var(--abyss);
  border-top: 1px solid var(--hairline);
  padding-block: 2.5rem 3rem;
  font-size: var(--step--1);
  color: var(--text-soft);
}

.site-footer .wrap {
  display: grid;
  gap: 1.5rem 3rem;
}

.footer-facts {
  display: grid;
  gap: 0 2.5rem;
  margin: 0;
}

.footer-facts div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.625rem;
  min-height: 2rem;
}

.footer-facts dd {
  margin: 0;
  color: var(--text);
}

.footer-facts a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 550;
  font-stretch: 112%;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  color: var(--text);
}

@media (min-width: 56rem) {
  .site-footer .wrap {
    grid-template-columns: auto 1fr auto;
    align-items: start;
  }

  .footer-facts {
    grid-template-columns: repeat(2, max-content);
  }

  .copyright {
    grid-column: 1 / -1;
  }
}

/* ---------- Scroll-driven reveals (progressive; content is visible without them) ---------- */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .build-row::before,
    .panel::after,
    .cta::before {
      animation: edge-light linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 35%;
    }

    .build-row h3 {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }

    .build-row > div {
      animation: rise-late linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 80%;
    }

    @keyframes rise {
      from {
        opacity: 0;
        translate: 0 2.5rem;
      }
    }

    @keyframes rise-late {
      from {
        opacity: 0;
        translate: 0 3.5rem;
      }
    }

    @keyframes edge-light {
      from {
        scale: 0 1;
      }
    }
  }
}

/* ---------- Document pages (privacy) ---------- */

.doc {
  padding-block: clamp(3rem, 2rem + 4vw, 6rem) var(--section);
}

.doc .wrap {
  max-width: 48rem;
}

.doc h1 {
  font-size: var(--step-3);
  font-stretch: 125%;
  font-weight: 800;
}

.doc__meta {
  margin-top: 1rem;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--text-soft);
}

.doc h2 {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
  font-size: var(--step-2);
}

.doc p,
.doc ul {
  margin-top: 0.875rem;
  max-width: 68ch;
  color: var(--text-soft);
}

.doc ul {
  padding-left: 1.25rem;
}

.doc li + li {
  margin-top: 0.5rem;
}

.doc li::marker {
  color: var(--gold);
}

.doc strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Not found ---------- */

.lost {
  min-height: 70svh;
  display: grid;
  align-items: center;
  padding-block: var(--section);
  background:
    radial-gradient(50% 60% at 80% 40%, rgba(20, 133, 93, 0.25), transparent 70%),
    var(--abyss);
}

.lost h1 {
  font-size: var(--step-3);
  font-stretch: 125%;
  font-weight: 800;
  max-width: 14ch;
}

.lost p {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--text-soft);
}

.cta .contact-help {
  margin-top: 0.75rem;
  font-size: var(--step-0);
}
