/* bf-pioneers.com: deep navy, white and cyan, wide geometric capitals. */

/* Montserrat (SIL Open Font License, fonts/OFL.txt), served from this site:
   the variable font with all weights, Latin characters only. */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/montserrat-latin.woff2") format("woff2");
}

:root {
  --bg: #f5f8fb;
  --bg-alt: #eaf0f6;
  --surface: #ffffff;
  --text: #0f2238;
  --muted: #4f6278;
  --border: #d5dfe9;
  --cyan: #19b4bc;
  --cyan-text: #0a7a82;
  --logo-b: #0f2238;
  --hero-top: #e3edf6;
  --hero-bottom: #f5f8fb;
  --shadow: 0 1px 2px rgba(15, 34, 56, .06), 0 10px 30px rgba(15, 34, 56, .08);
  --max: 1080px;
  --font: "Montserrat", "Century Gothic", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1524;
    --bg-alt: #0d1a2c;
    --surface: #102037;
    --text: #eef3f8;
    --muted: #9db0c5;
    --border: #1e3450;
    --cyan: #2fd3d8;
    --cyan-text: #2fd3d8;
    --logo-b: #ffffff;
    --hero-top: #123a63;
    --hero-bottom: #0a1524;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0a1524;
  --bg-alt: #0d1a2c;
  --surface: #102037;
  --text: #eef3f8;
  --muted: #9db0c5;
  --border: #1e3450;
  --cyan: #2fd3d8;
  --cyan-text: #2fd3d8;
  --logo-b: #ffffff;
  --hero-top: #123a63;
  --hero-bottom: #0a1524;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan-text); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

/* The logo of the poster: a white (light theme: navy) B and a cyan F,
   each with a free top bar cut at a slant. */
.logo-b { fill: var(--logo-b); }
.logo-f { fill: var(--cyan); }

.caps {
  text-transform: uppercase;
  letter-spacing: .32em;
}

/* Navigation */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: .3em;
  text-transform: uppercase;
}

.brand svg { width: 40px; height: auto; }

.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); }

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  flex: none;
}

/* Hero */

.hero {
  background: linear-gradient(180deg, var(--hero-top), var(--hero-bottom));
  text-align: center;
  padding: 96px 0 88px;
}

.hero-logo {
  width: min(240px, 52vw);
  height: auto;
}

.hero h1 {
  margin: 28px 0 0;
  font-size: clamp(34px, 7vw, 72px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: .28em;
  text-indent: .28em;
  text-transform: uppercase;
}

.ruled {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 24px 0 0;
  font-size: clamp(13px, 2.4vw, 20px);
  letter-spacing: .4em;
  text-transform: uppercase;
}

.ruled::before,
.ruled::after {
  content: "";
  width: clamp(32px, 8vw, 72px);
  height: 2px;
  background: var(--cyan);
}

.tagline {
  margin: 40px 0 0;
  color: var(--muted);
  font-size: clamp(12px, 2vw, 16px);
  letter-spacing: .22em;
  text-transform: uppercase;
}

/* Sections */

section { padding: 88px 0; }

section.alt { background: var(--bg-alt); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-head .ruled {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--cyan-text);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 400;
  line-height: 1.25;
}

.section-head p {
  color: var(--muted);
  margin: 16px 0 0;
}

/* The four pillars, divided by thin lines */

.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.pillars li {
  padding: 8px 28px;
  text-align: center;
  border-left: 1px solid var(--border);
}

.pillars li:first-child { border-left: 0; }

.pillars svg {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pillars h3 {
  margin: 18px 0 10px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .26em;
  line-height: 1.7;
  text-transform: uppercase;
}

.pillars p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* The two of us */

.people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}

.person {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
}

.initial {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  color: var(--cyan-text);
  font-size: 28px;
}

.person h3 {
  margin: 16px 0 0;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: .3em;
  text-indent: .3em;
  text-transform: uppercase;
}

/* Work */

.work {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color .2s, transform .2s;
}

a.work-card:hover,
.work-card:has(.go:hover) {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.work-card img { width: 48px; height: 48px; }

/* The tools still to come: drawn, not yet a link */
.work-next {
  border-style: dashed;
  background: transparent;
}

.work-card h3 {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 400;
}

.work-card p {
  margin: 0;
  color: var(--muted);
}

.work-links {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.work-card .go {
  text-decoration: none;
  color: var(--cyan-text);
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
}

/* Contact */

.contact {
  text-align: center;
}

.button {
  display: inline-block;
  margin-top: 8px;
  padding: 14px 32px;
  border: 2px solid var(--cyan);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .26em;
  text-transform: uppercase;
  transition: background .2s, color .2s;
}

.button:hover {
  background: var(--cyan);
  color: #0a1524;
}

/* Legal pages */

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 16px 96px;
}

.page h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.page h2 {
  margin: 40px 0 8px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cyan-text);
}

.page p,
.page li { color: var(--text); }

.page .lead { color: var(--muted); }

.fill {
  padding: 0 6px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--cyan) 22%, transparent);
  color: var(--text);
}

/* Footer */

footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 48px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.footer-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-mark::before,
.footer-mark::after {
  content: "";
  width: 72px;
  height: 2px;
  background: var(--cyan);
}

.footer-mark svg { width: 44px; height: auto; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: 12px;
}

footer p { margin: 6px auto; max-width: 720px; }

/* Reveal on scroll */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
}

.js .reveal.shown {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .work-card { transition: none; }
}

@media (max-width: 760px) {
  .nav-links { gap: 14px; }
  .nav-links a { letter-spacing: .12em; }
  .brand span { display: none; }
  .hero { padding: 64px 0 56px; }
  section { padding: 64px 0; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .pillars li:nth-child(3) { border-left: 0; }
  .people, .work { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .ruled { gap: 12px; letter-spacing: .24em; }
  .ruled::before, .ruled::after { width: 20px; }
  .nav-links a { letter-spacing: .06em; }
}

@media (max-width: 420px) {
  .pillars { grid-template-columns: 1fr; }
  .pillars li { border-left: 0; }
}

/* The e-mail address, held reversed in the page against harvesting bots,
   shown the right way round (setupEmail makes it a link). */
.email-text { unicode-bidi: bidi-override; direction: rtl; }
