/* fpfuel.com — site styles on top of tokens.css */

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- nav ---------- */
.nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 20px clamp(20px, 4vw, 48px);
  color: var(--cream);
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0 0 -34px 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(27, 18, 12, .88) 0%,
    rgba(27, 18, 12, .60) 46%,
    rgba(27, 18, 12, 0) 100%);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 22px; height: auto; }
.brand-name { font-size: 20px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 12px; }
.nav-links a { text-decoration: none; opacity: .85; }
.nav-links a:hover { opacity: 1; }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  background: none;
  border: 1px solid rgba(246, 241, 231, .28);
  border-radius: var(--r-sm);
  color: var(--cream);
  cursor: pointer;
}
.nav-toggle:hover { border-color: rgba(246, 241, 231, .62); }
.nav-toggle:focus-visible { outline: 2px solid var(--blaze); outline-offset: 2px; }
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: .78em 1.5em;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--blaze); color: var(--cream); }
.btn-primary:hover { background: var(--ember); }
.btn-ghost { border: 1px solid rgba(246, 241, 231, .4); color: var(--cream); }
.btn-ghost:hover { border-color: rgba(246, 241, 231, .8); }
.btn-dark { background: var(--espresso); color: var(--cream); }
.btn-dark:hover { background: var(--espresso-2); }

/* ---------- content bands ---------- */
.band {
  padding: clamp(64px, 9vw, 120px) clamp(20px, 6vw, 96px);
  border-top: 1px solid var(--line);
  background:
    repeating-linear-gradient(0deg,  var(--grid) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, var(--grid) 0 1px, transparent 1px 56px),
    var(--bg);
}
.band-alt { background: var(--bg-2); }
.band-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.figure {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px 24px 30px;
  background: var(--bg);
}
.figure-no { display: block; color: var(--terra); font-size: 11px; margin-bottom: 16px; }
.figure h3 { font-size: 1.15rem; margin-bottom: 10px; }
.figure p { color: var(--muted); font-size: .95rem; }
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.step { border-top: 1px solid var(--fg); padding-top: 18px; }
.step-no { display: block; color: var(--terra); font-size: 11px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .95rem; max-width: 34ch; }

/* ---------- founder ---------- */
.founder {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.founder-photo {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--espresso);
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-photo.noimg img { display: none; }
.founder-photo.noimg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('img/mark.png') center / 72px auto no-repeat;
  opacity: .8;
}
.founder-text .band-title { margin-bottom: 18px; }
.founder-text p { color: var(--muted); max-width: 56ch; }
.founder-sig { margin-top: 20px; color: var(--terra); font-size: 11px; }
.founder-social {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  gap: 10px;
}
.founder-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--fg);
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.founder-social svg { width: 20px; height: 20px; display: block; }
.founder-social a:hover {
  color: var(--blaze);
  border-color: var(--blaze);
  background: rgba(244, 81, 11, .08);
}
.founder-social a:focus-visible { outline: 2px solid var(--blaze); outline-offset: 2px; }

/* ---------- cta band (the one blaze flood) ---------- */
.cta-band {
  background: var(--blaze);
  color: var(--espresso);
  text-align: center;
  padding: clamp(64px, 10vw, 128px) 24px;
}
.cta-band h2 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

/* ---------- footer ---------- */
.footer {
  background: var(--espresso);
  color: var(--cream);
  padding: 40px clamp(20px, 6vw, 96px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-name { font-size: 18px; }
.footer-legal { font-size: 13px; color: rgba(246, 241, 231, .65); }
.footer-legal a { color: inherit; }

/* ---------- collapsed nav ----------
   Collapses at 1340 so 1366-wide laptops keep the inline links; every page now runs the
   solid espresso nav, so the links never sit over a photo. */
@media (max-width: 1340px) {
  .nav { gap: 12px; }
  .nav-toggle { display: flex; }
  .nav-cta { margin-left: auto; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: auto;
    right: clamp(20px, 4vw, 48px);
    width: min(320px, calc(100vw - 2 * clamp(20px, 4vw, 48px)));
    margin-left: 0;
    flex-direction: column;
    gap: 0;
    padding: 4px 0;
    font-size: 13px;
    background: var(--espresso);
    border: 1px solid rgba(246, 241, 231, .18);
    border-radius: var(--r-sm);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .42);
  }
  .nav-links:not(.is-open) { display: none; }
  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 18px;
    opacity: 1;
  }
  .nav-links a + a { border-top: 1px solid rgba(246, 241, 231, .1); }
}

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  .nav-cta {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .5em 1em;
    font-size: 13px;
  }
  .figures, .steps { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; }
  .founder-photo { max-width: 280px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-toggle span { transition: none; }
}
