/* Inner pages: articles, about, projects, FAQ and contact */
.a-page {
  background: var(--white);
}

/* ============ Page header ============ */
.a-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--topbar-h) + 64px) 0 72px;
  background: var(--dark);
  color: var(--on-dark);
  isolation: isolate;
}

.a-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 90% at 50% 45%, rgba(30, 39, 46, 0.92), rgba(30, 39, 46, 0.55) 70%, transparent),
    linear-gradient(to top, var(--dark) 0, transparent 90px);
  pointer-events: none;
}

.a-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.a-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--yellow-soft);
  border: 1px solid rgba(251, 197, 49, 0.3);
  color: var(--yellow);
  font-size: 14px;
  font-weight: 700;
}

.a-chip svg {
  width: 16px;
  height: 16px;
}

.a-hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(30px, 4.2vw, 50px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--white);
  text-wrap: balance;
}

.a-hero__excerpt {
  max-width: 700px;
  color: var(--on-dark-2);
  font-size: 19px;
  line-height: 1.75;
  text-wrap: pretty;
}

.a-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 30px;
  color: var(--on-dark-3);
  font-size: 14px;
  font-weight: 500;
}

.a-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.a-meta svg {
  width: 16px;
  height: 16px;
  color: var(--yellow);
}

.a-eyebrow {
  color: var(--yellow);
}

.a-hero--list {
  padding-bottom: 88px;
}

.a-hero--list h1 {
  margin-top: 18px;
}

/* Body text */
.a-body {
  padding: 72px 0 40px;
}

.prose {
  max-width: 776px;
  color: #34424d;
}

.prose > p {
  margin-bottom: 1.3em;
  font-size: 18px;
  line-height: 1.95;
  text-wrap: pretty;
}

.prose > p:first-of-type {
  font-size: 20px;
  line-height: 1.85;
  color: var(--dark);
}

.prose > p a {
  color: var(--dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s ease, background-color 0.2s ease;
}

.prose > p a:hover,
.prose > p a:focus-visible {
  text-decoration-color: var(--yellow-hover);
  background: var(--yellow-soft);
}

.prose > h2 {
  position: relative;
  margin: 2.1em 0 0.75em;
  padding-top: 22px;
  color: var(--dark);
  font-size: clamp(23px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1.35;
  scroll-margin-top: calc(var(--topbar-h) + 24px);
}

.prose > h2::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 4px;
  border-radius: 4px;
  background: var(--yellow);
}

.prose > h2:first-child {
  margin-top: 0;
}

/* End of article call to action */
.a-cta {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px 22px;
  align-items: center;
  margin-top: 64px;
  padding: 34px;
  border-radius: 16px;
  background: var(--dark);
  color: var(--on-dark-2);
}

.a-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--line-on-dark) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--line-on-dark) 1px, transparent 1px) 0 0 / 28px 28px;
  opacity: 0.35;
  mask-image: linear-gradient(to left, #000, transparent 70%);
  pointer-events: none;
}

.a-cta > * {
  position: relative;
}

.a-cta__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--yellow);
  color: var(--dark);
}

.a-cta__icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  stroke-width: 1.4;
}

.a-cta__title {
  margin-bottom: 6px;
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
}

.a-cta__text p {
  font-size: 16px;
  line-height: 1.7;
}

.a-cta__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Cards */
.a-related {
  padding: 56px 0 104px;
}

.a-related__title {
  margin-bottom: 26px;
  color: var(--dark);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.35;
}

.a-list {
  padding: 64px 0 104px;
}

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

.a-grid > li {
  display: flex;
}

.a-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(30, 39, 46, 0.09);
  box-shadow: 0 1px 2px rgba(30, 39, 46, 0.04);
  transition: translate 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s;
}

.a-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--yellow);
  scale: 0 1;
  transform-origin: right;
  transition: scale 0.45s var(--ease-out);
}

.a-card:hover {
  translate: 0 -4px;
  border-color: rgba(30, 39, 46, 0.14);
  box-shadow: 0 18px 40px rgba(30, 39, 46, 0.1);
}

.a-card:hover::before {
  scale: 1 1;
}

.a-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.a-card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--dark);
  color: var(--yellow);
  transition: background 0.3s, color 0.3s;
}

.a-card:hover .a-card__icon {
  background: var(--yellow);
  color: var(--dark);
}

.a-card__cat {
  color: #6b7780;
  font-size: 14px;
  font-weight: 700;
}

.a-card__title {
  margin-bottom: 10px;
  color: var(--dark);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.4;
  text-wrap: balance;
}

.a-card__excerpt {
  margin-bottom: 22px;
  color: #56636d;
  font-size: 15px;
  line-height: 1.7;
}

.a-card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(30, 39, 46, 0.08);
  font-size: 14px;
}

.a-card__time {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #6b7780;
}

.a-card__time svg {
  width: 16px;
  height: 16px;
}

.a-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dark);
  font-weight: 700;
}

.a-card__more svg {
  width: 17px;
  height: 17px;
  transition: translate 0.3s var(--ease-out);
}

.a-card:hover .a-card__more svg {
  translate: -4px 0;
}

/* The first article on the list page gets a wide dark card */
.a-grid--list > li:first-child {
  grid-column: 1 / -1;
}

.a-card--featured {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "icon title more"
    "icon excerpt more";
  align-items: center;
  gap: 6px 28px;
  padding: 34px 36px;
  background: var(--dark);
  border-color: var(--dark);
}

.a-card--featured .a-card__top {
  grid-area: icon;
  flex-direction: column;
  margin: 0;
}

.a-card--featured .a-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--yellow);
  color: var(--dark);
}

.a-card--featured .a-card__icon svg {
  width: 28px;
  height: 28px;
}

.a-card--featured .a-card__cat {
  color: var(--on-dark-3);
}

.a-card--featured .a-card__title {
  grid-area: title;
  align-self: end;
  margin: 0;
  color: var(--white);
  font-size: 24px;
}

.a-card--featured .a-card__excerpt {
  grid-area: excerpt;
  align-self: start;
  margin: 0;
  color: var(--on-dark-2);
  font-size: 16px;
}

.a-card--featured .a-card__foot {
  grid-area: more;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  padding: 0;
  border: 0;
}

.a-card--featured .a-card__time {
  color: var(--on-dark-3);
}

.a-card--featured .a-card__more {
  height: 44px;
  padding: 0 18px;
  border-radius: var(--r-sm);
  background: var(--yellow);
  color: var(--dark);
}

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .a-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .a-related .a-grid > li:nth-child(3) {
    display: none;
  }

  .a-card--featured {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "icon title"
      "icon excerpt"
      "icon more";
  }

  .a-card--featured .a-card__foot {
    flex-direction: row;
    align-items: center;
    margin-top: 12px;
  }
}

@media (max-width: 640px) {
  .a-hero {
    padding: calc(var(--topbar-h) + 40px) 0 52px;
  }

  .a-hero__excerpt {
    font-size: 17px;
  }

  .a-body {
    padding-top: 48px;
  }

  .prose > p {
    font-size: 17px;
    line-height: 1.9;
  }

  .prose > p:first-of-type {
    font-size: 18px;
  }

  .a-cta {
    grid-template-columns: 1fr;
    padding: 28px 22px;
  }

  .a-cta__actions .btn {
    flex: 1 1 auto;
  }

  .a-grid {
    grid-template-columns: 1fr;
  }

  .a-related .a-grid > li:nth-child(3) {
    display: flex;
  }

  .a-card--featured {
    display: flex;
    padding: 26px;
  }

  .a-card--featured .a-card__top {
    flex-direction: row;
    margin-bottom: 16px;
  }

  .a-card--featured .a-card__icon {
    width: 52px;
    height: 52px;
  }

  .a-card--featured .a-card__title {
    margin-bottom: 10px;
    font-size: 21px;
  }

  .a-card--featured .a-card__excerpt {
    margin-bottom: 20px;
  }

  .a-card--featured .a-card__foot {
    width: 100%;
    justify-content: space-between;
  }
}

/* ============ Shared page pieces ============ */
.section__head h1 {
  font-size: clamp(36px, 4.6vw, 60px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section--light .eyebrow {
  color: var(--dark);
}

.btn--outline-dark {
  border-color: rgba(30, 39, 46, 0.35);
  color: var(--dark);
}

.btn--outline-dark:hover {
  border-color: var(--dark);
  background: rgba(30, 39, 46, 0.06);
}

/* Yellow call to action band before the footer */
.page-cta {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  background: var(--yellow);
  color: var(--dark);
}

.page-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(30, 39, 46, 0.07) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(30, 39, 46, 0.07) 1px, transparent 1px) 0 0 / 32px 32px;
  mask-image: radial-gradient(ellipse 60% 120% at 15% 50%, #000, transparent);
  pointer-events: none;
}

.page-cta__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
}

.page-cta__icon {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--dark);
  color: var(--yellow);
}

.page-cta__icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
  stroke-width: 1.4;
}

.page-cta__text {
  flex: 1;
}

.page-cta__text h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900;
  line-height: 1.2;
}

.page-cta__text p {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 500;
  color: rgba(30, 39, 46, 0.78);
}

.page-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============ About ============ */
.story {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 64px;
  align-items: center;
}

.story__text .eyebrow {
  margin-bottom: 14px;
}

.story__text h2 {
  margin-bottom: 22px;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.story__text p:not(.eyebrow) {
  margin-bottom: 1.2em;
  color: #34424d;
  font-size: 18px;
  line-height: 1.9;
}

.founder {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: 22px;
  background: var(--dark);
  color: var(--on-dark-2);
  box-shadow: 0 30px 60px rgba(30, 39, 46, 0.18);
}

.founder::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--yellow);
}

.founder__head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.founder__avatar {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--dark);
  font-size: 30px;
  font-weight: 900;
  box-shadow: 0 0 0 6px rgba(251, 197, 49, 0.18);
}

.founder figcaption b {
  display: block;
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
}

.founder figcaption span {
  font-size: 15px;
}

.founder blockquote {
  margin: 26px 0;
  padding-right: 18px;
  border-right: 3px solid var(--yellow);
  color: var(--white);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.6;
}

.founder__facts {
  display: grid;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line-on-dark);
  font-size: 15px;
}

.founder__facts li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.founder__facts svg {
  width: 18px;
  height: 18px;
  color: var(--yellow);
}

.stats-band {
  padding: 72px 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  text-align: center;
}

.stats li + li {
  border-right: 1px solid rgba(30, 39, 46, 0.18);
}

.stats b {
  direction: ltr;
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stats li > span {
  font-size: 16px;
  font-weight: 600;
  color: rgba(30, 39, 46, 0.78);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.v-card {
  position: relative;
  padding: 30px 26px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(30, 39, 46, 0.09);
  transition: translate 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.v-card:hover {
  translate: 0 -4px;
  box-shadow: 0 18px 40px rgba(30, 39, 46, 0.1);
}

.v-card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--yellow);
  color: var(--dark);
}

.v-card__icon svg {
  width: 24px;
  height: 24px;
}

.v-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 800;
}

.v-card p {
  color: #56636d;
  font-size: 15.5px;
  line-height: 1.75;
}

/* Numbered steps joined by a line */
.steps {
  position: relative;
  list-style: none;
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 28px;
}

.steps::before {
  content: "";
  position: absolute;
  top: 28px;
  right: 28px;
  left: 28px;
  height: 2px;
  background: repeating-linear-gradient(to left, rgba(251, 197, 49, 0.55) 0 8px, transparent 8px 16px);
}

.step {
  position: relative;
}

.step__num {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--dark);
  border: 2px solid var(--yellow);
  color: var(--yellow);
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 0 0 8px var(--dark);
}

.step h3 {
  margin-bottom: 8px;
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
}

.step p {
  color: var(--on-dark-2);
  font-size: 15.5px;
  line-height: 1.75;
}

.steps--light .step__num {
  background: var(--yellow);
  color: var(--dark);
  box-shadow: 0 0 0 8px var(--white);
}

.steps--light .step h3 {
  color: var(--dark);
}

.steps--light .step p {
  color: #56636d;
}

.certs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(30, 39, 46, 0.1);
  border-radius: 18px;
  background: #fff;
}

.certs li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 26px 24px;
}

.certs li + li {
  border-right: 1px solid rgba(30, 39, 46, 0.1);
}

.certs__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--yellow);
  color: var(--dark);
}

.certs b {
  font-size: 17px;
  font-weight: 800;
}

.certs li > span:last-child {
  color: #6b7780;
  font-size: 14.5px;
}

.certs__note {
  margin-top: 22px;
  color: #56636d;
  font-size: 15px;
  text-align: center;
}

.certs__note a,
.faq__a a,
.faq-empty a {
  color: var(--dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ============ Projects ============ */
.projects-section {
  padding-top: 56px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.filter {
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(30, 39, 46, 0.16);
  background: #fff;
  color: var(--dark);
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.filter:hover {
  border-color: var(--dark);
}

.filter[aria-pressed="true"] {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--yellow);
}

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

.project {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(30, 39, 46, 0.09);
  transition: box-shadow 0.35s var(--ease-out);
}

.project[hidden] {
  display: none;
}

.project:hover {
  box-shadow: 0 22px 50px rgba(30, 39, 46, 0.12);
}

.project__cover {
  position: relative;
  aspect-ratio: 400 / 190;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(251, 197, 49, 0.14), transparent 55%),
    radial-gradient(rgba(245, 246, 250, 0.08) 1px, transparent 1px) 0 0 / 16px 16px,
    var(--dark);
}

.project__cover > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cv-trace {
  fill: none;
  stroke: rgba(245, 246, 250, 0.16);
  stroke-width: 2;
}

.cv-trace.is-lit {
  stroke: rgba(251, 197, 49, 0.7);
}

.cv-pad {
  fill: var(--dark);
  stroke: var(--yellow);
  stroke-width: 2;
}

.cv-chip {
  fill: rgba(245, 246, 250, 0.04);
  stroke: rgba(245, 246, 250, 0.18);
  stroke-width: 1.5;
}

.cv-ring {
  fill: var(--dark);
  stroke: rgba(251, 197, 49, 0.5);
  stroke-width: 2;
  stroke-dasharray: 6 6;
  transform-origin: center;
  transform-box: fill-box;
}

.project:hover .cv-ring {
  animation: cv-spin 12s linear infinite;
}

@keyframes cv-spin {
  to { rotate: 360deg; }
}

.project__icon {
  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--dark);
  box-shadow: 0 0 40px rgba(251, 197, 49, 0.35);
  transition: scale 0.4s var(--ease-out);
}

.project__icon svg {
  width: 32px;
  height: 32px;
}

.project:hover .project__icon {
  scale: 1.08;
}

.project__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 28px 28px;
}

.project__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 12px;
  color: #6b7780;
  font-size: 14px;
  font-weight: 600;
}

.project__meta > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.project__meta svg {
  width: 16px;
  height: 16px;
}

.project__tag {
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--yellow-soft);
  color: #8a6400;
  font-weight: 700;
}

.project h2 {
  margin-bottom: 10px;
  color: var(--dark);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.4;
}

.project__body > p:not(.project__meta) {
  margin-bottom: 22px;
  color: #56636d;
  font-size: 15.5px;
  line-height: 1.8;
}

.project__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(30, 39, 46, 0.08);
}

.project__facts dt {
  color: #6b7780;
  font-size: 13px;
  font-weight: 600;
}

.project__facts dd {
  color: var(--dark);
  font-size: 15px;
  font-weight: 800;
}

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

.quote {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px 28px;
  border-radius: 18px;
  background: var(--dark-2);
  border: 1px solid var(--line-on-dark);
}

.quote__stars {
  display: flex;
  gap: 3px;
  color: var(--yellow);
}

.quote__stars svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

.quote blockquote {
  flex: 1;
  color: var(--white);
  font-size: 17px;
  line-height: 1.75;
}

.quote__who {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line-on-dark);
}

.quote__avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--dark);
  font-weight: 900;
}

.quote__who b {
  display: block;
  color: var(--white);
  font-size: 16px;
}

.quote__who small {
  color: var(--on-dark-3);
  font-size: 13.5px;
}

/* ============ FAQ ============ */
.faq-search {
  position: relative;
  width: min(100%, 620px);
  margin-top: 34px;
}

.faq-search > svg {
  position: absolute;
  top: 50%;
  right: 20px;
  translate: 0 -50%;
  color: var(--dark);
  opacity: 0.55;
  pointer-events: none;
}

.faq-search input {
  width: 100%;
  height: 60px;
  padding: 0 56px 0 20px;
  border: 2px solid transparent;
  border-radius: 14px;
  background: var(--white);
  color: var(--dark);
  font: inherit;
  font-size: 17px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s;
}

.faq-search input:focus {
  outline: none;
  border-color: var(--yellow);
}

.faq-search input::placeholder {
  color: #7d8891;
}

.faq-section {
  padding-top: 64px;
}

.faq-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  max-width: 1120px;
}

.faq-topics {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(30, 39, 46, 0.09);
}

.faq-topics a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--dark);
  font-size: 15.5px;
  font-weight: 700;
  transition: background 0.2s;
}

.faq-topics a:hover {
  background: var(--yellow-soft);
}

.faq-topics svg {
  width: 18px;
  height: 18px;
  color: #8a6400;
}

.faq-groups {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.faq-group[hidden] {
  display: none;
}

.faq-group h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  color: var(--dark);
  font-size: 26px;
  font-weight: 800;
  scroll-margin-top: calc(var(--topbar-h) + 24px);
}

.faq-group {
  scroll-margin-top: calc(var(--topbar-h) + 24px);
}

.faq-group__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--dark);
  color: var(--yellow);
}

.faq {
  margin-bottom: 10px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(30, 39, 46, 0.09);
  transition: border-color 0.2s, box-shadow 0.3s;
}

.faq[open] {
  border-color: rgba(251, 197, 49, 0.8);
  box-shadow: 0 14px 34px rgba(30, 39, 46, 0.08);
}

.faq summary {
  position: relative;
  display: block;
  padding: 20px 24px 20px 64px;
  color: var(--dark);
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 26px;
  width: 14px;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: var(--dark);
  transition: rotate 0.3s var(--ease-out);
}

.faq summary::after {
  rotate: 90deg;
}

.faq[open] summary::after {
  rotate: 0deg;
}

.faq summary:hover {
  color: #5c4500;
}

.faq__a {
  padding: 0 24px 22px;
}

.faq__a p {
  max-width: 700px;
  color: #45535e;
  font-size: 16.5px;
  line-height: 1.85;
}

.faq[open] .faq__a {
  animation: faq-open 0.4s var(--ease-out);
}

@keyframes faq-open {
  from { opacity: 0; translate: 0 -6px; }
}

.faq[hidden] {
  display: none;
}

.faq-empty {
  padding: 40px 24px;
  border-radius: 18px;
  border: 2px dashed rgba(30, 39, 46, 0.15);
  text-align: center;
}

.faq-empty[hidden] {
  display: none;
}

.faq-empty b {
  display: block;
  margin-bottom: 6px;
  font-size: 19px;
}

/* ============ Contact page ============ */
.contact--page {
  padding-top: calc(var(--topbar-h) + 96px);
}

.contact--page > .bg-art {
  top: var(--topbar-h);
}

.contact--page .section__head {
  max-width: 900px;
}

.emergency {
  padding: 44px 0;
  background: var(--yellow);
  color: var(--dark);
}

.emergency__inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.emergency__icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--dark);
  color: var(--yellow);
}

.emergency__icon svg {
  width: 28px;
  height: 28px;
}

.emergency__text {
  flex: 1;
}

.emergency__text h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 900;
}

.emergency__text p {
  font-size: 17px;
  font-weight: 500;
  color: rgba(30, 39, 46, 0.8);
}

.emergency .btn {
  direction: ltr;
}

.contact-more {
  padding-top: 80px;
}

.contact-more__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.more-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 26px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(30, 39, 46, 0.09);
  transition: translate 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.more-card:hover {
  translate: 0 -4px;
  box-shadow: 0 18px 40px rgba(30, 39, 46, 0.1);
}

.more-card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--dark);
  color: var(--yellow);
}

.more-card b {
  font-size: 19px;
  font-weight: 800;
}

.more-card > span:last-child {
  color: #56636d;
  font-size: 15px;
  line-height: 1.7;
}

/* ============ Pages: responsive ============ */
@media (max-width: 1080px) {
  .story {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    max-width: 760px;
  }

  .values-grid,
  .certs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .certs li:nth-child(3) {
    border-right: 0;
  }

  .certs li:nth-child(n + 3) {
    border-top: 1px solid rgba(30, 39, 46, 0.1);
  }

  .steps {
    grid-auto-flow: row;
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    max-width: 620px;
    margin: 0 auto;
  }

  .steps::before {
    top: 28px;
    bottom: 28px;
    right: 27px;
    left: auto;
    width: 2px;
    height: auto;
    background: repeating-linear-gradient(to bottom, rgba(251, 197, 49, 0.55) 0 8px, transparent 8px 16px);
  }

  .step {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 20px;
  }

  .step__num {
    grid-row: span 2;
    margin: 0;
  }

  .projects {
    grid-template-columns: minmax(0, 1fr);
    max-width: 720px;
    margin: 0 auto;
  }

  .quotes,
  .contact-more__grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 640px;
    margin: 0 auto;
  }

  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    max-width: 780px;
  }

  .faq-topics {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;
    border: 0;
    background: none;
  }

  .faq-topics a {
    padding: 9px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(30, 39, 46, 0.12);
    font-size: 14.5px;
  }

  .page-cta__inner {
    flex-wrap: wrap;
  }

  .page-cta__text {
    flex: 1 1 360px;
  }
}

@media (max-width: 640px) {
  .story__text p:not(.eyebrow) {
    font-size: 17px;
  }

  .founder {
    padding: 26px 22px;
  }

  .founder blockquote {
    font-size: 18px;
  }

  .stats-band {
    padding: 52px 0;
  }

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

  .stats li:nth-child(3) {
    border-right: 0;
  }

  .values-grid,
  .certs {
    grid-template-columns: minmax(0, 1fr);
  }

  .certs li + li {
    border-right: 0;
    border-top: 1px solid rgba(30, 39, 46, 0.1);
  }

  .filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    margin: 0 -16px 28px;
    padding: 0 16px 4px;
    scrollbar-width: none;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filter {
    flex-shrink: 0;
  }

  .project__body {
    padding: 22px 20px 22px;
  }

  .project h2 {
    font-size: 19px;
  }

  .faq-search input {
    height: 54px;
    font-size: 16px;
  }

  .faq summary {
    padding: 18px 18px 18px 52px;
    font-size: 16.5px;
  }

  .faq summary::before,
  .faq summary::after {
    left: 20px;
  }

  .faq__a {
    padding: 0 18px 20px;
  }

  .faq-group h2 {
    font-size: 22px;
  }

  .contact--page {
    padding-top: calc(var(--topbar-h) + 64px);
  }

  .emergency__inner {
    flex-direction: column;
    text-align: center;
  }

  .emergency .btn {
    width: 100%;
  }

  .page-cta {
    padding: 56px 0;
  }

  .page-cta__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .page-cta__text {
    flex: none;
  }

  .page-cta__actions,
  .page-cta__actions .btn {
    width: 100%;
  }
}

/* ============ Breadcrumbs ============ */
.crumbs {
  margin-bottom: 24px;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  list-style: none;
  color: var(--on-dark-3);
  font-size: 14px;
  font-weight: 600;
}

.crumbs li {
  display: inline-flex;
  align-items: center;
}

.crumbs li + li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin: 0 12px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  rotate: 45deg;
  opacity: 0.7;
}

.crumbs a {
  transition: color 0.2s;
}

.crumbs a:hover {
  color: var(--yellow);
}

.crumbs [aria-current="page"] {
  color: var(--on-dark-2);
}

.a-meta a {
  color: var(--on-dark-2);
  border-bottom: 1px solid rgba(251, 197, 49, 0.6);
  transition: color 0.2s;
}

.a-meta a:hover {
  color: var(--yellow);
}

/* ============ 404 ============ */
.a-hero--404 {
  min-height: 78vh;
  display: flex;
  align-items: center;
}

.a-404 {
  color: var(--yellow);
  font-size: clamp(90px, 14vw, 160px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.a-404__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.a-404__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 28px;
  font-weight: 600;
}

.a-404__links a {
  color: var(--on-dark-2);
  transition: color 0.2s;
}

.a-404__links a:hover {
  color: var(--yellow);
}
