/* ==========================================================================
   Brynley Knight — brand system v1.0 (August 2026)
   Implements the Brand Guidelines: Navy Ink + Signal Red, Archivo + Work Sans,
   the twelve-dot mark, and the red-once-per-view discipline.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts are self-hosted rather than pulled from Google Fonts. Both families
   are free and redistributable (SIL Open Font Licence), and self-hosting
   keeps the site free of third-party requests, which matches what the
   privacy policy promises visitors.
   -------------------------------------------------------------------------- */

@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/archivo-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/archivo-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/archivo-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/archivo-latin-700-normal.woff2') format('woff2'); }

@font-face { font-family: 'Work Sans'; font-style: normal; font-weight: 300; font-display: swap; src: url('fonts/work-sans-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Work Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/work-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Work Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/work-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Work Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/work-sans-latin-600-normal.woff2') format('woff2'); }

@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); }

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

:root {
  /* --- Colour: the two that carry it --- */
  --navy:        #0B2E4A;   /* Navy Ink   */
  --red:         #D8433A;   /* Signal Red */

  /* --- Colour: everything that keeps them working --- */
  --blush:       #F09B93;   /* red's stand-in on navy */
  --paper:       #F7F5F1;   /* warm paper, alternate pages */
  --slate:       #46586A;   /* body text at length */
  --mist:        #E3E7EB;   /* rules, borders, table lines */
  --white:       #ffffff;

  /* --- Derived working values --- */
  --navy-deep:   #071F33;   /* footer ground */
  --navy-hover:  #123E62;
  --red-hover:   #B8352D;
  --caption:     #5F7185;   /* captions; never red. Clears 4.5:1 on white and on warm paper. */

  /* --- Type --- */
  --font-head: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Work Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --track-head: -0.035em;   /* tracking tightened at heading sizes */

  /* --- Layout --- */
  --page-width: 1140px;
  --page-pad: 4rem;
  --measure: 66ch;

  --shadow-sm: 0 2px 14px rgba(11,46,74,0.06);
  --shadow-md: 0 10px 40px rgba(11,46,74,0.10);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--slate);
  background: var(--white);
  overflow-x: hidden;
}

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

::selection { background: var(--blush); color: var(--navy); }

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

.page-inner {
  max-width: var(--page-width);
  margin: 0 auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff; padding: 0.75rem 1.25rem;
  font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   TYPE
   Archivo says it. Work Sans explains it. Never italic.
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: var(--track-head);
  line-height: 1.1;
  color: var(--navy);
  font-style: normal;
}

/* Archivo's word spaces close up badly once tracking is tightened.
   Everything set in Archivo gets the space back. */
h1, h2, h3, h4, h5, h6,
.h-card, .btn, .logo-name, .figure, .link-dot,
.manifesto-lead, .gap-quote, .stage-name, .offer-price, .tagline p {
  word-spacing: 0.06em;
}

/* Label — JetBrains Mono, uppercase, 0.22em, red. Precedes a heading. */
.label {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.15rem;
}
.label-mist { color: var(--caption); }
.on-navy .label, .label-blush { color: var(--blush); }

/* The full stop after a heading: a circle, never a typed period.
   Diameter = 1 unit = name size / 3.4 */
.stop {
  display: inline-block;
  width: 0.294em; height: 0.294em;
  border-radius: 50%;
  background: var(--red);
  margin-left: 0.16em;
  vertical-align: baseline;
  flex-shrink: 0;
}
.on-navy .stop, .stop-blush { background: var(--blush); }

.h-page { font-size: clamp(2.3rem, 5vw, 3.85rem); line-height: 1.04; }
.h-sec  { font-size: clamp(1.75rem, 3vw, 2.45rem); line-height: 1.12; }
.h-card { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.025em; color: var(--navy); line-height: 1.22; }

.lead { font-size: 1.125rem; line-height: 1.72; color: var(--slate); max-width: var(--measure); }
.body-measure { max-width: var(--measure); }
.caption { font-size: 0.8125rem; line-height: 1.6; color: var(--caption); }

.figure {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.4rem;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--navy);
}

/* Red list markers — a sanctioned job for the dot */
.dot-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.dot-list li { position: relative; padding-left: 1.5rem; font-size: 0.9375rem; line-height: 1.6; }
.dot-list li::before {
  content: ''; position: absolute; left: 0; top: 0.62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--red);
}
.on-navy .dot-list li::before { background: var(--blush); }

/* ==========================================================================
   THE MARK
   Twelve dots: the many parts of an AI programme. One is larger and red.
   Built at guideline proportions — small dot 1u, red dot 1.8u,
   column pitch 2.8u, row pitch 4.6u.
   ========================================================================== */

.logo { display: inline-flex; align-items: center; gap: 0.72em; text-decoration: none; line-height: 1; }
.logo-mark { width: auto; height: 2.32em; flex-shrink: 0; display: block; }
.logo-mark .d-sm { fill: var(--navy); }
.logo-mark .d-lg { fill: var(--red); }
.logo-type { display: flex; flex-direction: column; gap: 0.22em; }
.logo-name {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1em; letter-spacing: -0.03em; color: var(--navy);
  display: inline-flex; align-items: baseline; white-space: nowrap;
}
.logo-desc {
  font-family: var(--font-body); font-weight: 400;
  font-size: 0.5em; letter-spacing: 0.01em; color: var(--slate);
  white-space: nowrap; line-height: 1.2;
}

/* Reversed: on navy only. Red becomes blush so it stays visible. */
.logo-rev .d-sm { fill: rgba(255,255,255,0.82); }
.logo-rev .d-lg { fill: var(--blush); }
.logo-rev .logo-name { color: #fff; }
.logo-rev .logo-name .stop { background: var(--blush); }
.logo-rev .logo-desc { color: rgba(255,255,255,0.58); }

/* ==========================================================================
   THE DOT FIELD
   Navy or white at low contrast, even square pitch, exactly one red dot.
   Never behind body text, tables or the logo.
   ========================================================================== */

.on-navy { background: var(--navy); color: rgba(255,255,255,0.72); position: relative; overflow: hidden; }
.on-navy h1, .on-navy h2, .on-navy h3, .on-navy .h-card { color: #fff; }
.on-navy .lead, .on-navy p { color: rgba(255,255,255,0.72); }
.on-navy strong { color: #fff; font-weight: 600; }

.dot-field::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.15) 2px, transparent 2.2px);
  background-size: 62px 62px;
  background-position: 24px 24px;
  pointer-events: none;
  /* The field is a section opener, not a wallpaper: it fades out before it
     reaches the body copy, so no dots sit behind running text. */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 20%, transparent 48%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 20%, transparent 48%);
}
.dot-field-paper::before {
  background-image: radial-gradient(circle, rgba(11,46,74,0.13) 2px, transparent 2.2px);
}

/* Exactly one red dot, at full strength, roughly a fifth in from a corner. */
.dot-field::after {
  content: '';
  position: absolute;
  top: 15%; right: 9%;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--red);
  pointer-events: none;
}
.dot-field > * { position: relative; z-index: 2; }

@media (max-width: 900px) {
  .dot-field::after { display: none; }
}

/* ==========================================================================
   BUTTONS
   One red primary per screen. Everything else is navy or a hairline.
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-head); font-weight: 600; font-size: 0.9375rem;
  letter-spacing: -0.01em; line-height: 1;
  padding: 1rem 1.75rem; border-radius: 4px;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-red   { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hover); color: #fff; }

.btn-navy  { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-hover); color: #fff; }

.btn-line  { background: transparent; color: var(--navy); border-color: var(--mist); }
.btn-line:hover { border-color: var(--navy); color: var(--navy); }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.28); }
.btn-ghost:hover { border-color: #fff; color: #fff; }

.btn-sm { padding: 0.7rem 1.2rem; font-size: 0.875rem; }

/* Text link with the red dot as a pointer */
.link-dot {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-head); font-weight: 600; font-size: 0.9rem;
  color: var(--navy); text-decoration: none;
}
.link-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.link-dot:hover { color: var(--red); }

/* ==========================================================================
   STRUCTURE
   ========================================================================== */

.section { padding-top: 6rem; padding-bottom: 6rem; }
.section-tight { padding-top: 4rem; padding-bottom: 4rem; }
.bg-white { background: var(--white); }
.bg-paper { background: var(--paper); }

.sec-head { margin-bottom: 3rem; }
.sec-head .lead { margin-top: 1rem; }

.card {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: 8px;
  padding: 2rem 1.9rem;
}
.bg-paper .card { background: var(--white); }
.card-paper { background: var(--paper); border-color: transparent; }

.rule { height: 1px; background: var(--mist); border: 0; }
.rule-red { height: 2px; width: 3rem; background: var(--red); border: 0; }

/* Mono meta line */
.meta {
  font-family: var(--font-mono); font-weight: 400;
  font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--caption);
}

/* ==========================================================================
   NAV
   Horizontal logo variant. Website navigation is its named home.
   ========================================================================== */

.site-nav {
  position: sticky; top: 0; z-index: 400;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mist);
}
.nav-inner {
  max-width: var(--page-width); margin: 0 auto;
  padding: 0 var(--page-pad); height: 82px;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.nav-inner .logo { font-size: 1.12rem; }
.nav-links { display: flex; align-items: center; gap: 0.15rem; list-style: none; }
.nav-links a {
  font-family: var(--font-body); font-weight: 500; font-size: 0.9rem;
  color: var(--slate); text-decoration: none;
  padding: 0.5rem 0.85rem; border-radius: 4px; transition: color 0.18s;
}
.nav-links a:hover { color: var(--navy); }
.nav-links .btn { margin-left: 0.6rem; color: #fff; }
.nav-links .btn:hover { color: #fff; }

/* ==========================================================================
   ANNOUNCEMENT BAR
   Navy, not red — a full red band would break the proportion rule.
   ========================================================================== */

.announce {
  display: block; background: var(--navy); color: rgba(255,255,255,0.82);
  text-decoration: none; text-align: center;
  font-size: 0.875rem; font-weight: 400; padding: 0.7rem 1.5rem; line-height: 1.5;
  transition: background 0.18s;
}
.announce:hover { background: var(--navy-hover); }
.announce strong { color: #fff; font-weight: 600; }
.announce .arrow { font-family: var(--font-head); font-weight: 600; color: var(--blush); white-space: nowrap; margin-left: 0.35rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.55); }
.footer-main { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 3rem; padding: 4rem 0 2.5rem; }
.footer-brand .logo { font-size: 1.05rem; }
.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,0.42); margin-top: 1.1rem; line-height: 1.7; max-width: 330px; }
.footer-col h4 {
  font-family: var(--font-mono); font-weight: 400; font-size: 0.625rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: 1.1rem;
}
.footer-col a { display: block; font-size: 0.9rem; color: rgba(255,255,255,0.55); text-decoration: none; padding: 0.3rem 0; transition: color 0.18s; }
.footer-col a:hover { color: #fff; }
.footer-divider { border-top: 1px solid rgba(255,255,255,0.09); }
.footer-bar { padding: 1.4rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-bar span, .footer-bar a {
  font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.32); text-decoration: none;
}
.footer-bar a:hover { color: #fff; }
.footer-bar-links { display: flex; gap: 1.75rem; }

/* ==========================================================================
   FORMS
   ========================================================================== */

.field {
  width: 100%; background: #fff;
  border: 1.5px solid var(--mist); border-radius: 4px;
  padding: 0.9rem 1.05rem;
  font-family: var(--font-body); font-size: 1rem; color: var(--navy);
}
.field::placeholder { color: var(--caption); }
.field:focus { outline: none; border-color: var(--navy); }
.visually-hidden { position: absolute; left: -9999px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  :root { --page-pad: 2rem; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .section { padding-top: 4.5rem; padding-bottom: 4.5rem; }
}
@media (max-width: 720px) {
  :root { --page-pad: 1.5rem; }
  body { font-size: 16px; }
  .nav-inner { height: 72px; gap: 1rem; }
  .nav-links li.nav-collapse { display: none; }
  .nav-links a { padding: 0.5rem 0.6rem; }
  .nav-links .btn { margin-left: 0.35rem; padding: 0.65rem 0.95rem; font-size: 0.8125rem; white-space: nowrap; }
  .announce { font-size: 0.8125rem; padding: 0.6rem 1.25rem; }
  .announce .sub { display: none; }
  .footer-main { grid-template-columns: 1fr; gap: 2.25rem; }
  .footer-bar { flex-direction: column; align-items: flex-start; }
  .logo-desc { display: none; }
}
@media (max-width: 400px) {
  .nav-inner .logo { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
