/* ARC-STRUCTURE LLC. Self-contained. */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --navy: #102033;
  --navy-2: #17304a;
  --ink: #1a2330;
  --muted: #5a6573;
  --ivory: #f4f1ea;
  --ivory-2: #ebe6dc;
  --white: #ffffff;
  --bronze: #b8894a;
  --bronze-2: #9a7040;
  --bronze-soft: #f3ead9;
  --line: #dcd6cb;
  --draft-bg: #3a2a16;
  --draft-text: #f0e0c4;
  --ph-bg: #f7eedc;
  --ph-ink: #7a5420;
  --ph-line: #c4a36a;
  --ok: #2c5f45;
  --max: 1100px;
  --sans: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --shadow: 0 12px 32px rgba(16, 32, 51, 0.08);
  --radius: 4px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bronze-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--bronze); outline-offset: 3px; }
.skip {
  position: absolute; left: 1rem; top: -40px;
  background: var(--navy); color: #fff; padding: 0.5rem 0.8rem; z-index: 100;
}
.skip:focus { top: 0.5rem; }
.draft-banner {
  background: var(--draft-bg);
  color: var(--draft-text);
  text-align: center;
  padding: 0.65rem 1.2rem;
  font-size: 0.9rem;
}
.draft-banner strong { color: #fff; }
.wrap { width: min(var(--max), calc(100% - 2.4rem)); margin: 0 auto; }
.site-header {
  background: var(--navy);
  color: var(--ivory);
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid rgba(244, 241, 234, 0.12);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 0;
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ivory); min-width: 0; }
.brand img { width: 42px; height: 42px; }
.brand .name {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.98rem;
  display: block;
}
.brand .tag {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c9c2b4;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(244,241,234,0.3);
  color: var(--ivory);
  border-radius: 2px;
  padding: 0.4rem 0.6rem;
  font: inherit;
  font-size: 0.85rem;
}
nav.primary { display: flex; flex-wrap: wrap; gap: 0.15rem 1.2rem; }
nav.primary a {
  color: #d9d3c8;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
nav.primary a:hover,
nav.primary a[aria-current="page"] { color: #fff; }
.kicker {
  margin: 0 0 0.7rem;
  color: var(--bronze);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 550;
  line-height: 1.18;
  margin: 0 0 0.7rem;
  color: var(--navy);
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 40rem; margin: 0 0 1rem; }
.hero {
  background: var(--navy);
  color: var(--ivory);
  padding: 3.6rem 0 3.4rem;
}
.hero h1, .hero h2 { color: var(--ivory); }
.hero .lede { color: #c9c2b4; }
.hero .kicker { color: var(--bronze); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bronze);
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--bronze);
  border-radius: 2px;
  padding: 0.7rem 1.2rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.btn:hover { background: #d4a85c; color: var(--navy); }
.btn.secondary {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(244,241,234,0.45);
}
.btn.secondary:hover { background: var(--ivory); color: var(--navy); }
.section.hero + .section .btn.secondary,
body:not(.home) .btn.secondary {
  color: var(--navy);
  border-color: var(--navy);
}
body:not(.home) .btn.secondary:hover { background: var(--navy); color: var(--ivory); }
.section { padding: 3rem 0; }
.section.alt { background: var(--white); border-block: 1px solid var(--line); }
.grid { display: grid; gap: 1.15rem; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.35rem;
}
.section.alt .card { background: var(--ivory); }
.muted { color: var(--muted); margin: 0; }
.placeholder, .ph {
  display: inline;
  background: var(--ph-bg);
  color: var(--ph-ink);
  border: 1px dashed var(--ph-line);
  padding: 0 0.3em;
  border-radius: 2px;
  font-size: 0.95em;
}
.proof {
  border: 1px dashed var(--ph-line);
  background: var(--ph-bg);
  padding: 1.2rem 1.3rem;
}
.proof h3 { color: var(--ph-ink); }
/* Capabilities statement */
.cap-doc {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 2rem 2.1rem 2.2rem;
}
.cap-doc header { border-bottom: 2px solid var(--navy); padding-bottom: 1rem; margin-bottom: 1.4rem; }
.cap-doc .entity { letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; color: var(--muted); margin: 0 0 0.3rem; }
.cap-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.cap-table th, .cap-table td {
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.cap-table th { width: 34%; color: var(--navy); font-weight: 600; }
form.intake { display: grid; gap: 0.85rem; }
label { font-weight: 600; font-size: 0.92rem; display: block; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--white); border: 1px solid #c9c3b8;
  border-radius: 2px; padding: 0.65rem 0.75rem; margin-top: 0.3rem;
}
textarea { min-height: 8rem; resize: vertical; }
.form-note { font-size: 0.88rem; color: var(--muted); margin: 0; }
.form-status {
  display: none; padding: 0.8rem 1rem;
  background: #e7f2ea; color: var(--ok); border: 1px solid #b4d2c0;
}
.form-status.is-visible { display: block; }
.contact-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.way {
  display: flex; flex-direction: column; gap: 0.25rem;
  text-decoration: none; color: inherit;
  background: var(--white); border: 1px solid var(--line);
  padding: 1rem 1.1rem;
}
.way:hover { border-color: var(--bronze); color: inherit; }
.way strong { font-family: var(--serif); font-size: 1.05rem; }
.way span { color: var(--muted); font-size: 0.9rem; }
.site-footer {
  background: var(--navy);
  color: #c9c2b4;
  padding: 2.2rem 0 2.4rem;
  font-size: 0.9rem;
}
.site-footer a { color: #e8e2d6; }
.footer-row { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 0.7rem; align-items: flex-start; }
.footer-brand img { width: 36px; height: 36px; }
.footer-brand strong { color: var(--ivory); display: block; letter-spacing: 0.06em; }
.legal { margin-top: 1.2rem; font-size: 0.8rem; color: #9a9386; }
.chat-launcher, .chat-panel { position: fixed; z-index: 40; }
.chat-launcher {
  right: 1.2rem; bottom: 1.2rem;
  background: var(--bronze); color: var(--navy);
  border: 0; border-radius: 2px;
  padding: 0.75rem 1.1rem; font: inherit; font-weight: 650; cursor: pointer;
  box-shadow: var(--shadow);
}
.chat-panel {
  display: none; right: 1.2rem; bottom: 4.4rem;
  width: min(22rem, calc(100% - 2rem));
  background: var(--ivory); border: 1px solid var(--line);
  box-shadow: var(--shadow); padding: 1rem 1.1rem 1.15rem;
}
.chat-panel.is-open { display: block; }
.chat-panel header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; }
.chat-panel h2 { font-size: 1.1rem; margin: 0; }
.chat-panel button.icon { background: transparent; border: 0; font: inherit; cursor: pointer; color: var(--muted); }
@media (max-width: 860px) {
  .grid.three, .grid.two, .contact-ways { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  nav.primary {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--navy-2); padding: 0.6rem 1.2rem 1rem;
    flex-direction: column; align-items: flex-start; gap: 0.55rem;
  }
  nav.primary.is-open { display: flex; }
  .hero { padding: 2.2rem 0 2.4rem; }
  .cap-doc { padding: 1.2rem; }
}
