/* Quem somos (/quem-somos/). Loaded only on that page.
   Reuses tokens and classes from site.css (.section-index, .display-title, .text-link, .button,
   .pattern-divider); everything new is prefixed qs-. */

.qs {
  --qs-font: inherit;
  --gutter: 80px;
  --sec: 120px;
  --body: var(--fs-lg);
  --pad-x: max(var(--gutter), calc((100vw - var(--shell)) / 2));
  --pattern: url("img/bg-pattern.webp");
  --radius: 8px;
  position: relative;
  font-family: var(--qs-font);
}

@media (max-width: 1100px) {
  .qs {
    --gutter: 48px;
  }
}

@media (max-width: 840px) {
  .qs {
    --gutter: clamp(18px, 4vw, 40px);
    --sec: 72px;
    --body: var(--fs-base);
  }
}

.qs :where(h1, h2, h3, p, figure, ul) {
  margin: 0;
}

.qs :where(ul) {
  padding: 0;
  list-style: none;
}

.qs :focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 4px;
}

.qs-dark :focus-visible {
  outline-color: var(--peach);
}

/* Structure */
.qs-sec {
  position: relative;
  padding: var(--sec) var(--pad-x);
}

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

.qs-dark {
  background: var(--indigo);
  color: var(--white);
}

.qs-dark .section-index {
  color: var(--blue-pale);
}

.qs .section-index {
  margin-bottom: 40px;
}

/* Titles */
.qs .qs-h2 {
  font-size: var(--fs-h2);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.qs .qs-h2--lg {
  font-size: var(--fs-h2);
}

.qs .qs-h2 strong {
  font-weight: 650;
}

.qs-dark .qs-h2 {
  color: var(--white);
}

.qs-dark .qs-h2 strong {
  color: var(--blue-pale);
}

.qs-copy p {
  max-width: 540px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: var(--body);
  line-height: 1.5;
}

.qs-copy p:last-child {
  margin-bottom: 0;
}

.qs-dark .qs-copy p {
  color: rgba(255, 255, 255, 0.84);
}

.qs-dark .qs-tbd {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
}

/* Image placeholders and real photos */
.qs-ph {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--blue-pale);
  isolation: isolate;
}

.qs-ph::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--pattern) center / cover no-repeat;
  opacity: 0.2;
}

.qs-ph--paper {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.qs-ph--paper::before {
  opacity: 0.14;
}

.qs-ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qs-ph__cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 4px 8px;
  border-radius: 3px;
  background: rgba(250, 250, 255, 0.92);
  color: var(--indigo);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.qs-imgcap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
  color: var(--blue-dark);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.qs-imgcap::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

/* Hero: full-width photo on light blue, no veil. The site header is fixed, so the hero
   reserves its height. */
.qs-hero {
  position: relative;
  min-height: calc(510px + var(--header-height));
  padding-top: var(--header-height);
  overflow: hidden;
  background: var(--blue-pale);
  color: var(--indigo);
}

.qs-hero__in {
  position: relative;
  z-index: 2;
  min-height: 510px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(40px, 5vw, 72px) var(--pad-x) 40px;
}

.qs-hero__img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.qs-hero .section-index {
  margin-bottom: var(--eyebrow-gap);
  color: var(--blue-dark);
}

.qs-h1 {
  max-width: 688px;
  margin-bottom: 28px;
  color: var(--indigo);
  font-size: var(--fs-h1);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.qs-h1 strong {
  color: var(--blue-dark);
  font-weight: 650;
}

.qs-hero__sub {
  max-width: 580px;
  color: var(--indigo);
  font-size: var(--fs-lg);
  line-height: 1.6;
}

.qs-hero__link {
  display: none;
  margin-top: 20px;
  padding-bottom: 7px;
  color: var(--indigo);
}

.qs-hero__link:hover {
  color: var(--blue-dark);
}

.qs-hero__foot {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

.qs-hero__foot svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--indigo);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The bottom-right corner sits on the dark clothing in the photo, so the signature stays left. */
.qs-tagline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  color: var(--indigo);
  font-size: var(--fs-sm);
  font-weight: 650;
  line-height: 1.4;
}

.qs-tagline span {
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 400;
  line-height: 1.4;
}

/* Manifesto */
.qs-2a__l {
  grid-column: 1 / span 5;
}

.qs-2a__r {
  grid-column: 7 / span 6;
}

.qs-2a__fig {
  margin-top: 56px;
}

.qs-ph--manifesto {
  height: 420px;
  box-shadow: inset 0 0 0 1px var(--line-strong), -24px 24px 0 rgba(189, 208, 255, 0.4);
  overflow: visible;
}

.qs-ph--manifesto img {
  border-radius: var(--radius);
}

/* Purpose: light blue so it never touches the indigo manufacturing block */
.qs-purpose {
  position: relative;
  min-height: 480px;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--blue-pale);
  color: var(--indigo);
}

.qs-purpose::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pattern) center / cover no-repeat;
  opacity: 0.06;
  pointer-events: none;
}

.qs-purpose .qs-grid {
  position: relative;
  width: 100%;
}

.qs-purpose .section-index {
  color: var(--indigo);
}

.qs-purpose__in {
  grid-column: 1 / span 8;
}

.qs-purpose__text {
  color: var(--indigo);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.qs-purpose__text span {
  color: var(--blue-dark);
}

/* Manufacturing and quality */
.qs-fab__l {
  grid-column: 1 / span 5;
}

.qs-fab__r {
  grid-column: 6 / span 7;
  padding-left: 48px;
}

.qs-ph--fab {
  height: 650px;
  box-shadow: inset 0 0 0 1px var(--line-strong), 24px 24px 0 var(--blue);
  overflow: visible;
}

.qs-ph--fab img {
  border-radius: var(--radius);
}

.qs-fab__copy {
  margin-top: 28px;
}

.qs-fab__blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 32px;
  margin-top: 48px;
}

.qs-block {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.qs-block__n {
  margin-bottom: 8px;
  color: var(--blue-pale);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.16em;
}

.qs-block h3 {
  margin-bottom: 10px;
  color: var(--white);
  font-size: var(--fs-xl);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.qs-block p:not(.qs-block__n) {
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--fs-base);
  line-height: 1.55;
}

.qs-seals {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.qs-seal {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.45;
}

.qs-seal .qs-tbd {
  display: block;
  margin-top: 6px;
  font-weight: 500;
}

.qs-ic {
  flex: none;
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--blue-pale);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qs-ic--peach {
  stroke: var(--peach);
}

/* Values */
.qs-val__head {
  margin-bottom: 56px;
}

.qs-val__list {
  border-top: 1px solid var(--line-strong);
}

.qs-val__row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: center;
  min-height: 160px;
  border-bottom: 1px solid var(--line-strong);
}

.qs-val__row::before {
  content: "";
  position: absolute;
  inset: 0 -16px;
  background: transparent;
  transition: background 0.3s var(--ease);
}

.qs-val__row:hover::before {
  background: rgba(189, 208, 255, 0.4);
}

.qs-val__row:hover .qs-val__name {
  color: var(--blue);
}

.qs-val__name {
  position: relative;
  grid-column: 1 / span 6;
  color: var(--indigo);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.045em;
  transition: color 0.3s ease;
}

.qs-val__text {
  position: relative;
  grid-column: 7 / span 5;
  max-width: 480px;
  color: var(--muted);
  font-size: var(--fs-base);
  line-height: 1.55;
}

/* Team */
.qs-team {
  background: rgba(189, 208, 255, 0.3);
}

.qs-team__l {
  grid-column: 1 / span 4;
}

.qs-team__r {
  grid-column: 5 / span 8;
  min-width: 0;
}

.qs-team .qs-h2 {
  color: var(--indigo);
}

.qs-team .qs-h2 strong {
  color: var(--blue-dark);
}

.qs-team__lead {
  margin-top: 24px;
  color: var(--muted);
  font-size: var(--fs-base);
  line-height: 1.55;
}

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

.qs-card__ph {
  aspect-ratio: 4 / 5;
  margin-bottom: 18px;
}

.qs-card__name {
  color: var(--indigo);
  font-size: var(--fs-lg);
  font-weight: 650;
  line-height: 1.3;
}

.qs-card__role,
.qs-card__reg {
  margin-top: 6px;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.4;
}

.qs-card__reg {
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1.5;
}

.qs-card__quote {
  margin-top: 10px;
  color: var(--indigo);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.qs-legal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: var(--fs-xs);
  line-height: 1.6;
}

.qs-arrows {
  display: none;
  gap: 12px;
  margin-top: 20px;
}

.qs-arrow {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(31, 22, 70, 0.18);
  border-radius: 50%;
  background: transparent;
  color: var(--indigo);
  font-size: 17.6px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.qs-arrow:hover {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
  color: var(--white);
}

.qs-arrow[aria-disabled="true"] {
  opacity: 0.35;
  pointer-events: none;
}

/* Tablet */
@media (max-width: 1100px) {
  .qs-seals {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .qs-cards {
    gap: 16px;
  }
}

/* Mobile */
@media (max-width: 840px) {
  .qs .section-index {
    margin-bottom: 24px;
  }

  .qs-grid {
    display: block;
  }

  .qs-hero {
    min-height: 0;
  }

  .qs-hero__in {
    min-height: 0;
    display: block;
    padding-bottom: 32px;
  }

  .qs-hero__img {
    position: static;
    z-index: auto;
    width: calc(100% + var(--gutter) * 2);
    max-width: none;
    height: 300px;
    margin: 16px calc(var(--gutter) * -1) 28px;
    object-position: 82% center;
  }

  .qs-h1 {
    margin-bottom: 18px;
  }

  .qs-hero__link {
    display: inline-flex;
    margin-top: 20px;
  }

  .qs-hero__foot {
    justify-content: space-between;
    margin-top: 32px;
  }

  .qs-tagline {
    align-items: flex-end;
  }

  .qs-2a__r {
    margin-top: 28px;
  }

  .qs-2a__fig {
    margin-top: 40px;
  }

  .qs-ph--manifesto {
    height: 300px;
    box-shadow: inset 0 0 0 1px var(--line-strong), -14px 14px 0 rgba(189, 208, 255, 0.4);
  }

  .qs-imgcap {
    margin-top: 28px;
  }

  .qs-purpose {
    min-height: 0;
    padding: var(--sec) var(--pad-x);
  }

  .qs-fab__l {
    margin-bottom: 40px;
  }

  .qs-ph--fab {
    height: 440px;
    box-shadow: inset 0 0 0 1px var(--line-strong), 14px 14px 0 var(--blue);
  }

  .qs-fab__r {
    padding-left: 0;
  }

  .qs-fab__copy {
    margin-top: 20px;
  }

  .qs-fab__blocks {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 40px;
  }

  .qs-seals {
    grid-template-columns: 1fr 1fr;
    gap: 28px 16px;
    margin-top: 48px;
  }

  .qs-seal {
    flex-direction: column;
    gap: 10px;
  }

  .qs-val__head {
    margin-bottom: 40px;
  }

  .qs-val__row {
    display: block;
    min-height: 0;
    padding: 28px 0;
  }

  .qs-val__row::before {
    display: none;
  }

  .qs-val__name {
    font-size: var(--fs-h2);
  }

  .qs-val__text {
    margin-top: 12px;
  }

  .qs-team__lead {
    margin-top: 16px;
  }

  .qs-team__r {
    margin-top: 32px;
  }

  .qs-cards {
    display: flex;
    gap: 16px;
    margin-right: calc(var(--gutter) * -1);
    padding-right: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .qs-cards::-webkit-scrollbar {
    display: none;
  }

  .qs-card {
    flex: 0 0 264px;
    scroll-snap-align: start;
  }

  .js .qs-arrows:not([hidden]) {
    display: flex;
  }

  .qs-legal {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }
}

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