@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-variable-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}

/* Askari Systems: Accounted For.
   Family: deep green, brass, parchment, ink. Green pulled darker, parchment cooler, one tint of each.
   Archivo with the width axis. Brass is a hairline, never a fill. Rules, not cards. Square corners. */

:root {
  --green: #163D2E;
  --green-deep: #0F2B20;
  --brass: #C69A4B;
  --ink: #15221B;
  --parchment: #F1EEE6;
  --parchment-tint: #E6E2D7;
  --on-green: #F1EEE6;
  --on-green-soft: rgba(241, 238, 230, 0.72);

  --gutter: clamp(16px, 4vw, 48px);
  --measure: 1320px;
  --control: 48px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; overflow-x: clip;
  background: var(--parchment); color: var(--ink);
  font-family: "Archivo", "Arial Nova", Arial, sans-serif;
  font-variation-settings: "wdth" 100;
  font-size: 17px; line-height: 1.5; font-weight: 400;
}
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
::selection { background: var(--green); color: var(--parchment); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.chapter--wall :focus-visible, .stance :focus-visible, .notfound :focus-visible { outline-color: var(--brass); }
html { scrollbar-color: var(--green) var(--parchment-tint); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--parchment-tint); }
::-webkit-scrollbar-thumb { background: var(--green); }
.num { font-variant-numeric: tabular-nums; }
.small { font-size: 13px; line-height: 1.5; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--green); color: var(--parchment); padding: 8px 16px; z-index: 20; }
.skip:focus { top: 16px; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }

/* Type */
.display {
  font-weight: 700; font-variation-settings: "wdth" 118;
  font-size: clamp(56px, 9.4vw, 148px); line-height: 0.92; letter-spacing: -0.025em;
  color: var(--green); text-wrap: balance;
}
.display--small { font-size: clamp(40px, 5vw, 72px); line-height: 0.96; }
.headline {
  font-weight: 700; font-variation-settings: "wdth" 110;
  font-size: clamp(30px, 3.6vw, 52px); line-height: 1.02; letter-spacing: -0.015em; color: var(--green); text-wrap: balance;
}
.headline--light { color: var(--on-green); }
.lede { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.4; font-weight: 500; max-width: 34ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--control); padding: 0 24px;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none;
  border: 2px solid var(--green); background: var(--green); color: var(--parchment); white-space: nowrap;
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); }
.link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: 6px; }
.link:hover { text-decoration-thickness: 2px; }

/* Masthead */
.masthead { position: sticky; top: 0; z-index: 10; background: var(--parchment); border-bottom: 1px solid var(--brass); }
.masthead__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.lockup .chevron { width: 34px; height: 15px; display: block; }
.lockup__word { font-weight: 700; font-variation-settings: "wdth" 118; font-size: 26px; line-height: 1; color: var(--green); letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 16px; }
.nav a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 6px; }

/* Hero */
.hero { padding-top: clamp(64px, 10vh, 140px); }
.hero .line { display: block; overflow: hidden; }
.hero .word { display: block; white-space: nowrap; }
/* The settling line: a column of the things accounted for, clipped to one line, resting on the last. */
.hero .line--settle { position: relative; height: 1lh; overflow: hidden; margin-inline: -0.12em; padding-inline: 0.12em; }
.hero .strip { display: block; transform: translateY(calc(-7 * 1.1lh)); will-change: transform; }
.hero .strip .word { height: 1.1lh; }
.hero .final { position: relative; display: inline-block; }
.hero .settle-rule { position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid var(--brass); transform-origin: left; }
@media (prefers-reduced-motion: reduce) {
  .hero .strip { transform: none; }
  .hero .strip .word[aria-hidden="true"] { display: none; }
}
/* Chapter headings morph into one another on scroll; the root stays live so scrolling never stalls. */
:root { view-transition-name: none; }
::view-transition-group(chapter-heading) { animation-duration: 0.9s; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
::view-transition-old(chapter-heading) { animation: 0.45s cubic-bezier(0.16, 1, 0.3, 1) both vt-fade-out; }
::view-transition-new(chapter-heading) { animation: 0.9s cubic-bezier(0.16, 1, 0.3, 1) both vt-fade-in; }
@keyframes vt-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes vt-fade-in { from { opacity: 0; } to { opacity: 1; } }
.hero__foot { display: grid; grid-template-columns: 7fr 5fr; gap: 32px; align-items: end; margin-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(48px, 6vw, 88px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; justify-self: end; }
.hairline { border-top: 1px solid var(--brass); transform-origin: left; }

/* Chapters */
.places { padding-top: clamp(48px, 6vw, 96px); }
.chapter { padding: clamp(48px, 6vw, 104px) 0; }
.chapter + .chapter .wrap { border-top: 1px solid var(--brass); padding-top: clamp(48px, 6vw, 104px); }
.chapter__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 96px); align-items: start; }
.chapter__copy { display: flex; flex-direction: column; gap: 20px; }
.chapter__copy p { max-width: 42ch; }
.chapter__proof { min-width: 0; display: grid; gap: 24px; }
.sample { font-size: 13px; font-style: italic; color: var(--green); }

/* Phones */
.phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.phone { background: var(--green-deep); color: var(--on-green); border: 1px solid var(--brass); padding: 0 0 8px; max-width: 360px; width: 100%; }
.phone__bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--brass); font-size: 13px; font-weight: 600; }
.phone__app { color: var(--brass); letter-spacing: 0.02em; }
.phone__body { padding: 18px; display: grid; gap: 16px; }
.alert__title { font-weight: 700; font-variation-settings: "wdth" 106; font-size: 22px; line-height: 1.15; }
.kv { display: grid; gap: 8px; }
.kv div { display: grid; grid-template-columns: 76px 1fr; gap: 8px; font-size: 15px; padding-bottom: 8px; border-bottom: 1px solid rgba(198, 154, 75, 0.35); }
.kv dt { color: var(--on-green-soft); }
.kv dd { font-weight: 600; }
.phone__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--brass); color: var(--on-green); font-size: 14px; font-weight: 700; }
.chip--solid { background: var(--brass); color: var(--green-deep); }
.phone__note { font-size: 13px; color: var(--on-green-soft); }
.viewfinder { position: relative; aspect-ratio: 1; background: var(--green); border: 1px solid rgba(198, 154, 75, 0.35); display: grid; place-items: center; }
.viewfinder svg { width: 100%; height: 100%; position: absolute; inset: 0; }
.viewfinder span { position: relative; font-size: 12px; color: var(--brass); background: var(--green); padding: 2px 6px; }
.checks { display: grid; }
.checks li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(198, 154, 75, 0.35); font-size: 15px; }
.checks li span:last-child { font-weight: 600; }

/* Wall board */
.chapter--wall { background: var(--green); color: var(--on-green); }
.chapter--wall .wrap { border-top: 0; padding-top: 0; }
.chapter--wall .headline { color: var(--on-green); }
.chapter--wall .chapter__copy p { color: var(--on-green); }
.board { background: var(--green-deep); border: 1px solid var(--brass); font-size: clamp(16px, 1.5vw, 22px); }
.board__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--brass); }
.board__title { font-weight: 700; font-variation-settings: "wdth" 112; font-size: clamp(22px, 2.4vw, 36px); line-height: 1; letter-spacing: -0.01em; }
.board__clock { color: var(--brass); font-weight: 600; }
.board__row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 16px; padding: 16px 24px; border-bottom: 1px solid rgba(198, 154, 75, 0.35); font-weight: 600; }
.board__row span:nth-child(2) { color: var(--on-green-soft); font-weight: 400; }
.board__row--gap { outline: 2px solid var(--brass); outline-offset: -2px; }
.board__row--gap span:last-child { color: var(--brass); }
.board__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px; color: var(--on-green-soft); font-size: 15px; }
.board__week { display: inline-flex; gap: 6px; }
.board__week b { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--brass); color: var(--on-green); font-weight: 700; }

/* Desk sheets */
.sheet { border-top: 2px solid var(--ink); font-size: 15px; }
.sheet__head, .sheet__row { display: grid; grid-template-columns: 1.1fr 1.4fr 1.2fr 2fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--brass); }
.sheet__head { font-weight: 700; font-size: 13px; letter-spacing: 0.02em; }
.sheet__row span:first-child { font-weight: 600; }
.sheet__row--unknown span:last-child { font-weight: 700; color: var(--green); }
.sheet--expiry .sheet__head, .sheet--expiry .sheet__row { grid-template-columns: 1.4fr 1.4fr 1.2fr 0.6fr; }
.sheet--expiry .sheet__row span:last-child { font-weight: 700; }

/* Inbox */
.chapter--inbox .mail { border: 1px solid var(--brass); background-color: var(--parchment-tint); padding: 24px; display: grid; gap: 16px; }
.mail__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--brass); }
.mail__from { font-weight: 700; }
.mail__addr { font-weight: 400; color: var(--green); }
.mail__subject { font-weight: 700; font-variation-settings: "wdth" 106; font-size: 22px; line-height: 1.2; color: var(--green); }
.mail__list { display: grid; gap: 12px; max-width: 62ch; }
.mail__list li { padding-left: 20px; position: relative; }
.mail__list li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 10px; border-top: 1px solid var(--brass); }
.mail__report { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 16px; border-top: 1px solid var(--brass); font-size: 14px; font-weight: 600; }
.mail__report span:first-child { color: var(--green); }

/* Stance */
.stance { background: var(--green-deep); color: var(--on-green); padding: clamp(64px, 9vw, 140px) 0; }
.stance .headline { max-width: 16ch; margin-bottom: clamp(32px, 4vw, 56px); }
.tenets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--brass); }
.tenets li { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--brass); display: grid; gap: 12px; align-content: start; }
.tenets li + li { border-left: 1px solid var(--brass); padding-left: 28px; }
.tenets h3 { font-weight: 700; font-variation-settings: "wdth" 110; font-size: clamp(22px, 2vw, 28px); line-height: 1.1; }
.tenets p { color: var(--on-green-soft); max-width: 34ch; }

/* Contact */
.contact { padding: clamp(64px, 9vw, 140px) 0; }
.contact__grid { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: end; }
.contact .lede { margin-top: 24px; }
.contact__side { display: grid; gap: 24px; justify-items: start; }
.email { font-weight: 700; font-variation-settings: "wdth" 106; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; color: var(--green); text-decoration-color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: 8px; overflow-wrap: anywhere; }

/* Footer */
.footer { background: var(--parchment-tint); border-top: 1px solid var(--brass); padding: 40px 0; }
.footer__grid { display: grid; grid-template-columns: 7fr 5fr; gap: 24px; align-items: end; }
.footer__name { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--green); font-size: 18px; margin-bottom: 8px; }
.footer__name .chevron { width: 26px; height: 11px; }
.footer__right { text-align: right; }

/* Scale */
@media (max-width: 960px) {
  .hero__foot, .contact__grid, .footer__grid { grid-template-columns: 1fr; }
  .actions { justify-self: start; }
  .chapter__grid { grid-template-columns: 1fr; gap: 32px; }
  .nav a:not(.btn) { display: none; }
  .tenets { grid-template-columns: 1fr; }
  .tenets li + li { border-left: 0; padding-left: 0; }
  .footer__right { text-align: left; }
}
@media (max-width: 640px) {
  .display { font-size: min(56px, 11.4vw); }
  .phones { grid-template-columns: 1fr; }
  .phone { max-width: none; }
  .board { font-size: 14px; }
  .board__row { grid-template-columns: 1.2fr 1fr; }
  .board__row span:nth-child(2) { display: none; }
  .board__row span:nth-child(3) { grid-column: 1; }
  .board__row span:nth-child(4) { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; }
  .board__head, .board__row, .board__foot { padding-left: 16px; padding-right: 16px; }
  .board__foot { flex-direction: column; align-items: flex-start; }
  .sheet__head { display: none; }
  .sheet__row, .sheet--expiry .sheet__row { grid-template-columns: 1fr 1fr; }
  .sheet__row span:last-child { grid-column: 1 / -1; }
  .actions .btn { width: 100%; }
  .nav .btn { font-size: 14px; padding: 0 14px; min-height: 40px; }
  .mail { padding: 18px; }
  .mail__head { flex-direction: column; gap: 4px; }
}

/* 404 */
.notfound { min-height: 100vh; display: grid; place-items: center; background: var(--green); color: var(--parchment); padding: 24px; }
.notfound .box { border: 1px solid var(--brass); padding: 48px; max-width: 520px; display: flex; flex-direction: column; gap: 16px; }
.notfound h1 { font-weight: 700; font-stretch: 105%; font-size: 32px; line-height: 36px; color: var(--parchment); }
.notfound a { color: var(--parchment); text-decoration-color: var(--brass); text-underline-offset: 4px; }
.notfound .label { font-weight: 700; font-size: 12px; line-height: 14px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--brass); }

/* Below 420px the masthead cannot hold the button beside the lockup; it carries the Contact link,
   and the button is the first thing in the hero. */
@media (max-width: 420px) {
  .nav .btn { display: none; }
  .nav a[href="#contact"] { display: inline; }
}

/* Print the resting page: every reveal finished, no pin offsets. */
@media print {
  .masthead { position: static; }
  [data-rise], .chapter__copy, .chapter__copy p, .tenets li, .hero .word, .hero .lede, .hero .actions, .hero .hairline, .hero .settle-rule { opacity: 1 !important; transform: none !important; }
  .hero .strip { transform: none !important; }
  .hero .strip .word[aria-hidden="true"] { display: none; }
}
