/* ============================================================================
   BUILDSMITH INFRAPROJECTS — public website design system
   ----------------------------------------------------------------------------
   Loaded by every page in templates/website/. Page-specific rules live in
   their own file next to this one (home.css, about.css, projects.css,
   contact.css) so a change to one page can never silently move another.

   Load order matters and is fixed in templates/website/base.html:

       1. vendor/css/landing-fonts.css     self-hosted Space Grotesk + JetBrains Mono
       2. vendor/css/inter-fonts.css       self-hosted Inter
       3. css/frontend/website.css         <- this file: tokens, components, motion
       4. vendor/css/tailwind-website.css  Tailwind preflight + utilities
       5. css/frontend/<page>.css          the one page

   The components go BEFORE the utilities on purpose. Both are single-class
   selectors, so whichever file loads last wins every tie — and a utility
   losing to a component is always the wrong answer. See the note in
   base.html for the bug that established this.

   Tailwind is built from tailwind.website.config.js, whose colours all point
   at the CSS variables declared here. That is why a single utility such as
   `bg-surface` or `text-ink/70` is correct in light AND dark mode: the theme
   swap below re-points the variables, and nothing in the markup changes.

   DESIGN LANGUAGE — "engineered precision".
   Flat surfaces, hairline rules, one accent colour, oversized editorial
   display type, and motion that is always transform/opacity so it stays on
   the compositor. Deliberately NO background photography, wallpaper
   gradients or noise textures: depth comes from type, rhythm and rules.

   The hairlines are the ones that SEPARATE things — section rules, card
   borders, the lines between spec rows. There is no page-wide grid overlay;
   one was tried and removed (see .bs-page below for why).
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1. TOKENS
   Colours are stored as space-separated RGB triplets, not hex, because
   Tailwind consumes them as `rgb(var(--bs-ink) / <alpha-value>)`. Writing
   `#14161A` here would work for plain CSS and break every opacity utility.
   ------------------------------------------------------------------------- */
:root {
  /* Brand — identical in both themes. #F58634 is the orange of the
     company's own logo artwork (sampled from the official logo file), so the
     site's orange and the logo's orange are the same colour. Shifting it per
     theme would leave the logo, which cannot shift, looking wrong next to
     everything around it. */
  --bs-brand: 245 134 52;
  --bs-brand-hot: 255 158 82;
  --bs-brand-deep: 196 98 20;
  /* THE BRAND AS TEXT, WHICH IS NOT THE SAME COLOUR AS THE BRAND AS A FILL.
     #F58634 on this near-white page measures about 2.5:1 — it fails WCAG AA for
     text (4.5:1) and even the 3:1 floor for interface lines and focus rings.
     That is not a small problem: it is the colour of every hover state, every
     active accordion row, the mono unit beside each statistic, the dimension
     lines in the drawings and the focus outline.

     So fills keep --bs-brand and stay exactly the company's orange, while
     anything that has to be READ or FOLLOWED uses --bs-brand-ink: the same
     hue pushed down to 4.83:1. Side by side they read as one colour family,
     which is what a deeper ink for small text has always been.

     In dark mode the problem does not exist — #F58634 on #0B0C0E is about 7.6:1 —
     so there the two are the same value. */
  --bs-brand-ink: 178 84 9;
  /* The halo behind the pulsing eyebrow dot. Follows the brand except on
     the orange band, which re-points it below. */
  --bs-ping: var(--bs-brand);

  /* Light theme — warm paper rather than pure white. Pure #FFF beside a
     saturated orange reads clinical and makes the accent shout. */
  --bs-bg: 251 250 248;
  --bs-bg-alt: 243 241 237;
  --bs-surface: 255 255 255;
  --bs-surface-2: 247 245 241;
  --bs-ink: 20 22 26;
  --bs-ink-2: 61 67 74;
  /* 101 108 117 rather than a lighter grey: this is the colour of every
     eyebrow and mono label on the site, at 11px, and it needs 4.5:1 against
     the page. The lighter grey it replaced measured 4.60 — passing, but with
     nothing left for a slightly off-white background. This measures 5.09. */
  --bs-ink-3: 101 108 117;
  --bs-line: 20 22 26;

  --bs-hairline: rgb(var(--bs-line) / 0.11);
  --bs-hairline-strong: rgb(var(--bs-line) / 0.2);
  --bs-grid-line: rgb(var(--bs-line) / 0.045);
  --bs-shadow-card: 0 1px 2px rgb(var(--bs-line) / 0.04), 0 12px 32px -12px rgb(var(--bs-line) / 0.1);
  --bs-shadow-lift: 0 2px 4px rgb(var(--bs-line) / 0.05), 0 28px 60px -20px rgb(var(--bs-line) / 0.18);
  /* What sits ON the brand orange — and it is dark, in BOTH themes.
     The brochure sets white on these orange bars, but white on #F58634
     measures 2.59:1: it fails WCAG AA even at the relaxed large-text
     threshold of 3:1, and it is the colour of the primary button label and
     of every word in the closing band. Near-black on the same orange
     measures 7.03:1. The orange itself is untouched, so the brand is
     intact; only the text on top of it changed, and it reads better. */
  --bs-on-brand: 20 22 26;

  /* Rhythm */
  --bs-gutter: clamp(20px, 5vw, 72px);
  --bs-shell: 1400px;
  --bs-header-h: 76px;
  --bs-section-y: clamp(76px, 10vw, 168px);

  /* One easing vocabulary. `smooth` for entrances, `power` for state
     changes, `spring` only where something should feel physical. */
  --bs-ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --bs-ease-power: cubic-bezier(0.65, 0, 0.35, 1);
  --bs-ease-spring: cubic-bezier(0.34, 1.4, 0.4, 1);

  color-scheme: light;
}

html.dark {
  /* Dark theme — graphite, not black. True black under an orange accent
     blooms on OLED and swallows every hairline. */
  --bs-bg: 11 12 14;
  --bs-bg-alt: 17 19 22;
  --bs-surface: 21 23 27;
  --bs-surface-2: 27 30 35;
  --bs-ink: 242 241 238;
  --bs-ink-2: 183 188 194;
  --bs-ink-3: 132 139 147;
  --bs-line: 242 241 238;

  /* No contrast problem on graphite: #F58634 here is about 7.6:1. */
  --bs-brand-ink: var(--bs-brand);

  --bs-hairline: rgb(var(--bs-line) / 0.13);
  --bs-hairline-strong: rgb(var(--bs-line) / 0.24);
  --bs-grid-line: rgb(var(--bs-line) / 0.05);
  --bs-shadow-card: 0 1px 2px rgb(0 0 0 / 0.4), 0 14px 34px -14px rgb(0 0 0 / 0.6);
  --bs-shadow-lift: 0 2px 6px rgb(0 0 0 / 0.45), 0 30px 64px -22px rgb(0 0 0 / 0.75);
  --bs-on-brand: 12 13 15;

  color-scheme: dark;
}

/* ---------------------------------------------------------------------------
   2. BASE
   ------------------------------------------------------------------------- */
html {
  scroll-padding-top: calc(var(--bs-header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

/* Smooth scrolling is opt-in from JS (website.js adds .smooth-scroll once it
   has confirmed the visitor has not asked for reduced motion). Setting it
   unconditionally here would override that preference before JS ever ran. */
html.smooth-scroll { scroll-behavior: smooth; }

body.bs-body {
  background-color: rgb(var(--bs-bg));
  color: rgb(var(--bs-ink));
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
  overflow-x: hidden;
  /* Only the two properties that actually change page-wide. Transitioning
     `all` here would drag every hover state on the page into a 400ms lag. */
  transition: background-color 420ms var(--bs-ease-smooth), color 420ms var(--bs-ease-smooth);
}

/* While the theme swap runs, suppress per-element colour transitions so
   forty cards do not each animate their own border a beat behind the page. */
html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after {
  transition: none !important;
}

::selection { background: rgb(var(--bs-brand)); color: rgb(var(--bs-on-brand)); }

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid rgb(var(--bs-brand-ink));
  outline-offset: 3px;
  border-radius: 2px;
}

/* Keyboard users get a way past the navigation. */
.bs-skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 12px 20px;
  background: rgb(var(--bs-brand));
  color: rgb(var(--bs-on-brand));
  font-weight: 600;
  font-size: 14px;
  border-radius: 4px;
  transition: top 220ms var(--bs-ease-smooth);
}
.bs-skip:focus { top: 16px; }

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

/* Scrollbar — themed, and thin rather than hidden. Hiding it removes the
   only cue on a long page that there is more below. */
* { scrollbar-width: thin; scrollbar-color: rgb(var(--bs-ink) / 0.28) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgb(var(--bs-ink) / 0.22);
  border-radius: 99px;
  border: 3px solid rgb(var(--bs-bg));
}
::-webkit-scrollbar-thumb:hover { background: rgb(var(--bs-ink) / 0.36); }

/* ---------------------------------------------------------------------------
   3. LAYOUT
   ------------------------------------------------------------------------- */
.bs-shell {
  width: 100%;
  max-width: var(--bs-shell);
  margin-inline: auto;
  padding-inline: var(--bs-gutter);
}

.bs-section { position: relative; padding-block: var(--bs-section-y); }
.bs-section--tight { padding-block: clamp(56px, 7vw, 108px); }
.bs-section--flush-top { padding-top: 0; }

/* REMOVED: the two full-height vertical hairlines that used to run down the
   page at the content gutter.

   They were meant as an engineering-drawing signature and read as a defect
   instead, because they could not be aligned. The left rule sat at exactly
   the gutter — which is exactly where the logo and every headline start — so
   it ran flush against the letterforms. The right one was worse: the element
   was position:fixed, so it measured from the VIEWPORT edge while the
   content measured from the DOCUMENT edge, leaving it off by the width of
   the scrollbar. One line hugging the text and one floating in the margin is
   not a grid; it is two stray lines. The page is cleaner without them. */
.bs-page { position: relative; z-index: 1; }

/* ---------------------------------------------------------------------------
   4. TYPE SCALE
   Fluid, and capped so a 4K monitor does not get 140px section headings.
   Optical letter-spacing tightens as size grows, which is the difference
   between "big text" and typography.
   ------------------------------------------------------------------------- */
/* The ceiling on .t-mega is not a taste decision. The longest word on the
   site is "infrastructure." and it sits in a seven-column measure; at
   8.8vw it rendered 741px wide inside a 650px column and was silently
   clipped by body{overflow-x:hidden}. 6.6vw keeps the longest word inside
   the narrowest column this heading is ever used in, at every breakpoint.
   Re-check that if the hero copy ever changes. */
.t-mega {
  font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 6.6vw, 96px);
  line-height: 0.94;
  letter-spacing: -0.035em;
}
.t-h1 {
  font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(38px, 6.2vw, 84px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.t-h2 {
  font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.t-h3 {
  font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(21px, 2.3vw, 30px);
  line-height: 1.18;
  letter-spacing: -0.018em;
}
.t-h4 {
  font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.t-lead {
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.62;
  color: rgb(var(--bs-ink-2));
  font-weight: 400;
}
.t-body { font-size: 16px; line-height: 1.68; color: rgb(var(--bs-ink-2)); }
.t-small { font-size: 14px; line-height: 1.6; color: rgb(var(--bs-ink-3)); }

.t-mono {
  font-family: 'JetBrains Mono', ui-monospace, 'Courier New', monospace;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.t-num {
  font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.tnum { font-variant-numeric: tabular-nums; }

.t-balance { text-wrap: balance; }
.t-pretty { text-wrap: pretty; }

/* ---------------------------------------------------------------------------
   5. COMPONENTS
   ------------------------------------------------------------------------- */

/* -- Eyebrow: the small mono label that opens every section. The dot is a
      live element rather than decoration — it is the one mark on the page
      that never stops, which reads as "this company is running". --------- */
.bs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgb(var(--bs-ink-3));
}
.bs-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(var(--bs-brand));
  /* The halo is a token so the orange band can re-point it. On the band the
     dot sits ON --bs-brand, and a halo in --bs-brand is a halo the same
     colour as its ground. */
  box-shadow: 0 0 0 0 rgb(var(--bs-ping) / 0.55);
  /* Paused until the reveal engine says the eyebrow is on screen. This is an
     infinite box-shadow animation, which cannot be composited — it repaints
     on the main thread every frame, forever. Eight of them were running on
     the About page before the visitor had scrolled at all. */
  animation: bs-ping 2600ms var(--bs-ease-smooth) infinite;
  animation-play-state: paused;
  flex: none;
}
.bs-eyebrow.is-in::before,
.is-in .bs-eyebrow::before { animation-play-state: running; }
.bs-eyebrow--plain::before { animation: none; }
@keyframes bs-ping {
  0%   { box-shadow: 0 0 0 0 rgb(var(--bs-ping) / 0.5); }
  70%  { box-shadow: 0 0 0 9px rgb(var(--bs-ping) / 0); }
  100% { box-shadow: 0 0 0 0 rgb(var(--bs-ping) / 0); }
}

/* -- Section head ---------------------------------------------------------- */
.bs-sechead { display: flex; flex-direction: column; gap: 20px; }
.bs-sechead__rule {
  height: 1px;
  background: var(--bs-hairline-strong);
  transform-origin: left center;
}

/* -- Hairline rule --------------------------------------------------------- */
.bs-rule { height: 1px; background: var(--bs-hairline); border: 0; }
.bs-rule--strong { background: var(--bs-hairline-strong); }
.bs-rule--brand { background: rgb(var(--bs-brand)); }

/* -- Buttons --------------------------------------------------------------- */
.bs-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 28px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  transition: color 320ms var(--bs-ease-smooth),
              border-color 320ms var(--bs-ease-smooth),
              background-color 320ms var(--bs-ease-smooth),
              transform 420ms var(--bs-ease-smooth);
}
/* The fill sweep. A pseudo-element scaled on X beats animating
   background-position: it never repaints, and it reverses cleanly on
   pointer-out by flipping transform-origin. */
.bs-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 480ms var(--bs-ease-smooth);
}
.bs-btn:hover::before,
.bs-btn:focus-visible::before { transform: scaleX(1); transform-origin: left center; }
.bs-btn__label { position: relative; z-index: 1; }
.bs-btn__icon {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform 420ms var(--bs-ease-smooth);
}
.bs-btn:hover .bs-btn__icon { transform: translateX(4px); }
.bs-btn:active { transform: translateY(1px); }

.bs-btn--primary {
  background: rgb(var(--bs-brand));
  color: rgb(var(--bs-on-brand));
  border-color: rgb(var(--bs-brand-ink));
}
.bs-btn--primary::before { background: rgb(var(--bs-ink)); }
.bs-btn--primary:hover,
.bs-btn--primary:focus-visible { color: rgb(var(--bs-bg)); border-color: rgb(var(--bs-ink)); }

.bs-btn--ghost {
  background: transparent;
  color: rgb(var(--bs-ink));
  border-color: var(--bs-hairline-strong);
}
.bs-btn--ghost::before { background: rgb(var(--bs-ink)); }
.bs-btn--ghost:hover,
.bs-btn--ghost:focus-visible { color: rgb(var(--bs-bg)); border-color: rgb(var(--bs-ink)); }

.bs-btn--onbrand {
  background: transparent;
  color: rgb(var(--bs-on-brand));
  border-color: rgb(var(--bs-on-brand) / 0.4);
}
.bs-btn--onbrand::before { background: rgb(var(--bs-on-brand)); }
.bs-btn--onbrand:hover,
.bs-btn--onbrand:focus-visible { color: rgb(var(--bs-brand-ink)); border-color: rgb(var(--bs-on-brand)); }

.bs-btn--sm { padding: 12px 20px; font-size: 13px; }

/* -- Text link with a sweeping underline ---------------------------------- */
.bs-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgb(var(--bs-ink));
  font-weight: 600;
  padding-bottom: 3px;
  transition: color 280ms var(--bs-ease-smooth);
}
.bs-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 420ms var(--bs-ease-smooth);
}
.bs-link:hover { color: rgb(var(--bs-brand-ink)); }
.bs-link:hover::after,
.bs-link:focus-visible::after { transform: scaleX(1); transform-origin: left center; }
.bs-link--brand { color: rgb(var(--bs-brand-ink)); }

/* -- Card ------------------------------------------------------------------
   The corner ticks are the signature: four 10px L-marks that grow out of the
   corners on hover, the way a registration mark sits on a drawing sheet. -- */
.bs-card {
  position: relative;
  background: rgb(var(--bs-surface));
  border: 1px solid var(--bs-hairline);
  border-radius: 3px;
  padding: clamp(24px, 3vw, 40px);
  transition: transform 520ms var(--bs-ease-smooth),
              border-color 380ms var(--bs-ease-smooth),
              box-shadow 520ms var(--bs-ease-smooth),
              background-color 380ms var(--bs-ease-smooth);
}
.bs-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: -1px;
  height: 2px;
  width: 100%;
  background: rgb(var(--bs-brand));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 520ms var(--bs-ease-smooth);
}
.bs-card:hover,
.bs-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--bs-hairline-strong);
  box-shadow: var(--bs-shadow-lift);
}
.bs-card:hover::after,
.bs-card:focus-within::after { transform: scaleX(1); }
.bs-card--flat { background: transparent; box-shadow: none; }
.bs-card--flat:hover { box-shadow: none; }

.bs-ticks { position: absolute; inset: 10px; pointer-events: none; }
.bs-ticks span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: rgb(var(--bs-brand-ink));
  border-style: solid;
  border-width: 0;
  opacity: 0;
  transition: opacity 380ms var(--bs-ease-smooth), transform 520ms var(--bs-ease-smooth);
}
.bs-ticks span:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; transform: translate(4px, 4px); }
.bs-ticks span:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; transform: translate(-4px, 4px); }
.bs-ticks span:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; transform: translate(4px, -4px); }
.bs-ticks span:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; transform: translate(-4px, -4px); }
.bs-card:hover .bs-ticks span,
.bs-card:focus-within .bs-ticks span { opacity: 1; transform: translate(0, 0); }

/* -- Index number beside a card or list row -------------------------------- */
.bs-idx {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: rgb(var(--bs-ink-3));
}

/* -- Stat ------------------------------------------------------------------ */
.bs-stat__value {
  font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  color: rgb(var(--bs-ink));
}
.bs-stat__unit { color: rgb(var(--bs-brand-ink)); }
.bs-stat__label {
  margin-top: 14px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(var(--bs-ink-3));
}

/* -- Spec row: label left, value right, hairline between. The datasheet
      pattern — statutory details, project specs, contact rows. ----------- */
.bs-spec { border-top: 1px solid var(--bs-hairline); }
.bs-spec__row {
  display: grid;
  /* minmax(0, 1fr), not 1fr: the value track's automatic min-content floor
     let a 21-character CIN push the row wider than the details column
     between 1024px and ~1180px. overflow-wrap on the value is the second
     line of defence for any identifier longer than the one we have. */
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
  gap: 16px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--bs-hairline);
  align-items: baseline;
}
.bs-spec__key {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(var(--bs-ink-3));
}
.bs-spec__val { color: rgb(var(--bs-ink)); font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 519px) {
  .bs-spec__row { grid-template-columns: 1fr; gap: 6px; }
}

/* -- Pill / chip ----------------------------------------------------------- */
.bs-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--bs-hairline-strong);
  border-radius: 99px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(var(--bs-ink-2));
  background: rgb(var(--bs-surface) / 0.6);
  transition: color 280ms var(--bs-ease-smooth), border-color 280ms var(--bs-ease-smooth),
              background-color 280ms var(--bs-ease-smooth);
}
.bs-pill--brand { color: rgb(var(--bs-brand-ink)); border-color: rgb(var(--bs-brand-ink) / 0.4); background: rgb(var(--bs-brand) / 0.07); }

/* -- Marquee ----------------------------------------------------------------
   Two identical tracks side by side, each translated by exactly -100% of its
   own width. Because both halves are identical, the reset lands on a
   pixel-identical frame and the loop has no visible seam. ---------------- */
.bs-marquee {
  position: relative;
  display: flex;
  overflow: hidden;
  user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.bs-marquee__track {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--bs-marquee-gap, 56px);
  padding-right: var(--bs-marquee-gap, 56px);
  min-width: 100%;
  animation: bs-marquee var(--bs-marquee-speed, 34s) linear infinite;
  will-change: transform;
}
.bs-marquee--reverse .bs-marquee__track { animation-direction: reverse; }
.bs-marquee:hover .bs-marquee__track { animation-play-state: paused; }
@keyframes bs-marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-100%, 0, 0); }
}
.bs-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(20px, 2.6vw, 34px);
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: rgb(var(--bs-ink));
}
.bs-marquee__dot { width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--bs-brand)); flex: none; }

/* -- Brand band: the one full-bleed orange block a page is allowed --------
   Inside the band the ground is no longer the near-white page, so the reason
   --bs-brand-ink exists does not apply: here orange only ever appears on the
   band's own dark fill (the .bs-btn--onbrand hover), where the BRIGHT orange
   is the one that reads — 7.03:1 against it, against the deep ink's 3.62.
   Custom properties inherit, so pointing the token back at --bs-brand on the
   band corrects everything inside it in one line. */
.bs-band { background: rgb(var(--bs-brand)); color: rgb(var(--bs-on-brand)); --bs-brand-ink: var(--bs-brand); }
.bs-band .bs-eyebrow { color: rgb(var(--bs-on-brand) / 0.92); }
.bs-band .bs-eyebrow::before { background: rgb(var(--bs-on-brand)); --bs-ping: var(--bs-on-brand); }
.bs-band .t-lead, .bs-band .t-body, .bs-band .t-small { color: rgb(var(--bs-on-brand) / 0.92); }
.bs-band .bs-idx, .bs-band .bs-spec__key, .bs-band .bs-stat__label { color: rgb(var(--bs-on-brand) / 0.92); }
.bs-band .bs-rule { background: rgb(var(--bs-on-brand) / 0.24); }
/* The site-wide focus ring is --bs-brand-ink, and the line above re-points
   that token to --bs-brand for everything inside the band — whose background
   IS --bs-brand. The ring was therefore drawn in the exact colour behind it:
   invisible, on the one block of the page where the phone number lives. */
.bs-band :where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline-color: rgb(var(--bs-on-brand));
}

/* -- Accordion ------------------------------------------------------------- */
.bs-acc { border-top: 1px solid var(--bs-hairline); }
.bs-acc__item { border-bottom: 1px solid var(--bs-hairline); }
.bs-acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: clamp(20px, 2.4vw, 30px) 0;
  text-align: left;
  cursor: pointer;
  color: rgb(var(--bs-ink));
  transition: color 300ms var(--bs-ease-smooth);
}
.bs-acc__btn:hover { color: rgb(var(--bs-brand-ink)); }
.bs-acc__sign { margin-left: auto; position: relative; width: 16px; height: 16px; flex: none; }
.bs-acc__sign::before,
.bs-acc__sign::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform 420ms var(--bs-ease-smooth), opacity 300ms var(--bs-ease-smooth);
}
.bs-acc__sign::before { left: 0; right: 0; top: 7.5px; height: 1px; }
.bs-acc__sign::after  { top: 0; bottom: 0; left: 7.5px; width: 1px; }
.bs-acc__item.is-open .bs-acc__sign::after { transform: scaleY(0); opacity: 0; }
.bs-acc__item.is-open .bs-acc__btn { color: rgb(var(--bs-brand-ink)); }
/* grid-template-rows 0fr -> 1fr animates a genuinely unknown height without
   measuring it in JS first.
   ---------------------------------------------------------------------------
   Two things this pattern gets wrong on its own, both fixed below.

   1. Zero height is not hidden. The panel body stayed in the accessibility
      tree, stayed findable by in-page search and stayed selectable, while
      the button above it said aria-expanded="false" — so a screen-reader
      user was told six capabilities were collapsed and then read all six
      anyway. `visibility: hidden` takes it out properly; the delay lets the
      520ms open/close animation finish before it disappears.

   2. Opening a panel is something only website.js can do. Collapsing them
      unconditionally would leave every capability and compliance point
      unreachable if the script failed — so, like every other JS-dependent
      hidden state on this site, the collapsed state is scoped to
      `html.has-js`. With no JavaScript the accordions render fully open,
      which is the right no-JS answer for a capability statement.        */
.bs-acc__panel { display: grid; }
html.has-js .bs-acc__panel {
  grid-template-rows: 0fr;
  transition: grid-template-rows 520ms var(--bs-ease-smooth);
}
html.has-js .bs-acc__item.is-open .bs-acc__panel { grid-template-rows: 1fr; }

.bs-acc__panelinner { overflow: hidden; }
html.has-js .bs-acc__panelinner {
  visibility: hidden;
  transition: visibility 0s linear 520ms;
}
html.has-js .bs-acc__item.is-open .bs-acc__panelinner {
  visibility: visible;
  transition: visibility 0s linear 0s;
}
.bs-acc__body { padding-bottom: clamp(20px, 2.4vw, 30px); }

/* ---------------------------------------------------------------------------
   6. HEADER / NAVIGATION
   ------------------------------------------------------------------------- */
.bs-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: var(--bs-header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color 380ms var(--bs-ease-smooth),
              border-color 380ms var(--bs-ease-smooth),
              transform 480ms var(--bs-ease-smooth),
              height 380ms var(--bs-ease-smooth);
}
.bs-header.is-stuck {
  background: rgb(var(--bs-bg) / 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--bs-hairline);
  height: 66px;
}
.bs-header.is-menu-open {
  transform: none;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  /* THE HEADER MUST OUTRANK THE MENU WHILE THE MENU IS OPEN.
     Both are position:fixed children of <body>, so they share the root
     stacking context and the higher z-index simply wins. At the resting 80
     the overlay (90) painted its opaque background straight over the header
     — including the close button, which is the only pointer-driven way out
     of the menu. Escape still worked, which is exactly why this survived a
     scripted test. 92 clears the menu and still sits under the custom
     cursor (95) and the transition curtain (100). */
  z-index: 92;
}

.bs-header__inner {
  width: 100%;
  max-width: var(--bs-shell);
  margin-inline: auto;
  padding-inline: var(--bs-gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Scroll progress — 2px of the page's own state, pinned to the header's
   lower edge so it reads as chrome rather than as a widget. */
.bs-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: rgb(var(--bs-brand));
  will-change: transform;
}

/* -- Logo ------------------------------------------------------------------
   The company's official logo artwork (static/images/frontend/logo*.svg),
   never re-lettered in a web font. Two files of the same logo: dark
   lettering for the light theme, white lettering for the dark one. Exactly
   one is shown. The height is the only size set; width follows the file's
   own aspect ratio, so the logo can never be stretched. */
.bs-logo { display: inline-flex; align-items: center; flex: none; line-height: 0; }
/* The stacked logo carries a small second line (INFRAPROJECTS PVT. LTD.)
   at about 13% of its height, so the header gives it as much height as the
   bar allows: 64px in a 76px header keeps that line legible. */
.bs-logo__img { display: block; width: auto; height: 52px; }
.bs-header.is-stuck .bs-logo__img { height: 48px; }
@media (min-width: 1024px) {
  .bs-logo__img { height: 64px; }
  .bs-header.is-stuck .bs-logo__img { height: 56px; }
}
.bs-logo__img.bs-logo__img--lg { height: 92px; }
.bs-logo__img--ondark { display: none; }
html.dark .bs-logo__img--onlight { display: none; }
html.dark .bs-logo__img--ondark { display: block; }
.bs-logo__img { transition: height 380ms var(--bs-ease-smooth), opacity 280ms var(--bs-ease-smooth); }
.bs-logo:hover .bs-logo__img { opacity: 0.86; }
@media (max-width: 520px) {
  .bs-logo__img { height: 42px; }
  .bs-header.is-stuck .bs-logo__img { height: 38px; }
}

/* -- Desktop nav ----------------------------------------------------------- */
.bs-nav { display: none; align-items: center; gap: 4px; margin-left: auto; }
@media (min-width: 1024px) { .bs-nav { display: flex; } }
.bs-nav__link {
  position: relative;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: rgb(var(--bs-ink-2));
  transition: color 280ms var(--bs-ease-smooth);
}
.bs-nav__link::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 1px;
  background: rgb(var(--bs-brand));
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 400ms var(--bs-ease-smooth);
}
.bs-nav__link:hover { color: rgb(var(--bs-ink)); }
.bs-nav__link:hover::after,
.bs-nav__link:focus-visible::after { transform: scaleX(1); transform-origin: left center; }
.bs-nav__link.is-active { color: rgb(var(--bs-ink)); }
.bs-nav__link.is-active::after { transform: scaleX(1); }

/* The sign-in button. Below 640px it is dropped from the header — the
   overlay menu carries it there, and three controls in a 375px bar leaves
   nothing for the logo. */
.bs-signin { display: none; }
@media (min-width: 640px) { .bs-signin { display: inline-flex; } }
.bs-signin__icon { flex: none; }

.bs-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
@media (min-width: 1024px) { .bs-header__actions { margin-left: 12px; } }

/* -- Icon button (theme toggle, menu) -------------------------------------- */
.bs-iconbtn {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bs-hairline);
  border-radius: 3px;
  color: rgb(var(--bs-ink));
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 300ms var(--bs-ease-smooth), color 300ms var(--bs-ease-smooth),
              background-color 300ms var(--bs-ease-smooth);
}
.bs-iconbtn:hover { border-color: var(--bs-hairline-strong); background: rgb(var(--bs-ink) / 0.04); }

/* Theme toggle: sun and moon stacked in one 20px box and rotated through
   each other, so the change reads as a single object turning rather than
   two icons swapping places. */
.bs-themetoggle__icons { position: relative; width: 20px; height: 20px; }
.bs-themetoggle__icons svg {
  position: absolute;
  inset: 0;
  width: 20px;
  height: 20px;
  transition: transform 620ms var(--bs-ease-spring), opacity 380ms var(--bs-ease-smooth);
}
.bs-themetoggle__sun  { opacity: 1; transform: rotate(0deg) scale(1); }
.bs-themetoggle__moon { opacity: 0; transform: rotate(-90deg) scale(0.4); }
html.dark .bs-themetoggle__sun  { opacity: 0; transform: rotate(90deg) scale(0.4); }
html.dark .bs-themetoggle__moon { opacity: 1; transform: rotate(0deg) scale(1); }

/* -- Menu button (burger -> cross) ----------------------------------------- */
.bs-menubtn { display: inline-flex; }
@media (min-width: 1024px) { .bs-menubtn { display: none; } }
.bs-menubtn__bars { position: relative; width: 18px; height: 12px; }
.bs-menubtn__bars i {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 480ms var(--bs-ease-smooth), opacity 240ms var(--bs-ease-smooth);
}
.bs-menubtn__bars i:nth-child(1) { top: 0; }
.bs-menubtn__bars i:nth-child(2) { top: 5.25px; }
.bs-menubtn__bars i:nth-child(3) { top: 10.5px; }
html.menu-open .bs-menubtn__bars i:nth-child(1) { transform: translateY(5.25px) rotate(45deg); }
html.menu-open .bs-menubtn__bars i:nth-child(2) { opacity: 0; transform: scaleX(0.3); }
html.menu-open .bs-menubtn__bars i:nth-child(3) { transform: translateY(-5.25px) rotate(-45deg); }

/* -- Full-screen menu ------------------------------------------------------ */
.bs-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgb(var(--bs-bg));
  display: flex;
  flex-direction: column;
  padding-top: var(--bs-header-h);
  /* clip-path beats height/opacity here: it reveals the panel as a moving
     edge, and it forces no layout on a full-viewport element. */
  clip-path: inset(0 0 100% 0);
  transition: clip-path 720ms var(--bs-ease-smooth), visibility 0s linear 720ms;
  visibility: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
html.menu-open .bs-menu {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path 720ms var(--bs-ease-smooth), visibility 0s linear 0s;
}
.bs-menu__list { display: flex; flex-direction: column; border-top: 1px solid var(--bs-hairline); }
.bs-menu__item { border-bottom: 1px solid var(--bs-hairline); overflow: hidden; }
.bs-menu__link {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: clamp(18px, 3.4vw, 30px) 0;
  font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 8vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: rgb(var(--bs-ink));
  transform: translateY(110%);
  opacity: 0;
  transition: transform 760ms var(--bs-ease-smooth), opacity 500ms var(--bs-ease-smooth),
              color 300ms var(--bs-ease-smooth);
  transition-delay: 0ms;
}
html.menu-open .bs-menu__link {
  transform: translateY(0);
  opacity: 1;
  transition-delay: calc(160ms + var(--i, 0) * 70ms);
}
.bs-menu__link:hover { color: rgb(var(--bs-brand-ink)); }
.bs-menu__link.is-active { color: rgb(var(--bs-brand-ink)); }
.bs-menu__num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: rgb(var(--bs-ink-3));
}
.bs-menu__foot {
  margin-top: auto;
  padding-block: clamp(24px, 4vw, 44px);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--bs-ease-smooth) 420ms, transform 600ms var(--bs-ease-smooth) 420ms;
}
html.menu-open .bs-menu__foot { opacity: 1; transform: none; }

html.menu-open body { overflow: hidden; }

/* ---------------------------------------------------------------------------
   7. FOOTER
   ------------------------------------------------------------------------- */
.bs-footer { background: rgb(var(--bs-bg-alt)); border-top: 1px solid var(--bs-hairline); }
.bs-footer__word {
  font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 15vw, 210px);
  line-height: 0.84;
  letter-spacing: -0.045em;
  color: rgb(var(--bs-ink) / 0.07);
  user-select: none;
  white-space: nowrap;
}
html.dark .bs-footer__word { color: rgb(var(--bs-ink) / 0.06); }
.bs-footer__link {
  color: rgb(var(--bs-ink-2));
  transition: color 260ms var(--bs-ease-smooth), transform 380ms var(--bs-ease-smooth);
  display: inline-block;
}
.bs-footer__link:hover { color: rgb(var(--bs-brand-ink)); transform: translateX(4px); }

/* ---------------------------------------------------------------------------
   8. MOTION — the reveal engine
   Every entrance is one of a handful of named variants. JS (website.js) does
   nothing but add `.is-in` when the element crosses the viewport; all timing
   lives here, which keeps the two easy to reason about separately.

   The hidden state is scoped to `html.has-js`. Without that guard, a visitor
   whose JavaScript failed would get a blank page instead of an unanimated
   one — the single worst failure mode a scroll-animated site has.
   ------------------------------------------------------------------------- */
html.has-js [data-reveal] {
  opacity: 0;
  transition-property: opacity, transform, clip-path;
  transition-duration: 900ms;
  transition-timing-function: var(--bs-ease-smooth);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
html.has-js [data-reveal='up']      { transform: translate3d(0, 34px, 0); }
html.has-js [data-reveal='down']    { transform: translate3d(0, -28px, 0); }
html.has-js [data-reveal='left']    { transform: translate3d(-34px, 0, 0); }
html.has-js [data-reveal='right']   { transform: translate3d(34px, 0, 0); }
html.has-js [data-reveal='scale']   { transform: scale(1.05); }
html.has-js [data-reveal='fade']    { transform: none; }
html.has-js [data-reveal='clip']    { opacity: 1; clip-path: inset(0 100% 0 0); }
html.has-js [data-reveal='clip-up'] { opacity: 1; clip-path: inset(100% 0 0 0); }
html.has-js [data-reveal='line']    { opacity: 1; transform: scaleX(0); transform-origin: left center; }
html.has-js [data-reveal='line-y']  { opacity: 1; transform: scaleY(0); transform-origin: top center; }

html.has-js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0);
  will-change: auto;
}
html.has-js [data-reveal='line'].is-in   { transform: scaleX(1); }
html.has-js [data-reveal='line-y'].is-in { transform: scaleY(1); }

/* Mask-reveal for display type. website.js wraps each line of a
   [data-split] heading in .bs-mask > .bs-mask__i, then this slides the inner
   span up from under its own clipping box. The container keeps the real
   sentence in aria-label so a screen reader never meets the shards. */
.bs-mask { display: block; overflow: hidden; padding-bottom: 0.09em; margin-bottom: -0.09em; }
.bs-mask__i {
  display: block;
  transform: translate3d(0, 110%, 0);
  transition: transform 1000ms var(--bs-ease-smooth);
  transition-delay: var(--d, 0ms);
  will-change: transform;
}
.is-in > .bs-mask > .bs-mask__i,
.bs-mask.is-in > .bs-mask__i { transform: translate3d(0, 0, 0); will-change: auto; }

/* Word-level variant, for the hero where a per-word cascade earns the extra
   nodes. */
.bs-word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.09em; margin-bottom: -0.09em; }
.bs-word__i {
  display: inline-block;
  transform: translate3d(0, 110%, 0);
  transition: transform 1000ms var(--bs-ease-smooth);
  transition-delay: var(--d, 0ms);
}
.is-in .bs-word__i { transform: translate3d(0, 0, 0); }

/* Counters must not reflow the layout while they tick. */
.bs-count { font-variant-numeric: tabular-nums; }

/* -- Parallax -------------------------------------------------------------- */
[data-parallax] { will-change: transform; }

/* -- Custom cursor (fine pointers only; never on touch) -------------------- */
.bs-cursor,
.bs-cursor__dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 95;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 300ms linear;
}
.bs-cursor {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgb(var(--bs-ink) / 0.4);
  transition: opacity 300ms linear, width 380ms var(--bs-ease-spring),
              height 380ms var(--bs-ease-spring), margin 380ms var(--bs-ease-spring),
              background-color 300ms var(--bs-ease-smooth), border-color 300ms var(--bs-ease-smooth);
}
.bs-cursor__dot { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; background: rgb(var(--bs-brand)); }
html.cursor-ready .bs-cursor,
html.cursor-ready .bs-cursor__dot { opacity: 1; }
html.cursor-hot .bs-cursor {
  width: 62px;
  height: 62px;
  margin: -31px 0 0 -31px;
  border-color: rgb(var(--bs-brand-ink));
  background: rgb(var(--bs-brand) / 0.1);
}
html.cursor-hot .bs-cursor__dot { opacity: 0; }
@media (hover: none), (pointer: coarse) {
  .bs-cursor, .bs-cursor__dot { display: none; }
}

/* -- Page transition curtain ------------------------------------------------
   Five panels that clear upward on arrival and close downward on leaving.
   Kept well under half a second: a transition the visitor has to wait out
   is a cost, not a flourish. --------------------------------------------- */
.bs-curtain {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  pointer-events: none;
  visibility: hidden;
}
.bs-curtain span {
  flex: 1;
  background: rgb(var(--bs-brand));
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 420ms var(--bs-ease-power);
  transition-delay: calc(var(--i, 0) * 45ms);
}
html.curtain-in .bs-curtain,
html.curtain-out .bs-curtain { visibility: visible; }
html.curtain-in .bs-curtain span { transform: scaleY(1); transform-origin: bottom center; }
html.curtain-out .bs-curtain span { transform: scaleY(0); transform-origin: top center; }

/* -- Scroll cue ------------------------------------------------------------ */
.bs-cue { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; }
.bs-cue__line { position: relative; width: 1px; height: 56px; background: var(--bs-hairline-strong); overflow: hidden; }
.bs-cue__line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgb(var(--bs-brand));
  transform: translateY(-100%);
  animation: bs-cue 2200ms var(--bs-ease-smooth) infinite;
}
@keyframes bs-cue {
  0%   { transform: translateY(-100%); }
  55%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* -- WhatsApp ---------------------------------------------------------------
   A pill that shows only its icon at rest and widens to reveal the label on
   hover or focus. It sits ABOVE the back-to-top button so the two never
   collide, and it keeps a full 48px hit area at every size.

   Deliberately NOT the usual green bubble. WhatsApp green next to this
   palette is the single loudest "template website" signal there is, and the
   glyph alone is recognised everywhere. The green arrives on hover, which is
   where the association is worth having and where it costs the page nothing
   at rest.
   ------------------------------------------------------------------------- */
.bs-wa {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: calc(clamp(16px, 3vw, 32px) + 58px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 46px;
  padding: 0;
  border-radius: 99px;
  background: rgb(var(--bs-ink));
  color: rgb(var(--bs-bg));
  box-shadow: var(--bs-shadow-lift);
  overflow: hidden;
  white-space: nowrap;
  transition: background-color 320ms var(--bs-ease-smooth),
              color 320ms var(--bs-ease-smooth),
              gap 420ms var(--bs-ease-smooth),
              padding-right 420ms var(--bs-ease-smooth);
}
.bs-wa__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: none;
}
.bs-wa__icon svg { width: 21px; height: 21px; }
/* max-width, because `width: auto` does not animate. The ceiling only has to
   clear the word; the box shrink-wraps below it, so the pill is never padded
   out to 140px.

   The label is the text node in the markup. It was briefly ALSO a
   ::before with the same content, which rendered "WhatsApp" twice and left
   the pill stuck open at 115px — the text a screen reader announces belongs
   in the document, not in a stylesheet. */
.bs-wa__label {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: max-width 420ms var(--bs-ease-smooth);
}
.bs-wa:hover,
.bs-wa:focus-visible {
  background: #25D366;
  color: #0B141A;
  padding-right: 18px;
  gap: 2px;
}
.bs-wa:hover .bs-wa__label,
.bs-wa:focus-visible .bs-wa__label { max-width: 140px; }

/* A phone has no hover, so the label would never appear. Show it there. */
@media (hover: none) {
  .bs-wa { padding-right: 18px; gap: 2px; }
  .bs-wa .bs-wa__label { max-width: 140px; }
}

/* -- Back to top ----------------------------------------------------------- */
.bs-totop {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 70;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgb(var(--bs-ink));
  color: rgb(var(--bs-bg));
  opacity: 0;
  transform: translateY(16px) scale(0.85);
  pointer-events: none;
  transition: opacity 420ms var(--bs-ease-smooth), transform 480ms var(--bs-ease-spring),
              background-color 300ms var(--bs-ease-smooth), color 300ms var(--bs-ease-smooth);
}
.bs-totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.bs-totop:hover { background: rgb(var(--bs-brand)); color: rgb(var(--bs-on-brand)); }

/* -- Magnetic wrapper ------------------------------------------------------ */
[data-magnetic] { transition: transform 620ms var(--bs-ease-smooth); }
[data-magnetic].is-pulling { transition: transform 140ms linear; }

/* ---------------------------------------------------------------------------
   9. REDUCED MOTION
   Not a token gesture: every entrance resolves to its finished state, every
   loop stops, and the cursor and curtain are removed outright. The page must
   be fully usable and fully legible with no motion at all.
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html.has-js [data-reveal],
  html.has-js [data-reveal].is-in {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
  .bs-mask__i, .bs-word__i { transform: none !important; transition: none !important; }
  .bs-marquee__track { animation: none !important; }
  .bs-eyebrow::before { animation: none !important; }
  .bs-cue__line::after { animation: none !important; transform: none !important; }
  .bs-cursor, .bs-cursor__dot, .bs-curtain { display: none !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------------------------
   10. PRINT — a tender committee will print these pages.
   ------------------------------------------------------------------------- */
@media print {
  .bs-header, .bs-menu, .bs-cursor, .bs-cursor__dot, .bs-curtain,
  .bs-totop, .bs-cue, .bs-marquee { display: none !important; }
  html.has-js [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .bs-mask__i, .bs-word__i { transform: none !important; }
  body.bs-body { background: #fff; color: #000; }
  .bs-card { border: 1px solid #ccc; box-shadow: none; break-inside: avoid; }
  .bs-section { padding-block: 24px; }
  a[href^='http']::after { content: ' (' attr(href) ')'; font-size: 10px; color: #555; }
}

/* ===========================================================================
   COMPONENTS ADDED WITH THE BROCHURE CONTENT (v46)
   Photographs, service and project cards, director portraits, breadcrumbs,
   tick lists. Shared by more than one page, so they live here.
   ========================================================================= */

/* <address> is italic by default in every browser; nothing on this site is. */
.bs-body address { font-style: normal; }

/* -- Photograph -------------------------------------------------------------
   The company's own site photographs. The frame fixes an aspect ratio and the
   image covers it, so a 1292x681 and a 1600x1491 photo sit in the same grid
   without either being distorted. The caption is a small mono label laid on
   the image, legible on any photo because it carries its own backdrop. */
.bs-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: rgb(var(--bs-surface-2));
  border: 1px solid var(--bs-hairline);
  isolation: isolate;
}
.bs-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1200ms var(--bs-ease-smooth);
}
@media (hover: hover) {
  .bs-photo:hover img { transform: scale(1.035); }
}
.bs-photo--hero      { aspect-ratio: 4 / 3; }
.bs-photo--landscape { aspect-ratio: 3 / 2; }
.bs-photo--card      { aspect-ratio: 16 / 10; border: 0; border-radius: 0; }
.bs-photo--square    { aspect-ratio: 1 / 1; }
.bs-photo--tall      { aspect-ratio: 3 / 4; }
.bs-photo--strip     { aspect-ratio: 1280 / 386; }
.bs-photo--fill      { height: 100%; min-height: 220px; }
@media (min-width: 1024px) {
  .bs-photo--hero { aspect-ratio: 5 / 6; }
}
.bs-photo__cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: fit-content;
  max-width: calc(100% - 24px);
  padding: 7px 11px;
  border-radius: 3px;
  background: rgb(12 13 15 / 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* A project with no company photograph gets a plain branded panel instead —
   never a stock image standing in for work that is not the company's. */
.bs-noimg {
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background:
    repeating-linear-gradient(135deg, rgb(var(--bs-brand) / 0.07) 0 1px, transparent 1px 14px),
    rgb(var(--bs-surface-2));
  color: rgb(var(--bs-brand-ink));
}
.bs-noimg .bs-glyph { width: 56px; height: 56px; }
.bs-noimg .t-mono { color: rgb(var(--bs-ink-2)); font-size: 10.5px; }

/* -- Line glyph used by service and quality icons -------------------------- */
.bs-glyph { display: block; flex: none; }

/* -- Breadcrumbs (inner pages) --------------------------------------------- */
.bs-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; list-style: none; padding: 0; margin: 0; }
.bs-crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(var(--bs-ink-3));
}
.bs-crumbs li + li::before { content: '/'; color: rgb(var(--bs-ink-3) / 0.6); }
.bs-crumbs a { color: rgb(var(--bs-ink-2)); transition: color 220ms var(--bs-ease-smooth); }
.bs-crumbs a:hover { color: rgb(var(--bs-brand-ink)); }
.bs-crumbs [aria-current] { color: rgb(var(--bs-ink)); }

/* -- Inner page head ------------------------------------------------------- */
.bs-pagehead {
  padding-top: calc(var(--bs-header-h) + clamp(40px, 6vw, 88px));
  padding-bottom: clamp(48px, 6vw, 88px);
  border-bottom: 1px solid var(--bs-hairline);
}

/* -- Exact figure under a rounded statistic -------------------------------- */
.bs-stat__exact {
  margin-top: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgb(var(--bs-ink-2));
  font-variant-numeric: tabular-nums;
}

/* -- Tick list ------------------------------------------------------------- */
.bs-ticklist { display: flex; flex-direction: column; gap: 12px; list-style: none; padding: 0; }
.bs-ticklist li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  font-size: 16px;
  line-height: 1.55;
  color: rgb(var(--bs-ink-2));
}
.bs-ticklist svg { color: rgb(var(--bs-brand-ink)); transform: translateY(2px); }
.bs-ticklist--loose { gap: 0; }
.bs-ticklist--loose li { padding-block: 16px; border-bottom: 1px solid var(--bs-hairline); }
.bs-ticklist--loose li:first-child { border-top: 1px solid var(--bs-hairline); }

/* -- Service cards (home) -------------------------------------------------- */
.bs-svcgrid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  list-style: none;
  padding: 0;
}
@media (min-width: 680px)  { .bs-svcgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .bs-svcgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bs-svcgrid > li { display: flex; }
.bs-svccard {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: clamp(24px, 2.6vw, 34px);
}
.bs-svccard__top { display: flex; align-items: center; justify-content: space-between; }
.bs-svccard__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgb(var(--bs-brand) / 0.12);
  color: rgb(var(--bs-brand-ink));
  transition: background-color 320ms var(--bs-ease-smooth), color 320ms var(--bs-ease-smooth);
}
.bs-svccard:hover .bs-svccard__icon { background: rgb(var(--bs-brand)); color: rgb(var(--bs-on-brand)); }
.bs-svccard__title { display: block; margin-top: 26px; color: rgb(var(--bs-ink)); }
.bs-svccard__sub { display: block; margin-top: 6px; }
.bs-svccard__text { display: block; margin-top: 16px; flex: 1; }
.bs-svccard__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(var(--bs-brand-ink));
}
.bs-svccard__more svg { transition: transform 320ms var(--bs-ease-smooth); }
.bs-svccard:hover .bs-svccard__more svg { transform: translateX(4px); }

/* -- Project cards (home) -------------------------------------------------- */
.bs-projcards {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  margin-top: clamp(28px, 3.4vw, 44px);
}
@media (min-width: 900px) { .bs-projcards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bs-projcard { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.bs-projcard__body { display: flex; flex-direction: column; flex: 1; padding: clamp(22px, 2.4vw, 30px); }
.bs-projcard__body .bs-link { margin-top: auto; padding-top: 22px; align-self: flex-start; }
.bs-projcard__value {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 2px solid rgb(var(--bs-brand));
}
.bs-projcard__value .t-mono { color: rgb(var(--bs-ink-3)); font-size: 10.5px; }
.bs-projcard__amount {
  font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2vw, 26px);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: rgb(var(--bs-ink));
}

/* -- Director portrait ------------------------------------------------------
   The image file already IS the brochure's composition — orange disc, body
   clipped to it, head rising above it — on a transparent background. So
   the frame only sizes it: no circle crop, no object-fit, nothing that
   could cut off the top of a head. Width is set; height follows the file. */
.bs-portrait {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0;
}
.bs-portrait img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 28px rgb(var(--bs-line) / 0.12));
}
.bs-portrait--sm { width: 124px; max-width: none; flex: none; }
.bs-portrait--sm img { filter: none; }

/* -- Quality list ---------------------------------------------------------- */
.bs-qlist { display: flex; flex-direction: column; list-style: none; padding: 0; }
.bs-qlist li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding-block: 18px;
  border-bottom: 1px solid var(--bs-hairline);
}
.bs-qlist li:first-child { border-top: 1px solid var(--bs-hairline); }
.bs-qlist__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgb(var(--bs-brand) / 0.12);
  color: rgb(var(--bs-brand-ink));
}
.bs-qlist .t-h4 { color: rgb(var(--bs-ink)); }

@media (prefers-reduced-motion: reduce) {
  .bs-photo img, .bs-svccard__more svg, .bs-logo__img { transition: none !important; }
  .bs-photo:hover img { transform: none !important; }
}

/* -- Utility shims ----------------------------------------------------------
   Four Tailwind utilities the templates use that the committed build of
   tailwind-website.css predates. `npm run build:website` generates them
   too; these keep the layout right on a host that ships the committed file
   without running the build. Same values as Tailwind's own. */
.gap-10 { gap: 2.5rem; }
.items-start { align-items: flex-start; }
.max-w-\[56ch\] { max-width: 56ch; }
.max-w-\[46ch\] { max-width: 46ch; }
