/* ============================================================================
   ABOUT — templates/website/about.html only
   Everything shared with another page belongs in website.css instead.

   Two things on this page needed new components rather than existing ones:
   the sticky section index (nothing else on the site has one) and the
   director monogram plate (nothing else on the site has to stand in for a
   photograph that does not exist).
   ========================================================================== */

/* ---------------------------------------------------------------------------
   PAGE HEAD
   Roughly 60svh, not 100. svh rather than vh for the same reason the home
   hero uses it: on a phone, vh is measured against the browser chrome at its
   smallest, so a full-height block is cut off the moment the address bar
   returns.
   ------------------------------------------------------------------------- */
.bs-abouthead {
  position: relative;
  min-height: 60svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--bs-header-h) + clamp(30px, 4vw, 52px));
  padding-bottom: clamp(36px, 4.5vw, 60px);
}

.bs-abouthead__rule {
  height: 1px;
  width: min(380px, 100%);
  background: linear-gradient(to right, rgb(var(--bs-brand)), rgb(var(--bs-brand) / 0));
  transform-origin: left center;
}

/* The datasheet strip. Same idea as .bs-hero__facts on the home page, kept as
   its own class because it carries four facts rather than three and has to
   break to two columns before it breaks to one. */
.bs-abouthead__facts {
  display: grid;
  gap: 26px 40px;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--bs-hairline);
  padding-top: 26px;
}
@media (min-width: 560px)  { .bs-abouthead__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .bs-abouthead__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.bs-abouthead__facts dt {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgb(var(--bs-ink-3));
}
.bs-abouthead__facts dd {
  margin-top: 9px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.45;
  color: rgb(var(--bs-ink));
}

/* ---------------------------------------------------------------------------
   BODY LAYOUT — index column + content column
   ------------------------------------------------------------------------- */
.bs-about {
  padding-top: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(76px, 10vw, 168px);
}

.bs-about__grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 1024px) {
  .bs-about__grid {
    grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
    gap: clamp(44px, 6vw, 104px);
  }
}

/* Hidden outright below 1024px rather than collapsed into a second menu.
   A page that already has a header nav does not need two. */
.bs-about__aside { display: none; }
@media (min-width: 1024px) {
  .bs-about__aside {
    display: block;
    position: sticky;
    top: calc(var(--bs-header-h) + 56px);
    align-self: start;
  }
}

/* Sections are separated by a hairline instead of by whitespace alone, so the
   sticky index on the left always has something to line up against. */
.bs-about__sec {
  padding-block: clamp(56px, 6.5vw, 104px);
  border-top: 1px solid var(--bs-hairline);
}
.bs-about__sec:first-child { padding-top: 0; border-top: 0; }

/* ---------------------------------------------------------------------------
   SECTION INDEX
   website.js drives .is-active through data-spy-link / data-spy-section; all
   this file does is describe what active looks like.
   ------------------------------------------------------------------------- */
.bs-index__list {
  margin-top: 22px;
  border-left: 1px solid var(--bs-hairline);
}

.bs-index__link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0 11px 18px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: rgb(var(--bs-ink-3));
  transition: color 300ms var(--bs-ease-smooth);
}
/* The marker rides the same hairline the list hangs from, so the column reads
   as one rule with a lit segment rather than as a list with a decoration. */
.bs-index__link::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 7px;
  bottom: 7px;
  width: 1px;
  background: rgb(var(--bs-brand));
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 420ms var(--bs-ease-smooth);
}
.bs-index__link:hover,
.bs-index__link:focus-visible { color: rgb(var(--bs-ink)); }
.bs-index__link:hover::before,
.bs-index__link:focus-visible::before,
.bs-index__link.is-active::before { transform: scaleY(1); }
.bs-index__link.is-active { color: rgb(var(--bs-ink)); }

.bs-index__num {
  flex: none;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: rgb(var(--bs-ink-3));
  transition: color 300ms var(--bs-ease-smooth);
}
.bs-index__link.is-active .bs-index__num { color: rgb(var(--bs-brand-ink)); }

/* ---------------------------------------------------------------------------
   OVERVIEW PROSE
   ------------------------------------------------------------------------- */
.bs-prose { max-width: 68ch; }
.bs-prose strong { color: rgb(var(--bs-ink)); font-weight: 600; }

/* ---------------------------------------------------------------------------
   VISION PULL QUOTE
   ------------------------------------------------------------------------- */
.bs-vision__mark {
  height: 3px;
  width: 64px;
  background: rgb(var(--bs-brand));
  transform-origin: left center;
}
.bs-vision__quote { margin-top: clamp(20px, 2.6vw, 30px); }
/* A short measure is what makes it read as a quotation rather than as another
   paragraph that happens to be large. */
.bs-vision__quote p { color: rgb(var(--bs-ink)); max-width: 30ch; text-wrap: pretty; }

.bs-vision__cap {
  display: block;
  margin-top: clamp(18px, 2.2vw, 26px);
  color: rgb(var(--bs-ink-3));
}

/* ---------------------------------------------------------------------------
   MISSION — a numbered list, numbers set as data rather than as bullets
   ------------------------------------------------------------------------- */
.bs-mission { display: flex; flex-direction: column; }
.bs-mission li {
  display: grid;
  grid-template-columns: 3.2em minmax(0, 1fr);
  gap: 10px 16px;
  align-items: baseline;
  padding-block: 18px;
  border-bottom: 1px solid var(--bs-hairline);
}
.bs-mission li:first-child { border-top: 1px solid var(--bs-hairline); }
.bs-mission__num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: rgb(var(--bs-brand-ink));
}
.bs-mission__text { color: rgb(var(--bs-ink-2)); }
@media (max-width: 519px) { .bs-mission li { grid-template-columns: 1fr; gap: 6px; } }

/* ---------------------------------------------------------------------------
   DIRECTORS
   Each director is shown with his own photograph from the company brochure
   (see DIRECTOR PORTRAITS at the end of this file). The .bs-dir__plate
   monogram rules below are the earlier no-photo treatment, kept only so
   an older cached page still renders.
   ------------------------------------------------------------------------- */
.bs-dir { display: grid; grid-template-columns: 1fr; gap: clamp(26px, 3.6vw, 44px); }
@media (min-width: 720px) {
  .bs-dir {
    grid-template-columns: minmax(190px, 280px) minmax(0, 1fr);
    align-items: start;
  }
  /* The second director mirrors the first, so the pair reads as a spread
     rather than as two identical rows. */
  .bs-dir--flip { grid-template-columns: minmax(0, 1fr) minmax(190px, 280px); }
  .bs-dir--flip .bs-dir__plate,
  .bs-dir--flip .bs-dir__photo { grid-column: 2; grid-row: 1; }
  .bs-dir--flip .bs-dir__body  { grid-column: 1; grid-row: 1; }
}

.bs-dir + .bs-dir {
  margin-top: clamp(44px, 5.5vw, 80px);
  padding-top: clamp(44px, 5.5vw, 80px);
  border-top: 1px solid var(--bs-hairline);
}

/* -- the plate ------------------------------------------------------------- */
.bs-dir__plate {
  border: 1px solid var(--bs-hairline);
  border-radius: 3px;
  background: rgb(var(--bs-surface));
  box-shadow: var(--bs-shadow-card);
  overflow: hidden;
  transition: border-color 380ms var(--bs-ease-smooth), box-shadow 520ms var(--bs-ease-smooth);
}
.bs-dir__plate:hover { border-color: var(--bs-hairline-strong); box-shadow: var(--bs-shadow-lift); }

.bs-dir__platehead,
.bs-dir__platefoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* 16/13-18 matches the three other drawing-sheet frames on this site
     (home.css .bs-drawing, projects.css .bs-plant, contact.css .bs-plan).
     They are meant to read as the same object; this copy had drifted. */
  gap: 16px;
  padding: 13px 18px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgb(var(--bs-ink-3));
}
.bs-dir__platehead { border-bottom: 1px solid var(--bs-hairline); }
.bs-dir__platefoot { border-top: 1px solid var(--bs-hairline); background: rgb(var(--bs-surface-2)); }
.bs-dir__platetag { color: rgb(var(--bs-brand-ink)); }
.bs-dir__platescale { color: rgb(var(--bs-ink)); letter-spacing: 0.1em; }

.bs-dir__svg {
  width: 100%;
  height: auto;
  display: block;
  padding: 8px 6px;
  color: rgb(var(--bs-ink-3));
}

/* The frame lines unroll their own dash, exactly like the bridge: about.js
   sets pathLength="1" on each one so a single dasharray value covers strokes
   of very different real lengths. */
.bs-dir__frame .ln {
  transition: stroke-dashoffset 900ms var(--bs-ease-smooth);
  transition-delay: calc(var(--o, 0) * 1ms);
}
html.has-js .bs-dir__frame .ln { stroke-dasharray: 1; stroke-dashoffset: 1; }
html.has-js .bs-dir__plate.is-drawn .ln { stroke-dashoffset: 0; }

.bs-dir__frame .ln--faint { opacity: 0.5; }
.bs-dir__frame .ln--dim { stroke: rgb(var(--bs-brand-ink)); }

/* The initials.
   SVG <text> has no pathLength, and getTotalLength() does not exist for it,
   so the dash length cannot be measured — it is declared here instead. 1600
   is comfortably longer than the outline of any single glyph at this size,
   which is the condition that matters: shorter than the longest glyph and
   its tail would already be visible on the first frame. Erring long only
   means a glyph finishes drawing a little before the transition ends, and
   the two letters finishing fractionally apart is what makes it read as ink
   rather than as a wipe. */
.bs-dir__initials {
  --bs-mono-len: 1600;
  font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  font-weight: 700;
  font-size: 118px;
  letter-spacing: -0.02em;
  fill: none;
  stroke: rgb(var(--bs-ink) / 0.72);
  stroke-width: 1.6;
  stroke-linejoin: round;
  transition: stroke-dashoffset 1500ms var(--bs-ease-smooth) 240ms,
              stroke 340ms var(--bs-ease-smooth);
}
html.has-js .bs-dir__initials {
  stroke-dasharray: var(--bs-mono-len);
  stroke-dashoffset: var(--bs-mono-len);
}
html.has-js .bs-dir__plate.is-drawn .bs-dir__initials { stroke-dashoffset: 0; }
.bs-dir__plate:hover .bs-dir__initials { stroke: rgb(var(--bs-brand-ink)); }

/* -- the text beside it ---------------------------------------------------- */
.bs-dir__cred { color: rgb(var(--bs-brand-ink)); letter-spacing: 0.12em; }

@media (prefers-reduced-motion: reduce) {
  .bs-dir__frame .ln,
  html.has-js .bs-dir__frame .ln { stroke-dashoffset: 0 !important; transition: none !important; }
  .bs-dir__initials,
  html.has-js .bs-dir__initials { stroke-dashoffset: 0 !important; transition: none !important; }
}

/* ---------------------------------------------------------------------------
   WHY CHOOSE US
   Hairlines between the cells only. A border on every cell would double up at
   the grid's own edges and turn four reasons into a table.
   ------------------------------------------------------------------------- */
.bs-reasons {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--bs-hairline);
}
.bs-reasons__cell {
  padding-block: clamp(26px, 3.2vw, 40px);
  border-bottom: 1px solid var(--bs-hairline);
}
@media (min-width: 720px) {
  .bs-reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bs-reasons__cell { padding-right: clamp(20px, 2.6vw, 36px); }
  .bs-reasons__cell:nth-child(even) {
    border-left: 1px solid var(--bs-hairline);
    padding-left: clamp(20px, 2.6vw, 36px);
    padding-right: 0;
  }
}

/* ---------------------------------------------------------------------------
   QUALITY ACCORDION
   The component itself is in website.css; this only sets the two things that
   are specific to a five-row compliance list.
   ------------------------------------------------------------------------- */
.bs-quality__idx { flex: none; width: 2.6em; }
.bs-quality__title { display: block; min-width: 0; }
.bs-quality__body { color: rgb(var(--bs-ink-2)); }

/* An item opened from a deep link is worth marking for a beat, so the
   visitor can see which of the five the link actually pointed at. */
.bs-acc__item.is-linked > h3 > .bs-acc__btn > .bs-quality__idx { color: rgb(var(--bs-brand-ink)); }

/* ---------------------------------------------------------------------------
   DIRECTOR PORTRAITS
   The real photographs, composed the way the brochure sets them — head
   rising above the brand disc (.bs-portrait lives in website.css; the home
   page uses it too).
   ------------------------------------------------------------------------- */
.bs-dir__photo { margin: 0; }
.bs-dir__photo .bs-portrait { max-width: 300px; margin-inline: auto; }
@media (max-width: 719px) { .bs-dir__photo .bs-portrait { max-width: 240px; margin-inline: 0; } }

/* ---------------------------------------------------------------------------
   QUALITY — the five points beside a site photograph
   ------------------------------------------------------------------------- */
.bs-qsplit { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .bs-qsplit { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; } }
