/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V4
 * Hallmark · genre: modern-minimal · macrostructure: Narrative Workflow · theme: Plum (custom, from the client's logo)
 * tone: utilitarian · anchor hue: 343 (brand plum) · enrichment: none (typography + the supplied logo)
 * nav: N1b (centre links=4, dropdowns=none, scroll=frost-on-scroll, CTA=text+fill)
 * footer: Ft1 Mast-headed (wordmark=xl, tagline=roman body, links=inline)
 * hero: H2 Split diptych (ratio=7/5, right=proof column, divider=negative space)
 * features: F3 Tabular spec sheet (cols=3, rules=every row) · F4 Step sequence (numbering=1.0/2.0, layout=vertical, connector=line)
 * motion: nav-frost · load-reveal · press
 * outlier face: Chakra Petch, 2 slots only (wordmark · stage figures)
 * geometry: slab radii (4-6px) — the mark is cut from straight edges, so the UI is too
 * contrast: pass (40–41) · slop: pass (42–45) · honest: pass (46) · chrome: pass (47)
 * tokens: pass (48) · responsive: pass (49) · icons: pass (30) · mobile: pass (34, 49, 50–57)
 */

@import url("tokens.css?v=20260806");

/* ---------------------------------------------------------------- reset */

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

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  overflow-x: clip;
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.1;
  margin: 0;
  overflow-wrap: anywhere;
  min-width: 0;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

::selection { background: var(--color-accent-soft); color: var(--color-ink); }

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

/* ---------------------------------------------------------- primitives */

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

.muted { color: var(--color-muted); }
.tnum { font-variant-numeric: tabular-nums; }

.lede {
  font-size: var(--text-md);
  line-height: 1.55;
  color: var(--color-muted);
  max-width: 58ch;
}

.section {
  padding-block: clamp(3.5rem, 8vw, var(--space-3xl));
  border-top: var(--rule-hair) solid var(--color-rule);
}

.section--tight { padding-block: clamp(2.75rem, 6vw, var(--space-2xl)); }
.section--open { padding-block: clamp(4rem, 10vw, var(--space-4xl)); }
.section--plain { border-top: 0; }

.section__head { max-width: 62ch; margin-bottom: var(--space-xl); }

.section__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

.section__note { color: var(--color-muted); max-width: 56ch; }

/* The mark is a sheared wedge; the section marker repeats that cut. */
.rule-accent {
  width: 2.5rem;
  height: 4px;
  background: var(--color-accent);
  transform: skewX(-24deg);
  transform-origin: left center;
  margin-bottom: var(--space-lg);
}

/* -------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 44px;
  padding: var(--space-sm) var(--space-lg);
  border: var(--rule-hair) solid transparent;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.004em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  transition:
    background-color var(--dur-micro) var(--ease-out),
    border-color var(--dur-micro) var(--ease-out),
    color var(--dur-micro) var(--ease-out),
    transform var(--dur-micro) var(--ease-out);
}

.btn--fill {
  background: var(--color-accent);
  color: var(--color-on-ink);
}

.btn--fill:hover { background: var(--color-accent-strong); }

.btn--line {
  border-color: var(--color-rule-strong);
  color: var(--color-ink);
}

.btn--line:hover { border-color: var(--color-ink); background: var(--color-paper-2); }

.btn--onink {
  background: var(--color-paper);
  color: var(--color-ink);
}

.btn--onink:hover { background: var(--color-paper-3); }

.btn--text {
  padding-inline: var(--space-sm);
  color: var(--color-muted);
}

.btn--text:hover { color: var(--color-ink); }

.btn:active { transform: translateY(1px); }

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn[data-state="loading"] { cursor: progress; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-accent-ink);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: var(--rule-hair) solid transparent;
  transition: border-color var(--dur-micro) var(--ease-out);
}

.link-arrow:hover { border-bottom-color: var(--color-accent); }

/* ------------------------------------------------------------ N1b · nav */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-sticky);
  background: transparent;
  border-bottom: var(--rule-hair) solid transparent;
  transition:
    background-color var(--dur-short) var(--ease-out),
    border-color var(--dur-short) var(--ease-out),
    box-shadow var(--dur-short) var(--ease-out);
}

.nav.is-scrolled {
  background: color-mix(in oklch, var(--color-paper) 82%, transparent);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--color-rule);
  box-shadow: var(--shadow-frost);
}

.nav__inner {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
  min-height: 4.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-md);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  justify-self: start;
}

.brand__mark { width: auto; height: 26px; flex: none; }

.brand__name {
  font-family: var(--font-outlier);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink);
  white-space: nowrap;
}

.nav__center {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav__link {
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-muted);
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: color var(--dur-micro) var(--ease-out);
}

.nav__link:hover { color: var(--color-ink); }

.nav__link[aria-current="page"] {
  color: var(--color-ink);
  box-shadow: inset 0 -2px 0 var(--color-accent);
}

.nav__right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav__toggle { display: none; }

.nav__sheet { display: none; }

@media (max-width: 62rem) {
  .nav__center { display: none; }
  .nav__right .btn--text { display: none; }

  .nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border: var(--rule-hair) solid var(--color-rule-strong);
    border-radius: var(--radius-pill);
    background: none;
    color: var(--color-ink);
    cursor: pointer;
  }

  .nav__toggle-bars,
  .nav__toggle-bars::before,
  .nav__toggle-bars::after {
    display: block;
    width: 16px;
    height: 1.5px;
    background: currentColor;
    content: "";
  }

  .nav__toggle-bars::before { transform: translateY(-5px); }
  .nav__toggle-bars::after { transform: translateY(3.5px); }

  .nav__sheet {
    display: grid;
    gap: var(--space-2xs);
    padding: var(--space-md) var(--page-gutter) var(--space-lg);
    background: var(--color-paper);
    border-top: var(--rule-hair) solid var(--color-rule);
    box-shadow: var(--shadow-frost);
  }

  .nav__sheet[hidden] { display: none; }

  /* At 320 px the wordmark, the CTA and the toggle cannot share the row —
     the CTA moves into the sheet rather than pushing the toggle off-screen. */
  @media (max-width: 26rem) {
    .nav__right .btn--fill { display: none; }
  }

  .nav__sheet a {
    padding: var(--space-sm) 0;
    font-size: var(--text-md);
    text-decoration: none;
    color: var(--color-ink);
    border-bottom: var(--rule-hair) solid var(--color-rule);
    white-space: nowrap;
  }
}

/* ----------------------------------------------------- H2 · hero split */

/* Top padding carries the fixed nav's height; the content-space above the
   headline stays lighter than the space below, so the hero sits into the page. */
.hero {
  padding-top: calc(var(--nav-h) + clamp(2rem, 5vw, var(--space-xl)));
  padding-bottom: clamp(3.5rem, 9vw, var(--space-3xl));
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: start;
}

@media (min-width: 60rem) {
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); }
}

.hero__title {
  font-size: var(--text-display);
  letter-spacing: -0.034em;
  margin-bottom: var(--space-lg);
}

.hero__lede { margin-bottom: var(--space-xl); max-width: 52ch; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.hero__meta {
  font-size: var(--text-sm);
  color: var(--color-neutral);
  max-width: 46ch;
}

/* proof column */

.pod {
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-md);
  background: var(--color-paper-2);
  padding: var(--space-lg);
}

/* The outlier face is held to two slots on the page: the wordmark and the
   stage figures. Every other label runs in the body face. */
.pod__title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-md);
}

.pod__list { display: grid; gap: var(--space-md); }

.pod__list li {
  display: grid;
  gap: var(--space-3xs);
  padding-bottom: var(--space-md);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.pod__list li:last-child { padding-bottom: 0; border-bottom: 0; }

.pod__key { font-size: var(--text-sm); font-weight: 600; }
.pod__val { font-size: var(--text-sm); color: var(--color-muted); line-height: 1.5; }

/* ------------------------------------------------- F3 · service spec sheet */

.spec { width: 100%; border-collapse: collapse; text-align: start; }

.spec caption { text-align: start; }

.spec th,
.spec td {
  padding: var(--space-lg) var(--space-md) var(--space-lg) 0;
  border-bottom: var(--rule-hair) solid var(--color-rule);
  vertical-align: top;
  text-align: start;
}

.spec thead th {
  padding-block: var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-neutral);
  border-bottom-color: var(--color-rule-strong);
}

.spec tbody th {
  width: 24%;
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.spec__what { color: var(--color-muted); width: 48%; }

.spec__stack {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.02em;
  color: var(--color-neutral);
  line-height: 1.7;
}

@media (max-width: 52rem) {
  .spec thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .spec tbody th,
  .spec td { display: block; width: auto; padding: 0; border-bottom: 0; }
  .spec tbody th { padding-top: var(--space-lg); }
  .spec__what { padding-block: var(--space-xs); }
  .spec__stack { padding-bottom: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
}

/* ------------------------------------------------- F4 · step sequence */

.steps { display: grid; gap: 0; counter-reset: stage; }

.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-sm);
  padding-block: var(--space-xl);
  border-top: var(--rule-hair) solid var(--color-rule);
}

.step:first-child { border-top: 0; padding-top: 0; }

@media (min-width: 52rem) {
  .step {
    grid-template-columns: 7rem minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-xl);
    align-items: start;
  }
}

.step__stage {
  font-family: var(--font-outlier);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent-ink);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.step__title { font-size: var(--text-lg); margin-bottom: var(--space-xs); }

.step__body { color: var(--color-muted); max-width: 52ch; }

.step__detail {
  font-size: var(--text-sm);
  color: var(--color-neutral);
  border-inline-start: 2px solid var(--color-rule);
  padding-inline-start: var(--space-md);
  max-width: 46ch;
}

/* ----------------------------------------------------------- ink band */

.band-ink {
  background: var(--color-ink-surface);
  color: var(--color-on-ink);
  padding-block: clamp(3.5rem, 8vw, var(--space-3xl));
}

.band-ink h2 { color: var(--color-on-ink); }

.band-ink .muted,
.band-ink p { color: var(--color-on-ink-muted); }

.band-ink__grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 60rem) {
  .band-ink__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-3xl); align-items: start; }
}

.stance { display: grid; gap: var(--space-lg); }

.stance li {
  display: grid;
  gap: var(--space-2xs);
  padding-block: var(--space-md);
  border-top: var(--rule-hair) solid var(--color-ink-surface-2);
}

.stance li:first-child { border-top: 0; padding-top: 0; }

.stance strong {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-on-ink);
}

/* --------------------------------------------------------- industries */

.sectors {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-top: var(--rule-hair) solid var(--color-rule);
}

@media (min-width: 46rem) {
  .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-2xl); }
}

.sectors li {
  padding-block: var(--space-lg);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.sectors h3 { font-size: var(--text-md); margin-bottom: var(--space-2xs); }
.sectors p { font-size: var(--text-sm); color: var(--color-muted); }

/* ---------------------------------------------------------------- FAQ */

.faq { display: grid; border-top: var(--rule-hair) solid var(--color-rule); max-width: 68ch; }

.faq details { border-bottom: var(--rule-hair) solid var(--color-rule); }

.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: var(--space-lg);
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
  transition: color var(--dur-micro) var(--ease-out);
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--color-accent-ink); }

.faq summary::after {
  content: "+";
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-neutral);
  flex: none;
}

.faq details[open] summary::after { content: "–"; }

.faq p {
  padding-bottom: var(--space-lg);
  color: var(--color-muted);
  max-width: 60ch;
}

/* ----------------------------------------------------------- CTA strip */

.cta-strip {
  display: grid;
  gap: var(--space-lg);
  align-items: end;
  padding-block: clamp(3rem, 7vw, var(--space-3xl));
}

@media (min-width: 52rem) {
  .cta-strip { grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2xl); }
}

.cta-strip h2 { font-size: var(--text-2xl); max-width: 20ch; }

/* --------------------------------------------------------------- forms */

.form { display: grid; gap: var(--space-lg); max-width: 40rem; }

.field { display: grid; gap: var(--space-2xs); }

.field label { font-size: var(--text-sm); font-weight: 500; }

/* Reserved so an appearing hint or error never pushes the form down. */
.field__hint { font-size: var(--text-xs); color: var(--color-neutral); min-height: 1lh; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-ink);
  background: var(--color-paper);
  border: var(--rule-hair) solid var(--color-rule-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur-micro) var(--ease-out);
}

.field textarea { min-height: 8rem; resize: vertical; line-height: 1.6; }

.field input::placeholder,
.field textarea::placeholder { color: var(--color-neutral); }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--color-muted); }

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { border-color: var(--color-focus); }

.field input:disabled,
.field textarea:disabled { background: var(--color-paper-3); cursor: not-allowed; }

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--color-accent); }

.field__error { font-size: var(--text-sm); color: var(--color-accent-ink); }

.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice {
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  border: var(--rule-hair) solid var(--color-rule-strong);
  border-radius: var(--radius-sm);
  background: var(--color-paper-2);
  font-size: var(--text-sm);
}

.notice--ok { border-color: var(--color-accent); background: var(--color-accent-soft); }

/* ------------------------------------------------ contact detail block */

.contact-grid {
  display: grid;
  gap: var(--space-2xl);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 60rem) {
  .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); }
}

.detail-list { display: grid; gap: var(--space-lg); }

.detail-list dt {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-neutral);
  margin-bottom: var(--space-3xs);
}

.detail-list dd { margin: 0; font-size: var(--text-md); }
.detail-list a { text-decoration: none; border-bottom: var(--rule-hair) solid var(--color-rule-strong); }
.detail-list a:hover { border-bottom-color: var(--color-accent); }

/* ---------------------------------------------------- Ft1 · mast footer */

.foot {
  border-top: var(--rule-hair) solid var(--color-rule);
  padding-block: var(--space-2xl) var(--space-xl);
}

.foot__mast {
  display: grid;
  gap: var(--space-lg);
  align-items: end;
  margin-bottom: var(--space-xl);
}

@media (min-width: 52rem) {
  .foot__mast { grid-template-columns: minmax(0, 1fr) auto; }
}

.foot__lockup {
  width: auto;
  height: 4.5rem;
  margin-bottom: var(--space-md);
}

.foot__tag { color: var(--color-muted); max-width: 52ch; }

.foot__links { display: flex; flex-wrap: wrap; gap: var(--space-lg); }

.foot__link {
  font-size: var(--text-sm);
  color: var(--color-muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: var(--rule-hair) solid transparent;
  transition: color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out);
}

.foot__link:hover { color: var(--color-ink); border-bottom-color: var(--color-accent); }

.foot__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-lg);
  justify-content: space-between;
  padding-top: var(--space-lg);
  border-top: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-xs);
  color: var(--color-neutral);
}

/* -------------------------------------------------------------- motion */

.reveal {
  opacity: 0;
  transform: translateY(8px);
  animation: reveal var(--dur-long) var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}

@keyframes reveal {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 150ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 150ms !important;
  }

  .reveal { animation: reveal-reduced 150ms linear forwards; }

  @keyframes reveal-reduced { to { opacity: 1; transform: none; } }
}

@media (pointer: coarse) {
  .btn { min-height: 48px; }
}

/* ------------------------------------------------------------ utility */

.skip-link {
  position: absolute;
  left: var(--space-md);
  top: var(--space-md);
  z-index: var(--z-modal);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-ink);
  color: var(--color-on-ink);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus-visible { transform: none; }

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