/* OpsBash AI — site styles
   Minimal, single stylesheet. No framework. */

@font-face { font-family: "Founders"; src: url("../fonts/FoundersGrotesk-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Founders"; src: url("../fonts/FoundersGrotesk-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Founders"; src: url("../fonts/FoundersGrotesk-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --ink: #0f1512;
  --ink-2: #4a524d;
  --ink-3: #848b86;
  --line: #e4e6e1;
  --brand: #00940a;
  --brand-ink: #00700a;
  --dark: #0d1310;
  --dark-2: #1a221d;
  --display: "Founders", "Helvetica Neue", Arial, sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 48px);
  --section: clamp(80px, 12vw, 152px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.65 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.02; letter-spacing: -0.02em; margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; top: 12px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: var(--section) 0; }
.section + .section { padding-top: 0; }
.band.section, .band + .section, .section + .band { padding-top: var(--section); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Type helpers */
.eyebrow { font: 500 13px/1.5 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 12px; margin: 0 0 28px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.display { font-size: clamp(48px, 8.2vw, 112px); font-weight: 300; letter-spacing: -0.035em; line-height: .96; }
.h2 { font-size: clamp(36px, 5vw, 62px); font-weight: 300; letter-spacing: -0.03em; }
.h3 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.015em; line-height: 1.1; }
.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.55; color: var(--ink-2); max-width: 40em; }
.muted { color: var(--ink-2); }
.accent { color: var(--brand); }

/* Buttons & links */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 28px; border-radius: 999px; font: 500 16px/1 var(--body); border: 1px solid var(--ink); background: var(--ink); color: #fff; transition: background .2s, color .2s, border-color .2s; cursor: pointer; }
.btn:hover { background: var(--brand); border-color: var(--brand); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--sm { height: 44px; padding: 0 22px; font-size: 15px; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow, .link:hover .arrow { transform: translateX(3px); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link .arrow { transition: transform .2s; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(250, 250, 247, .86); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.header.is-scrolled { border-bottom-color: var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 18px; }
.brand img { width: 128px; height: auto; }
.brand__tag { font-size: 13px; line-height: 1.35; color: var(--ink-3); border-left: 1px solid var(--line); padding-left: 18px; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a:not(.btn) { font-size: 16px; color: var(--ink-2); transition: color .2s; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; margin-right: -10px; cursor: pointer; color: var(--ink); }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: currentColor; margin: 6px auto; transition: transform .25s, opacity .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

@media (max-width: 1080px) { .brand__tag { display: none; } }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 76px 0 auto 0; background: var(--bg); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--pad) 28px; border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .nav a:not(.btn) { font-family: var(--display); font-size: 30px; color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 24px; justify-content: center; }
  .nav-open .nav { opacity: 1; transform: none; visibility: visible; }
}

/* Hero */
.hero { padding: clamp(72px, 12vw, 160px) 0 clamp(64px, 9vw, 120px); }
.hero .lead { margin-top: 36px; }
.hero__meta { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(72px, 10vw, 128px); border-top: 1px solid var(--line); }
.hero__meta div { padding: 22px 24px 0 0; font-size: 15px; color: var(--ink-2); }
.hero__meta strong { display: block; font: 400 32px/1 var(--display); color: var(--ink); letter-spacing: -0.02em; margin-bottom: 8px; }
@media (max-width: 760px) { .hero__meta { grid-template-columns: 1fr 1fr; row-gap: 28px; } }

/* Split heading layout */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .split, .split--even { grid-template-columns: 1fr; } }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 64px; }
.pillar { padding: 36px 32px 8px 0; }
.pillar + .pillar { padding-left: 32px; border-left: 1px solid var(--line); }
.pillar .num { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pillar h3 { margin: 18px 0 14px; }
.pillar p { color: var(--ink-2); font-size: 17px; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } .pillar, .pillar + .pillar { padding: 32px 0 8px; border-left: 0; border-top: 1px solid var(--line); } .pillar:first-child { border-top: 0; } }

/* Service list (rows) */
.services { margin-top: 64px; border-top: 1px solid var(--ink); }
.service-row { display: grid; grid-template-columns: 72px 1fr 1.1fr 40px; gap: 24px; align-items: baseline; padding: 32px 0; border-bottom: 1px solid var(--line); transition: padding .25s; }
.service-row .num { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.service-row h3 { font-size: clamp(24px, 2.6vw, 34px); }
.service-row p { margin: 0; color: var(--ink-2); font-size: 16px; }
.service-row .go { justify-self: end; color: var(--ink-3); transition: color .2s, transform .2s; }
a.service-row:hover h3 { color: var(--brand-ink); }
a.service-row:hover .go { color: var(--brand); transform: translateX(4px); }
@media (max-width: 860px) { .service-row { grid-template-columns: 48px 1fr; } .service-row p { grid-column: 2; } .service-row .go { display: none; } }

/* Hero terminal */
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 80px); align-items: end; }
.term { background: var(--dark); color: #cdd5cf; border-radius: 12px; box-shadow: 0 40px 80px -40px rgba(13, 19, 16, .55), 0 0 0 1px rgba(13, 19, 16, .9); font: 400 14px/1.9 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; overflow: hidden; margin-bottom: 6px; }
.term__bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid #1f2924; }
.term__bar i { width: 10px; height: 10px; border-radius: 50%; background: #2b3530; }
.term__bar span { margin-left: 10px; font-size: 12px; color: #6f7a73; }
.term__body { padding: 20px 22px 24px; min-height: 290px; }
.term p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term b { color: #6f7a73; font-weight: 400; }
.t-cmd { color: #fff; }
.t-ok { padding-left: 18px; position: relative; color: #a8b3ab; }
.t-ok::before { content: "✓"; position: absolute; left: 0; color: #3ccf4a; }
.t-cmd + .t-ok { margin-top: 2px; }
.t-ok + .t-cmd { margin-top: 12px; }
.t-idle { margin-top: 12px !important; }
.t-caret { display: inline-block; width: 8px; height: 16px; background: #3ccf4a; vertical-align: -3px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.js .term p { opacity: 0; transform: translateY(4px); animation: line .45s ease forwards; animation-delay: calc(var(--d) * .55s + .4s); }
@keyframes line { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .term p { opacity: 1; transform: none; } }
@media (max-width: 980px) { .hero__grid { grid-template-columns: 1fr; } .term { max-width: 520px; margin-top: 16px; } }
@media (max-width: 520px) { .term { font-size: 12.5px; } .term__body { min-height: 0; } }

/* Services explorer (home) */
.exp { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 6vw, 96px); margin-top: 64px; border-top: 1px solid var(--ink); }
.exp__tab { grid-column: 1; grid-row: var(--r); display: flex; align-items: baseline; gap: 22px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 22px 0; cursor: pointer; color: var(--ink-3); position: relative; transition: color .25s; }
.exp__tab::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1.5px; width: 0; background: var(--brand); transition: width .45s ease; }
.exp__num { font: 400 14px/1 var(--body); font-variant-numeric: tabular-nums; min-width: 22px; }
.exp__name { font: 400 clamp(22px, 2.3vw, 30px)/1.15 var(--display); letter-spacing: -0.015em; }
.exp__tab:hover { color: var(--ink-2); }
.exp__tab[aria-selected="true"] { color: var(--ink); }
.exp__tab[aria-selected="true"]::after { width: 100%; }
.exp__tab[aria-selected="true"] .exp__num { color: var(--brand); }
.exp__panel { grid-column: 2; grid-row: 1 / span 8; padding-top: 28px; align-self: start; position: sticky; top: 100px; }
.exp__panel:not([hidden]) { animation: panel .45s ease; }
@keyframes panel { from { opacity: 0; transform: translateY(8px); } }
.exp__cat { font: 500 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 22px; }
.exp__lead { font: 300 clamp(26px, 2.6vw, 34px)/1.25 var(--display); letter-spacing: -0.015em; color: var(--ink); margin-bottom: 8px; }
.exp__panel .link { margin-top: 28px; }
@media (max-width: 860px) {
  .exp { grid-template-columns: 1fr; }
  .exp__tab, .exp__panel { grid-column: 1; grid-row: auto; }
  .exp__panel { position: static; padding: 4px 0 36px; border-bottom: 1px solid var(--line); }
  .exp__lead { font-size: 22px; }
}

/* Dark band */
.band { background: var(--dark); color: #e8ece9; }
.band .eyebrow { color: #8d968f; }
.band .lead, .band .muted { color: #a8b0aa; }
.band .btn--ghost { color: #fff; border-color: #36403a; }
.band .btn--ghost:hover { border-color: #fff; }
.band .btn { background: #fff; color: var(--ink); border-color: #fff; }
.band .btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.chip { font-size: 15px; padding: 9px 16px; border: 1px solid #2c3530; border-radius: 999px; color: #cfd6d1; }
.chips--light .chip { border-color: var(--line); color: var(--ink-2); background: var(--surface); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 64px; counter-reset: step; }
.step { padding: 28px 28px 0 0; border-top: 1px solid var(--line); position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.step::after { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.step h3 { font-size: 27px; margin: 18px 0 12px; }
.step p { color: var(--ink-2); font-size: 17px; margin: 0; }
.band .step { border-top-color: #2c3530; }
.band .step p { color: #a8b0aa; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Clients */
.clients { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: 48px; }
.clients li { display: flex; align-items: center; justify-content: center; height: 112px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0 20px; }
.clients img { max-height: 30px; width: auto; filter: grayscale(1); opacity: .55; transition: opacity .2s, filter .2s; }
.clients li:hover img { filter: none; opacity: 1; }
@media (max-width: 760px) { .clients { grid-template-columns: repeat(2, 1fr); } }

/* Values / generic grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 64px; }
.grid > * { background: var(--bg); padding: 36px 32px; }
.grid h3 { font-size: 24px; margin-bottom: 10px; }
.grid p { color: var(--ink-2); margin: 0; font-size: 17px; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } }

/* CTA */
.cta { text-align: left; }
.cta .display { max-width: 11ch; }

/* Page header */
.page-head { padding: clamp(64px, 10vw, 136px) 0 clamp(48px, 7vw, 88px); }
.page-head .lead { margin-top: 32px; }

/* Service detail */
.toc { position: sticky; top: 108px; }
.toc a { display: flex; gap: 14px; padding: 10px 0; font-size: 15px; color: var(--ink-2); border-bottom: 1px solid var(--line); transition: color .2s; }
.toc a span { color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: 13px; padding-top: 2px; }
.toc a:hover { color: var(--ink); }
.detail { padding: 72px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.detail:first-child { border-top: 1px solid var(--ink); }
.detail .num { font-size: 13px; color: var(--ink-3); }
.detail h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 300; margin: 14px 0 20px; letter-spacing: -0.025em; }
.detail .lead { font-size: 18px; }
.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin-top: 32px; }
.ticks li { padding: 14px 0 14px 26px; border-top: 1px solid var(--line); position: relative; font-size: 16px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 10px; height: 1.5px; background: var(--brand); }
.stack { margin-top: 28px; font-size: 14px; color: var(--ink-3); }
.stack b { font-weight: 500; color: var(--ink-2); }
@media (max-width: 860px) { .toc { position: static; display: none; } .ticks { grid-template-columns: 1fr; } }

/* Contact */
.contact-list { border-top: 1px solid var(--line); margin-top: 48px; }
.contact-list li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-list small { display: block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.contact-list a:hover { color: var(--brand-ink); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--ink-2); }
.field input, .field select, .field textarea { font: inherit; font-size: 17px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid #cfd3cd; border-radius: 0; padding: 10px 0 12px; transition: border-color .2s; -webkit-appearance: none; appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23848b86' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; padding-right: 24px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field .err { font-size: 14px; color: #b42318; min-height: 1em; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-bottom-color: #b42318; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .note { font-size: 14px; color: var(--ink-3); align-self: center; margin: 0; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 72px 0 36px; font-size: 16px; }
.footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; }
.footer h4 { font: 500 13px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 20px; }
.footer li { margin-bottom: 10px; }
.footer a { color: var(--ink-2); transition: color .2s; }
.footer a:hover { color: var(--ink); }
.footer address { font-style: normal; color: var(--ink-2); line-height: 1.6; }
.footer__brand img { width: 128px; margin-bottom: 18px; }
.footer__brand p { color: var(--ink-3); max-width: 22em; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* Reveal on scroll (progressive) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
