/* iBuildsoft "Working Papers". Rules in DESIGN.md.
   Colour is information: blue = built by us, green = verified, red = a gap found. */
:root {
  --paper: #f4f5f2;
  --paper-2: #e8ebe7;
  --ink: #0e1726;
  --ink-2: #4a5568;
  --line: #c9cec8;
  --build: #1666e8;
  --build-deep: #0f4fc0;
  --assure: #11734a;
  --assure-tint: #dcefe5;
  --gap: #b93815;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --max: 1280px;
  --pad: 40px;
  --gut: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--serif); -webkit-font-smoothing: antialiased; }
a { color: var(--build-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-thickness .3s var(--ease); }
a:hover { text-decoration-thickness: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--sans); font-weight: 750; margin: 0; }
h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; font-stretch: 112%; margin-bottom: 24px; }
svg text { font-family: var(--sans); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); }
.body { grid-column: 1 / 9; }
.note { grid-column: 10 / 13; font: 400 14px/1.5 var(--sans); color: var(--ink-2); padding-top: 8px; }
.note p { margin: 0 0 1.2em; }
.note b { color: var(--ink); font-weight: 650; }
.cap { font: 600 12.5px/1.45 var(--sans); font-stretch: 75%; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.lede { color: var(--ink-2); max-width: 36em; margin: -12px 0 36px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 750 20px var(--sans); font-stretch: 112%; }
.mark i { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--build); }
.mark small { font: 600 11px var(--sans); font-stretch: 75%; letter-spacing: .08em; color: var(--ink-2); }
.top nav { display: flex; gap: 32px; font: 500 15px var(--sans); }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a:hover { color: var(--build); }

/* Hero */
.hero { padding: 56px 0 104px; row-gap: 48px; }
.hero h1 { grid-column: 1 / 11; font-size: clamp(42px, 6.2vw, 92px); line-height: .95; font-stretch: 118%; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--assure); }
.hero-text { grid-column: 1 / 6; }
.hero-text p { font-size: 20px; line-height: 1.55; }
.btn { display: inline-block; margin-top: 8px; background: var(--ink); color: var(--paper); text-decoration: none; font: 650 16px var(--sans); padding: 17px 24px; }
.btn:hover { background: var(--build-deep); }
.reply { display: block; margin-top: 14px; }
.hero-fig { grid-column: 7 / 13; margin-right: calc(-1 * var(--pad)); }

figure { margin: 0; }
figure svg { display: block; width: 100%; height: auto; background: #fbfbf9; border: 1px solid var(--line); }
figcaption { margin-top: 12px; max-width: 46em; }

/* Practice */
.practice { padding: 96px 0; border-top: 2px solid var(--ink); }
.practice .body p { font-size: 21px; line-height: 1.6; max-width: 34em; }
.wont { list-style: none; padding: 0; margin: 0; }
.wont li { padding: 10px 0 10px 22px; border-top: 1px solid var(--line); position: relative; }
.wont li::before { content: ""; position: absolute; left: 0; top: 18px; width: 10px; height: 2px; background: var(--gap); }

/* Service tables */
.services { padding: 0 0 112px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 0 16px 10px 0; border-bottom: 2px solid currentColor; }
td { vertical-align: top; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); font-size: 16.5px; line-height: 1.55; }
td:first-child { width: 30%; font: 700 19px/1.3 var(--sans); font-stretch: 105%; }
.t-build td:first-child { color: var(--build-deep); }
td small { display: block; margin-top: 6px; font: 400 14px/1.45 var(--sans); color: var(--ink-2); }

/* Dark security section */
.dark { background: var(--ink); color: var(--paper); padding: 0 0 112px; overflow: hidden; }
.dark .cap, .dark .note, .dark .lede { color: #a9b3c4; }
.dark .note b { color: var(--paper); }
.dark td { border-color: #2a3547; }
.dark th { color: #a9b3c4; border-color: #a9b3c4; }
.dark td:first-child { color: #3fb57e; }
.dark td small { color: #a9b3c4; }
.dark a { color: #5b93f5; }
.giant { font: 800 clamp(80px, 15vw, 230px)/.8 var(--sans); font-stretch: 62%; color: #1b2638; margin: -.12em 0 48px -.04em; white-space: nowrap; }
.giant span { color: #24543f; }
.dark figure svg { background: #131e30; border-color: #2a3547; }
.dark-fig { margin-top: 72px; }

/* CMMC status */
.cmmc { padding: 112px 0; }
.cmmc h2 { margin-bottom: 6px; }
.phases { list-style: none; margin: 0 0 40px; padding: 0; border-left: 2px solid var(--ink); }
.phases li { position: relative; padding: 0 0 22px 28px; }
.phases li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.phases .done::before { background: var(--ink); }
.phases .off { color: var(--ink-2); }
.phases .off::before { border-color: var(--gap); }
.phases .off s { text-decoration-color: var(--gap); text-decoration-thickness: 2px; }
.phases h3 { font-size: 17px; font-weight: 700; }
.phases p { margin: 2px 0 0; }
.red { color: var(--gap); font-family: var(--sans); font-weight: 700; }
.matrix td { font-size: 15px; padding: 11px 12px 11px 0; }
.matrix td:first-child { width: auto; font: 600 14px var(--sans); font-stretch: 85%; white-space: nowrap; }
.met, .gapc { font: 700 12px var(--sans); font-stretch: 85%; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; white-space: nowrap; }
.met { background: var(--assure-tint); color: var(--assure); }
.gapc { background: #f6e0d8; color: var(--gap); }
.small { font: 400 14px/1.5 var(--sans); color: var(--ink-2); margin-top: 20px; }

/* Industries */
.industries { padding: 0 0 112px; }
.ind { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: var(--gut); padding: 26px 0; border-top: 1px solid var(--line); }
.ind h3 { font-size: 24px; font-stretch: 112%; }
.ind p { margin: 0; }

/* Process */
.process { padding: 96px 0 112px; background: var(--paper-2); }
.process h2 { margin-bottom: 48px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gut); }
.steps li { position: relative; padding-top: 34px; border-top: 2px solid var(--ink); font-size: 16px; line-height: 1.5; }
.steps li::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--paper-2); border: 2px solid var(--build); }
.steps li:last-child::before { background: var(--assure); border-color: var(--assure); }
.steps h3 { font-size: 18px; font-stretch: 105%; margin-bottom: 8px; }

/* Terms */
.terms { padding: 112px 0; }
.terms dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; }
.terms dt { font: 700 18px var(--sans); font-stretch: 105%; padding-top: 18px; border-top: 1px solid var(--line); }
.terms dd { margin: 6px 0 22px; color: #2c3445; }

/* FAQ */
.faq { padding: 0 0 112px; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font: 650 19px/1.35 var(--sans); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 26px var(--sans); color: var(--build); }
details[open] summary::after { content: "\2212"; }
details p { max-width: 40em; }

/* Contact */
.contact { padding: 112px 0 96px; border-top: 2px solid var(--ink); }
.contact .body { grid-column: 1 / 13; }
.email { display: inline-block; font: 750 clamp(26px, 4.6vw, 64px)/1.05 var(--sans); font-stretch: 100%; color: var(--ink); text-decoration-color: var(--build); text-decoration-thickness: 4px; text-underline-offset: 10px; margin: 0 0 36px; overflow-wrap: anywhere; white-space: nowrap; }
.email:hover { color: var(--build-deep); text-decoration-thickness: 7px; }
.include { padding-left: 1.1em; margin: 0 0 20px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 44px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px; font: 400 14px var(--sans); color: var(--ink-2); }
.foot a { color: var(--ink-2); margin-right: 20px; }

/* Long-form pages */
.prose { padding: 72px 0 112px; }
.prose h1 { font-size: clamp(38px, 5vw, 64px); font-stretch: 112%; line-height: 1; margin-bottom: 10px; }
.prose h2 { font-size: 20px; font-stretch: 105%; margin: 40px 0 8px; }
.prose p, .prose li { max-width: 38em; }

/* Drawn, then checked */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .draw .ln { stroke-dasharray: 600; animation: draw linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
    .markup { animation: ink linear both; animation-timeline: view(); animation-range: entry 90% cover 30%; }
  }
}
@keyframes draw { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }
@keyframes ink { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 900px) {
  :root { --pad: 20px; }
  body { font-size: 17px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1, .hero-text, .hero-fig, .body, .note { grid-column: 1 / -1; }
  .hero { padding: 24px 0 64px; row-gap: 32px; }
  .hero-fig { margin-right: 0; }
  .note { border-left: 2px solid var(--build); padding: 4px 0 4px 14px; margin-top: 28px; }
  .top nav a:not(:last-child) { display: none; }
  .practice, .cmmc, .terms, .contact, .process { padding: 72px 0; }
  .services, .industries, .faq, .dark { padding-bottom: 72px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; border-left: 2px solid var(--ink); margin-left: 6px; }
  .steps li { border-top: 0; padding: 0 0 26px 24px; }
  .steps li::before { top: 4px; left: -8px; }
  .ind, .terms dl { grid-template-columns: minmax(0, 1fr); }
  table, tbody, tr, td { display: block; width: 100% !important; }
  thead { display: none; }
  td { border: 0; padding: 0 0 8px; }
  tr { border-bottom: 1px solid var(--line); padding: 18px 0 10px; }
  .dark tr { border-color: #2a3547; }
  .matrix td:first-child { white-space: normal; }
}
@media (max-width: 480px) { .email { white-space: normal; } }

/* Agent run log (Fig. 2) */
.runlog { margin-top: 56px; }
.runlog td { font-size: 15.5px; padding: 12px 12px 12px 0; }
.runlog td:first-child { width: 48px; font: 700 15px var(--sans); color: var(--ink-2); }
.held, .wait { font: 700 12px var(--sans); font-stretch: 85%; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; white-space: nowrap; }
.held { background: #e3ecfd; color: var(--build-deep); outline: 2px solid var(--build); outline-offset: 2px; }
.wait { color: var(--ink-2); border: 1px dashed var(--ink-2); }
@media (max-width: 900px) { .runlog td:first-child { width: auto; } }
