/* Awakened Labs — atlabs.io
 *
 * The palette and the component vocabulary are inherited wholesale from
 * ennius.io. That is deliberate and it is the point: the parent and the
 * product should look like one house, and the cheapest way to guarantee that
 * is to share the values rather than to eyeball them. Every colour below was
 * originally sampled off the Ennius master artwork.
 *
 * Since 2026-08-20 this site also SERVES the product's pages, at /ennius/ and
 * /ennius/about/, rather than linking out to them. So a second set of rules
 * came across with that content: the wordmark lockup, the filled-in blank in
 * the hero line, and a four-up card grid. Every one of them is scoped to
 * `.product-page` — the class those two pages carry on <main> — so the company
 * pages render exactly as they did before. Where you see that prefix, the rule
 * is a port and the unprefixed version above it is what atlabs.io itself uses.
 *
 * No webfonts. No scripts. No external requests of any kind — which is what
 * lets nginx serve `default-src 'self'` and `script-src 'none'` at no cost.
 */

:root {
  --navy:        #0c2440;
  --navy-2:      #17395c;
  --terracotta:  #c06a3c;
  --terracotta-2:#a85a30;
  --sky:         #7baecd;

  --plate-hi:    #c9d7de;
  --plate-lo:    #a8b8c6;
  --paper:       #f5f8fa;
  --card:        #ffffff;

  --ink:         #0c2440;
  --muted:       #55677a;
  --hairline:    rgba(12, 36, 64, .12);
  --hairline-2:  rgba(12, 36, 64, .07);

  --wrap: 1080px;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Liberation Sans", sans-serif;

  --shadow: 0 1px 2px rgba(12, 36, 64, .04),
            0 8px 24px rgba(12, 36, 64, .06);
  --shadow-lift: 0 2px 4px rgba(12, 36, 64, .05),
                 0 18px 40px rgba(12, 36, 64, .11);
}

*, *::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: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1 0 auto; }

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

h1, h2, h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.021em;
  font-weight: 650;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy-2); }

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

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

.measure { max-width: 720px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* Read by assistive tech, never painted. The animated blank in the product
 * hero is decoration as far as a screen reader is concerned; this carries the
 * sentence it would otherwise have to guess at from five stacked spans. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- kicker */

.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.kicker::after {
  content: "";
  flex: 0 0 40px;
  height: 1px;
  background: currentColor;
  opacity: .45;
}

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

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  font-family: inherit;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease,
              color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.btn-solid {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff;
  box-shadow: 0 1px 2px rgba(12, 36, 64, .12);
}
.btn-solid:hover {
  background: var(--terracotta-2);
  border-color: var(--terracotta-2);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(168, 90, 48, .28);
}

.btn-ghost {
  border-color: rgba(12, 36, 64, .22);
  color: var(--navy);
}
.btn-ghost:hover {
  border-color: var(--navy);
  background: rgba(12, 36, 64, .04);
  transform: translateY(-1px);
}

.btn-quiet {
  padding: 9px 18px;
  font-size: 14px;
  border-color: rgba(12, 36, 64, .2);
  color: var(--navy);
}
.btn-quiet:hover { border-color: var(--navy); background: rgba(255, 255, 255, .55); }

/* -------------------------------------------------------------- masthead */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 24px;
  background: rgba(201, 215, 222, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(12, 36, 64, .08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--navy);
}
.brand-mark { width: 34px; }

/* The wordmark is live text rather than an image — sharper at every size,
 * selectable, and it costs nothing to ship. Ennius sets its own as a PNG only
 * because that wordmark had to be lifted out of flattened master artwork. */
.brand-word {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ------------------------------------------------------------------- nav */

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy-2);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .16s ease, color .16s ease;
}
.nav a:hover { background: rgba(255, 255, 255, .5); color: var(--navy); }

/* aria-current="page" is the accessible signal; this is only its rendering. */
.nav a[aria-current="page"] {
  color: var(--navy);
  background: rgba(255, 255, 255, .62);
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  padding: clamp(56px, 9vw, 104px) 0 clamp(60px, 10vw, 112px);
  background:
    radial-gradient(120% 90% at 50% 12%, #d2dee4 0%, var(--plate-hi) 42%, var(--plate-lo) 100%);
  border-bottom: 1px solid rgba(12, 36, 64, .09);
  overflow: hidden;
}

.hero-inner { text-align: center; }

.hero-mark {
  width: clamp(112px, 16vw, 168px);
  margin: 0 auto clamp(16px, 2.2vw, 24px);
}

.hero-word {
  margin: 0;
  font-size: clamp(30px, 6vw, 54px);
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--navy);
}

.hero-tagline {
  margin: clamp(18px, 2.6vw, 24px) 0 0;
  font-size: clamp(11px, 1.9vw, 13px);
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-lead {
  max-width: 42ch;
  margin: clamp(26px, 4vw, 38px) auto 0;
  font-size: clamp(18px, 2.5vw, 23px);
  line-height: 1.5;
  letter-spacing: -0.012em;
  color: var(--navy-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: clamp(30px, 4.2vw, 40px) 0 0;
}

/* -------------------------------------------------- hero: /ennius/ only */

/* The mark and the wordmark are one lockup: keep them near the proportion and
 * the spacing they have in the master artwork, or the mark reads as an
 * afterthought floating above the name. This site's own hero sets its wordmark
 * as live text and can size it with type; the product's had to be lifted out
 * of flattened artwork, so it arrives as a PNG and is sized as one. */
.product-page .hero-mark { width: clamp(132px, 20vw, 212px); }

.product-page .hero-word img {
  width: clamp(232px, 43vw, 384px);
  margin: 0 auto;
}

/* A sentence in navy, where the company hero sets a small uppercase eyebrow in
 * --muted. That is a contrast decision, not a taste one: the hero plate is
 * light but not white, and --muted clears 4.5:1 on paper but only 3.9:1 here.
 * Navy takes the line to 8:1 outright, and holding it at 19px/600 keeps the
 * terracotta word in the blank — which clears 3.4:1 — large text, where 3:1
 * is the bar it has to meet. */
.product-page .hero-tagline {
  font-size: clamp(19px, 2.3vw, 21px);
  letter-spacing: .005em;
  text-transform: none;
  color: var(--navy-2);
}

.product-page .hero-lead {
  max-width: 34ch;
  font-size: clamp(19px, 2.7vw, 25px);
  line-height: 1.45;
}

/* The blank. There is no script on this page to measure text with, so the slot
 * cannot resize to each word -- it is one fixed width. Rather than guess that
 * width in ch and hope every system font agrees, a hidden copy of the longest
 * word sits in normal flow and sets it exactly. The constraint is also the
 * idea: the tagline is a fill-in-the-blank, and the page keeps filling it in.
 *
 * clip-path, not overflow: hidden. An inline-block whose overflow is not
 * visible takes its baseline from its bottom margin edge, which would drop the
 * word off the line it shares with "The forever agent for". clip-path clips
 * without touching the baseline.
 *
 * The gap before the slot is a real space in the markup rather than a margin
 * here, because it also has to be a break opportunity: with "for" and the slot
 * welded into one unbreakable unit, the hero overflows a narrow viewport. */
.blank {
  --step: 2.2s;
  position: relative;
  display: inline-block;
  padding-inline: .32em;
  line-height: 1.3;
  text-align: center;
  clip-path: inset(0);
  border-bottom: 2px solid rgba(192, 106, 60, .34);
  color: var(--terracotta-2);
  font-weight: 700;
}

/* In flow: sets the width of the slot and the baseline of the line. */
.blank-sizer { visibility: hidden; }

.blank-word {
  position: absolute;
  inset: 0;
  animation: blank-swap calc(5 * var(--step)) cubic-bezier(.2, .7, .2, 1)
             infinite backwards;
}

/* The stagger lives here rather than in a --i on each span, because
 * style-src 'self' blocks inline style attributes exactly as it blocks inline
 * script -- which is also what `make gate` fails the build over. Child 1 is
 * the sizer, so the words start at 2. */
.blank-word:nth-child(2) { animation-delay: calc(0 * var(--step)); }
.blank-word:nth-child(3) { animation-delay: calc(1 * var(--step)); }
.blank-word:nth-child(4) { animation-delay: calc(2 * var(--step)); }
.blank-word:nth-child(5) { animation-delay: calc(3 * var(--step)); }
.blank-word:nth-child(6) { animation-delay: calc(4 * var(--step)); }

/* `backwards` above is load-bearing: without it every word that has not
 * reached its delay yet renders in its un-animated state, and all five stack
 * on top of each other for the first turn. */
@keyframes blank-swap {
  0%        { transform: translateY(95%);  opacity: 0; }
  4%, 16%   { transform: translateY(0);    opacity: 1; }
  20%, 100% { transform: translateY(-95%); opacity: 0; }
}

/* Not a pause control in the WCAG sense, but it stops the word moving under a
 * cursor that is trying to read it. */
.hero-tagline:hover .blank-word,
.hero-tagline:focus-within .blank-word { animation-play-state: paused; }

/* ----------------------------------------------------- inner page header */

.pagehead {
  padding: clamp(48px, 7.5vw, 84px) 0 clamp(36px, 5vw, 52px);
  background:
    radial-gradient(120% 120% at 50% 0%, #d2dee4 0%, var(--plate-hi) 55%, var(--plate-lo) 100%);
  border-bottom: 1px solid rgba(12, 36, 64, .09);
}

.pagehead h1 {
  font-size: clamp(30px, 5.2vw, 46px);
  max-width: 20ch;
}

.pagehead-lead {
  margin: 22px 0 0;
  max-width: 56ch;
  font-size: clamp(16px, 2vw, 18.5px);
  color: var(--navy-2);
}

/* -------------------------------------------------------------- sections */

.section { padding: clamp(60px, 9vw, 104px) 0; }

.section-tint {
  background: linear-gradient(180deg, #eef3f6 0%, #e6edf1 100%);
  border-block: 1px solid var(--hairline-2);
}

.section h2 {
  font-size: clamp(25px, 3.8vw, 38px);
  max-width: 24ch;
  margin-bottom: 28px;
}

.section-lead {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
  max-width: 68ch;
}

/* The 24ch cap above is right for this site's own headings, which are short by
 * design. The ported ones are not -- "Agents are being handed real authority on
 * an architecture designed for chat." reads as a paragraph at 24ch and as a
 * heading at the measure. Every section on those two pages already wraps its
 * content in `.measure`, so the measure is the cap. (0,2,1) beats
 * `.section h2`'s (0,1,1), so this wins wherever it sits in the file. */
.product-page .section h2 { max-width: none; }

/* ----------------------------------------------------------------- cards */

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 860px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* Four cards, two by two, deliberately. Three columns lays them 3 + 1, which
 * orphans the last one -- and on /ennius/ the four are a set, not a ranking.
 *
 * Written `.cards.cards-4` rather than `.cards-4` on purpose: the two media
 * queries above are (0,1,0) and sit earlier in the file, so a (0,1,0) override
 * would lose to them below 860px and the grid would silently go three-up-then-
 * two. Doubling the class makes this (0,2,0) and settles it on specificity
 * instead of source order. */
.cards.cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 700px) {
  .cards.cards-4 { grid-template-columns: minmax(0, 1fr); }
}

.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(12, 36, 64, .18);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 22px;
  border-radius: 13px;
  background: rgba(123, 174, 205, .17);
  color: var(--navy-2);
}
.card-icon svg { width: 27px; height: 27px; }

/* Terracotta on alternating cards so the row has a rhythm rather than four
 * identical tiles. In a 2x2 that means the 2nd and the 4th -- diagonally
 * opposite, which is what makes it read as a pattern instead of a mistake. */
.card:nth-child(2) .card-icon,
.cards-4 .card:nth-child(4) .card-icon {
  background: rgba(192, 106, 60, .13);
  color: var(--terracotta-2);
}

.card h3 { font-size: 19px; margin-bottom: 11px; }

.card p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.62;
}

/* ---------------------------------------------------------- product card */

/* The Ennius card is the most important thing below the hero, so it is the one
 * card that does not sit in the grid — it gets the full measure, the product's
 * own mark, and the only solid button on the page. */
.product {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 46px);
  box-shadow: var(--shadow);
}

.product-mark { width: clamp(84px, 11vw, 132px); }

.product h3 {
  font-size: clamp(22px, 3vw, 29px);
  margin-bottom: 6px;
}

.product-sub {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 18px;
}

.product p { color: var(--muted); font-size: 16.5px; }

.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
}

.product-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-2);
}

@media (max-width: 620px) {
  .product { grid-template-columns: minmax(0, 1fr); }
  .product-mark { width: 84px; }
}

/* ----------------------------------------------------------------- about */

/* "Where this is going" is a statement of intent, not a description of what
 * ships today, and that difference is worth seeing at a glance. A rule in the
 * accent ink marks it as the aspiration without resorting to a callout box. */
.vision {
  margin: 0 0 18px;
  padding-left: 22px;
  border-left: 2px solid var(--terracotta);
  color: var(--navy-2);
  font-size: clamp(16px, 2vw, 17.5px);
  line-height: 1.62;
  max-width: 64ch;
}

@media (max-width: 620px) { .vision { padding-left: 16px; } }


/* Ported deliberately from ennius.io's stylesheet, where it is `.creed`. The
 * product's four properties are rules rather than features, and a hairline-
 * ruled list says that where a card grid would say "pick your favourite".
 * Keeping the same component on both sites is the point: parent and product
 * are meant to read as one house. */
.creed {
  list-style: none;
  margin: 0 0 clamp(34px, 4vw, 44px);
  padding: 0;
}
.creed li {
  padding: 26px 0;
  border-top: 1px solid var(--hairline-2);
}
.creed li:last-child { border-bottom: 1px solid var(--hairline-2); }

.creed h3 { font-size: 19px; margin-bottom: 10px; }
.creed p {
  color: var(--muted);
  font-size: clamp(15.5px, 2vw, 17px);
  line-height: 1.62;
  max-width: 68ch;
}

.mission-close {
  color: var(--navy-2);
  font-size: clamp(16px, 2vw, 18px);
  max-width: 56ch;
}

/* The one section on /ennius/ whose content is not inside `.measure`, because
 * the card grid wants the full wrap -- so its title sets its own. Qualified
 * `h2.` deliberately: a bare `.pillars-title` is (0,1,0) against `.section
 * h2`'s (0,1,1) and loses however far down the file it sits, which would
 * silently inflate the title to 40px with a third of the space beneath it. */
h2.pillars-title {
  font-size: clamp(24px, 3.6vw, 35px);
  max-width: 22ch;
  margin-bottom: clamp(40px, 5vw, 56px);
}

.product-page .mission h2 {
  max-width: 20ch;
  margin-bottom: clamp(36px, 4.5vw, 48px);
}

/* The registered details, as a description list because that is what they are:
 * a compliance reviewer is reading label/value pairs, not prose. Two columns
 * on a wide screen, stacked below 620px where the labels would otherwise
 * squeeze the values into a ribbon. */
.facts {
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: 0;
}
.facts dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--terracotta);
  padding: 18px 0;
  border-top: 1px solid var(--hairline-2);
}
.facts dd {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  padding: 18px 0;
  border-top: 1px solid var(--hairline-2);
}
.facts dt:first-of-type, .facts dd:first-of-type { border-top: 0; padding-top: 0; }

/* The list ends on a hairline-ruled row with no bottom margin of its own, so
 * a closing line would otherwise sit flush against the last value. */
.facts + .mission-close { margin-top: 28px; }

@media (max-width: 620px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts dt { padding-bottom: 6px; }
  .facts dd { padding-top: 0; border-top: 0; }
  .facts dd:first-of-type { padding-top: 0; }
}

/* ------------------------------------------------------------------ team */

.team {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 720px) { .team { grid-template-columns: minmax(0, 1fr); } }

/* Flex column so .person-links can be pushed to the card's bottom edge with
 * margin-top:auto. The two bios are different lengths and the grid stretches
 * both cards to the taller one, so without this the profile links land at
 * different heights and the row reads as misaligned. */
.person {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: clamp(26px, 3.4vw, 36px);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.person-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

/* Headshots, since 2026-09-09. This box held initials until then, and the rule
 * that lived here said they were a placeholder and that swapping in real
 * photographs would be a change inside this box and nothing else. It was: the
 * markup went from a <span> to an <img> and these declarations lost the six
 * that were setting type.
 *
 * The files are 132px for a 66px box — 2x, and about 3.7KB each. `object-fit:
 * cover` is the guard: it crops a source that is not square rather than
 * stretching a face, which is the same thing the deck builder refuses outright
 * because an ODF bitmap fill has no equivalent.
 *
 * .mono-b went with the initials. It existed only to tint the second avatar a
 * different colour from the first, and two photographs already differ. */
.mono {
  flex: 0 0 auto;
  width: 66px;
  height: 66px;
  border-radius: 19px;
  object-fit: cover;
}

.person h2 { font-size: 21px; margin-bottom: 3px; }

.person-role {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0;
}

.person p { color: var(--muted); font-size: 15.5px; line-height: 1.65; }

/* The profile link. Google for Startups' compliance review verifies a founder's
 * identity and role by following this, so it is a real link on the page rather
 * than a name in prose -- see the LinkedIn note in the Makefile's gate. Styled
 * off .product-link so the two outbound links on this site read the same. */
.person-links {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--hairline-2);
}

/* The "keep reading" link. Same weight and ink as `.linkout` below but
 * deliberately WITHOUT its trailing arrow, because on this site ↗ now means
 * one thing only: the link leaves atlabs.io. Since the product's pages moved
 * here, the only links that still earn it are the two LinkedIn profiles. */
.more {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-2);
}

.person-link, .linkout {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy-2);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1px;
  transition: color .16s ease, border-color .16s ease;
}
.person-link::after, .linkout::after { content: "\2197"; margin-left: 4px; font-weight: 400; }
.person-link:hover, .linkout:hover { color: var(--terracotta); border-bottom-color: var(--terracotta); }

/* ------------------------------------------------------------------ form */

.form { max-width: 620px; margin-top: 8px; }

.field { margin-bottom: 22px; }

.field label {
  display: block;
  font-size: 14px;
  font-weight: 650;
  color: var(--navy);
  margin-bottom: 7px;
}

.field .opt {
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  font-size: 16px;          /* 16px or iOS zooms the page on focus */
  color: var(--ink);
  background: var(--card);
  border: 1px solid rgba(12, 36, 64, .2);
  border-radius: 10px;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.field textarea { min-height: 168px; resize: vertical; }

.field input:hover,
.field textarea:hover { border-color: rgba(12, 36, 64, .34); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(192, 106, 60, .16);
}

/* The honeypot. Off-screen rather than display:none, because some bots skip
 * fields that are not rendered at all. Humans never reach it: it is out of the
 * tab order, hidden from the accessibility tree, and autocomplete is off. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
}

/* A separate class rather than an inline style: the CSP is `style-src 'self'`
 * with no 'unsafe-inline', so a style="" attribute would simply be dropped. */
.investors {
  max-width: 620px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
}
.investors strong { color: var(--navy); }

/* ---------------------------------------------------------------- errors */

/* No JavaScript anywhere on this site, so a rejected submission comes back as
 * a redirect to #error-<field> and CSS reveals the matching banner. The
 * browser scrolls to it for free, because it is the fragment target. */
.err {
  display: none;
  gap: 12px;
  align-items: flex-start;
  /* Same measure as .form, so the banner sits over the fields it is talking
   * about rather than running the full width of the page past them. */
  max-width: 620px;
  margin-bottom: 28px;
  padding: 15px 18px;
  border: 1px solid rgba(192, 106, 60, .38);
  border-left: 3px solid var(--terracotta);
  border-radius: 10px;
  background: rgba(192, 106, 60, .07);
  font-size: 15px;
  color: var(--navy);
}
.err:target { display: flex; }

.err strong { font-weight: 700; }

.err-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--terracotta-2);
}

/* --------------------------------------------------------------- status */

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  padding: 6px 15px 6px 12px;
  border: 1px solid rgba(12, 36, 64, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy-2);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(192, 106, 60, .22);
}

/* ----------------------------------------------------------------- close */

.close {
  padding: clamp(64px, 9.5vw, 116px) 0;
  background:
    radial-gradient(110% 100% at 50% 0%, #d2dee4 0%, var(--plate-hi) 55%, var(--plate-lo) 100%);
  border-top: 1px solid var(--hairline-2);
}

.close h2 {
  font-size: clamp(25px, 3.9vw, 38px);
  max-width: 27ch;
  margin-bottom: 24px;
}

.close-lead {
  color: var(--navy-2);
  font-size: clamp(16px, 2vw, 18px);
  max-width: 58ch;
  margin-bottom: 32px;
}

/* ------------------------------------------------------- narrow (thanks) */

.narrow {
  padding: clamp(72px, 12vw, 148px) 0;
  text-align: center;
}

.narrow-inner { max-width: 560px; margin-inline: auto; }

.narrow .hero-mark { width: clamp(88px, 13vw, 116px); }

.narrow h1 {
  font-size: clamp(28px, 4.6vw, 42px);
  margin-bottom: 20px;
}

.narrow p {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
}

.narrow .btn { margin-top: 30px; }

/* ---------------------------------------------------------------- footer */

.footer {
  flex: 0 0 auto;
  padding: 36px 0;
  background: var(--navy);
  color: rgba(255, 255, 255, .62);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-mark { width: 28px; flex: 0 0 auto; }

.footer p { margin: 0; }
.footer p:nth-of-type(1) { margin-right: auto; }

.footer a { color: rgba(255, 255, 255, .82); text-decoration-thickness: 1px; }
.footer a:hover { color: #fff; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .btn:hover, .card:hover { transform: none; }

  /* The blanket rule above only clamps the duration, which would snap every
   * word to its last keyframe -- and the last keyframe is hidden, leaving an
   * empty blank. Stop the animation outright and rest the slot on the first
   * word, "small businesses". If the rotation is ever reordered, this comment
   * and `.blank-sizer` both name specific words and both have to follow. */
  .blank-word { animation: none !important; opacity: 0; }
  .blank-word:nth-child(2) { opacity: 1; }
}

/* ---------------------------------------------------------------- narrow */

/* The masthead wraps to two rows rather than collapsing into a menu button.
 * There are four destinations; a hamburger would need JavaScript to open,
 * and this site does not run any. Nothing is hidden at any width — Contact in
 * particular has to survive, because on this site it is the only way to
 * reach us. */
@media (max-width: 720px) {
  .masthead { flex-wrap: wrap; justify-content: center; gap: 10px; padding: 12px 16px; }
  .nav { justify-content: center; width: 100%; }
}

@media (max-width: 420px) {
  .brand-word { font-size: 13px; letter-spacing: .14em; }
  .nav a { padding: 7px 9px; font-size: 14px; }
  .hero-actions .btn { flex: 1 1 100%; text-align: center; }
}
