/* Midpoint Software — homepage, November 2026. Loaded after theme.css. */

.hx-hl { background: linear-gradient(transparent 62%, var(--sand) 62%, var(--sand) 92%, transparent 92%); }
.hx-mono { font-family: var(--mono); }
.hx-label { font-family: var(--mono); font-size: 12.5px; letter-spacing: .18em; color: var(--gold); margin: 0; }
.hx-grid-bg { background-image: linear-gradient(rgba(41,62,83,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(41,62,83,.07) 1px, transparent 1px); background-size: 56px 56px; }
.hx-section { border-bottom: 1px solid var(--line); }
.hx-pad { padding-block: clamp(64px, 8vw, 104px); }
.hx-h2 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1; letter-spacing: -.03em; font-weight: 600; margin: 0; }
.hx-h2-sm { font-size: clamp(32px, 4vw, 54px); line-height: 1.04; }
.hx-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; margin-bottom: 56px; }
.hx-head > div { display: flex; flex-direction: column; gap: 18px; max-width: 820px; }
.hx-head > p { max-width: 420px; font-size: 16.5px; }

/* Status bar */
.hx-status { background: #1B2530; color: #C1CCD7; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; }
.hx-status .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 32px; padding-block: 9px; }
.hx-status span { display: inline-flex; align-items: center; gap: 9px; }
.hx-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sand); animation: hxPulse 1.6s ease-in-out infinite; }

/* Hero */
.hx-hero { position: relative; }
.hx-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 75% at 22% 45%, #F4F3EE 30%, rgba(244,243,238,0) 100%); pointer-events: none; }
.hx-hero .wrap { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 56px 64px; padding-block: clamp(56px, 7vw, 92px) clamp(64px, 8vw, 104px); }
.hx-hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hx-hero-copy .hx-label { display: flex; align-items: center; gap: 12px; }
.hx-hero-copy .hx-label::before { content: ""; width: 28px; height: 2px; background: var(--sand); flex: none; }
.hx-hero h1 { margin: 0; font-weight: 600; font-size: clamp(44px, 6.2vw, 92px); line-height: 1; letter-spacing: -.035em; text-wrap: balance; }
.hx-hero h1 em { background: linear-gradient(transparent 62%, var(--sand) 62%, var(--sand) 92%, transparent 92%); }
.hx-lede { max-width: 540px; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.6; }
.hx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.hx-actions .button { padding: 17px 28px; font-size: 16px; gap: 14px; }
.hx-ghost { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; padding: 15.5px 26px; border: 1.5px solid var(--navy); color: var(--navy); font-weight: 600; font-size: 16px; transition: background .18s ease, color .18s ease; }
.hx-ghost:hover { background: var(--navy); color: #F4F3EE; }
.hx-note { display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--mono); font-size: 12.5px; color: #55657A; }

/* Pipeline console */
.hx-console-wrap { flex: 1 1 460px; min-width: 0; max-width: 640px; position: relative; }
.hx-console-wrap::before { content: ""; position: absolute; top: -18px; right: -18px; width: 120px; height: 120px; border-top: 2px solid var(--navy); border-right: 2px solid var(--navy); }
.hx-console-wrap::after { content: ""; position: absolute; bottom: -18px; left: -18px; width: 120px; height: 120px; background: var(--sand); z-index: 0; }
.hx-console { position: relative; z-index: 1; background: #202831; color: #F1F1EE; border: 1px solid #131B24; box-shadow: 0 36px 80px rgba(27,37,48,.28); overflow: hidden; }
.hx-scan { position: absolute; left: 0; right: 0; top: 0; height: 48px; background: linear-gradient(rgba(223,195,142,0), rgba(223,195,142,.08)); border-bottom: 1px solid rgba(223,195,142,.3); pointer-events: none; animation: hxScan 6s linear infinite; }
.hx-console-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid #33465A; font-family: var(--mono); font-size: 12px; color: #B8C7D5; }
.hx-lights { display: flex; gap: 7px; }
.hx-lights i { width: 10px; height: 10px; border-radius: 50%; background: #3B5065; }
.hx-live { color: var(--sand); }
.hx-steps { list-style: none; margin: 0; padding: 10px 20px 6px; }
.hx-steps li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 0; border-bottom: 1px dashed #33465A; }
.hx-steps li:last-child { border-bottom: 0; }
.hx-steps .n { font-family: var(--mono); font-size: 12px; color: var(--sand); }
.hx-steps .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hx-steps .t b { font-family: var(--display); font-weight: 600; font-size: 17px; }
.hx-steps .t span { font-size: 13.5px; color: #B8C7D5; }
.hx-tag { font-family: var(--mono); font-size: 11.5px; color: #B8C7D5; border: 1px solid #3B5065; padding: 4px 9px; }
.hx-tag.next { border-style: dashed; border-color: #55697F; }
.hx-tag.now { color: #1B2530; background: var(--sand); border-color: var(--sand); display: inline-flex; align-items: center; gap: 7px; }
.hx-tag.now i { width: 6px; height: 6px; border-radius: 50%; background: #1B2530; animation: hxPulse 1.6s ease-in-out infinite; }
.hx-bar { flex: 1 1 100%; height: 3px; background: #33465A; margin-left: 30px; }
.hx-bar i { display: block; height: 3px; width: 40%; background: var(--sand); animation: hxRun 5s ease-in-out infinite; }
.hx-prompt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 14px 20px; border-top: 1px solid #33465A; background: #19212A; font-family: var(--mono); font-size: 12px; color: #B8C7D5; }
.hx-prompt b { color: var(--sand); font-weight: 500; }
.hx-prompt span { color: #F1F1EE; border: 1px solid #3B5065; padding: 3px 9px; }
.hx-cursor { width: 8px; height: 15px; background: var(--sand); animation: hxBlink 1.1s steps(1) infinite; }

/* Scroll ribbons */
.hx-ribbons { overflow: hidden; border-bottom: 1px solid var(--line); }
.hx-ribbon-row { padding: 26px 0 18px; }
.hx-ribbon-row.dark { padding: 18px 0; background: var(--navy); }
.hx-ribbon { display: flex; align-items: center; gap: 44px; width: max-content; white-space: nowrap; will-change: transform; font-family: var(--display); font-weight: 700; font-size: clamp(40px, 6vw, 84px); line-height: 1; letter-spacing: -.03em; color: var(--navy); }
.hx-ribbon i { font-style: normal; color: var(--sand); }
.hx-ribbon-row.dark .hx-ribbon { gap: 36px; font-family: var(--mono); font-weight: 500; font-size: clamp(16px, 2vw, 26px); letter-spacing: .14em; color: var(--sand); }
.hx-ribbon-row.dark .hx-ribbon i { color: #7F93A8; }
.hx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; }

/* Cards */
.hx-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 24px; }
.hx-cards.four { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.hx-card { height: 100%; box-sizing: border-box; background: #FFFFFF; border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 14px; transition: translate .22s ease, box-shadow .22s ease, border-color .22s ease; }
.hx-card:hover { translate: 0 -4px; border-color: var(--navy); box-shadow: 8px 8px 0 var(--sand); }
.hx-card.dev { background: #FBFAF6; border: 1.5px dashed #8A99AA; }
.hx-card-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hx-icon { width: 52px; height: 52px; border-radius: 12px; flex: none; object-fit: cover; }
.hx-icon.mono { background: var(--navy); color: var(--sand); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 500; font-size: 15px; }
.hx-cat { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--gold); text-align: right; }
.hx-card h3 { margin: 6px 0 0; font-weight: 600; font-size: 26px; letter-spacing: -.02em; }
.hx-card p { margin: 0; font-size: 15px; }
.hx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--navy); }
.hx-chips span { border: 1px solid #B5BEC8; padding: 4px 9px; }
.hx-chips .soon { border-style: dashed; border-color: #8A99AA; color: #55657A; }
.hx-chips .dev { background: var(--navy); border-color: var(--navy); color: #F4F3EE; display: inline-flex; align-items: center; gap: 7px; }
.hx-chips .dev i { width: 6px; height: 6px; border-radius: 50%; background: var(--sand); animation: hxPulse 1.6s ease-in-out infinite; }
.hx-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.hx-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; font-size: 15px; color: var(--navy); }
.hx-links a + a { font-weight: 500; font-size: 13.5px; color: #4B5A69; }
.hx-links a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.hx-more { margin-top: 36px; }
.hx-more a { font-weight: 600; color: var(--navy); border-bottom: 2px solid var(--sand); padding-bottom: 3px; }
.hx-alt { background-color: var(--paper); }

/* Custom development: stacking cards */
.hx-custom { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px 72px; }
.hx-custom-intro { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hx-custom-intro .button { align-self: flex-start; margin-top: 10px; }
.hx-stack { flex: 1.2 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hx-stack article { position: sticky; top: 110px; min-height: 170px; box-sizing: border-box; display: flex; gap: 24px; padding: 30px 32px; background: #FFFFFF; border: 1px solid var(--navy); box-shadow: 0 -10px 30px rgba(27,37,48,.08); }
.hx-stack article:nth-child(2) { top: 130px; background: var(--paper); }
.hx-stack article:nth-child(3) { top: 150px; background: var(--sand); }
.hx-stack article:nth-child(4) { top: 170px; background: var(--navy); color: #F1F1EE; }
.hx-stack article > span { font-family: var(--mono); font-size: 13px; color: var(--gold); padding-top: 5px; }
.hx-stack article:nth-child(3) > span { color: #3A2F17; }
.hx-stack article:nth-child(4) > span { color: var(--sand); }
.hx-stack h3 { margin: 0 0 8px; font-weight: 600; font-size: 24px; }
.hx-stack p { margin: 0; font-size: 15.5px; }
.hx-stack article:nth-child(3) p { color: #2A2412; }
.hx-stack article:nth-child(4) p { color: #C1CCD7; }

/* Approach band */
.hx-approach { background-color: var(--navy); color: #F1F1EE; background-image: linear-gradient(rgba(241,241,238,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(241,241,238,.06) 1px, transparent 1px); background-size: 56px 56px; }
.hx-approach .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 32px 72px; padding-block: clamp(64px, 7vw, 96px); }
.hx-approach .hx-label { color: var(--sand); }
.hx-approach-title { flex: 1.3 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.hx-approach h2 { margin: 0; font-weight: 700; font-size: clamp(40px, 5.6vw, 84px); line-height: .98; letter-spacing: -.035em; }
.hx-approach h2 span { color: var(--sand); }
.hx-approach-copy { flex: 1 1 340px; min-width: 0; }
.hx-approach-copy p { font-size: 18px; line-height: 1.6; color: #D5DDE5; }
.hx-approach-copy a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 14px; color: var(--sand); font-weight: 600; }
.hx-approach-copy a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Industries */
.hx-industries { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.hx-industry { display: flex; align-items: center; gap: 18px; padding: 24px 26px; background: #FFFFFF; border: 1px solid var(--line); transition: translate .22s ease, box-shadow .22s ease, border-color .22s ease; }
.hx-industry:hover { translate: 0 -3px; border-color: var(--navy); box-shadow: 6px 6px 0 var(--sand); }
.hx-industry span { font-family: var(--mono); font-size: 12px; color: var(--gold); }
.hx-industry b { font-family: var(--display); font-weight: 600; font-size: 19px; }

/* Process */
.hx-rule { height: 3px; background: var(--navy); transform-origin: left center; }
.hx-process { list-style: none; margin: 0; padding: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 20px; }
.hx-process li > div { height: 100%; box-sizing: border-box; background: #FFFFFF; border: 1px solid var(--line); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.hx-process .num { font-family: var(--display); font-weight: 700; font-size: 56px; line-height: 1; color: #C9CED3; }
.hx-process h3 { margin: 0; font-weight: 600; font-size: 22px; }
.hx-process p { margin: 0; font-size: 15.5px; }
.hx-process li:last-child > div { background: var(--navy); border-color: var(--navy); color: #F1F1EE; }
.hx-process li:last-child .num { color: var(--sand); }
.hx-process li:last-child p { color: #D5DDE5; }

/* Closing call to action */
.hx-cta { padding-block: clamp(72px, 9vw, 120px); }
.hx-cta-box { border: 1.5px solid var(--navy); background: #FFFFFF; box-shadow: 14px 14px 0 var(--sand); padding: clamp(32px, 6vw, 80px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 36px 56px; }
.hx-cta-box > div:first-child { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hx-cta-box h2 { margin: 0; font-weight: 600; font-size: clamp(40px, 5.6vw, 84px); line-height: 1; letter-spacing: -.035em; }
.hx-cta-box p { font-size: 18px; max-width: 520px; }
.hx-cta-side { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.hx-cta-side .button { padding: 20px 34px; font-size: 18px; gap: 14px; }
.hx-cta-side small { font-size: 14px; color: var(--muted); }
.hx-cta-side a:not(.button) { font-family: var(--mono); font-size: 13.5px; min-height: 44px; display: inline-flex; align-items: center; color: var(--navy); }

/* Scroll motion. Applied only when home.js adds .hx-motion, so the page is
   fully visible without JavaScript or with reduced motion turned on. */
.hx-motion [data-slide] > * { opacity: 0; transition: opacity .6s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); will-change: transform, opacity; }
.hx-motion [data-slide="up"] > * { transform: translateY(90px); }
.hx-motion [data-slide="left"] > * { transform: translateX(-140px); }
.hx-motion [data-slide="right"] > * { transform: translateX(140px); }
.hx-motion [data-slide="grow"] > * { opacity: 1; transform: scaleX(0); transform-origin: left center; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.hx-motion [data-slide].is-in > * { opacity: 1; transform: none; }

@keyframes hxPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@keyframes hxRun { 0% { width: 8%; } 60% { width: 72%; } 100% { width: 8%; } }
@keyframes hxScan { 0% { transform: translateY(-10%); } 100% { transform: translateY(1100%); } }
@keyframes hxBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

@media (max-width: 850px) {
  .hx-console-wrap::before, .hx-console-wrap::after { display: none; }
  .hx-stack article { position: static; }
  .hx-head { margin-bottom: 36px; }
  .hx-motion [data-slide="left"] > *, .hx-motion [data-slide="right"] > * { transform: translateY(60px); }
}
@media (prefers-reduced-motion: reduce) {
  .hx-dot, .hx-scan, .hx-tag.now i, .hx-bar i, .hx-cursor, .hx-chips .dev i { animation: none; }
  .hx-card, .hx-industry { transition: none; }
}
