/* Lane page system: products.html, labs.html, studio.html, plus the
   rebuilt about.html and contact.html. Builds on the navy tokens in
   custom-theme.css (--nf-primary, --nf-ink, --nf-muted, --nf-surface).
   Each page sets one lane accent via .nf-lane--<name>; it is used only
   for small moments (eyebrow, step numbers, rule), never for fills. */

.nf-lane {
  --lane-accent: var(--nf-primary);
  --lane-accent-soft: var(--nf-primary-soft);
  --nf-navy: #14315c;
  --nf-navy-deep: #0b1a38;
  --nf-card: #ffffff;
  --nf-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 18px rgba(15, 23, 42, 0.06);
  --nf-shadow-md: 0 2px 4px rgba(15, 23, 42, 0.04), 0 18px 40px rgba(15, 23, 42, 0.09);
  --nf-radius: 14px;
  --nf-gutter: 24px;
  background: #ffffff;
  color: var(--nf-ink);
}

/* Text-safe (AA on white) tones of the home page lane colours. */
.nf-lane--products { --lane-accent: #1d4ed8; --lane-accent-soft: #e8eefc; }
.nf-lane--labs     { --lane-accent: #047857; --lane-accent-soft: #e6f4ef; }
.nf-lane--studio   { --lane-accent: #c2410c; --lane-accent-soft: #fbeee6; }

.nf-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--nf-gutter);
}

/* ---------- Type ---------- */

.nf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lane-accent);
}

.nf-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
}

.nf-lane h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--nf-ink);
}

.nf-lane h2 {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--nf-ink);
}

.nf-lane h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 400 !important;
  color: var(--nf-ink);
}

.nf-lead {
  margin: 0;
  max-width: 58ch;
  font-size: 19px;
  line-height: 1.6;
  color: var(--nf-muted);
}

.nf-body {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--nf-muted);
}

.nf-body + .nf-body {
  margin-top: 14px;
}

.nf-section-head {
  max-width: 760px;
  margin-bottom: 44px;
}

.nf-section-head .nf-lead {
  margin-top: 16px;
}

.nf-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Buttons ---------- */

.nf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.nf-btn,
.nf-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.nf-btn {
  border: 0;
  background: var(--nf-primary);
  color: #ffffff;
}

.nf-btn:hover {
  background: var(--nf-primary-dark);
  color: #ffffff;
}

.nf-btn-ghost {
  border: 0;
  background: var(--nf-primary-soft);
  color: var(--nf-primary-dark);
}

.nf-btn-ghost:hover {
  background: #d9e3f6;
  color: var(--nf-primary-dark);
}

.nf-btn:focus-visible,
.nf-btn-ghost:focus-visible,
.nf-lane a:focus-visible,
.nf-lane summary:focus-visible {
  outline: 3px solid var(--lane-accent);
  outline-offset: 3px;
}

.nf-arrow {
  font-size: 1.1em;
  line-height: 1;
}

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

.nf-section {
  padding: 96px 0;
}

.nf-section--muted {
  background: var(--nf-surface);
}

.nf-section--tight {
  padding: 72px 0;
}

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

.nf-hero {
  padding: 72px 0 96px;
}

.nf-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
}

.nf-hero-media {
  border-radius: var(--nf-radius);
  background: var(--nf-navy);
  padding: 28px;
  box-shadow: var(--nf-shadow-md);
}

.nf-hero-media--light {
  background: var(--nf-surface);
}

.nf-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: var(--nf-shadow-md);
}

/* ---------- Placeholders (content not yet supplied) ----------
   Rendered visibly on purpose so nothing ships looking finished.
   Search the HTML for "PLACEHOLDER" to find every one. */

.nf-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 220px;
  padding: 28px;
  border-radius: 10px;
  background: #f1f4f8;
  outline: 2px dashed #c2410c;
  outline-offset: -2px;
  color: #3f4b5e;
  font-size: 15px;
  line-height: 1.5;
}

.nf-hero-media .nf-placeholder {
  min-height: 320px;
}

.nf-placeholder strong {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a3412;
}

/* ---------- Cards ---------- */

.nf-grid {
  display: grid;
  gap: 24px;
}

.nf-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nf-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nf-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.nf-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: var(--nf-radius);
  background: var(--nf-card);
  box-shadow: var(--nf-shadow-sm);
}

.nf-section--muted .nf-card {
  box-shadow: var(--nf-shadow-sm);
}

.nf-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--nf-muted);
}

.nf-card .nf-meta {
  margin-top: auto;
  padding-top: 20px;
  font-size: 14px;
  color: var(--nf-ink);
}

.nf-card .nf-meta span {
  color: var(--lane-accent);
  font-weight: 500;
}

.nf-card p + p {
  margin-top: 12px;
}

.nf-card .nf-meta a,
.nf-card p a {
  color: var(--nf-primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nf-card-title-sm {
  margin: 0 0 10px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.14em !important;
  line-height: 1.4 !important;
  text-transform: uppercase;
  color: var(--nf-muted) !important;
}

.nf-card strong {
  font-weight: 500;
  color: var(--nf-ink);
}

.nf-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--lane-accent-soft);
}

.nf-card-icon img {
  width: 26px;
  height: 26px;
}

.nf-tag {
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--lane-accent-soft);
  color: var(--lane-accent);
  font-size: 13px;
  font-weight: 500;
}

/* ---------- Steps (timeline) ---------- */

.nf-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: nf-step;
}

.nf-step {
  position: relative;
  padding-top: 28px;
  counter-increment: nf-step;
}

.nf-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: -24px;
  height: 2px;
  background: #d8dfe9;
}

.nf-step:last-child::before {
  right: 0;
}

.nf-step::after {
  content: counter(nf-step, decimal-leading-zero);
  position: absolute;
  top: -11px;
  left: 0;
  padding-right: 10px;
  background: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--lane-accent);
}

.nf-section--muted .nf-step::after { background: var(--nf-surface); }
.nf-section:not(.nf-section--muted) .nf-step::after { background: #ffffff; }

.nf-step p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--nf-muted);
}

.nf-note {
  margin: 36px 0 0;
  max-width: 70ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--nf-muted);
}

/* ---------- Feature tiles (reused "Ship with structure" set) ---------- */

.nf-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.nf-tile {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 16px;
  padding: 24px;
  border-radius: var(--nf-radius);
  background: #ffffff;
  box-shadow: var(--nf-shadow-sm);
}

.nf-tile img {
  grid-row: span 2;
  width: 44px;
  height: 44px;
}

.nf-tile h3 {
  margin: 0;
  font-size: 18px;
}

.nf-tile p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--nf-muted);
}

/* ---------- Split block ---------- */

.nf-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

/* ---------- Client logos ---------- */

.nf-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nf-logos li {
  display: flex;
  align-items: center;
}

.nf-logos img {
  height: 40px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.nf-logos li:hover img {
  filter: none;
  opacity: 1;
}

.nf-logos-label {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nf-muted);
}

.nf-card .nf-logos {
  margin-top: auto;
  padding-top: 24px;
  gap: 16px 28px;
}

.nf-card .nf-logos img {
  height: 30px;
  max-width: 110px;
}

/* ---------- Founders ---------- */

.nf-founders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.nf-founder {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border-radius: var(--nf-radius);
  background: #ffffff;
  box-shadow: var(--nf-shadow-sm);
}

.nf-founder img {
  width: 148px;
  height: 148px;
  border-radius: 10px;
  object-fit: cover;
}

.nf-founder h3 {
  margin: 0 0 4px;
}

.nf-founder .nf-role {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--lane-accent);
}

.nf-founder p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--nf-muted);
}

.nf-founder a {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--nf-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Showreel ---------- */

.nf-reel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* ---------- CTA band (shared across lane pages) ---------- */

.nf-cta {
  padding: 0 0 96px;
}

.nf-cta-inner {
  padding: 72px 48px;
  border-radius: var(--nf-radius);
  background: var(--nf-navy);
  text-align: center;
}

.nf-cta-inner h2 {
  color: #ffffff;
}

.nf-cta-inner p {
  margin: 14px auto 0;
  max-width: 52ch;
  font-size: 18px;
  line-height: 1.6;
  color: #c9d6ec;
}

.nf-cta-inner .nf-actions {
  justify-content: center;
}

.nf-cta-inner .nf-btn {
  background: #ffffff;
  color: var(--nf-navy);
}

.nf-cta-inner .nf-btn:hover {
  background: #e7edfa;
  color: var(--nf-navy);
}

.nf-cta-inner .nf-btn:focus-visible {
  outline-color: #ffffff;
}

/* ---------- Packages ---------- */

.nf-package h3 {
  margin-bottom: 6px;
}

.nf-package .nf-timebox {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--lane-accent);
}

/* ---------- Contact ---------- */

.nf-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: start;
}

.nf-contact-aside .nf-card + .nf-card {
  margin-top: 16px;
}

.nf-contact-aside a {
  color: var(--nf-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nf-form {
  padding: 40px;
  border-radius: var(--nf-radius);
  background: #ffffff;
  box-shadow: var(--nf-shadow-md);
}

.nf-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}

.nf-field {
  margin-bottom: 20px;
}

.nf-field label,
.nf-field legend {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--nf-ink);
}

.nf-field .nf-optional {
  font-weight: 400;
  color: var(--nf-muted);
}

.nf-field input,
.nf-field select,
.nf-field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #cdd6e2;
  border-radius: 8px;
  background: #ffffff;
  color: var(--nf-ink);
  font-size: 16px;
  line-height: 1.4;
}

.nf-field textarea {
  min-height: 150px;
  resize: vertical;
}

.nf-field input:focus,
.nf-field select:focus,
.nf-field textarea:focus {
  outline: 3px solid rgba(29, 78, 137, 0.25);
  outline-offset: 0;
  border-color: var(--nf-primary);
}

.nf-field input[aria-invalid="true"],
.nf-field select[aria-invalid="true"],
.nf-field textarea[aria-invalid="true"] {
  border-color: #b42318;
}

.nf-error {
  margin: 6px 0 0;
  font-size: 14px;
  color: #b42318;
}

.nf-error:empty {
  display: none;
}

.nf-form-status {
  margin: 16px 0 0;
  font-size: 15px;
  color: var(--nf-muted);
}

.nf-form-status:empty {
  display: none;
}

.nf-form-status[data-state="success"] {
  padding: 14px 16px;
  border-radius: 8px;
  background: #e6f4ef;
  color: #065f46;
}

.nf-form-status[data-state="error"] {
  color: #b42318;
}

.nf-form-status:focus {
  outline: none;
}

.nf-form-status:focus-visible {
  outline: 3px solid var(--nf-primary);
  outline-offset: 2px;
}

.nf-form button[disabled] {
  opacity: 0.7;
  cursor: progress;
}

/* Honeypot: off-screen for people, still filled in by naive bots. */
.nf-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
  .nf-hero-grid,
  .nf-split,
  .nf-contact-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .nf-grid--3,
  .nf-grid--4,
  .nf-tiles,
  .nf-reel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nf-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }

  .nf-step::before {
    right: 0;
  }

  .nf-founders {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .nf-lane {
    --nf-gutter: 16px;
  }

  .nf-section {
    padding: 64px 0;
  }

  .nf-hero {
    padding: 40px 0 64px;
  }

  .nf-hero-media {
    padding: 16px;
  }

  .nf-grid--2,
  .nf-grid--3,
  .nf-grid--4,
  .nf-tiles,
  .nf-reel,
  .nf-steps,
  .nf-form-row {
    grid-template-columns: 1fr;
  }

  .nf-card,
  .nf-form {
    padding: 24px;
  }

  .nf-founder {
    grid-template-columns: 1fr;
  }

  .nf-founder img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    max-width: 280px;
  }


  .nf-cta {
    padding-bottom: 64px;
  }

  .nf-cta-inner {
    padding: 48px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nf-btn,
  .nf-btn-ghost,
  .nf-logos img {
    transition: none;
  }
}
