/* Hallmark · macrostructure: Narrative Workflow · tone: plain-spoken, rooted · anchor hue: leaf green 155 · nav: N9 edge-aligned · footer: Ft6 letter close · enrichment: E5 hand-built SVG (logo grows seed → roots → tree) */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R5 V4 */
@import url("tokens.css");

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent-deep); text-underline-offset: 0.2em; }
a:hover { color: var(--color-ink); }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-style: normal; font-weight: 600; line-height: 1.08;
  overflow-wrap: anywhere; min-width: 0; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; max-width: var(--measure); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--space-md); top: var(--space-md); background: var(--color-paper); padding: var(--space-xs) var(--space-sm); }

/* N9 edge-aligned nav */
.nav-edge { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md);
  padding: var(--space-md) var(--page-gutter); }
.wordmark { display: inline-flex; align-items: center; gap: var(--space-sm); text-decoration: none;
  color: var(--color-ink); font-family: var(--font-display); font-size: var(--text-md); font-weight: 600; white-space: nowrap; }
.wordmark img { width: 44px; height: 44px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-height: 44px; padding: var(--space-xs) var(--space-lg); border-radius: var(--radius-pill);
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-base); white-space: nowrap;
  text-decoration: none; border: var(--rule-thin) solid var(--color-accent-deep);
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.btn--solid { background: var(--color-accent-deep); color: var(--color-on-accent); }
.btn--solid:hover { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
.btn--line { background: transparent; color: var(--color-accent-deep); }
.btn--line:hover { background: var(--color-accent-deep); color: var(--color-on-accent); }
.btn:active { transform: translateY(1px); }

/* Hero */
.hero { padding: var(--space-2xl) var(--page-gutter) var(--space-3xl);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-xl); align-items: end; }
.hero h1 { font-size: var(--text-display); max-width: 14ch; }
.hero h1 .leaf { display: block; color: var(--color-accent); }
.hero__lede { margin-top: var(--space-lg); font-size: var(--text-md); color: var(--color-ink-soft); max-width: 46ch; }
.hero__actions { margin-top: var(--space-xl); display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.hero__logo { width: clamp(140px, 22vw, 260px); height: auto; aspect-ratio: 1; display: block; }


/* Automation and private AI */
.tools { padding: var(--space-3xl) var(--page-gutter); border-top: var(--rule-thick) solid var(--color-copper); }
.tools h2 { font-size: var(--text-2xl); max-width: 20ch; }
.tools__lede { margin-top: var(--space-md); font-size: var(--text-md); color: var(--color-ink-soft); }
.tools__list { margin: var(--space-xl) 0 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 0 var(--space-xl); }
.tools__list li { padding: var(--space-md) 0; border-top: var(--rule-thin) solid var(--color-rule); }
.tools__list strong { display: block; font-family: var(--font-display); font-size: var(--text-md); font-weight: 600; color: var(--color-accent-deep); }
.tools__list span { color: var(--color-ink-soft); }

/* Narrative stages */
.stages { list-style: none; margin: 0; padding: 0; }
.stage { padding: var(--space-2xl) var(--page-gutter); border-top: var(--rule-thick) solid var(--color-copper);
  display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: var(--space-lg) var(--space-xl); }
.stage:nth-child(even) { background: var(--color-paper-deep); }
.stage__num { font-family: var(--font-display); font-size: var(--text-stage); font-weight: 500; line-height: 1;
  color: var(--color-copper-deep); font-variant-numeric: tabular-nums; }
.stage h2 { font-size: var(--text-2xl); }
.stage__price { margin-top: var(--space-sm); font-weight: 600; color: var(--color-accent-deep); }
.stage__body { margin-top: var(--space-md); }
.stage__body + .stage__body { margin-top: var(--space-sm); }

/* What I work on */
.work { padding: var(--space-3xl) var(--page-gutter); background: var(--color-slate); color: var(--color-on-slate); }
.work h2 { font-size: var(--text-2xl); max-width: 20ch; }
.work__list { margin: var(--space-xl) 0 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 0 var(--space-xl); }
.work__list li { padding: var(--space-md) 0; border-top: var(--rule-thin) solid var(--color-on-slate-rule); }
.work__list strong { display: block; font-family: var(--font-display); font-size: var(--text-md); font-weight: 600; color: var(--color-leaf); }
.work__list span { color: var(--color-on-slate-soft); }

/* Why salary rates */
.why { padding: var(--space-3xl) var(--page-gutter); display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-xl); }
.why h2 { font-size: var(--text-2xl); max-width: 16ch; }
.why__text p + p { margin-top: var(--space-md); }
.rates { margin-top: var(--space-lg); width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rates th, .rates td { text-align: left; padding: var(--space-sm) 0; border-bottom: var(--rule-thin) solid var(--color-rule); vertical-align: top; }
.rates th { font-weight: 500; color: var(--color-ink-soft); padding-right: var(--space-md); }
.rates td { font-weight: 600; }
.rates tr.me th, .rates tr.me td { color: var(--color-accent-deep); }

/* Background */
.roots { padding: 0 var(--page-gutter) var(--space-3xl); }
.roots p { font-size: var(--text-md); }

/* Contact */
.contact { padding: var(--space-3xl) var(--page-gutter); border-top: var(--rule-thick) solid var(--color-copper); }
.contact h2 { font-size: var(--text-2xl); }
.contact p { margin-top: var(--space-md); }

/* Contact form: one border width in every state; state shows in colour, outline and the helper line. */
.ask { position: relative; margin-top: var(--space-lg); max-width: 36rem; display: grid; gap: var(--space-xs); }
.field { display: grid; gap: var(--space-2xs); transition: opacity var(--dur-fast) var(--ease-out); }
.field label { font-weight: 600; font-size: var(--text-sm); }
.field input, .field textarea { width: 100%; min-height: 44px; padding: var(--space-xs) var(--space-sm);
  font: inherit; color: var(--color-ink); background: var(--color-field);
  border: var(--rule-thin) solid var(--color-rule); border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--color-ink-soft); }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--color-focus); }
.field [aria-invalid="true"] { border-color: var(--color-error); }
.field input:disabled, .field textarea:disabled { opacity: 0.6; cursor: not-allowed; }
.field__help { min-height: 1lh; font-size: var(--text-sm); color: var(--color-ink-soft); }
.field__help.is-error, .ask__status.is-error { color: var(--color-error); }
.ask p { margin-top: 0; }
.ask__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ask__send { justify-self: start; min-width: 8rem; }
.btn:disabled { cursor: progress; opacity: 0.85; }
.ask.is-busy .field > :not(.ask__wait) { opacity: 0.3; }
.ask.is-busy .field { pointer-events: none; }
.field:has(textarea) { position: relative; }
.ask__wait { position: absolute; left: 0; right: 0; top: 1.6rem; bottom: 1.6rem; display: grid; place-items: center end;
  padding-right: 18%; }
.ask__wait .ar-loader svg { width: 88px; height: 88px; }
.ask__status { min-height: 1lh; font-size: var(--text-sm); }
.ask-done { margin-top: var(--space-lg); max-width: 36rem; padding: var(--space-lg); background: var(--color-field);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg);
  border-left: var(--rule-thick) solid var(--color-accent); border-radius: var(--radius-sm); }
.ask-done:focus { outline: none; }
.ask-done__head { font-family: var(--font-display); font-size: var(--text-lg); }
.ask-done p + p { margin-top: var(--space-xs); }
.ask-done svg { width: 112px; height: 112px; flex: none; }
@media (max-width: 420px) { .ask-done svg { width: 80px; height: 80px; } }

/* Ft6 letter close */
.foot-letter { padding: var(--space-2xl) var(--page-gutter) var(--space-3xl); }
.foot-letter__close { font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.4; }
.foot-letter__sign { font-weight: 600; }
.foot-letter__ps { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-ink-soft); }

@media (max-width: 720px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: var(--space-lg); }
  .hero__logo { order: -1; width: 140px; }
  .stage { grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); padding-block: var(--space-xl); }
  .why { grid-template-columns: minmax(0, 1fr); }
  .nav-edge .btn { padding-inline: var(--space-md); font-size: var(--text-sm); }
  .wordmark span { font-size: var(--text-base); }
  .wordmark img { width: 36px; height: 36px; }
}
@media (max-width: 360px) {
  .nav-edge .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0ms !important; }
}
