/* Borestack(TM) public website. Self-hosted fonts, no external requests. */
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
  --mud: #EEF1F0;
  --surface: #FFFFFF;
  --ink: #12303A;
  --muted: #4E636B;
  --line: #C9D2D3;
  --field: #6E848C;
  --petrol: #12303A;
  --petrol-2: #1B4150;
  --on-petrol: #F1F5F5;
  --on-petrol-muted: #C3D3D7;
  --hivis: #F2C200;
  --hivis-hover: #FFD426;
  --on-hivis: #1B1600;
  --danger: #A8261B;
  --ok: #1D6E46;
  --focus: #12303A;
  --display: "Barlow Semi Condensed", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --body: "Barlow", "Segoe UI", Roboto, Arial, sans-serif;
  --radius-s: 6px;
  --radius-m: 8px;
  --radius-l: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --mud: #0E1A1F;
    --surface: #15252C;
    --ink: #E4ECEE;
    --muted: #A3B5BB;
    --line: #2A3E46;
    --field: #71909A;
    --petrol: #12303A;
    --petrol-2: #1B4150;
    --danger: #FF9C92;
    --ok: #86D9AE;
    --focus: #F2C200;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --mud: #0E1A1F;
  --surface: #15252C;
  --ink: #E4ECEE;
  --muted: #A3B5BB;
  --line: #2A3E46;
  --field: #71909A;
  --petrol: #12303A;
  --petrol-2: #1B4150;
  --danger: #FF9C92;
  --ok: #86D9AE;
  --focus: #F2C200;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 84px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--mud); color: var(--ink); font: 400 1.125rem/1.6 var(--body); }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 1.35rem + 2.8vw, 3.4rem); }
h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.15; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: max(20px, min(5vw, 48px), env(safe-area-inset-left, 0px)); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 36em; margin-top: 16px; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--hivis); color: var(--on-hivis); padding: 12px 16px; border-radius: var(--radius-s); font-weight: 600; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: var(--radius-m); border: 2px solid transparent; font: 600 1.2rem/1 var(--display); letter-spacing: 0.01em; text-decoration: none; cursor: pointer; }
.btn-hivis { background: var(--hivis); color: var(--on-hivis); }
.btn-hivis:hover { background: var(--hivis-hover); }
.btn-ghost { border-color: rgba(241, 245, 245, 0.6); color: var(--on-petrol); }
.btn-ghost:hover { border-color: var(--on-petrol); background: rgba(241, 245, 245, 0.08); }
.btn-small { min-height: 42px; padding: 0 16px; font-size: 1.05rem; }
.btn-wide { width: 100%; min-height: 56px; }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

/* dark bands: header, hero, security, footer */
.top, .hero, .sec, .foot { background: var(--petrol); color: var(--on-petrol); --focus: #F2C200; }

/* header */
.top { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); border-bottom: 1px solid rgba(195, 211, 215, 0.14); }
.top-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.5rem/1 var(--display); text-decoration: none; color: var(--on-petrol); }
.brand-mark { width: 16px; height: 16px; border-radius: 3px; background: var(--hivis); }
.top-nav { display: flex; gap: 26px; margin-left: auto; }
.top-nav a { color: var(--on-petrol-muted); text-decoration: none; font-weight: 500; padding: 8px 0; }
.top-nav a:hover { color: var(--on-petrol); text-decoration: underline; }
.top-actions { display: flex; align-items: center; gap: 18px; }
.link-quiet { color: var(--on-petrol); font-weight: 500; text-decoration: none; padding: 10px 2px; }
.link-quiet:hover { text-decoration: underline; }

/* hero */
.hero { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(3rem, 1.3rem + 6vw, 6rem); line-height: 0.94; letter-spacing: -0.02em; max-width: 12ch; }
.hero-sub { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem); color: var(--on-petrol-muted); max-width: 34em; margin-top: 24px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-note { margin-top: 22px; color: var(--on-petrol-muted); font-size: 1rem; }
.hero-art { margin: 0; justify-self: center; width: 100%; max-width: 440px; }
.hero-art svg { display: block; width: 100%; height: auto; }
.hero-art figcaption { margin-top: 8px; text-align: center; color: var(--on-petrol-muted); font-size: 0.95rem; }

/* schematic */
.scale path, .leaders path { stroke: #6B8C96; stroke-width: 1; fill: none; }
.scale text { fill: #9DB6BD; font: 500 12px var(--body); text-anchor: end; }
.ground { stroke: #9DB6BD; stroke-width: 2; }
.sand { fill: var(--hivis); }
.cement rect { fill: #2D5462; }
.cs { stroke: #E2EBED; stroke-width: 3.5; fill: none; }
.tb { stroke: #9DB6BD; stroke-width: 2.5; fill: none; }
.shoe, .hanger { fill: #E2EBED; }
.packer { fill: #E2EBED; }
.screen { stroke: var(--petrol); stroke-width: 2.5; stroke-dasharray: 2 3; fill: none; }
.lbl text { fill: #D6E2E5; font: 600 14.5px var(--display); }
.bit { fill: var(--hivis); }
@media (prefers-reduced-motion: no-preference) {
  .cs, .tb { stroke-dasharray: 1; animation: draw 0.6s cubic-bezier(.3, .1, .3, 1) both; }
  .d0 { animation-delay: 0.15s; animation-duration: 0.3s; }
  .d1 { animation-delay: 0.35s; animation-duration: 0.55s; }
  .d2 { animation-delay: 0.8s; animation-duration: 1.2s; }
  .d3 { animation-delay: 1.95s; animation-duration: 0.55s; }
  .d4 { animation-delay: 2.55s; animation-duration: 0.7s; }
  .bit { animation: drill 2.5s cubic-bezier(.45, .05, .55, .95) 0.1s both; }
  .cement { animation: fade 0.6s ease-out 1.6s both; }
  .sand { animation: fade 0.5s ease-out 2.3s both; }
  .late { animation: fade 0.6s ease-out 2.9s both; }
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes drill { from { transform: translateY(-505px); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* the pile */
.pile { padding: clamp(64px, 9vw, 112px) 0; }
.pile-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; justify-items: start; }
.files li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 16px; font-weight: 500; color: var(--muted); }
.files s { text-decoration-color: var(--danger); text-decoration-thickness: 2px; }
.files li:nth-child(1) { transform: rotate(-1.6deg); }
.files li:nth-child(2) { transform: rotate(1.2deg) translateX(18px); }
.files li:nth-child(3) { transform: rotate(-0.8deg) translateX(6px); }
.files li:nth-child(4) { transform: rotate(1.8deg) translateX(30px); }
.files li:nth-child(5) { transform: rotate(-1.2deg) translateX(10px); }
.files li.files-now { transform: none; margin-top: 14px; background: var(--petrol); color: var(--on-petrol); border: 0; border-left: 6px solid var(--hivis); border-radius: 0 var(--radius-s) var(--radius-s) 0; font: 700 1.35rem/1.2 var(--display); padding: 14px 18px; }

/* how it works */
.how { background: var(--surface); padding: clamp(64px, 9vw, 112px) 0 clamp(40px, 6vw, 72px); }
.steps { list-style: none; margin: 40px 0 0; padding: 0; }
.step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; padding: 48px 0; border-top: 1px solid var(--line); }
.step:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.step:nth-child(even) .step-text { order: 2; }
.step-n { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--ink); font: 700 1.3rem/1 var(--display); margin-bottom: 14px; }
.step h3 { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.6rem); font-weight: 700; }
.step p { margin-top: 12px; max-width: 32em; color: var(--muted); }
.shot { display: block; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; background: #fff; box-shadow: 0 22px 44px -30px rgba(18, 48, 58, 0.55); }
.shot img { display: block; width: 100%; height: auto; }
.shot-pair { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }

/* engineering */
.eng { padding: clamp(64px, 9vw, 112px) 0; }
.eng-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.mods { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 32px; margin: 36px 0 0; }
.mods div { border-top: 1px solid var(--line); padding-top: 12px; }
.mods dt { font: 600 1.25rem/1.2 var(--display); }
.mods dd { margin: 6px 0 0; color: var(--muted); font-size: 1.05rem; }
.callout { margin-top: 36px; padding: 18px 20px; background: var(--surface); border-left: 6px solid var(--hivis); border-radius: 0 var(--radius-m) var(--radius-m) 0; }
.callout strong { font-family: var(--display); font-size: 1.2rem; display: block; margin-bottom: 4px; }
.eng .shot { margin-top: 8px; }

/* anywhere */
.anywhere { background: var(--surface); padding: clamp(64px, 9vw, 112px) 0; }
.anywhere-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.anywhere-text h3 { margin-top: 36px; }
.anywhere-text h3 + p { margin-top: 10px; color: var(--muted); max-width: 32em; }
.anywhere-media { position: relative; padding: 0 0 120px 0; }
.anywhere-media .shot:first-child { margin-left: 18%; }
.shot-phone { position: absolute; left: 0; bottom: 0; width: 34%; border-radius: 18px; border: 6px solid var(--petrol); }

/* security */
.sec { padding: clamp(64px, 9vw, 112px) 0; }
.facts { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.facts li { border-top: 3px solid var(--hivis); padding-top: 16px; }
.facts h3 { font-size: 1.35rem; }
.facts p { margin-top: 10px; color: var(--on-petrol-muted); font-size: 1.05rem; }

/* faq */
.faq { padding: clamp(64px, 9vw, 112px) 0; }
.faq-wrap { max-width: 860px; }
.faq h2 { margin-bottom: 24px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 20px 48px 20px 0; font: 600 1.35rem/1.25 var(--display); min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -10px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 40em; }

/* book a demo */
.book { background: var(--surface); padding: clamp(64px, 9vw, 112px) 0; }
.book-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.book-alt { margin-top: 32px; font: 600 1.25rem var(--display); }
.contact { list-style: none; margin: 10px 0 0; padding: 0; }
.contact li { margin: 4px 0; }
.contact a { display: inline-block; padding: 6px 0; font-weight: 500; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px; position: relative; }
.field { min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 10px 14px; border: 1.5px solid var(--field); border-radius: var(--radius-s);
  background: var(--surface); color: var(--ink); font: 400 1.1rem/1.4 var(--body);
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.field-error { color: var(--danger); font-weight: 500; font-size: 1rem; margin-top: 6px; }
.field-check { display: grid; grid-template-columns: 30px 1fr; align-items: start; column-gap: 10px; }
.field-check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--ink); }
.field-check label { font-weight: 400; margin: 0; }
.field-check .field-error { grid-column: 2; }
.form .btn-wide { grid-column: 1 / -1; }
.form-status { grid-column: 1 / -1; font-weight: 500; min-height: 1.6em; }
.form-status.is-error { color: var(--danger); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-done { grid-column: 1 / -1; padding: 28px; border-left: 6px solid var(--hivis); background: var(--mud); border-radius: 0 var(--radius-m) var(--radius-m) 0; }
.form-done h3 { font-size: 2rem; }
.form-done p { margin-top: 8px; color: var(--muted); }

/* footer */
.foot { padding: 52px 0 calc(36px + env(safe-area-inset-bottom, 0px)); color: var(--on-petrol-muted); font-size: 1rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px 56px; }
.foot .brand-foot { margin-bottom: 14px; }
.foot p { max-width: 40em; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; justify-items: start; }
.foot-links a { color: var(--on-petrol); display: inline-block; padding: 6px 0; }
.foot-small { grid-column: 1 / -1; font-size: 0.95rem; border-top: 1px solid rgba(195, 211, 215, 0.18); padding-top: 18px; }

/* simple pages: privacy, 404, sent */
.page { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 9vw, 112px); }
.page .wrap { max-width: 820px; }
.page h1 { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.2rem); line-height: 0.98; }
.page h2 { font-size: 1.8rem; margin-top: 40px; }
.page p, .page li { color: var(--ink); max-width: 40em; }
.page p { margin-top: 14px; }
.page ul { padding-left: 22px; margin: 14px 0 0; }
.page li { margin: 6px 0; }
.page .meta { color: var(--muted); margin-top: 12px; }
.page .btn { margin-top: 28px; }
.page-back { margin-top: 28px; }

/* responsive */
@media (max-width: 1020px) {
  .top-nav { display: none; }
  .top-actions { margin-left: auto; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-grid, .pile-grid, .eng-grid, .anywhere-grid, .book-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 340px; }
  .step { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 36px 0; }
  .step:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .step:nth-child(even) .step-text { order: 0; }
  .files { justify-items: stretch; }
  .files li:nth-child(n) { transform: none; }
  .files li:nth-child(odd):not(.files-now) { transform: rotate(-0.8deg); }
  .files li:nth-child(even):not(.files-now) { transform: rotate(0.8deg); }
}
@media (max-width: 620px) {
  .top-row { min-height: 60px; gap: 12px; }
  .brand { font-size: 1.3rem; }
  .top-actions { gap: 10px; }
  .hero-ctas .btn { width: 100%; }
  .hero-art { max-width: 340px; }
  .mods { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .form { grid-template-columns: minmax(0, 1fr); }
  .shot-pair { grid-template-columns: minmax(0, 1fr); }
  .anywhere-media { padding-bottom: 90px; }
  .anywhere-media .shot:first-child { margin-left: 22%; }
  .shot-phone { width: 40%; border-width: 4px; border-radius: 14px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 360px) {
  .link-quiet { display: none; }
}
@media print {
  .top, .hero-ctas, .form, .skip { display: none; }
  body, .hero, .sec, .foot { background: #fff; color: #000; }
}
