@font-face { font-family: "Satoshi"; src: url("assets/fonts/Satoshi-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("assets/fonts/Satoshi-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("assets/fonts/Satoshi-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("assets/fonts/Satoshi-Black.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --cream: #fbf7eb;
  --ink: #003344;
  --rule: #d7dbd0;
  --dark: #242824;
  --muted: #c1c6bb;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Satoshi", sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul { margin: 0; padding: 0; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- Type ---------- */
.label {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 1px;
}
.body {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.02em;
}
h1 {
  font-size: 88px;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -4px;
  max-width: 960px;
  text-wrap: balance;
}
h2 {
  font-size: 56px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -2px;
}
h3 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}
.narrow, .philosophy h2, .about h2 { max-width: 740px; }

/* ---------- Nav ---------- */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 5;
  width: 93%;
  max-width: var(--max);
  margin: 0 auto;
  transition: opacity 0.3s var(--ease);
}
/* Fades out while scrolling down, back in on scroll up. */
.nav-wrap.is-hidden { opacity: 0; pointer-events: none; }
.nav {
  display: grid;
  grid-template-columns: 366fr 650fr;
  align-items: center;
  gap: 24px;
  padding: 28px 40px;
  background: var(--cream);
  box-shadow: inset 0 -1px 0 var(--rule);
}
.nav-logo {
  justify-self: start;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -1px;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  list-style: none;
}
.nav-links li { line-height: 0; }
.nav-links a {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  transition: color 0.2s var(--ease);
}
.nav-logo:hover, .nav-links a:hover { text-decoration: underline; }

/* ---------- Sections ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 100px 40px;
  /* Anchor jumps land with the section label 32px below the sticky nav:
     nav height (94px) - section top padding (100px) + 32px. */
  scroll-margin-top: 26px;
}
.section.ruled { border-top: 1px solid var(--rule); }
/* Overview sits at the top of the page, so its link scrolls all the way up. */
.section.hero { scroll-margin-top: 100vh; }

.hero h1 { margin-top: 41px; }
.hero .body { margin-top: 39px; }

.philosophy h2 { margin-top: 52px; }
.philosophy > .body { margin-top: 28px; }
.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.value-title {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 16px;
}

.companies h2 { margin-top: 32px; }
.companies > .body { margin-top: 31px; }
.portfolio {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 32px;
}

.about h2 { margin-top: 40px; }
.about .body { margin-top: 40px; }

/* ---------- Company cards ---------- */
.card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  border-radius: 16px;
  background: rgba(1, 52, 69, 0.12);
  box-shadow: 1px 2px 5px 0 rgba(0, 0, 0, 0.25);
}
.card-logo { align-self: center; object-fit: cover; }
.card-logo--wayfinder { width: 300px; height: 48px; }
.card-logo--sandplay { width: 150px; height: 32px; }
.card-media {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
}
.card-media video { width: 100%; height: 100%; object-fit: cover; }
.card-cta {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}
.card-link {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: underline;
}
.card-qr { width: 88px; height: 88px; flex-shrink: 0; object-fit: cover; }

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  padding: 37px 40px 32px;
}
.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
}
.footer-mark {
  color: var(--cream);
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
}
.footer-copy { color: var(--muted); margin-top: 32px; }

/* ---------- Appear animation ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  will-change: transform;
}
.js .reveal-sm { transform: translateY(12px); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Tablet (810–1199) ---------- */
@media (max-width: 1199.98px) {
  .nav { grid-template-columns: 1fr; }
  .section { scroll-margin-top: 67px; } /* 135px nav - 100px padding + 32px */
  h1 { font-size: 64px; }
  h2 { font-size: 44px; }
  .hero h1 { margin-top: 56px; }
  .hero .body { margin-top: 25px; }
  .footer-mark { font-size: 42px; }
}

/* ---------- Phone (< 810) ---------- */
@media (max-width: 809.98px) {
  .nav { padding: 24px; }
  .nav-links { column-gap: 16px; }
  .section { padding: 64px 24px; scroll-margin-top: 128px; } /* 160px nav - 64px padding + 32px */
  h1 { font-size: 44px; letter-spacing: -1.8px; }
  h2 { font-size: 36px; letter-spacing: -1px; }
  .hero .body { margin-top: 24px; }
  .companies > .body { margin-top: 32px; }
  .values { grid-template-columns: repeat(2, 1fr); row-gap: 25px; }
  .card-logo--wayfinder { width: 100%; max-width: 300px; height: auto; }
  .card-logo--sandplay { width: 139px; height: auto; }
  .footer { padding: 64px 24px 32px; }
  .footer-mark { font-size: 16px; }
}
