/* Post Rock Foundry homepage, direction A "Fence line at dusk" (2026-10-01).
   Dark-only by design: a Kansas dusk over a row of post rock fence posts,
   one of which is a stack of Mac minis. The /field pages keep site.css. */
:root {
  --night: #0d1119; --night-2: #141824; --panel: #0b0e14; --bubble: #1a1f2b;
  --ink: #e9e4d8; --ink-2: #d9d2c3; --muted: #b9b2a3; --faint: #8b8577;
  --wheat: #e8c98a; --wheat-2: #f3dcae; --ember: #e08a3c; --ember-2: #f0a35e;
  --led: #7be08f; --post: #07090d; --line: rgba(233, 228, 216, 0.14);
  --display: 'Saira Extra Condensed', 'Arial Narrow', sans-serif;
  --body: 'Libre Franklin', system-ui, -apple-system, sans-serif;
  --mono: 'Martian Mono', ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--night); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; }
a { color: var(--wheat); }
a:hover { color: var(--wheat-2); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 24px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember); }
h1, h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(44px, 6vw, 64px); line-height: 0.9; }
p { margin: 0; }
.lede { color: var(--muted); max-width: 42ch; }

/* nav */
.nav { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 22px; }
.brand { text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: 0.06em; text-transform: uppercase; }
.brand:hover { color: var(--ink); }
.links { display: flex; gap: 22px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.links a { color: #c9c2b3; text-decoration: none; }
.links a:hover { color: var(--wheat); }

/* hero */
.hero { position: relative; overflow: hidden; min-height: 660px; background: linear-gradient(180deg, var(--night) 0%, #1b1d2b 38%, #4a2c2a 68%, #c4602a 88%, var(--ember) 100%); }
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 22px; padding-block: 56px 240px; }
.hero-copy .eyebrow { color: var(--wheat); }
.hero h1 { font-size: clamp(60px, 9vw, 132px); line-height: 0.86; letter-spacing: -0.01em; max-width: 12ch; }
.hero p { font-size: 19px; color: var(--ink-2); max-width: 46ch; }
.ctas { display: flex; gap: 14px; flex-wrap: wrap; padding-top: 6px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 2px; text-decoration: none; font-weight: 600; }
.btn.solid { background: var(--wheat); color: #14110c; }
.btn.solid:hover { background: var(--wheat-2); color: #14110c; }
.btn.ghost { border: 1px solid rgba(233, 228, 216, 0.45); color: var(--ink); }
.btn.ghost:hover { border-color: var(--wheat); color: var(--wheat); }

.fence { position: absolute; left: 0; right: 0; bottom: 0; height: 200px; z-index: 1; }
.ground { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: var(--post); }
.wire { position: absolute; left: 0; right: 0; height: 1px; background: rgba(10, 10, 12, 0.85); }
.wire.w1 { bottom: 110px; } .wire.w2 { bottom: 86px; }
.post { position: absolute; bottom: 58px; width: 24px; height: 104px; background: var(--post); }
.post.p1 { left: 6%; clip-path: polygon(8% 4%, 92% 0, 100% 100%, 0 100%); }
.post.p2 { left: 21%; width: 22px; height: 96px; clip-path: polygon(0 0, 88% 6%, 100% 100%, 4% 100%); }
.post.p3 { left: 36%; width: 26px; height: 108px; clip-path: polygon(10% 2%, 100% 0, 94% 100%, 0 100%); }
.post.p4 { left: 68%; height: 100px; clip-path: polygon(6% 0, 100% 5%, 96% 100%, 0 100%); }
.post.p5 { left: 83%; width: 22px; height: 92px; clip-path: polygon(0 6%, 90% 0, 100% 100%, 6% 100%); }
.post.p6 { left: 96%; height: 102px; clip-path: polygon(4% 0, 96% 3%, 100% 100%, 0 100%); }
.stack { position: absolute; left: 51%; bottom: 58px; width: 64px; display: flex; flex-direction: column; gap: 3px; }
.unit { position: relative; height: 22px; border-radius: 6px; background: #171a22; }
.unit.on::after { content: ""; position: absolute; right: 8px; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--led); box-shadow: 0 0 8px var(--led); animation: blink 3.2s ease-in-out infinite; }
.unit.on:nth-child(2)::after { animation-delay: 0.7s; }
.unit.on:nth-child(3)::after { animation-delay: 1.5s; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .unit.on::after { animation: none; } }
.stack-label { position: absolute; left: 51%; bottom: 170px; transform: translateX(-18px); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wheat-2); white-space: nowrap; }
.coords { position: absolute; right: 24px; bottom: 20px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--faint); }

/* how it works */
.how { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px; padding-block: 110px 90px; }
.how-head { grid-column: span 5; display: flex; flex-direction: column; gap: 16px; }
.steps { grid-column: 7 / span 6; margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 72px 1fr; gap: 18px; padding-block: 24px; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .n { font-family: var(--display); font-weight: 800; font-size: 54px; line-height: 0.9; color: var(--ember); }
.steps strong { display: block; font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.steps span { color: var(--muted); }

/* demo */
.demo-band { background: var(--night-2); padding-block: 90px; }
.demo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; align-items: center; }
.chat { background: var(--panel); border: 1px solid rgba(233, 228, 216, 0.12); border-radius: 6px; padding: 26px; display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.chat .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--faint); text-transform: uppercase; }
.q { align-self: flex-end; max-width: 80%; background: var(--wheat); color: #14110c; padding: 10px 14px; border-radius: 12px 12px 3px 12px; font-weight: 500; }
.a { max-width: 92%; background: var(--bubble); padding: 12px 14px; border-radius: 12px 12px 12px 3px; display: flex; flex-direction: column; gap: 8px; }
.cite { align-self: flex-start; font-family: var(--mono); font-size: 11px; padding: 3px 8px; border: 1px solid var(--ember); color: var(--ember-2); border-radius: 4px; }
.local { font-family: var(--mono); font-size: 11px; color: var(--led); }
.demo-copy { display: flex; flex-direction: column; gap: 14px; }

/* who / what you get: four-up rows */
.section { padding-block: 100px; display: flex; flex-direction: column; gap: 36px; }
.four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.four > div { padding: 24px 22px 8px; display: flex; flex-direction: column; gap: 8px; border-left: 1px solid var(--line); min-width: 0; }
.four > div:first-child { padding-left: 0; border-left: 0; }
.four > div:last-child { padding-right: 0; }
.four .eyebrow { font-size: 11px; letter-spacing: 0.12em; }
.four strong { font-size: 20px; font-weight: 600; }
.four span { color: var(--muted); font-size: 15.5px; }

/* products */
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product { background: var(--night-2); border: 1px solid var(--line); border-radius: 6px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.product .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wheat); }
.product b { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; text-transform: uppercase; }
.product span { color: var(--muted); font-size: 15.5px; }

/* why post rock */
.why-band { background: var(--night-2); padding-block: 90px; }
.why { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px; align-items: start; }
.why-copy { grid-column: span 6; display: flex; flex-direction: column; gap: 16px; }
.facts { grid-column: 8 / span 5; margin: 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; border-top: 1px solid var(--line); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts span { color: var(--faint); }

/* contact */
.contact { border-top: 1px solid var(--line); padding-block: 90px 50px; }
.contact .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.contact h2 { font-size: clamp(56px, 8vw, 80px); line-height: 0.86; }
.contact-copy { display: flex; flex-direction: column; gap: 12px; }
.contact-line { display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); font-size: 15px; }
.contact-line span { color: var(--faint); }
footer { padding-block: 26px 40px; font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--faint); }

@media (max-width: 860px) {
  .how, .why { grid-template-columns: 1fr; }
  .how-head, .steps, .why-copy, .facts { grid-column: auto; }
  .demo, .products { grid-template-columns: 1fr; }
  .four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .four > div { padding: 22px 16px 10px; }
  .four > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .four > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero-copy { padding-block: 36px 230px; }
}
@media (max-width: 520px) {
  .four { grid-template-columns: 1fr; }
  .four > div { padding-left: 0; padding-right: 0; border-left: 0; }
  .four > div + div { border-top: 1px solid var(--line); }
  .stack-label { display: none; }
  .post.p6 { display: none; }
}
.section.flush { padding-top: 0; }

/* demo: tabs + animated example */
.tabs { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; min-height: 34px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.tabs button:hover { color: var(--ink); border-color: rgba(233, 228, 216, 0.35); }
.tabs button[aria-selected="true"] { color: #14110c; background: var(--wheat); border-color: var(--wheat); }
.screen { display: flex; flex-direction: column; gap: 14px; min-height: 236px; }
.q.typing::after { content: "▍"; margin-left: 1px; animation: caret 0.9s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.a.hidden { visibility: hidden; }
.a.thinking #demo-text::before { content: "Searching this office's library…"; color: var(--faint); font-style: italic; }
.cites { display: flex; gap: 6px; flex-wrap: wrap; }
.cite.none { border-color: var(--faint); color: var(--faint); }
.fine { font-size: 13px; color: var(--faint); }
@media (max-width: 520px) { .screen { min-height: 300px; } }
.demo > *, .chat, .screen { min-width: 0; }
.redact { display: inline-block; filter: blur(4.5px); user-select: none; padding: 0 2px; margin: 0 1px; border-radius: 3px; background: currentColor; background: color-mix(in srgb, currentColor 18%, transparent); }
