/* FenByte main styles: layout, components and liquid glass material.
   Colours come from tokens.css so the whole page recolours with the theme. */

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  --bs-body-font-family: var(--fb-font-body);
  --bs-body-color: var(--fb-ink);
  --bs-body-bg: var(--fb-page);
  --bs-body-font-size: 1.0625rem;
  --bs-body-line-height: 1.7;
  --bs-link-color: var(--fb-primary);
  --bs-link-hover-color: var(--fb-primary-end);
  --bs-border-color: var(--fb-line);
  font-family: var(--fb-font-body);
  color: var(--fb-ink);
  background: var(--fb-page);
  overflow-x: clip;
  position: relative;
}

@media (min-width: 768px) {
  body {
    --bs-body-font-size: 1.125rem;
  }
}

/* Fixed colour wash behind the page content */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, var(--fb-tint-b), transparent 70%),
    radial-gradient(ellipse 55% 55% at 0% 55%, var(--fb-tint-a), transparent 70%),
    radial-gradient(ellipse 50% 45% at 100% 100%, var(--fb-tint-c), transparent 70%),
    var(--fb-page);
}

h1, h2, h3, h4 {
  font-family: var(--fb-font-display);
  color: var(--fb-ink);
  font-weight: 700;
}

p {
  margin-bottom: 0;
}

img, svg {
  max-width: 100%;
}

a {
  text-decoration: none;
}

a:not([class]) {
  color: var(--fb-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:not([class]):hover {
  color: var(--fb-primary-end);
}

:focus-visible {
  outline: none;
  box-shadow: var(--fb-focus);
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 2000;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--fb-ink);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

.fb-wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--fb-gutter);
}

/* Section padding already provides spacing, so only the sticky header height beyond it is offset */
.fb-section {
  padding-block: var(--fb-section-gap) 0;
  scroll-margin-top: max(0px, calc(var(--fb-header-offset) - var(--fb-section-gap) + 20px));
}

.fb-section:last-of-type {
  padding-bottom: var(--fb-section-gap);
}

/* Material */
.glass {
  background: rgba(255, 255, 255, var(--fb-glass-opacity));
  border: 1px solid rgba(255, 255, 255, 0.97);
  border-radius: var(--fb-radius);
  box-shadow: 0 16px 45px var(--fb-shadow), inset 0 1px 0 #fff;
  -webkit-backdrop-filter: blur(var(--fb-glass-blur));
  backdrop-filter: blur(var(--fb-glass-blur));
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass {
    background: #fff;
  }
}

.text-gradient {
  color: var(--fb-primary);
  background: linear-gradient(110deg, var(--fb-primary), var(--fb-primary-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fb-primary);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fb-primary);
}

.display {
  font-size: clamp(2.5rem, 1.5rem + 5.2vw, 5.25rem);
  line-height: 1.07;
  letter-spacing: -0.055em;
}

.section-title {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.lead-text {
  color: var(--fb-muted);
  font-size: 1.0625rem;
  line-height: 1.75;
  max-width: 65ch;
}

@media (min-width: 768px) {
  .lead-text {
    font-size: 1.125rem;
  }
}

.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: 32px;
}

@media (min-width: 992px) {
  .section-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    align-items: end;
    gap: 48px;
    margin-bottom: 44px;
  }
}

.section-head .section-title {
  margin-top: 12px;
}

.muted {
  color: var(--fb-muted);
}

.small-text {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Buttons */
.fb-btn {
  --bs-btn-padding-x: 24px;
  --bs-btn-padding-y: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(125deg, var(--fb-primary), var(--fb-primary-end));
  color: var(--fb-on-primary);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 8px 18px var(--fb-shadow), inset 0 1px 1px rgba(255, 255, 255, 0.5);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.fb-btn:hover,
.fb-btn:focus-visible {
  color: var(--fb-on-primary);
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.fb-btn:active {
  transform: translateY(0);
}

.fb-btn[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

.fb-btn-sm {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 0.9375rem;
}

.fb-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 6px;
  border: 0;
  background: transparent;
  color: var(--fb-ink);
  font-weight: 600;
  font-size: 1rem;
}

.fb-btn-ghost:hover {
  color: var(--fb-primary);
}

.fb-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 22px;
  border: 1px solid var(--fb-line);
  border-radius: 999px;
  background: #fff;
  color: var(--fb-ink);
  font-weight: 600;
  font-size: 1rem;
}

.fb-btn-outline:hover {
  border-color: var(--fb-primary);
  color: var(--fb-primary);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--fb-primary);
  font-weight: 600;
}

.text-link:hover {
  color: var(--fb-primary-end);
}

@media (prefers-reduced-motion: reduce) {
  .fb-btn,
  .fb-btn:hover,
  .fb-btn:focus-visible {
    transform: none;
    transition: none;
  }
}

/* Header and navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  padding-top: 12px;
}

@media (min-width: 768px) {
  .site-header {
    padding-top: 20px;
  }
}

.fb-nav-shell {
  --bs-navbar-padding-y: 0;
  padding: 10px 12px 10px 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

@media (min-width: 1200px) {
  .fb-nav-shell {
    flex-wrap: nowrap;
    padding: 12px 14px 12px 20px;
    gap: 24px;
  }
}

.fb-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto 0 0;
  padding: 0;
  min-height: 44px;
  color: var(--fb-ink);
  white-space: nowrap;
}

.fb-brand:hover {
  color: var(--fb-ink);
}

.fb-monogram {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--fb-primary), var(--fb-primary-end));
  color: #fff;
  font-family: var(--fb-font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
  box-shadow: 0 4px 12px var(--fb-shadow);
}

.fb-brand-text {
  display: grid;
  line-height: 1.25;
}

.fb-brand-name {
  font-family: var(--fb-font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.fb-brand-sub {
  color: var(--fb-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fb-nav-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  order: 1;
}

/* Below xl the menu is an overlay panel so opening or closing it never shifts the page */
#mainMenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 1035;
  padding: 8px 16px 16px;
  border: 1px solid var(--fb-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 50px var(--fb-shadow);
}

@media (min-width: 1200px) {
  #mainMenu {
    position: static;
    order: 1;
    flex-basis: auto;
    flex-grow: 1;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .fb-nav-tools {
    order: 2;
    gap: 14px;
  }

  .fb-brand {
    margin-right: 0;
  }
}

.fb-nav-links {
  --bs-nav-link-padding-x: 14px;
  --bs-nav-link-padding-y: 10px;
  padding: 4px 0;
  gap: 2px;
}

@media (min-width: 1200px) {
  .fb-nav-links {
    padding: 0;
    justify-content: center;
    margin-inline: auto;
    gap: 6px;
  }
}

.fb-nav-links .nav-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 14px;
  border-radius: 14px;
  color: var(--fb-ink);
  font-size: 1rem;
  font-weight: 600;
}

.fb-nav-links .nav-link:hover,
.fb-nav-links .nav-link.active {
  color: var(--fb-primary);
  background: color-mix(in srgb, var(--fb-primary) 8%, transparent);
}

.fb-nav-cta-mobile {
  margin-top: 8px;
  width: 100%;
}

.fb-toggler {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--fb-line);
  border-radius: 999px;
  background: #fff;
  color: var(--fb-ink);
  font-size: 1.5rem;
  line-height: 1;
}

.fb-toggler:focus-visible {
  box-shadow: var(--fb-focus);
}

.fb-toggler .icon-close,
.fb-toggler[aria-expanded="true"] .icon-open {
  display: none;
}

.fb-toggler[aria-expanded="true"] .icon-close {
  display: inline-block;
}

/* Colour theme picker */
html:not(.js) .fb-themes {
  display: none;
}

.fb-themes {
  position: static;
}

@media (min-width: 1200px) {
  .fb-themes {
    position: relative;
  }
}

.theme-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 14px;
  border: 1px solid var(--fb-line);
  border-radius: 999px;
  background: #fff;
  color: var(--fb-ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.theme-trigger:hover {
  border-color: var(--fb-primary);
}

.theme-trigger .bi-chevron-down {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.theme-trigger[aria-expanded="true"] .bi-chevron-down {
  transform: rotate(180deg);
}

.theme-label-prefix {
  display: none;
}

@media (min-width: 576px) {
  .theme-label-prefix {
    display: inline;
    color: var(--fb-muted);
    font-weight: 500;
  }
}

.colour-dot {
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fb-reflect-a), var(--fb-reflect-b));
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--fb-line);
}

.theme-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1040;
  width: min(280px, 100%);
  padding: 10px;
  border: 1px solid var(--fb-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 50px var(--fb-shadow);
}

@media (min-width: 1200px) {
  .theme-panel {
    width: 280px;
  }
}

.theme-panel[hidden] {
  display: none;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #fff;
  color: var(--fb-ink);
  text-align: left;
}

.theme-option + .theme-option {
  margin-top: 4px;
}

.theme-option:hover {
  background: var(--fb-tint-a);
}

.theme-option[aria-pressed="true"] {
  background: var(--fb-tint-a);
  border-color: var(--fb-primary);
}

.theme-swatch {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 11px;
}

.swatch-prism { background: linear-gradient(135deg, #9258f8, #22c4de); }
.swatch-lagoon { background: linear-gradient(135deg, #2c94f5, #25d6b6); }
.swatch-sunrise { background: linear-gradient(135deg, #fb7286, #ffa855); }

.theme-option strong {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.35;
}

.theme-option small {
  display: block;
  color: var(--fb-muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.theme-check {
  margin-left: auto;
  color: var(--fb-primary);
  font-size: 1.1rem;
}

.theme-option[aria-pressed="false"] .theme-check {
  visibility: hidden;
}

/* Hero */
.hero {
  padding-top: 40px;
}

@media (min-width: 992px) {
  .hero {
    padding-top: 64px;
  }
}

.hero .display {
  margin-top: 18px;
}

.hero-lede {
  margin-top: 22px;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 28px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-top: 22px;
  color: var(--fb-muted);
  font-size: 0.9375rem;
}

.hero-proof strong {
  color: var(--fb-ink);
}

.hero-proof .sep {
  color: var(--fb-line);
}

@media (max-width: 575.98px) {
  .hero-proof {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-proof .sep {
    display: none;
  }
}

.hero-art {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  height: clamp(300px, 88vw, 420px);
  perspective: 900px;
}

@media (min-width: 992px) {
  .hero-art {
    height: 480px;
    max-width: none;
  }
}

.art-halo {
  position: absolute;
  left: 6%;
  top: 4%;
  width: 88%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--fb-tint-c) 0%, var(--fb-tint-b) 42%, transparent 70%);
  filter: blur(10px);
}

.sculpture {
  position: absolute;
  inset: 0 0 30px 0;
  transform: rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
  transition: transform 0.35s ease;
  filter: drop-shadow(0 22px 26px var(--fb-shadow));
}

.ring {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--fb-reflect-a), var(--fb-reflect-c), var(--fb-reflect-b), var(--fb-reflect-a));
  -webkit-mask: radial-gradient(farthest-side, transparent 57%, #000 58.5%);
  mask: radial-gradient(farthest-side, transparent 57%, #000 58.5%);
}

.ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 0.35) 78%, rgba(255, 255, 255, 0));
}

.ring-one {
  width: 66%;
  left: 12%;
  top: 14%;
  transform: rotate(-28deg) scaleY(0.84);
}

.ring-two {
  width: 58%;
  left: 3%;
  top: 38%;
  transform: rotate(32deg) scaleY(0.7);
  background: conic-gradient(from 20deg, var(--fb-reflect-b), var(--fb-reflect-a), var(--fb-reflect-c), var(--fb-reflect-b));
}

.orb {
  position: absolute;
  width: 34%;
  aspect-ratio: 1;
  right: 8%;
  top: 6%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 26%, #fff 0, rgba(255, 255, 255, 0.85) 5%, rgba(255, 255, 255, 0) 22%),
    radial-gradient(circle at 50% 58%, var(--fb-reflect-b), var(--fb-reflect-a) 125%);
  box-shadow: inset -12px -16px 30px rgba(32, 42, 71, 0.18), inset 8px 8px 22px rgba(255, 255, 255, 0.55);
}

.art-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 8px);
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
}

.art-chip small {
  display: block;
  color: var(--fb-muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.art-chip-top {
  top: 10%;
  left: 0;
  transform: rotate(-4deg);
}

.art-chip-bottom {
  bottom: 12%;
  right: 0;
  transform: rotate(3deg);
}

.chip-symbol {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--fb-tint-a);
  color: var(--fb-primary);
  font-size: 0.9375rem;
  font-weight: 700;
}

.art-caption {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  text-align: center;
  color: var(--fb-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .sculpture {
    transition: none;
    transform: none;
  }
}

/* Evidence strip */
.evidence {
  display: grid;
  gap: 16px 24px;
  padding: 20px 4px;
  margin-top: 40px;
  border-block: 1px solid var(--fb-line);
}

@media (min-width: 768px) {
  .evidence {
    grid-template-columns: 1.1fr repeat(3, auto);
    align-items: center;
    justify-content: space-between;
    padding: 22px 8px;
    margin-top: 56px;
  }
}

.evidence-label {
  color: var(--fb-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
  max-width: 22ch;
}

.evidence-items {
  display: contents;
}

.evidence-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
}

.evidence-item .bi {
  color: var(--fb-primary);
  font-size: 1.2rem;
}

@media (max-width: 767.98px) {
  .evidence-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Service cards */
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 24px;
}

@media (min-width: 768px) {
  .service-card {
    padding: 32px 28px;
  }
}

.icon-tile {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--fb-tint-a), var(--fb-tint-b));
  color: var(--fb-primary);
  font-size: 1.5rem;
  box-shadow: inset 0 1px 0 #fff;
}

.service-card h3 {
  font-size: 1.375rem;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.service-kicker {
  margin: 6px 0 12px;
  color: var(--fb-primary);
  font-weight: 700;
  font-size: 1rem;
}

.service-card p.summary {
  color: var(--fb-muted);
  font-size: 1rem;
}

.service-card .push {
  margin-top: auto;
  padding-top: 8px;
}

.service-card .push details.fb-details {
  margin-bottom: 12px;
}

details.fb-details {
  margin-top: 18px;
  border-top: 1px solid var(--fb-line);
}

details.fb-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding-block: 8px;
  color: var(--fb-ink);
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  cursor: pointer;
}

details.fb-details > summary::-webkit-details-marker {
  display: none;
}

details.fb-details > summary::after {
  content: "\F282";
  font-family: bootstrap-icons;
  flex: none;
  color: var(--fb-primary);
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

details.fb-details[open] > summary::after {
  transform: rotate(180deg);
}

.details-body {
  display: grid;
  gap: 14px;
  padding-bottom: 6px;
  color: var(--fb-muted);
  font-size: 1rem;
}

.details-body h4 {
  margin: 0 0 4px;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fb-ink);
  font-family: var(--fb-font-body);
}

.details-body ul {
  margin: 0;
  padding-left: 1.15rem;
}

.details-body li + li {
  margin-top: 4px;
}

.specialist {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 24px;
  padding: 22px 24px;
}

.specialist h3 {
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.specialist p {
  color: var(--fb-muted);
  font-size: 1rem;
  margin-top: 4px;
}

.specialist > div {
  flex: 1 1 320px;
}

/* Work */
.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 24px;
}

@media (min-width: 768px) {
  .project-card {
    padding: 32px 28px;
  }
}

.project-label {
  color: var(--fb-primary);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.5;
}

.project-card h3 {
  margin: 12px 0;
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.project-card p.summary {
  color: var(--fb-muted);
  font-size: 1rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.tag {
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--fb-tint-a);
  color: var(--fb-ink);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}

.project-card .push {
  margin-top: auto;
  padding-top: 8px;
}

.work-note {
  margin-top: 24px;
  color: var(--fb-muted);
  font-size: 0.9375rem;
}

/* Approach */
.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  padding: 4px 22px;
  border-radius: var(--fb-radius-sm);
}

.step details > summary {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding-block: 12px;
  font-family: var(--fb-font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  list-style: none;
  cursor: pointer;
}

.step details > summary::-webkit-details-marker {
  display: none;
}

.step details > summary::after {
  content: "\F282";
  font-family: bootstrap-icons;
  margin-left: auto;
  color: var(--fb-primary);
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.step details[open] > summary::after {
  transform: rotate(180deg);
}

.step-number {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--fb-primary), var(--fb-primary-end));
  color: #fff;
  font-family: var(--fb-font-display);
  font-size: 0.9375rem;
  font-weight: 700;
}

.step p {
  padding: 0 0 18px 52px;
  color: var(--fb-muted);
  font-size: 1rem;
}

@media (max-width: 575.98px) {
  .step {
    padding-inline: 16px;
  }

  .step p {
    padding-left: 0;
  }
}

.approach-note {
  margin-top: 24px;
  color: var(--fb-muted);
  font-size: 0.9375rem;
}

/* About */
.profile-card {
  position: relative;
  overflow: hidden;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (min-width: 992px) {
  .profile-card {
    position: sticky;
    top: calc(var(--fb-header-offset) + 16px);
  }
}

.profile-art {
  position: relative;
  height: 180px;
  margin-bottom: 4px;
}

.profile-art .ring {
  width: 150px;
  left: calc(50% - 110px);
  top: 4px;
  transform: rotate(-25deg) scaleY(0.88);
}

.profile-art .orb {
  width: 108px;
  right: calc(50% - 100px);
  top: 26px;
}

.profile-card h3 {
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.profile-facts {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
}

.profile-facts li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.profile-facts .bi {
  margin-top: 3px;
  color: var(--fb-primary);
}

.bio p + p {
  margin-top: 16px;
}

.bio p {
  color: var(--fb-muted);
  max-width: 65ch;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.skills li {
  padding: 6px 14px;
  border: 1px solid var(--fb-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}

.timeline {
  position: relative;
  margin: 32px 0 0;
  padding: 0 0 0 28px;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--fb-reflect-a), var(--fb-reflect-b));
  border-radius: 2px;
}

.timeline li {
  position: relative;
  padding-bottom: 22px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 8px;
  width: 16px;
  height: 16px;
  border: 3px solid var(--fb-primary);
  border-radius: 50%;
  background: #fff;
}

.timeline .when {
  color: var(--fb-primary);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.timeline h3 {
  margin: 2px 0;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.timeline p {
  color: var(--fb-muted);
  font-size: 1rem;
}

/* FAQ (Bootstrap accordion) */
.faq .accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-border-color: transparent;
  --bs-accordion-btn-color: var(--fb-ink);
  --bs-accordion-btn-bg: transparent;
  --bs-accordion-active-bg: transparent;
  --bs-accordion-active-color: var(--fb-primary);
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-btn-padding-y: 1.1rem;
  --bs-accordion-btn-padding-x: 1.25rem;
  --bs-accordion-body-padding-x: 1.25rem;
  display: grid;
  gap: 12px;
}

.faq .accordion-item {
  border: 1px solid rgba(255, 255, 255, 0.97);
  border-radius: var(--fb-radius-sm) !important;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 30px var(--fb-shadow);
  overflow: hidden;
}

.faq .accordion-button {
  min-height: 64px;
  font-family: var(--fb-font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: none;
  line-height: 1.4;
}

.faq .accordion-button:not(.collapsed) {
  box-shadow: none;
}

.faq .accordion-button:focus-visible {
  box-shadow: inset 0 0 0 2px var(--fb-primary);
  border-radius: var(--fb-radius-sm);
}

.faq .accordion-button::after {
  background-size: 1rem;
}

.faq .accordion-body {
  padding-top: 0;
  color: var(--fb-muted);
  font-size: 1rem;
}

/* Contact */
.contact-panel {
  position: relative;
  overflow: hidden;
  padding: 28px 20px;
  background:
    radial-gradient(ellipse 60% 70% at 0% 0%, var(--fb-tint-a), transparent 70%),
    radial-gradient(ellipse 60% 70% at 100% 100%, var(--fb-tint-b), transparent 70%),
    rgba(255, 255, 255, 0.9);
}

@media (min-width: 768px) {
  .contact-panel {
    padding: 44px 40px;
  }
}

@media (min-width: 1200px) {
  .contact-panel {
    padding: 56px;
  }
}

.contact-panel h2 {
  margin-top: 12px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.email-line {
  margin-top: 18px;
  font-size: 1.125rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

@media (max-width: 419.98px) {
  .email-line {
    font-size: 0.975rem;
  }
}

.privacy-note {
  margin-top: 18px;
  color: var(--fb-muted);
  font-size: 0.9375rem;
}

.include-card {
  padding: 24px 22px;
  border: 1px solid #fff;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 40px var(--fb-shadow);
}

@media (min-width: 576px) {
  .include-card {
    padding: 28px;
  }
}

.include-card h3 {
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.include-list {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--fb-muted);
  font-size: 1rem;
}

.include-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.include-list .bi {
  flex: none;
  margin-top: 4px;
  color: var(--fb-primary);
}

/* Footer */
.site-footer {
  margin-top: var(--fb-section-gap);
  padding-block: 28px 36px;
  border-top: 1px solid var(--fb-line);
  background: rgba(255, 255, 255, 0.6);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  color: var(--fb-muted);
  font-size: 0.9375rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--fb-ink);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--fb-primary);
}

.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1020;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--fb-line);
  border-radius: 50%;
  background: #fff;
  color: var(--fb-primary);
  box-shadow: 0 8px 24px var(--fb-shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Legal page */
.legal {
  padding-top: 40px;
  padding-bottom: 24px;
}

.legal-card {
  padding: 28px 22px;
}

@media (min-width: 768px) {
  .legal-card {
    padding: 44px;
  }
}

.legal h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.legal h2 {
  margin-top: 32px;
  font-size: 1.375rem;
  letter-spacing: -0.03em;
}

.legal p,
.legal li {
  margin-top: 10px;
  color: var(--fb-muted);
  max-width: 70ch;
}

.legal ul {
  padding-left: 1.2rem;
}

.legal code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--fb-tint-a);
  color: var(--fb-ink);
  font-size: 0.9em;
}

.legal a:not(.fb-btn) {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Marks details that must be completed before launch (npm run prelaunch fails while any remain) */
.launch-todo {
  padding: 2px 8px;
  border: 2px dashed #b45309;
  border-radius: 8px;
  background: #fff4d6;
  color: #7c2d12;
  font-weight: 700;
}

/* Visually hidden live region */
.sr-only-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Narrow screens */
@media (max-width: 479.98px) {
  .fb-brand-sub {
    display: none;
  }
}

@media (max-width: 419.98px) {
  .fb-nav-shell {
    padding: 10px 10px 10px 12px;
    gap: 6px;
  }

  .fb-nav-tools {
    gap: 6px;
  }

  .theme-trigger {
    padding-inline: 12px;
  }

  .theme-trigger .theme-name {
    display: none;
  }
}

@media (max-width: 379.98px) {
  .art-chip {
    font-size: 0.8125rem;
    padding: 8px 10px;
  }
}

/* Very narrow phones: the controls take their own row */
@media (max-width: 374.98px) {
  .fb-brand {
    margin-right: 0;
  }

  .fb-nav-tools {
    flex-basis: 100%;
    justify-content: space-between;
  }

  .theme-trigger .theme-name {
    display: inline;
  }
}
