@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f3ed;
  --ink: #20241f;
  --muted: #64685f;
  --line: #d6d8ce;
  --orange: #be391a;
  --orange-bright: #f5693c;
  --dark: #20251f;
  --dark-muted: #abb3a5;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --gutter: clamp(1.25rem, 4.5vw, 5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Space Grotesk", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
::selection { background: var(--orange); color: white; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a, button { touch-action: manipulation; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 6px; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 500; }
p { line-height: 1.65; }
.container { width: min(100%, 1440px); padding-inline: var(--gutter); margin-inline: auto; }
.eyebrow { display: flex; align-items: center; gap: .65rem; font: 400 .69rem/1.6 var(--mono); letter-spacing: .075em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--orange); flex: 0 0 7px; }
.arrow { display: inline-block; font-family: Arial, sans-serif; font-weight: 400; transition: transform .2s ease; }
a:hover .arrow, button:hover .arrow { transform: translate(3px, -3px); }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 100; padding: 1rem 1.5rem; background: var(--ink); color: white; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

/* A quiet, persistent navigation frame. */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(245, 243, 237, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.header-inner { min-height: 92px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-size: 1.55rem; font-weight: 700; letter-spacing: -.07em; }
.brand-mark { width: 28px; height: 32px; color: var(--orange); flex: 0 0 auto; }
.primary-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem; }
.primary-nav > a { display: inline-flex; align-items: center; gap: 1rem; min-height: 44px; font-size: .82rem; text-decoration: none; }
.primary-nav > a:not(.nav-cta) { position: relative; }
.primary-nav > a:not(.nav-cta)::after { content: ""; position: absolute; bottom: 5px; left: 0; right: 0; height: 1px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.primary-nav > a:hover::after, .primary-nav > a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav .nav-cta { padding: .7rem 1.15rem; background: var(--ink); color: var(--paper); }
.primary-nav .nav-cta:hover { background: var(--orange); }
.menu-toggle { display: none; align-items: center; gap: .75rem; min-height: 44px; padding: .5rem .75rem; background: none; color: var(--ink); border: 1px solid var(--line); font-size: .8rem; }
.menu-toggle svg { width: 18px; height: 18px; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 2rem; min-height: 52px; padding: 1rem 1.25rem; background: var(--orange); color: #fff; border: 1px solid transparent; text-decoration: none; font-size: .83rem; font-weight: 500; transition: background .2s, border-color .2s; }
.button:hover { background: #9d2d13; }
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: #373f34; }
.button-outline { color: var(--ink); border-color: var(--line); background: transparent; }
.button-outline:hover { background: #e9e9df; border-color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 1.5rem; min-height: 44px; font-size: .83rem; text-decoration: none; border-bottom: 1px solid var(--ink); }
.text-link:hover { color: var(--orange); border-color: var(--orange); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }

/* Home: editorial typography and a custom technical illustration. */
.hero { display: grid; grid-template-columns: 1.04fr 1fr; gap: 3.5rem; align-items: center; padding-top: 4.5rem; padding-bottom: 4.5rem; }
.hero-copy, .hero-art { min-width: 0; }
.hero h1 { margin-top: 1.8rem; color: var(--muted); font-size: clamp(3rem, 5.1vw, 4.6rem); font-weight: 400; line-height: 1.06; letter-spacing: -.055em; text-wrap: balance; }
/* Keep the subject together when it fits, but allow wrapping on narrow/zoomed views. */
.hero h1 .hero-subject { display: inline-block; max-width: 100%; overflow-wrap: anywhere; color: var(--ink); font-weight: 500; }
.hero h1 .hero-destination { color: var(--orange); font-weight: 500; }
.hero-copy > p:not(.eyebrow) { margin-top: 1.8rem; max-width: 27rem; color: var(--muted); font-size: 1rem; }
.hero .actions { margin-top: 2rem; gap: 1.4rem; }
.hero-art { position: relative; overflow: hidden; align-self: stretch; min-height: 495px; display: flex; flex-direction: column; justify-content: space-between; background: var(--dark); color: var(--paper); border: 1px solid #343d30; }
.art-topline, .art-caption { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 1rem; margin: 1.5rem; font: .62rem/1.6 var(--mono); letter-spacing: .06em; }
.art-topline { color: #b3b9ac; }
.art-topline span:last-child { color: var(--orange-bright); }
.hero-art > img { width: 100%; margin-block: -1.5rem; }
.art-caption { align-items: end; padding-top: 1rem; border-top: 1px solid #47503e; }
.art-caption p { color: var(--dark-muted); font: .58rem/1.7 var(--mono); }
.art-caption strong { display: block; margin-bottom: .3rem; color: var(--paper); font-size: .7rem; font-weight: 400; }
.art-caption .art-symbol { color: var(--orange-bright); font: 1.9rem/1 Arial, sans-serif; }
.stack-rail { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 1.5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stack-rail p { color: var(--muted); font-size: .75rem; }
.stack-rail ul { display: flex; flex-wrap: wrap; gap: clamp(1.2rem, 3.5vw, 3.5rem); list-style: none; margin: 0; padding: 0; }
.stack-rail li { display: flex; align-items: center; gap: .65rem; font: .8rem/1.5 var(--mono); letter-spacing: .04em; }
.stack-rail li::before { content: "+"; color: #828879; }
.section { padding-block: 6rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2.5rem; margin-block: 1.5rem 3rem; }
.section-heading h2, .approach h2 { font-size: clamp(2.5rem, 4.3vw, 4rem); line-height: 1.08; letter-spacing: -.055em; }
.section-heading > p { max-width: 21rem; font-size: .9rem; color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.product-card { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 345px; padding: 1.8rem; border: 1px solid var(--line); text-decoration: none; transition: background .25s, border-color .25s, transform .25s; }
.product-card:hover { background: #eaece1; border-color: #8d9683; transform: translateY(-5px); }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2.75rem; }
.card-top > span { font: .65rem var(--mono); color: var(--muted); }
.product-icon { width: 36px; height: 36px; color: var(--orange); }
.product-card h3 { font-size: 1.6rem; letter-spacing: -.045em; }
.product-card > p { margin-block: .85rem 2rem; max-width: 19rem; color: var(--muted); font-size: .86rem; }
.card-link { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; margin-top: auto; border-top: 1px solid var(--line); font-size: .76rem; }
.approach { background: var(--dark); color: var(--paper); }
.approach .eyebrow { color: #c6ccbf; }
.approach .eyebrow::before { background: var(--orange-bright); }
.approach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; margin-top: 2rem; }
.approach h2 span { color: #a3b493; }
.approach-intro > p { max-width: 26rem; margin-top: 1.6rem; color: var(--dark-muted); font-size: .92rem; }
.approach-steps { list-style: none; margin: 0; padding: 0; }
.approach-steps li { display: grid; grid-template-columns: 2rem 1fr; gap: .75rem; padding-block: 1.35rem; border-top: 1px solid #46503e; }
.approach-steps li:first-child { padding-top: 0; border-top: 0; }
.step-number { color: var(--orange-bright); font: .65rem/2 var(--mono); }
.approach-steps h3 { font-size: 1.13rem; letter-spacing: -.03em; }
.approach-steps p { margin-top: .5rem; color: var(--dark-muted); font-size: .85rem; max-width: 27rem; }
.pipeline { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 3rem; border-top: 1px solid #46503e; padding-top: 2rem; color: #c6ccbf; font: .67rem/1.5 var(--mono); letter-spacing: .05em; }
.pipeline > span[aria-hidden] { color: var(--orange-bright); }
.cta-section { padding-block: 5rem; }
.cta-panel { position: relative; display: flex; justify-content: space-between; align-items: end; gap: 3rem; padding: clamp(2rem, 4vw, 4rem); background: #e4e8db; border: 1px solid #d4dacb; overflow: hidden; }
.cta-panel h2 { margin-top: 1.25rem; font-size: clamp(2.5rem, 4.4vw, 4rem); line-height: 1.05; letter-spacing: -.06em; }
.cta-panel p:not(.eyebrow) { margin-top: 1.25rem; color: #555e4d; max-width: 29rem; font-size: .9rem; }
.cta-panel .button { flex-shrink: 0; }
.site-footer { padding-block: 2.5rem 1.5rem; border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; gap: 2rem; }
.footer-brand p { margin-top: .8rem; font-size: .78rem; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; align-items: start; gap: 1.7rem; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; font-size: .78rem; text-decoration: none; }
.footer-links a:hover { color: var(--orange); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: end; gap: 2rem; border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.3rem; }
.footer-bottom p { color: var(--muted); font-size: .65rem; }
.footer-bottom p:last-child { max-width: 34rem; text-align: right; font-size: .6rem; }

/* Product index: a technical field guide, not a wall of feature boxes. */
.page-intro { padding-block: 4.5rem 3rem; }
.page-intro h1 { margin-top: 1.5rem; font-size: clamp(3.5rem, 6.5vw, 6.1rem); line-height: 1.02; letter-spacing: -.065em; }
.page-intro h1 span { color: var(--orange); }
.intro-bottom { display: flex; align-items: end; justify-content: space-between; gap: 3rem; margin-top: 1.75rem; }
.intro-bottom > p { max-width: 33rem; color: var(--muted); font-size: 1rem; }
.product-jump { display: flex; flex-wrap: wrap; gap: .5rem; padding-block: 1.2rem; border-block: 1px solid var(--line); }
.product-jump a { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: .8rem 1rem; min-height: 44px; font-size: .75rem; text-decoration: none; border: 1px solid var(--line); }
.product-jump a:hover { border-color: var(--orange); color: var(--orange); }
.product-jump a > span:first-child { color: var(--muted); font: .63rem var(--mono); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; padding-block: 5rem; border-bottom: 1px solid var(--line); align-items: center; scroll-margin-top: 1.5rem; }
.product-detail:last-child { border-bottom: 0; }
.product-detail h2 { margin-top: 1rem; font-size: clamp(2.5rem, 4vw, 3.6rem); line-height: 1.05; letter-spacing: -.055em; }
.product-description { margin-top: 1.25rem; font-size: .98rem; color: var(--muted); max-width: 30rem; }
.features { list-style: none; padding: 0; margin: 1.6rem 0 2rem; }
.features li { position: relative; padding: .65rem 0 .65rem 1.4rem; font-size: .82rem; line-height: 1.55; border-bottom: 1px solid var(--line); }
.features li::before { position: absolute; left: 0; content: "+"; color: var(--orange); }
.product-visual { min-width: 0; padding: 1.5rem; background: var(--dark); color: var(--paper); border: 1px solid #3d4735; }
.visual-heading { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 1.1rem; border-bottom: 1px solid #46503e; color: #b4bcac; font: .59rem/1.5 var(--mono); letter-spacing: .05em; }
.visual-heading span:last-child { color: var(--orange-bright); }
.code-editor { padding-block: 1.75rem; }
.code-file { font: .66rem var(--mono); color: #acbfa0; margin-bottom: 1.5rem; }
.code-editor pre { margin: 0; font: .75rem/2 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; color: #e2e7dc; tab-size: 2; }
.code-line { color: #84937b; user-select: none; }
.code-keyword { color: #f78d68; }
.code-comment { color: #a2b298; }
.editor-info { display: flex; gap: .85rem; padding: 1rem; background: #2d3527; border-left: 2px solid #a0b58d; }
.editor-info > span { color: #c0d3ae; font: .75rem var(--mono); }
.editor-info h3 { font: .74rem var(--mono); }
.editor-info p { color: #b0bca7; font-size: .72rem; margin-top: .35rem; }
.visual-footer { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #46503e; display: flex; justify-content: space-between; gap: 1rem; color: #b4bcac; font: .55rem/1.5 var(--mono); letter-spacing: .04em; }
.runtime-diagram { padding-block: 2rem; }
.runtime-core { width: min(100%, 16rem); margin-inline: auto; padding: 1.5rem; text-align: center; background: #2d3527; border: 1px solid #7c906d; }
.runtime-core .product-icon { margin: 0 auto 1rem; color: #f78d68; }
.runtime-core strong { display: block; font-size: 1.1rem; font-weight: 500; }
.runtime-core p { margin-top: .5rem; color: #b4c3a9; font: .65rem/1.6 var(--mono); }
.diagram-connector { height: 2rem; width: 1px; margin: 0 auto; background: #90a67e; }
.deploy-targets { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; padding-top: 1rem; border-top: 1px solid #7c906d; }
.deploy-targets span { padding: .85rem .4rem; border: 1px solid #56634c; text-align: center; font: .7rem var(--mono); }
.runtime-caption { text-align: center; color: #b4bcac; font-size: .74rem; margin-top: 1.5rem; }
.job-flow { padding-block: 1.5rem .5rem; }
.job-node { display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid #58664e; }
.job-node > span { width: 1.75rem; height: 1.75rem; display: grid; place-items: center; border: 1px solid #637959; color: #b4cca4; font: .65rem var(--mono); }
.job-node h3 { font-size: .8rem; }
.job-node p { font-size: .67rem; color: #b4bcac; margin-top: .25rem; }
.job-node:last-child { background: #2d3527; border-color: #7c906d; }
.job-arrow { color: #c4d4b8; font: .9rem/1 var(--mono); padding: .7rem 1.8rem; }
.product-note { margin-bottom: 3rem; color: var(--muted); font-size: .7rem; }

/* Contact has a real destination, a direct email action and a copy fallback. */
.contact-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 6rem; padding-bottom: 5rem; align-items: start; }
.contact-copy > p { max-width: 28rem; margin-bottom: 2rem; color: var(--muted); font-size: 1rem; }
.contact-email { display: inline-flex; align-items: center; gap: 1rem; font-size: clamp(1.3rem, 2.3vw, 2rem); letter-spacing: -.045em; text-decoration: none; padding-block: .5rem; border-bottom: 1px solid var(--orange); }
.contact-email:hover { color: var(--orange); }
.contact-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.copy-status { min-height: 2.5rem; max-width: 30rem; padding-top: .75rem; font-size: .75rem; color: var(--muted); }
.contact-panel { padding: 2rem; border: 1px solid var(--line); background: #eceee5; }
.contact-panel h2 { font-size: 1.5rem; letter-spacing: -.04em; margin: 1rem 0; }
.contact-panel > p:not(.eyebrow) { font-size: .86rem; color: var(--muted); }
.contact-topics { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.contact-topics li + li { border-top: 1px solid var(--line); }
.contact-topics a { padding-block: 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-decoration: none; font-size: .85rem; }
.contact-topics a:hover { color: var(--orange); }
.contact-note { margin-top: 2.5rem; font: .67rem/1.8 var(--mono); color: var(--muted); }
.privacy-copy { max-width: 54rem; padding-bottom: 4rem; }
.privacy-copy section { padding-block: 2rem; border-top: 1px solid var(--line); }
.privacy-copy h2 { font-size: 1.55rem; letter-spacing: -.035em; margin-bottom: 1rem; }
.privacy-copy p { color: var(--muted); font-size: .95rem; }
.privacy-copy p + p { margin-top: 1rem; }
.privacy-copy a { text-underline-offset: .2em; overflow-wrap: anywhere; }
.privacy-preference { margin-top: 1.5rem; padding: 1.25rem; background: #e4e8db; border: 1px solid #d4dacb; }
.privacy-preference .button { margin-top: 1rem; }
.privacy-preference .button:disabled { cursor: not-allowed; background: #535b4e; }
.privacy-copy .privacy-updated { font: .7rem/1.6 var(--mono); margin-top: 1.5rem; }
[hidden] { display: none !important; }

@keyframes enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .page-intro { animation: enter .65s both; }
  .hero-art { animation: enter .8s .1s both; }
}

@media (min-width: 1600px) { .hero { padding-block: 5.5rem; } }
@media (max-width: 1100px) {
  .hero { gap: 2rem; padding-block: 3rem; }
  .hero-art { min-height: 450px; }
  .hero .actions { align-items: start; flex-direction: column; gap: .7rem; }
  .primary-nav { gap: 1.5rem; }
  .product-card { padding: 1.4rem; }
  .approach-grid, .product-detail, .contact-layout { gap: 3rem; }
  .cta-panel { align-items: start; flex-direction: column; gap: 2rem; }
}
@media (max-width: 800px) {
  .header-inner { min-height: 78px; }
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 3rem; }
  .hero h1 { font-size: clamp(3rem, 8.5vw, 4.6rem); }
  .hero-copy > p:not(.eyebrow) { max-width: 32rem; }
  .hero .actions { flex-direction: row; align-items: center; gap: 1.5rem; }
  .hero-art { min-height: 0; }
  .hero-art > img { width: min(100%, 540px); align-self: center; margin-block: -2rem; }
  .section { padding-block: 4rem; }
  .section-heading { align-items: start; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
  .section-heading > p { max-width: 31rem; }
  .stack-rail { flex-direction: column; align-items: start; gap: 1rem; }
  .stack-rail ul { gap: 1.8rem; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 0; padding: 1.5rem; }
  .card-top { margin-bottom: 1.5rem; }
  .product-card > p { max-width: 30rem; }
  .approach-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .approach-intro > p { max-width: 32rem; }
  .approach-steps p { max-width: 100%; }
  .page-intro { padding-top: 3rem; }
  .intro-bottom { align-items: start; flex-direction: column; gap: 1rem; }
  .product-detail { grid-template-columns: 1fr; gap: 2.5rem; padding-block: 3rem; }
  .product-description { max-width: 35rem; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-copy > p { max-width: 35rem; }
  .footer-top { flex-direction: column; gap: 1.5rem; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 6.5rem; }
  .header-inner { min-height: 76px; gap: .75rem; flex-wrap: wrap; padding-block: 1rem; }
  .brand { font-size: 1.4rem; }
  .brand-mark { width: 24px; height: 28px; }
  .primary-nav { width: 100%; flex-wrap: wrap; gap: .5rem 1.5rem; }
  .primary-nav .nav-cta { padding-inline: .8rem; }
  .js .menu-toggle { display: inline-flex; }
  .js .primary-nav { position: absolute; top: 100%; left: 0; right: 0; width: auto; padding: 1rem var(--gutter) 1.5rem; flex-direction: column; align-items: stretch; gap: .25rem; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 14px 20px #20241f0d; visibility: hidden; }
  .js .primary-nav > a { min-height: 48px; justify-content: space-between; padding: .75rem; }
  .js .site-header[data-menu-open="true"] .primary-nav { visibility: visible; }
  .hero { padding-top: 2.5rem; }
  .hero h1 { font-size: clamp(2rem, 9.25vw, 4rem); }
  .hero-copy > p:not(.eyebrow) { font-size: .92rem; }
  .hero .actions { gap: .8rem; }
  .hero .text-link { margin-left: .1rem; }
  .hero-art > img { margin-block: -.5rem; }
  .art-topline, .art-caption { margin: 1rem; font-size: .54rem; }
  .stack-rail ul { column-gap: 1.2rem; row-gap: .75rem; }
  .stack-rail li { font-size: .72rem; }
  .section-heading h2, .approach h2 { font-size: 2.5rem; }
  .pipeline { flex-wrap: wrap; justify-content: start; column-gap: .75rem; font-size: .58rem; }
  .cta-section { padding-block: 3rem; }
  .cta-panel { padding: 1.5rem; }
  .cta-panel h2 { font-size: 2.5rem; }
  .footer-bottom { flex-direction: column; align-items: start; gap: 1rem; margin-top: 1.5rem; }
  .footer-bottom p:last-child { text-align: left; }
  .page-intro h1 { font-size: clamp(3rem, 12vw, 4.5rem); }
  .product-jump { gap: .4rem; }
  .product-jump a { flex: 1 1 100%; padding-block: .65rem; }
  .product-visual { padding: 1rem; }
  .code-editor pre { font-size: .65rem; }
  .visual-heading { font-size: .54rem; }
  .contact-layout { padding-bottom: 3rem; gap: 2rem; }
  .contact-panel { padding: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
