/* ArchangX site styles. Palette from the logo: matrix-green wings, orange-to-magenta flame, black serif wordmark. */
:root {
  --paper: #fbfaf7; --ink: #121614; --muted: #56605a; --line: #e4e2db; --card: #fff;
  --wing: #0f5a32; --wing-bright: #2fbf71; --flame-1: #f8a83a; --flame-2: #f0634f; --flame-3: #e8197b;
  --night: #0d1310; --night-ink: #eef1ec;
  --flame: linear-gradient(90deg, var(--flame-1), var(--flame-2) 55%, var(--flame-3));
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--wing); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: .01em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.1; }
h2 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.15; }
h3 { font-size: 21px; }
p { margin: 0; max-width: 66ch; }
.eyebrow { font: 600 13px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--wing); }
.muted { color: var(--muted); }
.flame-text { background: var(--flame); -webkit-background-clip: text; background-clip: text; color: transparent; }
:focus-visible { outline: 3px solid var(--flame-2); outline-offset: 3px; }

/* header */
header.site { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 90%, transparent);
              backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; padding-block: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 600 20px var(--serif); letter-spacing: .32em; }
.brand img { width: 64px; }
nav.main { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; }
nav.main a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
nav.main a:hover, nav.main a[aria-current="page"] { border-bottom-color: var(--flame-2); }

/* page hero */
.page-hero { padding-block: 56px 40px; display: grid; gap: 16px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -40px; top: 30px; width: 420px; height: 170px;
                    background: url(emblem.png) center / contain no-repeat; opacity: .08; pointer-events: none; }
.page-hero p { font-size: 19px; color: var(--muted); }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* home hero */
.hero { text-align: center; padding-block: 48px 56px; display: grid; justify-items: center; gap: 20px; }
.hero img.logo { width: min(560px, 100%); }
.hero h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.2; max-width: 30ch; }
.hero p { color: var(--muted); font-size: 18px; }

/* content blocks */
section.block { padding-block: 56px; border-top: 1px solid var(--line); }
.head { display: grid; gap: 10px; margin-bottom: 28px; }
.head .num { display: flex; align-items: center; gap: 10px; }
.head .num img { width: 54px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; gap: 8px; align-content: start; }
.card::before { content: ""; height: 4px; width: 44px; border-radius: 4px; background: var(--flame); }
.card p { color: var(--muted); font-size: 16px; }
a.card { text-decoration: none; color: var(--ink); transition: transform .2s; }
a.card:hover { transform: translateY(-3px); }
a.card .more { color: var(--wing); font-weight: 600; font-size: 15px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; align-items: start; }
ul.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
ul.ticks li { padding-left: 26px; position: relative; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 3px; background: var(--flame); }

/* the "how it fits together" diagram */
.fit { display: grid; gap: 10px; max-width: 860px; margin-inline: auto; }
.fit .top { border-radius: 14px; padding: 22px; color: #fff; background: linear-gradient(90deg, #c4541c, #e8197b); text-decoration: none; display: grid; gap: 4px; text-align: center; }
.fit .pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; }
.fit .base { border-radius: 14px; padding: 22px; color: #fff; text-decoration: none; display: grid; gap: 4px; text-align: center; }
.fit .stackbox { background: #0f5a32; } .fit .twinbox { background: #18774a; }
.fit .link { display: grid; place-items: center; font: 700 26px var(--sans); color: var(--wing); }
.fit b { font: 600 22px var(--serif); } .fit span { font-size: 15px; opacity: .92; }
.fit .arrow { text-align: center; color: var(--flame-2); font: 700 22px var(--sans); line-height: 1; }
@media (max-width: 640px) { .fit .pair { grid-template-columns: 1fr; } .fit .link { transform: rotate(90deg); } }

/* stack layers */
.stack { display: grid; gap: 8px; }
.layer { display: grid; grid-template-columns: minmax(150px, 230px) 1fr; gap: 16px; align-items: center; padding: 16px 20px; border-radius: 12px; color: #fff; }
.layer b { font: 600 18px var(--serif); } .layer span { font-size: 15px; opacity: .92; }
.l1 { background: #0b3d23; } .l2 { background: #0f5a32; } .l3 { background: #18774a; }
.l4 { background: linear-gradient(90deg, #c4541c, #e8197b); } .l5 { background: #1d2420; }
@media (max-width: 640px) { .layer { grid-template-columns: 1fr; gap: 4px; } }

/* flow chips */
.flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font: 600 14px var(--sans); }
.flow span { padding: 8px 14px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); }
.flow i { color: var(--flame-2); font-style: normal; }

/* twin models */
.models { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.model { text-align: center; padding: 18px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.model b { display: block; font: 600 17px var(--serif); } .model span { font-size: 13px; color: var(--muted); }

/* connected-pages strip */
.connected { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 18px 20px; border-radius: 14px;
             background: var(--card); border: 1px dashed var(--wing-bright); }
.connected a { font-weight: 600; }

/* dark band */
.night { background: var(--night); color: var(--night-ink); border-top: 0; }
.night .eyebrow { color: var(--wing-bright); }
.night p, .night .card p { color: #b9c3bc; }
.night .card { background: #141c17; border-color: #26322b; color: var(--night-ink); }
.btn { display: inline-block; padding: 12px 22px; border-radius: 99px; background: var(--flame); color: #fff; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-size: 16px; }
.tag { font: 600 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--flame-1); }

/* about */
.portrait { border-radius: 18px; background: var(--night); padding: 28px; display: grid; place-items: center; }
.portrait img { width: 100%; max-width: 360px; }
.facts { display: grid; gap: 6px; font-size: 15px; }
.facts b { font-weight: 600; }

/* contact form */
form.contact { display: grid; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
form.contact label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
form.contact input, form.contact select, form.contact textarea { font: 16px var(--sans); padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
form.contact textarea { min-height: 140px; resize: vertical; }

footer.site { background: #080c0a; color: #9aa79f; padding-block: 44px; text-align: center; margin-top: 0; }
footer.site img { width: min(280px, 70%); margin: 0 auto 16px; }
footer.site nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 14px; }
footer.site nav a { color: #d8e0da; text-decoration: none; }
footer.site p { margin-inline: auto; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } a.card { transition: none; } }
