@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@600;700;800&family=Inter:wght@400;500;600;700&family=Dancing+Script:wght@700&display=swap');

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-canvas);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--content-pad);
}

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

.section--dark {
  background: var(--color-ink);
  color: var(--color-white);
  padding-top: var(--space-4);
}

.section--light {
  background: var(--color-canvas);
  color: var(--color-ink);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-blue);
}

.section--dark .eyebrow { color: var(--color-white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-base);
  padding: 0.85em 1.6em;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn svg { width: 1em; height: 1em; flex-shrink: 0; }

.btn--primary {
  background: var(--color-blue);
  color: var(--color-white);
}
.btn--primary:hover { background: var(--color-blue-dark); }

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--color-white);
}
.btn--ghost:hover { border-color: var(--color-white); background: rgba(255, 255, 255, 0.08); }

.btn--ghost-ink {
  background: transparent;
  border-color: var(--color-ink);
  color: var(--color-ink);
}
.btn--ghost-ink:hover { background: var(--color-ink); color: var(--color-white); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-blue);
  border-bottom: 1.5px solid var(--color-blue);
  padding-bottom: 1px;
}
.link-arrow svg { width: 0.85em; height: 0.85em; transition: transform 0.15s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

.section--dark .link-arrow,
.on-photo .link-arrow { color: var(--color-white); border-color: rgba(255,255,255,0.6); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-canvas);
  border-bottom: 1px solid var(--color-gray-light);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: 0.85rem;
}

.site-header__logo img { height: 87px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.site-nav__links a {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-ink);
}
.site-nav__links a:hover { color: var(--color-blue); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-ink);
  margin: 4px 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--color-white);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: 0;
  filter: brightness(1.62);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(35,31,32,0.88) 0%, rgba(35,31,32,0.62) 55%, rgba(35,31,32,0.4) 100%);
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding-block: var(--space-7);
}

.hero__main {
  max-width: 640px;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-white);
  margin-bottom: var(--space-2);
}
.hero__eyebrow-tick {
  width: 28px;
  height: 11px;
  color: var(--color-blue);
  flex-shrink: 0;
}

.hero__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}
.hero__title mark {
  background: none;
  color: var(--color-blue);
}

.hero__subhead {
  font-size: var(--text-md);
  max-width: 34ch;
  margin-bottom: var(--space-4);
  color: rgba(255,255,255,0.9);
}

/* ---- Signature graphic: seismograph trace ----
   A nod to the Richter scale: a quiet baseline, a building tremor, one violent
   main shock, then decaying aftershocks. Draws itself on load, then loops:
   fully drawn, a 2s pause, then redraws — an ambient brand accent rather than
   a static mark. The 1000x105 viewBox matches the desktop hero-line box so the
   stroke stays even (the SVG is stretched with preserveAspectRatio=none). */
.hero__signature {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6%;
  width: 100%;
  height: 22%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.75;
  mix-blend-mode: screen;
}
.hero__signature-path {
  fill: none;
  stroke: var(--color-blue);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Cycle = 4.4s draw + 2s pause (fully drawn) = 6.4s; the draw phase ends at
   4.4/6.4 = 68.75% of the cycle, then holds until the loop wraps and resets. */
.hero__signature-path.is-drawing {
  animation: heroSignatureDraw 6.4s infinite;
  animation-delay: 1.1s;
  animation-fill-mode: backwards;
}
@keyframes heroSignatureDraw {
  0% { stroke-dashoffset: var(--sig-length); animation-timing-function: linear; }
  68.75% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}

/* ---- Load: elements compress, then release with a snap — not a generic fade ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.92);
  transform-origin: left center;
}
.reveal.is-in {
  animation: heroLoad 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--d, 0) * 120ms);
}
@keyframes heroLoad {
  0% { opacity: 0; transform: translateY(28px) scale(0.92); }
  55% { opacity: 1; }
  70% { transform: translateY(-4px) scale(1.015); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; animation: none; }
  .hero__signature-path { stroke-dashoffset: 0 !important; animation: none !important; }
  .pulse-cta::before { animation: none !important; }
}

/* ---- Shared pulse-ring accent, echoing the pulse-line motif ----
   An expanding, fading ring drawn from the element's own box via ::before —
   works on any pill/circle-shaped element (buttons, or a small accent dot)
   since it only needs position:relative and picks up the element's own
   border-radius via `inset:0` + var(--radius-pill). */
.pulse-cta {
  position: relative;
}
.pulse-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-blue);
  opacity: 0;
  animation: ctaPulse 2.6s ease-out infinite;
  animation-delay: 0.9s;
  pointer-events: none;
}
@keyframes ctaPulse {
  0% { transform: scale(1); opacity: 0.55; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ---------- Coming soon bar ---------- */
.announce-bar {
  background: var(--color-ink);
  color: var(--color-white);
  border-top: 2px solid var(--color-blue);
}
.announce-bar__icon path,
.announce-bar__icon circle { stroke: var(--color-blue); }
.announce-bar .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  padding-block: var(--space-2);
}
.announce-bar__icon { width: 28px; height: 28px; flex-shrink: 0; }
.announce-bar__title {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.announce-bar__divider {
  width: 1px;
  align-self: stretch;
  background: rgba(255,255,255,0.35);
}
.announce-bar__copy { font-size: var(--text-sm); color: rgba(255,255,255,0.92); }

/* ---------- Drive: propulsive, directional reveal — connects ideas ----------
   Distinct from Hero's "Load" (compress-then-release, vertical): Drive moves
   horizontally and resolves in one direction only, echoing the section's own
   "everything is connected" message. */
.drive {
  opacity: 0;
  transform: translateX(-48px) scale(0.97);
  filter: blur(3px);
}
.drive.is-in {
  animation: driveIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--d, 0) * 180ms);
}
@keyframes driveIn {
  to { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .drive { opacity: 1; transform: none; animation: none; }
}

.section-connector {
  display: block;
  width: 100%;
  height: 20px;
  margin-block: var(--space-3) var(--space-4);
  opacity: 0.5;
}
.section-connector__path {
  fill: none;
  stroke: var(--color-blue);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.section-connector__path.is-drawing {
  transition: stroke-dashoffset 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.section-connector--dark { opacity: 0.35; }

/* ---------- Recover: calm settle — resolution after motion, no snap/overshoot ---------- */
.recover {
  opacity: 0;
  transform: translateY(14px);
}
.recover.is-in {
  animation: recoverIn 0.9s cubic-bezier(0.33, 0, 0.15, 1) forwards;
  animation-delay: calc(var(--d, 0) * 160ms);
}
@keyframes recoverIn {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .recover { opacity: 1; transform: none; animation: none; }
}

/* ---------- Section header row ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-4);
  align-items: start;
  margin-bottom: var(--space-5);
}

.section-head__title {
  font-size: var(--text-2xl);
  margin-top: var(--space-1);
}

.section-head__copy {
  font-size: var(--text-base);
  color: var(--color-gray);
  padding-bottom: 4px;
}

.section-head__copy .link-arrow { display: inline-flex; margin-top: var(--space-2); }

/* ---------- Ecosystem cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  color: var(--color-white);
}

.card__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: 0;
  filter: brightness(1.458);
}

.card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(190deg, rgba(35,31,32,0.15) 15%, rgba(35,31,32,0.94) 100%);
  z-index: 1;
}

.card__body {
  position: relative;
  z-index: 2;
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.card__index {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.9);
  background: rgba(35,31,32,0.8);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-pill);
  padding: 0.2em 0.75em;
  width: fit-content;
  margin-bottom: var(--space-1);
}

.card__title {
  font-size: var(--text-lg);
}

.card__copy {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-1);
}

/* ---------- Meet Andy ---------- */
.andy {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr 0.7fr;
  gap: var(--space-4);
}

.andy__portrait {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
}
.andy__portrait img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  filter: brightness(1.62);
}
.andy__portrait-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(35,31,32,0.85) 0%, rgba(35,31,32,0.1) 55%);
}
.andy__portrait-caption {
  position: relative;
  z-index: 2;
  padding: var(--space-3);
}
.andy__signature {
  font-family: var(--font-signature);
  font-size: var(--text-2xl);
  color: var(--color-white);
  line-height: 1;
}
.andy__signature-role {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  margin-top: var(--space-1);
}

.andy__body h2 {
  font-size: var(--text-2xl);
  margin-block: var(--space-2) var(--space-3);
}
.andy__body h2 span { color: var(--color-blue); }
.andy__body p {
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-2);
  max-width: 52ch;
}
.andy__body .btn { margin-top: var(--space-2); }

.andy__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  border-left: 1px solid rgba(255,255,255,0.2);
  padding-left: var(--space-3);
}

.feature {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
}
.feature img { width: 24px; height: 24px; margin-top: 2px; }
.feature h3 {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--color-white);
  margin-bottom: 2px;
}
.feature p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.8);
}

.andy__quote {
  font-size: var(--text-sm);
  font-style: italic;
  color: rgba(255,255,255,0.85);
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: var(--space-3);
}
.andy__quote cite {
  display: block;
  margin-top: var(--space-1);
  font-style: normal;
  font-weight: 700;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.6);
}
.andy__quote-cta {
  align-self: flex-start;
  margin-top: var(--space-3);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-ink);
  color: rgba(255,255,255,0.75);
  padding-block: var(--space-6) var(--space-4);
}

.site-footer__wordmark {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-white);
  letter-spacing: -0.01em;
}
.site-footer__wordmark span { color: var(--color-blue); }

.site-footer__brand-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-gray);
}

.social-row {
  display: flex;
  gap: var(--space-2);
}
.social-row a {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-row svg { width: 16px; height: 16px; }
.social-row a:hover { border-color: var(--color-white); }

/* ---------- Placeholder notice ---------- */
.build-notice {
  background: var(--color-blue-tint);
  color: var(--color-ink);
  font-size: var(--text-xs);
  text-align: center;
  padding: 0.5em var(--content-pad);
}
.build-notice strong { color: var(--color-blue-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__main { max-width: none; }
  .section-head { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .andy { grid-template-columns: 1fr; }
  .andy__features { border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.2); padding-top: var(--space-3); }
}

@media (max-width: 640px) {
  .site-nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    background: var(--color-canvas);
    border-bottom: 1px solid var(--color-gray-light);
    padding: var(--space-2) var(--content-pad) var(--space-3);
  }
  .site-nav__links.is-open { display: flex; }
  .nav-toggle { display: block; }
  .site-header .container { position: relative; }
  .card-grid { grid-template-columns: 1fr; }
  :root { --content-pad: 20px; }
}

/* ---------- Popup Maker: "Let's Talk" contact popup ---------- */
.popup-contact__header {
  text-align: center;
  margin-bottom: var(--space-3);
}
.popup-contact__logo {
  display: block;
  max-width: 200px;
  margin: 0 auto var(--space-3);
}
.popup-contact__title {
  margin-bottom: var(--space-2);
}
.popup-contact__subhead {
  font-family: var(--font-body);
  color: var(--color-gray);
  font-size: var(--text-md);
  max-width: 480px;
  margin: 0 auto;
}

.gform_wrapper .gform_button.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-base);
  padding: 0.85em 1.6em;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  background: var(--color-blue);
  color: var(--color-white);
}
.gform_wrapper .gform_button.button:hover {
  background: var(--color-blue-dark);
}
