/* ============================================================================
   Black Saber Industries — bsiarabia.com — pre-launch holding page.
   Theme layer ONLY. css/base.css (the IBIX base) loads first.

   SHAPE: the house holding-page pattern, as built for RANCO
   (clients/ranco/site/) — status line, logo, tagline, hairline service rows,
   one contact block, thin footer. One screen, nothing else. A holding page is
   not a small website.

   PALETTE: DIR-2 LEDGER reskinned to the client's own identity. Hue fixed at
   9.3deg from the burgundy mane in BSI LOGO.pdf; every ink's lightness solved
   with design/snippets/contrast-check.py (A2.11). Ratios below are
   checker-generated (A2.2 — zero hand-typed).
   ========================================================================= */

:root {
  --paper:   oklch(97.5% 0.0025 9.3);   /* no literal #fff as a surface (A2.7) */
  --surface: oklch(94.5% 0.004 9.3);

  --text:  oklch(18% 0.01 9.3);         /* @contrast --paper >=4.5 = 17.47:1 */
  --muted: oklch(52.66% 0.01 9.3);      /* @contrast --surface >=4.5 = 4.57:1 */
  --accent: oklch(40.9% 0.1524 9.3);    /* @contrast --paper >=4.5 = 8.95:1 */
  --accent-ink: oklch(98% 0.002 9.3);   /* @contrast --accent >=4.5 = 9.11:1 */
  --accent-deep: oklch(34% 0.135 9.3);  /* @contrast --accent-ink vs --accent-deep >=4.5 = 11.86:1 */

  --border-interactive: oklch(62.62% 0.006 9.3); /* @contrast --surface >=3 = 3.05:1 */
  --border-subtle:      oklch(87% 0.005 9.3);    /* decorative hairline only (A2.5) */

  --font: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;

  /* every clamp carries a rem term in the preferred value (B1.1) */
  --step-logo:  clamp(12rem, 8rem + 12vw, 21rem);
  --step-phone: clamp(1.7rem, 1.1rem + 2.8vw, 3rem);

  --gutter: clamp(1.25rem, 0.5rem + 3vw, 2.5rem);
  --wrap: 820px;
}
@supports not (color: oklch(0% 0 0)) {
  :root {
    --paper:#f8f6f6; --surface:#efecec; --text:#161011; --muted:#706969;
    --accent:#881038; --accent-ink:#faf8f8; --accent-deep:#6c0129;
    --border-interactive:#8b8687; --border-subtle:#d7d3d3;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; animation: none !important }
}

/* --- entrance -------------------------------------------------------------
   One slow reveal on load. Deliberately NOT scroll-triggered: the direction's
   motion note for this vertical is that procurement buyers scan rather than
   watch, so reveal-on-scroll would be theatre.

   Gated on `html.js` (design/snippets/motion-kit.css) AND on no-preference.
   That gate is load-bearing twice over:
     - JS off, blocked, or js-flag.js 404s -> nothing is ever hidden, the page
       renders finished. An earlier attempt animated opacity WITHOUT this gate
       and qa.py failed it on `invisible-no-JS`: the probe loads with JS
       disabled and caught the blocks mid-fade. A page you cannot read for the
       first second is broken on a slow connection, not premium.
     - The first fix dropped opacity entirely, which was safe but so subtle it
       was not perceptible. The gate is what buys back the real fade.
   --------------------------------------------------------------------------*/
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise {
    from { opacity: 0; transform: translateY(26px) }
    to   { opacity: 1; transform: none }
  }
  @keyframes draw { from { width: 0; opacity: 0 } to { width: 56px; opacity: 1 } }

  html.js .status,
  html.js .brand,
  html.js .svc,
  html.js .creds,
  html.js .contact {
    animation: rise .85s cubic-bezier(.16, 1, .3, 1) both;
  }
  html.js .status  { animation-delay: .05s }
  html.js .brand   { animation-delay: .16s }
  html.js .svc     { animation-delay: .34s }
  html.js .creds   { animation-delay: .50s }
  html.js .contact { animation-delay: .62s }

  /* the rule under the wordmark draws itself in — the one flourish */
  html.js .brand__rule { animation: draw .8s cubic-bezier(.16, 1, .3, 1) .5s both }

  /* Third and LAST of the wow budget (D21 allows three): the status dot
     breathes. It reinforces the single message the page exists to carry —
     something is coming — and it is the only looping motion on the site.
     2.8s and a 0.45 opacity floor: slow enough to read as a pulse rather than
     a blink, and the dot is decorative so nothing is lost if it never runs.
     Killed outright by the prefers-reduced-motion block above. */
  @keyframes breathe {
    0%, 100% { opacity: 1;   transform: scale(1) }
    50%      { opacity: .45; transform: scale(.82) }
  }
  html.js .status__dot { animation: breathe 2.8s ease-in-out 1.2s infinite }
}

/* The page is exactly one viewport tall. Reserve the scrollbar gutter so the
   layout cannot shift by a few pixels when a scrollbar appears and disappears
   — that flicker is what reads as the page "moving up and down a little". */
html { scrollbar-gutter: stable }

body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(0.9375rem, 0.9rem + 0.15vw, 1rem);
  line-height: 1.5;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-inline: var(--gutter);
}
@supports not (min-height: 100svh) { body { min-height: 100vh } }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 9;
  background: var(--text); color: var(--paper);
  padding: .75rem 1.25rem; font-weight: 600; min-height: 24px;
}
.skip:focus { left: 0 }
:where(a, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px }

.page {
  width: min(100%, var(--wrap));
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: clamp(2.75rem, 1.5rem + 5vw, 6rem);
  padding-block: clamp(3rem, 1.5rem + 6vw, 7rem);
}

/* --- status ---------------------------------------------------------------*/
.status {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 24px;
  font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.status__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none }

/* --- brand ----------------------------------------------------------------*/
.brand { display: flex; flex-direction: column; align-items: center; gap: 1.35rem }
.brand__logo { width: var(--step-logo); height: auto }
.brand__tag {
  font-size: clamp(.7rem, .64rem + .26vw, .88rem); font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--muted); max-width: 40rem; text-wrap: balance; line-height: 2.1;
  padding-left: .26em;   /* optical: tracking adds a trailing gap, re-centre it */
}
.brand__rule { width: 56px; height: 2px; background: var(--accent); border: 0 }

/* --- services: hairline rows, nothing more --------------------------------*/
.svc { list-style: none; width: 100%; border-top: 1px solid var(--border-subtle) }
.svc li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding-block: clamp(.85rem, .6rem + .9vw, 1.35rem);
  text-align: left;
}
.svc li + li { border-top: 1px solid var(--border-subtle) }
.svc { border-bottom: 1px solid var(--border-subtle) }
.svc__name { font-weight: 500; letter-spacing: .012em; font-size: clamp(.9375rem, .9rem + .25vw, 1.0625rem) }
.svc__qual {
  font-size: .64rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); text-align: right;
}
@media (max-width: 560px) {
  .svc__qual { display: none }
  .svc li { justify-content: center; text-align: center }
}

/* --- credentials: the trust language for this buyer, stated quietly -------*/
.creds {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: .5rem clamp(1rem, .5rem + 1.6vw, 2rem);
  max-width: 58rem;
}
.creds li {
  font-size: clamp(.66rem, .63rem + .12vw, .74rem); font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: .55rem;
}
.creds li + li::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); flex: none; margin-right: .1rem;
}

@media (max-width: 620px) {
  .creds { flex-direction: column; gap: .42rem }
  .creds li + li::before { display: none }
}

/* --- contact --------------------------------------------------------------*/
.contact { display: flex; flex-direction: column; align-items: center }
.contact__lab {
  font-size: .68rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.contact__tel {
  display: inline-block; margin-top: .45rem; min-height: 24px;
  font-size: var(--step-phone); font-weight: 600; letter-spacing: -.015em;
  border-bottom: 2px solid var(--border-subtle); transition: border-color .18s ease;
}
.contact__tel:hover { border-bottom-color: var(--accent) }

.actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: 1.6rem }
@media (max-width: 560px) {
  .actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; width: 100%; max-width: 20rem; margin-top: .9rem }
  .actions .btn--primary { grid-column: 1 / -1 }
  .contact__mail { margin-top: .7rem }
  .contact__addr { margin-top: .6rem; font-size: .76rem }
  .svc li { padding-block: .26rem }
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .6rem 1.5rem;
  font-size: .85rem; font-weight: 600;
  border: 1px solid var(--border-interactive); border-radius: 999px;
  background: var(--paper); color: var(--text);
  transition: border-color .18s ease, background-color .18s ease;
}
.btn:hover { border-color: var(--text) }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink) }
.btn--primary:hover { background: var(--accent-deep); border-color: var(--accent-deep) }
.btn__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none }

.contact__mail {
  margin-top: 1rem; min-height: 24px; display: inline-block;
  font-size: .875rem; color: var(--muted);
  border-bottom: 1px solid var(--border-interactive);
}
.contact__mail:hover { color: var(--text); border-bottom-color: var(--text) }

/* Office address — opens the registered address in Google Maps. Sized as a
   real tap target (WCAG 2.2 24px) and underlined at rest so it reads as a
   link, not a caption. */
.contact__addr {
  display: inline-flex; align-items: flex-start; gap: .45rem;
  margin-top: 1.15rem; min-height: 24px; padding-block: .15rem;
  max-width: 100%; text-align: left; line-height: 1.45; text-wrap: balance;
  font-size: .8rem; color: var(--muted);
  border-bottom: 1px solid var(--border-interactive);
  transition: color .18s ease, border-color .18s ease;
}
.contact__addr svg { width: 15px; height: 15px; flex: none; color: var(--accent); margin-top: .15em }
.contact__addr:hover { color: var(--text); border-bottom-color: var(--text) }

/* --- footer ---------------------------------------------------------------*/
.foot {
  width: min(100%, var(--wrap));
  padding-block: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex; flex-wrap: wrap; gap: .35rem 1.5rem;
  align-items: center; justify-content: center;
  font-size: .74rem; color: var(--muted); text-align: center;
}
.foot a { border-bottom: 1px solid var(--border-interactive); min-height: 24px; display: inline-block }
.foot a:hover { color: var(--text); border-bottom-color: var(--text) }

/* --- fit the fold on short viewports --------------------------------------
   A holding page is one screen. Rather than let short laptops scroll, the
   brand and the vertical rhythm compress. Nothing is hidden.
   --------------------------------------------------------------------------*/

/* --- 404 ------------------------------------------------------------------*/
.err__code { font-size: 3rem; font-weight: 600; color: var(--accent) }
