/* Arsen AI: static site styles. System fonts only, no external requests. */

:root {
  --paper: #f6f2ea;
  --paper-2: #ece6d9;
  --ink: #1c1d21;
  --ink-soft: #4a4b52;
  --rule: #cfc8b8;
  --cobalt: #1f4fd8;
  --cobalt-deep: #173ba3;
  --cobalt-tint: #a9bdff;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --max: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--cobalt-deep); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--cobalt); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; color: var(--paper); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 1.6rem; height: 1.6rem; flex: none; }

.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: inline-block;
  padding: 0.4rem 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--cobalt-deep); border-bottom-color: var(--cobalt); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 8vw, 6rem); }
.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobalt-deep);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.6rem, 8.2vw, 5.4rem); line-height: 1.02; letter-spacing: -0.03em; }
h1 em { font-style: italic; color: var(--cobalt); font-weight: 500; }
.lede { max-width: 34rem; margin: 1.75rem 0 0; font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--ink-soft); line-height: 1.55; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: transparent;
  border-radius: 2px;
}
.btn:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
.btn-primary { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-deep); border-color: var(--cobalt-deep); color: #fff; }

.hero-meta { margin: 2.5rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; font-size: 0.9rem; color: var(--ink-soft); }
.hero-meta li::before { content: ""; display: inline-block; width: 0.4rem; height: 0.4rem; margin-right: 0.55rem; background: var(--cobalt); transform: rotate(45deg); vertical-align: 0.1em; }

.figure { margin: 0; }
.figure svg { width: 100%; height: auto; }
.figure figcaption { margin-top: 0.75rem; font-size: 0.85rem; color: var(--ink-soft); max-width: 28rem; }

/* flow diagram */
.flow-line { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.flow-line.live { stroke: var(--cobalt); stroke-width: 2; stroke-dasharray: 6 8; animation: flow 2.4s linear infinite; }
.node { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.node-hub { fill: var(--cobalt); stroke: var(--cobalt); }
.node-out { fill: var(--paper-2); }
.svg-text { font-family: var(--sans); font-size: 15px; fill: var(--ink); }
.svg-text-hub { font-family: var(--serif); font-size: 20px; font-weight: 600; fill: #fff; }
.svg-label { font-family: var(--sans); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; fill: var(--ink-soft); }
@keyframes flow { to { stroke-dashoffset: -28; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 9vw, 7rem); border-top: 1px solid var(--rule); }
.section-grid { display: grid; gap: 1.5rem 3rem; }
.section-label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cobalt-deep); margin: 0; }
h2 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); max-width: 18ch; }
.section-intro { margin: 1.25rem 0 0; max-width: 36rem; color: var(--ink-soft); }

.about p { max-width: 38rem; margin: 0 0 1.1rem; }
.about p:last-child { margin-bottom: 0; }

/* services: editorial rows */
.services { list-style: none; margin: 3rem 0 0; padding: 0; }
.service { display: grid; gap: 0.5rem 2rem; padding-block: 2rem; border-top: 1px solid var(--ink); }
.service:last-child { border-bottom: 1px solid var(--ink); }
.service-num { font-family: var(--serif); font-size: 2.5rem; line-height: 1; color: var(--cobalt); font-style: italic; }
.service h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.service p { margin: 0; max-width: 34rem; color: var(--ink-soft); }
.service .note { margin-top: 0.75rem; font-size: 0.92rem; }

/* process */
.steps { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.step { position: relative; padding: 0 0 2.25rem 2.25rem; border-left: 2px solid var(--ink); counter-increment: step; }
.step:last-child { padding-bottom: 0; border-left-color: transparent; }
.step::before {
  content: "";
  position: absolute;
  left: -0.5rem; top: 0.3rem;
  width: 0.9rem; height: 0.9rem;
  background: var(--cobalt);
  transform: rotate(45deg);
}
.step-k { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.step h3 { font-size: 1.5rem; margin: 0.25rem 0 0.5rem; }
.step p { margin: 0; color: var(--ink-soft); max-width: 24rem; }

/* contact (dark band) */
.contact { background: var(--ink); color: var(--paper); border-top: 0; }
.contact .section-label { color: var(--cobalt-tint); }
.contact h2 { color: var(--paper); max-width: 16ch; }
.contact .section-intro { color: #d9d4c7; }
.contact a { color: var(--cobalt-tint); }
.contact a:hover { color: #fff; }
.contact :focus-visible { outline-color: #fff; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-item { padding-block: 1.5rem; border-top: 1px solid #4a4b52; }
.contact-item:last-child { border-bottom: 1px solid #4a4b52; }
.contact-item dt, .contact-kind { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #bdb7a8; margin: 0 0 0.35rem; display: block; }
.contact-link {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 4.4vw, 2.1rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
  color: var(--paper);
  text-decoration-color: var(--cobalt-tint);
}
.contact-link:hover { color: #fff; }
.contact-hint { display: block; margin-top: 0.4rem; font-size: 0.92rem; color: #d9d4c7; }
.contact-location { margin: 2rem 0 0; color: #d9d4c7; }

/* ---------- Document pages (privacy, terms, 404) ---------- */
.doc { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3.5rem, 8vw, 6rem); }
.doc h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.doc .updated { margin: 1rem 0 0; color: var(--ink-soft); font-size: 0.95rem; }
.doc-body { max-width: 40rem; margin-top: 2.5rem; }
.doc-body h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); max-width: none; margin: 2.5rem 0 0.75rem; }
.doc-body p, .doc-body ul { margin: 0 0 1rem; }
.doc-body ul { padding-left: 1.25rem; }
.doc-body li { margin-bottom: 0.4rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding-block: 2.25rem 2.75rem; font-size: 0.92rem; color: var(--ink-soft); }
.site-footer .wrap { display: grid; gap: 1rem 2rem; }
.site-footer p { margin: 0; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; padding: 0; }
.site-footer a { color: var(--ink); }
.footer-name { color: var(--ink); font-weight: 600; }

/* ---------- Wider screens ---------- */
@media (min-width: 48rem) {
  .service { grid-template-columns: 5rem 1fr 1.2fr; align-items: baseline; }
  .service .service-body { grid-column: 3; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .step { padding: 2rem 0 0; border-left: 0; border-top: 2px solid var(--ink); }
  .step:last-child { border-top-color: var(--ink); }
  .step::before { left: 0; top: -0.5rem; }
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; }
}

@media (min-width: 62rem) {
  .hero-grid { grid-template-columns: 7fr 5fr; gap: 4rem; }
  .figure { margin-right: -1rem; }
  .section-grid { grid-template-columns: 4fr 8fr; }
  .section-grid .section-head { position: sticky; top: 2rem; align-self: start; }
  .contact-grid { grid-template-columns: 5fr 7fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flow-line.live { animation: none; stroke-dasharray: none; }
}

@media (forced-colors: active) {
  .btn-primary { border: 2px solid ButtonText; }
  .flow-line, .node { stroke: CanvasText; }
}
