/* Windhorse I/O — site styles
   Static pages share this shell; JS only enhances. */

:root {
  --navy: #263C65;
  --navy-deep: #1A2A4A;
  --gold: #E2BE6E;
  --gold-deep: #C9A24F;
  --ink: #1F2A44;
  --muted: #5B6782;
  --line: #E3E7EF;
  --paper: #FBFAF7;
  --max: 1232px;
  --gutter: clamp(24px, 6vw, 80px);
  --head: "Poppins", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- background canvas ---- */
#bg-canvas {
  position: fixed; inset: 0; width: 100%; height: 100vh;
  z-index: -1; pointer-events: none; display: block;
  background: var(--paper);
}

/* ---- shell ---- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251,250,247,0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter) 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand img { height: 34px; display: block; }
.brand { line-height: 0; }

.nav { position: relative; display: flex; gap: 28px; flex-wrap: wrap; }
.nav a {
  font-family: var(--head); font-weight: 500; font-size: 14px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--navy); text-decoration: none; padding: 6px 0;
}
.nav a:hover { color: var(--navy-deep); }
.nav a.is-active { color: var(--navy-deep); }
.nav:not(.has-slider) a.is-active { box-shadow: inset 0 -2px 0 var(--gold); }
.nav__underline {
  position: absolute; left: 0; top: 0; height: 2px; width: 0;
  background: var(--gold); opacity: 0; transform-origin: left center;
  transition: transform .42s cubic-bezier(.65,0,.2,1), width .42s cubic-bezier(.65,0,.2,1), opacity .2s;
  pointer-events: none;
}

.site-main { outline: none; }
#view { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* view transitions (router) */
#view.is-leaving { opacity: 0; transform: translateY(6px); transition: opacity .12s ease, transform .12s ease; }
#view.is-entering { opacity: 0; transform: translateY(6px); }
#view { transition: opacity .28s ease, transform .28s ease; }

.site-footer { border-top: 0; margin-top: 36px; background: transparent; }
.site-footer .wrap {
  max-width: var(--max); margin: 0 auto; padding: 36px var(--gutter) 44px;
  display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between;
  font-size: 14px; color: var(--muted);
}
.site-footer img { height: 26px; display: block; opacity: .9; }
.site-footer a { color: var(--navy); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer a { white-space: nowrap; }
@media (max-width: 560px) { .footer-copy { display: block; margin-bottom: 6px; } .footer-sep { display: none; } }
.footer-tag { font-family: var(--head); letter-spacing: .14em; text-transform: uppercase; font-size: 12px; color: var(--muted); }

/* ---- type ---- */
h1, h2, h3 { font-family: var(--head); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(19px, 2.1vw, 23px); line-height: 1.5; color: var(--ink); max-width: 880px; text-wrap: pretty; }
.eyebrow { font-family: var(--head); font-weight: 500; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 14px; }
.rule { width: 56px; height: 3px; background: var(--gold); border: 0; margin: 22px 0 28px; }
a { color: var(--navy); }

/* ---- sections ---- */
.hero { padding: 88px 0 36px; max-width: 960px; }
.hero h1 { max-width: 24ch; }
.hero.hero-story { padding-bottom: 36px; }
.hero > :last-child { margin-bottom: 0; }
.hero .story { max-width: 720px; margin: 1.5em 0 0; text-wrap: pretty; }
.hero h1 + .story { margin-top: .4em; }
.hero .story + .story { margin-top: 1.1em; }
.hero .lede + .lede { margin-top: .9em; }
.hero .lede-more { max-width: calc(27.74 * clamp(19px, 2.1vw, 23px)); margin-top: 1.2em; text-wrap: pretty; }
.section { padding: 36px 0; }
.section.section-first { padding-top: 88px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.section + .section.section-plain, .section + .section.section-close { border-top: 0; }
.section.section-close { padding: 36px 0; }
.section.section-close .band { margin-top: 0; }
.highlight { background: rgba(226,190,110,0.17); border-radius: 12px; padding: clamp(28px, 4.2vw, 52px); position: relative; }
.highlight::before { content: ""; position: absolute; left: 0; top: max(5%, 14px); bottom: max(5%, 14px); width: 4px; background: var(--navy); border-radius: 0 2px 2px 0; }
.highlight h2 { margin-bottom: .45em; }
.highlight p { max-width: 720px; margin: 0; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; }
.highlight .plain-bullets { max-width: 760px; margin-bottom: 0; }
.highlight .plain-bullets li:last-child { margin-bottom: 0; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head.solo { margin-bottom: 0; }
.section-head.lab-text { margin-bottom: 0; }
.section-head.lab-text > :last-child { margin-bottom: 0; }
.section-head.lab-text h3 { margin-top: 34px; margin-bottom: 14px; }
.section-head.lab-text > h3:last-child { margin-bottom: 0; }
.section-head.lab-text .plain-bullets + p { margin-top: 1em; }
.section-head.solo > :last-child { margin-bottom: 0; }
.plain-bullets { margin: 0; padding-left: 20px; }
.plain-bullets li { margin-bottom: 8px; text-wrap: pretty; }
.plain-bullets li:last-child { margin-bottom: 0; }
.card p.status { font-size: 14px; color: var(--muted); margin: -2px 0 12px; }

.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: rgba(255,255,255,0.72); border: 1px solid var(--line); border-radius: 10px;
  padding: 26px 26px 22px; position: relative;
}
.card::before { content: ""; position: absolute; left: 26px; right: 26px; top: 0; height: 3px; background: var(--gold); border-radius: 0 0 2px 2px; }
.card h3 { margin-top: 10px; }
.card p { color: var(--ink); margin-bottom: 0; font-size: 16px; }
.card ul { margin: 10px 0 0; padding-left: 18px; font-size: 15px; color: var(--ink); }
.card li { margin-bottom: 4px; }

/* ---- client quotes: a grid that holds two or three ---- */
.quotes { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }
.quotes-single { max-width: 640px; }
.quote-carousel { max-width: 640px; }
.project-carousel { max-width: 720px; }
.project-carousel .card::before { left: 0; right: auto; top: max(5%, 12px); bottom: max(5%, 12px); width: 3px; height: auto; border-radius: 0 2px 2px 0; }
.qc-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; border-radius: 10px; }
.qc-track::-webkit-scrollbar { display: none; }
.qc-track:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
.qc-track > * { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; margin: 0; }
.qc-controls { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.qc-btn { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--navy); background: transparent; color: var(--navy); font-size: 18px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; font-family: inherit; }
.qc-btn:hover:not([disabled]) { background: rgba(38,60,101,0.06); }
.qc-btn[disabled] { opacity: .35; cursor: default; }
.qc-count { font-size: 14px; color: var(--muted); min-width: 3.2em; text-align: center; font-variant-numeric: tabular-nums; }
.quote {
  margin: 0; display: flex; flex-direction: column;
  background: rgba(255,255,255,0.72); border: 1px solid var(--line);
  border-radius: 10px; padding: 26px 26px 22px; position: relative;
}
.quote::before { content: ""; position: absolute; left: 0; top: max(5%, 12px); bottom: max(5%, 12px); width: 3px; background: var(--gold); border-radius: 0 2px 2px 0; }
.quote blockquote { margin: 0 0 18px; font-size: 17px; line-height: 1.6; color: var(--ink); text-wrap: pretty; }
.quote figcaption { margin-top: auto; font-size: 14px; color: var(--muted); }

.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 170px 1fr; gap: 20px; }
.list-plain li:first-child { border-top: 1px solid var(--line); }
.list-plain .k { font-family: var(--head); font-weight: 600; font-size: 14px; letter-spacing: .04em; color: var(--navy); }
@media (max-width: 640px) { .list-plain li { grid-template-columns: 1fr; gap: 4px; } }

.btn {
  display: inline-block; font-family: var(--head); font-weight: 600; font-size: 14px; letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none; padding: 14px 22px; border-radius: 6px;
  background: var(--navy); color: #fff; border: 2px solid var(--navy); transition: background .2s, color .2s;
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: rgba(38,60,101,0.06); }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.stat-row { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 40px; }
.stat .n { font-family: var(--head); font-weight: 700; font-size: 34px; color: var(--navy); line-height: 1; }
.stat .l { font-size: 13px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-top: 6px; font-family: var(--head); }

.band {
  background: var(--navy); color: #E9EDF5; border-radius: 12px; padding: 48px 44px; margin: 24px 0 0;
  position: relative; overflow: hidden;
}
.band h2 { color: #fff; }
.band p { color: #C9D3E6; max-width: 56ch; }
.band .btn { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.band .btn:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.band .ghost-mark { position: absolute; right: -40px; top: -60px; height: 320px; opacity: .12; }
@media (max-width: 640px) { .band { padding: 36px 26px; } }
.band .band-line { font-size: clamp(19px, 2.1vw, 23px); line-height: 1.5; color: #fff; max-width: 38ch; margin: 0; text-wrap: balance; }
.band-close .actions { margin-top: 26px; }

.case { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 40px 0; border-top: 1px solid var(--line); align-items: start; }
.case:first-of-type { border-top: 0; padding-top: 0; }
.case .meta { font-size: 14px; color: var(--muted); }
.case .meta span { display: block; margin-bottom: 6px; }
.case .meta b { color: var(--navy); font-family: var(--head); font-weight: 600; letter-spacing: .04em; font-size: 12px; text-transform: uppercase; display: block; }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; gap: 16px; } }

.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.aside { background: rgba(255,255,255,0.72); border: 1px solid var(--line); border-radius: 10px; padding: 24px; font-size: 15px; }
.aside h3 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; margin-bottom: 12px; }
.aside ul { margin: 0; padding-left: 18px; } .aside li { margin-bottom: 6px; }

/* ---- form ---- */
.section.section-form { padding-top: 12px; }
form.contact { max-width: 620px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--head); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #C9D0DD; border-radius: 6px; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.field textarea { min-height: 150px; resize: vertical; }
.field label .opt { font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; }
form.contact [data-netlify-recaptcha]:not(:empty) { margin-bottom: 18px; }
.hp { position: absolute; left: -9999px; }

.small { font-size: 14px; color: var(--muted); }

/* ---- phone nav: logo row, then links in one even row ---- */
@media (max-width: 640px) {
  :root { --gutter: 24px; }
  .site-header .wrap { flex-wrap: wrap; gap: 10px 0; padding: 17px 20px 12px; }
  .brand img { height: 28px; }
  .nav { width: 100%; justify-content: space-between; gap: 0; }
  .nav a { font-size: 12px; letter-spacing: .05em; padding: 4px 0; }
  .hero { padding: 48px 0 36px; }
  .section.section-first { padding-top: 48px; }
}

.range { list-style: none; padding: 0; margin: 28px 0 0; font-size: 15px; }
.range li { padding: 9px 0 9px 18px; border-top: 1px solid var(--line); position: relative; }
.range li::before { content: ""; position: absolute; left: 0; top: 17px; width: 8px; height: 2px; background: var(--gold); }
.range li:last-child { border-bottom: 1px solid var(--line); }

/* ---- no orphans: balance headings, pretty-wrap body; JS widont is the fallback ---- */
h1, h2, h3, .eyebrow { text-wrap: balance; }
p, li { text-wrap: pretty; }

.legal { max-width: 720px; }
.legal h2 { font-size: 20px; margin-top: 28px; }
.legal p { font-size: 16px; }

/* ---- header: nav + LinkedIn button ---- */
.nav-wrap { display: flex; align-items: center; gap: 28px; }
.li-btn {
  font-family: var(--head); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy); text-decoration: none; border: 1.5px solid var(--navy); border-radius: 999px; padding: 7px 14px;
  transition: background .2s, color .2s; white-space: nowrap;
}
.li-btn:hover { background: var(--navy); color: #fff; }
.header-cta { padding: 6px 14px; font-size: 12px; letter-spacing: .06em; white-space: nowrap; }
@media (max-width: 959px) { .header-cta { display: none; } }
@media (max-width: 640px) {
  .nav-wrap { width: 100%; flex-wrap: wrap; gap: 10px; }
  .nav { width: auto; flex: 1; justify-content: space-between; }
  .li-btn { padding: 5px 10px; font-size: 11px; }
}

/* ---- team ---- */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
@media (max-width: 640px) { .team { grid-template-columns: 1fr; gap: 16px; } }
.member { background: rgba(255,255,255,0.72); border: 1px solid var(--line); border-radius: 10px; position: relative; }
.member::before { content: ""; position: absolute; left: 0; top: max(5%, 10px); bottom: max(5%, 10px); width: 3px; background: var(--gold); border-radius: 0 2px 2px 0; }
.member summary { list-style: none; display: flex; align-items: center; gap: 22px; padding: 22px; cursor: pointer; border-radius: 10px; }
.member summary::-webkit-details-marker { display: none; }
.member summary:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.avatar { width: 152px; height: 152px; border-radius: 12px; background: var(--navy); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 700; font-size: 16px; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.who { display: flex; flex-direction: column; min-width: 0; }
.name { font-family: var(--head); font-weight: 600; color: var(--navy); font-size: 19px; line-height: 1.3; text-wrap: balance; }
.title { font-size: 15px; color: var(--muted); margin-top: 4px; text-wrap: balance; }
.bio-toggle { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold-deep); text-decoration-thickness: 2px; text-underline-offset: 4px; align-self: flex-start; }
.member summary:hover .bio-toggle { text-decoration-color: var(--navy); }
.bio-toggle .when-open, .member[open] .bio-toggle .when-closed { display: none; }
.member[open] .bio-toggle .when-open { display: inline; }
.name .nw, .nw { white-space: nowrap; }
.bio { padding: 0 22px 14px; font-size: 15px; } .bio p { margin-bottom: 10px; text-wrap: pretty; }
@media (max-width: 900px) {
  .member summary { gap: 16px; padding: 18px; }
  .avatar { width: 120px; height: 120px; }
  .name { font-size: 17px; }
  .title { font-size: 14px; }
  .bio { padding: 0 18px 10px; }
}
@media (max-width: 640px) {
  .member summary { gap: 14px; padding: 16px; }
  .name { font-size: 16px; }
  .bio { padding: 0 16px 8px; }
}
@media (max-width: 380px) {
  .member summary { flex-direction: column; align-items: flex-start; }
}
#pricing, #how-we-work { scroll-margin-top: 90px; }

/* LinkedIn: official icon file at assets/linkedin.svg; text shows only if the icon is missing */
.li-btn { display: inline-flex; align-items: center; gap: 8px; }
.li-icon { width: auto; height: 22px; display: block; }
.li-btn:has(.li-icon) { border: 0; padding: 4px; border-radius: 4px; }
.li-btn:has(.li-icon) .li-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.li-btn:has(.li-icon):hover { background: transparent; opacity: .75; }

/* ---- steps, status tags ---- */
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }
.step { font-family: var(--head); font-weight: 600; font-size: 13px; letter-spacing: .14em; color: var(--gold-deep); margin: 10px 0 0; }
.card .step + h3 { margin-top: 4px; }
.tag { display: inline-block; margin-top: 12px; font-family: var(--head); font-weight: 600; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); background: rgba(226,190,110,0.28); border-radius: 999px; padding: 4px 10px; }
.card .tag + h3 { margin-top: 10px; }
#work, .member { scroll-margin-top: 90px; }
#work .plain-bullets + p { margin-top: 20px; }
#work h3 { margin-top: 30px; margin-bottom: 14px; }
.btn.btn-gold { background: rgba(226,190,110,0.28); border-color: var(--gold); color: var(--navy-deep); }
.btn.btn-gold:hover { background: rgba(226,190,110,0.5); border-color: var(--gold); }
.btn.btn-gold span { display: inline-block; margin-left: 4px; transition: transform .2s; }
.btn.btn-gold:hover span { transform: translateX(3px); }
#work .plain-bullets + p.ai-cta { margin-top: 28px; }
.lab-text p.ai-cta { margin-top: 26px; }

/* ---- home hero: two-word headline with the old headline as its subhead ---- */
.hero h1.hero-title { max-width: none; font-size: clamp(38px, 6.2vw, 68px); margin-bottom: .25em; white-space: nowrap; }
.hero-title .bar { color: var(--gold); font-weight: 500; margin: 0 .12em; }
.hero-sub { font-family: var(--head); font-weight: 600; color: var(--navy); font-size: clamp(20px, 2.6vw, 28px); line-height: 1.25; margin: 0 0 18px; max-width: 26ch; text-wrap: balance; }
@media (max-width: 420px) { .hero h1.hero-title { font-size: 34px; } }
