/* BLI Construction LLC - landing page.
   Brand: near-black, white, safety yellow; Chakra Petch (SIL OFL 1.1, self-hosted); chamfered corners and square
   bullets echo the BLI mark. No inline styles anywhere (strict CSP). */

@font-face { font-family: "Chakra Petch"; font-weight: 400; font-style: normal; font-display: swap; src: url("../../fonts/chakra-petch-400.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 500; font-style: normal; font-display: swap; src: url("../../fonts/chakra-petch-500.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 600; font-style: normal; font-display: swap; src: url("../../fonts/chakra-petch-600.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-style: normal; font-display: swap; src: url("../../fonts/chakra-petch-700.woff2") format("woff2"); }

:root {
  --ink: #0A0A0A;
  --ink-2: #141414;
  --ink-3: #1E1E1E;
  --line: #2C2C2C;
  --white: #FFFFFF;
  --paper: #F4F4F1;
  --yellow: #FFD100;
  --muted: #BDBDBD;          /* 10.9:1 on --ink */
  --muted-ink: #454545;      /* 9:1 on --paper */
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --cut: 12px;
  --font: "Chakra Petch", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
  --chamfer: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--ink); color: var(--white); font: 400 1.0625rem/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.section--light :focus-visible, .contact :focus-visible, .topbar :focus-visible { outline-color: var(--ink); }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 10px 16px; font-weight: 700; }
.skip:focus { left: 8px; }

/* ---------- scroll progress ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 45; background: var(--ink); }
.progress { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress__bar { height: 100%; background: var(--yellow); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- notice bar + header ---------- */
.topbar { background: var(--yellow); color: var(--ink); font-size: .875rem; font-weight: 600; line-height: 1.35; }
.topbar__in { max-width: var(--max); margin-inline: auto; padding: 9px max(var(--gutter), env(safe-area-inset-right, 0px)) 9px max(var(--gutter), env(safe-area-inset-left, 0px)); display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 18px; text-align: center; }
.topbar a { font-weight: 700; text-underline-offset: 3px; }

.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(10, 10, 10, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header__in { max-width: var(--max); margin-inline: auto; padding: 12px max(var(--gutter), env(safe-area-inset-right, 0px)) 12px max(var(--gutter), env(safe-area-inset-left, 0px)); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: block; line-height: 0; }
.brand img { height: 38px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .875rem; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
.nav a:hover { border-bottom-color: var(--yellow); }
.nav a:not(.nav__cta) { display: none; }
.nav__cta { background: var(--yellow); color: var(--ink); padding: 10px 16px !important; border-bottom: 0 !important; clip-path: var(--chamfer); font-weight: 700; }
.nav__cta:hover { background: var(--white); }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 24px; font: 700 1rem/1 var(--font); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; clip-path: var(--chamfer); transition: background .2s, color .2s, transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: var(--white); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { background: var(--yellow); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--white); color: var(--ink); }

/* ---------- shared type ---------- */
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: .8125rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--yellow); flex: none; }
.eyebrow--ink { color: var(--ink); }
.eyebrow--ink::before { background: var(--ink); }
h1, h2, h3 { font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
h2 { font-size: clamp(1.75rem, 4.2vw, 2.9rem); line-height: 1.06; margin-top: 18px; max-width: 24ch; }
.section__lead { margin-top: 20px; max-width: 62ch; font-size: 1.125rem; color: var(--muted-ink); }
.section__lead--dark { color: var(--muted); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(#171717 1px, transparent 1px), linear-gradient(90deg, #171717 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.hero__in { position: relative; display: grid; gap: 40px; padding-block: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-top: 18px; font-size: clamp(2.1rem, 6.4vw, 3.9rem); line-height: 1; max-width: 17ch; }
.hl { color: var(--yellow); }
.lead { margin-top: 22px; max-width: 46ch; font-size: clamp(1.0625rem, 2vw, 1.25rem); color: var(--muted); }

.notice { position: relative; margin-top: 26px; max-width: 520px; background: var(--ink-2); padding: 20px 22px 18px 34px; clip-path: var(--chamfer); }
.notice::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 12px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 8px, var(--ink) 8px 16px); }
.notice__tag { font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--yellow); }
.notice__title { margin-top: 4px; font-size: 1.5rem; font-weight: 700; text-transform: uppercase; line-height: 1.1; }
.notice__text { margin-top: 8px; color: var(--muted); font-size: 1rem; }
.build { position: relative; margin-top: 16px; height: 8px; background: var(--ink-3); overflow: hidden; }
.build__bar { position: absolute; inset: 0 auto 0 0; width: 30%; background: var(--yellow); animation: build 2.4s cubic-bezier(.6, 0, .4, 1) infinite; }
.build__label { margin-top: 8px; font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.hero__art { justify-self: center; width: 100%; max-width: 520px; }
.blueprint { display: block; width: 100%; height: auto; }
.blueprint .brackets path, .blueprint .dims path { fill: none; stroke-width: 3; }
.blueprint .brackets path { stroke: var(--yellow); }
.blueprint .dims path { stroke: #3A3A3A; stroke-width: 1.5; }
.blueprint .sweep { fill: var(--yellow); opacity: .35; animation: sweep 7s linear infinite; }
.s-outline { fill: none; stroke: var(--yellow); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 0; animation: s-draw 10s ease-in-out infinite; }
.s-fill { fill: var(--white); animation: s-fill 10s ease-in-out infinite; }
.s-member { fill: var(--white); animation: s-member 10s ease-in-out infinite; }
.s-load { fill: var(--yellow); animation: s-load 10s ease-in-out infinite; }


/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 9vw, 112px); }
.section--light { background: var(--paper); color: var(--ink); }
.section--dark { background: var(--ink); color: var(--white); }

/* flow diagram */
.flow { display: grid; grid-template-columns: 1fr; margin-top: 44px; }
.flow__node { position: relative; padding: 24px; clip-path: var(--chamfer); }
.flow__node--side { background: var(--ink); color: var(--white); }
.flow__node--hub { background: var(--yellow); color: var(--ink); }
.flow__node h3 { font-size: 1.25rem; line-height: 1.15; margin-top: 4px; }
.flow__node p:not(.flow__tag) { margin-top: 8px; font-size: 1rem; }
.flow__node--side p:not(.flow__tag) { color: var(--muted); }
.flow__tag { font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.flow__node--side .flow__tag { color: var(--yellow); }
.flow__mark { display: block; width: 34px; height: 34px; margin-bottom: 12px; filter: invert(1); }
.flow__link { position: relative; height: 64px; width: 4px; margin-inline: auto; background: var(--ink); }
.flow__link::after { content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 11px solid transparent; border-top: 14px solid var(--ink); border-bottom: 0; }
.flow__dot { position: absolute; left: 50%; top: 0; width: 14px; height: 14px; margin-left: -7px; background: var(--yellow); border: 2px solid var(--ink); animation: dot-y 2s linear infinite; }
.flow__dot--b { animation-delay: -1s; }

.facts { display: grid; gap: 22px; margin-top: 48px; padding-top: 32px; border-top: 3px solid var(--ink); }
.facts li { display: grid; gap: 4px; align-content: start; padding-left: 22px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; background: var(--yellow); outline: 2px solid var(--ink); outline-offset: -2px; }
.facts strong { font-size: 1.0625rem; text-transform: uppercase; letter-spacing: .04em; }
.facts span { color: var(--muted-ink); }

/* equipment tiles */
.tiles { display: grid; gap: 16px; margin-top: 44px; grid-template-columns: 1fr; }
.tile { position: relative; background: var(--ink-2); padding: 28px 24px 26px; clip-path: var(--chamfer); transition: background .25s; --speed: 1; }
.tile::before { content: ""; position: absolute; left: 0; top: 0; width: 44px; height: 4px; background: var(--yellow); transition: width .35s ease; }
.tile:hover { background: var(--ink-3); --speed: 2.5; }
.tile:hover::before { width: 100%; }
.tile__tag { margin-top: 22px; font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--yellow); }
.tile h3 { margin-top: 6px; font-size: 1.25rem; line-height: 1.15; }
.tile__list { margin-top: 10px; display: grid; gap: 6px; }
.tile__list li { position: relative; padding-left: 18px; color: var(--muted); font-size: 1rem; }
.tile__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--yellow); }
.tile p { margin-top: 8px; color: var(--muted); font-size: 1rem; }
.more__title { display: flex; align-items: center; gap: 14px; margin-top: 56px; font-size: .875rem; font-weight: 600; letter-spacing: .18em; color: var(--muted); }
.more__title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.mini { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
.mini__item { --cut: 8px; --speed: 1; display: flex; align-items: flex-start; gap: 16px; background: var(--ink-2); padding: 18px 20px; clip-path: var(--chamfer); transition: background .25s; }
.mini__item:hover { background: var(--ink-3); --speed: 2.5; }
.mini__item h4 { margin: 0; font-size: 1rem; line-height: 1.2; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
.mini__item p { margin-top: 4px; color: var(--muted); font-size: .9375rem; }
.mini__item > div { min-width: 0; }
.ico.ico--sm { width: 44px; height: 44px; flex: none; }
.fine { margin-top: 28px; max-width: 70ch; color: var(--muted); font-size: .9375rem; padding-left: 22px; position: relative; }
.fine::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; background: var(--yellow); }

.ico { width: 64px; height: 64px; display: block; fill: none; stroke: var(--white); stroke-width: 2.5; stroke-linejoin: miter; stroke-linecap: square; overflow: visible; }
.ico .acc { fill: var(--yellow); stroke: none; }
.ico--gear .spin { transform-origin: 32px 32px; animation: spin calc(16s / var(--speed)) linear infinite; }
.ico--act .rod { animation: rod calc(3.2s / var(--speed)) ease-in-out infinite; }
.ico--belt .box { animation: box calc(4s / var(--speed)) linear infinite; }
.ico--belt .box--b { animation-delay: calc(-2s / var(--speed)); }
.ico--nut .spin { transform-origin: 32px 28px; animation: spin calc(20s / var(--speed)) linear infinite reverse; }
.ico--cnc .head { animation: cnc calc(4.4s / var(--speed)) ease-in-out infinite; }
.ico--chan .slide { animation: slide calc(3.6s / var(--speed)) ease-in-out infinite; }
.ico--led .led { animation: led calc(1.8s / var(--speed)) ease-in-out infinite; }
.ico--led .led--2 { animation-delay: calc(.3s / var(--speed)); }
.ico--led .led--3 { animation-delay: calc(.6s / var(--speed)); }
.ico--led .led--4 { animation-delay: calc(.9s / var(--speed)); }
.ico--led .rays { stroke: var(--yellow); stroke-width: 2.5; animation: rays calc(1.8s / var(--speed)) ease-in-out infinite; }

/* ---------- contact ---------- */
.contact { background: var(--yellow); color: var(--ink); padding-block: clamp(56px, 8vw, 96px); }
.contact__in { display: grid; gap: 36px; align-items: end; }
.contact h2 { max-width: none; }
.contact__lead { margin-top: 18px; max-width: 52ch; font-size: 1.125rem; font-weight: 500; }
.contact__links { display: grid; gap: 14px; }
.contact__address { margin-top: 28px; font-style: normal; font-weight: 500; font-size: 1.0625rem; line-height: 1.5; padding-left: 22px; position: relative; }
.contact__address::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; background: var(--ink); }
.contact__label { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 2px; }
.contact__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.copy { min-height: 40px; padding: 8px 16px; border: 0; background: var(--ink); color: var(--white); font: 700 .8125rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; clip-path: var(--chamfer); transition: background .2s, color .2s; }
.copy:hover { background: var(--white); color: var(--ink); }
.copy[data-done] { background: var(--white); color: var(--ink); }
.copy__status { min-height: 1.4em; margin: 0; font-size: .9375rem; font-weight: 600; }
.big-link { display: block; width: fit-content; max-width: 100%; font-weight: 700; font-size: clamp(1.1rem, 3.6vw, 1.875rem); line-height: 1.15; text-decoration: none; border-bottom: 4px solid var(--ink); padding-bottom: 4px; overflow-wrap: anywhere; transition: background .2s, color .2s; }
.big-link:hover { background: var(--ink); color: var(--yellow); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); border-top: 4px solid var(--yellow); padding-block: 40px; font-size: .9375rem; color: var(--muted); }
.footer__in { display: grid; gap: 20px; align-items: center; }
.footer__mark { width: 40px; height: 40px; }
.footer__text p + p { margin-top: 2px; }
.footer__text strong { color: var(--white); font-size: 1.0625rem; letter-spacing: .04em; text-transform: uppercase; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer__links a { text-underline-offset: 3px; }
.footer__links a:hover { color: var(--yellow); }

/* ---------- reveal on scroll (script adds .will-reveal only to below-the-fold items) ---------- */
.will-reveal { transform: translateY(16px); }
.will-reveal.is-in { transform: none; transition: transform .6s ease; }
.tile.will-reveal.is-in:nth-child(2) { transition-delay: .06s; }
.tile.will-reveal.is-in:nth-child(3) { transition-delay: .12s; }
.tile.will-reveal.is-in:nth-child(4) { transition-delay: .18s; }

/* ---------- animation ---------- */
@keyframes build { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
@keyframes sweep { from { transform: translateX(0); } to { transform: translateX(558px); } }
@keyframes s-draw { 0% { stroke-dashoffset: 1; opacity: 1; } 22% { stroke-dashoffset: 0; opacity: 1; } 34% { opacity: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes s-fill { 0%, 16% { opacity: 0; } 34% { opacity: 1; } 88% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes s-member { 0%, 12% { opacity: 0; transform: translate(-26px, 26px); } 32% { opacity: 1; transform: translate(0, 0); } 88% { opacity: 1; transform: translate(0, 0); } 96%, 100% { opacity: 0; transform: translate(0, 0); } }
@keyframes s-load { 0%, 34% { opacity: 0; } 40% { opacity: 1; } 86% { opacity: 1; } 94%, 100% { opacity: 0; } }
@keyframes dot-y { from { top: 0; } to { top: calc(100% - 10px); } }
@keyframes dot-x { from { left: 0; } to { left: calc(100% - 10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes cnc { 0%, 100% { transform: translate(-9px, 0); } 22% { transform: translate(-9px, 3px); } 50% { transform: translate(9px, 3px); } 72% { transform: translate(9px, 0); } }
@keyframes rod { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-16px); } }
@keyframes box { 0% { transform: translateX(0); opacity: 0; } 12% { opacity: 1; } 82% { opacity: 1; } 100% { transform: translateX(40px); opacity: 0; } }
@keyframes slide { 0% { transform: translateY(-34px); opacity: 0; } 35% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(0); opacity: 0; } }
@keyframes led { 0%, 100% { opacity: .25; } 25%, 45% { opacity: 1; } }
@keyframes rays { 0%, 100% { opacity: .1; } 35%, 55% { opacity: 1; } }

/* ---------- breakpoints ---------- */
@media (min-width: 640px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 720px) {
  .nav a:not(.nav__cta) { display: inline-block; }
  .brand img { height: 44px; }
  .facts { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .contact__in { grid-template-columns: 1.1fr 1fr; gap: 56px; }
  .footer__in { grid-template-columns: auto 1fr auto; gap: 28px; }
}
@media (min-width: 1100px) {
  .tiles { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
  .mini { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .hero__in { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .flow { grid-template-columns: 1fr 120px 1fr 120px 1fr; align-items: stretch; }
  .flow__link { width: auto; height: 4px; margin: auto 0; }
  .flow__link::after { left: auto; right: -6px; bottom: 50%; transform: translateY(50%); border: 11px solid transparent; border-left: 14px solid var(--ink); border-right: 0; }
  .flow__dot { top: 50%; left: 0; margin: -5px 0 0 0; animation-name: dot-x; }
  .flow__node { display: flex; flex-direction: column; justify-content: center; }
}

/* ---------- reduced motion: everything holds its finished state ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .will-reveal { transform: none; }
  .build__bar { width: 100%; }
  .s-load { opacity: 1; }
  .ico--led .led, .ico--led .rays { opacity: 1; }
  .blueprint .sweep { display: none; }
}
