/* ------------------------------------------------------------------------
   thri5.co.uk: Thri5 Project Consulting.

   Thri5 has its own identity, separate from the ThriveFSM brand system, so
   this page does not load shared/brand.css. It keeps the original Thri5
   "5" mark, redrawn as a vector and deepened to a mature teal, on a
   graphite and pale teal-grey palette.

   - Manrope 600 for display, Geist for body, Geist Mono for labels.
   - Dark graphite top and footer; the sections between them alternate two
     pale teal-grey bands, and the colour change is the divider.
   - Teal is an accent only: labels, numbers, links and one phrase.
   - Force light: explicit colours, painted as same-colour gradients, so a
     phone's forced dark mode cannot invert them.
   - No scripts of its own. Contrast is checked to WCAG AA for body text.
   ------------------------------------------------------------------------ */

:root {
  color-scheme: only light;

  --graphite:       #141619;   /* top and footer */
  --paper:          #F7F7F5;   /* page behind everything */
  --band-a:         #F1F6F5;   /* What we do */
  --band-b:         #E3EFEC;   /* Experience */
  --ink:            #121212;
  --muted:          #5C5C58;   /* secondary text on band A */
  --muted-b:        #4F5653;   /* secondary text on band B */
  --hair:           #D3E0DD;   /* rules inside a band */
  --on-dark:        #ECEAE6;
  --on-dark-muted:  #A2A5AA;
  --on-dark-faint:  #8E9297;
  --hair-dark:      #2C3035;
  --teal:           #007A6E;   /* accent on light */
  --teal-on-dark:   #5DBBAA;   /* accent on graphite */
  --mark-a:         #008C9E;   /* the mark's gradient, and the seam */
  --mark-b:         #00965F;

  --display: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --body:    "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono:    "Geist Mono", ui-monospace, Menlo, Consolas, monospace;

  --gutter:  clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: linear-gradient(var(--paper), var(--paper));
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ol { margin: 0; }
img { display: block; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-left:  max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* Small uppercase labels share one style. */
.meta, .kicker, .label {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------- top band */
.top {
  position: relative;
  overflow: hidden;
  background: linear-gradient(var(--graphite), var(--graphite));
  color: var(--on-dark);
}

/* The 5, large and faint, behind the headline. */
.bg-mark {
  position: absolute;
  right: -3vw;
  top: -48px;
  width: clamp(300px, 46vw, 620px);
  height: auto;
  opacity: 0.22;
  pointer-events: none;
  user-select: none;
}

.masthead, .hero { position: relative; z-index: 1; }

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 26px;
  padding-bottom: 26px;
}

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-weight: 600; font-size: 14px; letter-spacing: 0.24em; }
.brand-sub { font-size: 13px; color: var(--on-dark-muted); }

.meta { color: var(--on-dark-muted); }

.hero {
  padding-top: clamp(72px, 11vw, 160px);
  padding-bottom: clamp(64px, 9vw, 120px);
}

.kicker { color: var(--teal-on-dark); margin-bottom: 24px; }

h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(42px, 6vw, 80px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  max-width: 15ch;
  text-wrap: balance;
}

.lead {
  margin-top: 30px;
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--on-dark-muted);
  max-width: 60ch;
}

.seam { height: 3px; background: linear-gradient(90deg, var(--mark-a), var(--mark-b)); }

/* ---------------------------------------------------------------- bands */
.band--a { background: linear-gradient(var(--band-a), var(--band-a)); }
.band--b { background: linear-gradient(var(--band-b), var(--band-b)); }

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 48px;
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(48px, 7vw, 88px);
}

.label { flex: 0 0 200px; color: var(--muted); }
.label--services { padding-top: 28px; }
.label--experience { padding-top: 12px; }

h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* ------------------------------------------------------------- services */
.services { flex: 1 1 520px; min-width: 0; padding: 0; list-style: none; }

.services li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--hair);
}
.services li > div { flex: 1 1 400px; min-width: 0; }

.num {
  flex: 0 0 40px;
  padding-top: 6px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  color: var(--teal);
}

.services p { margin-top: 6px; color: var(--muted); max-width: 58ch; }
.services strong { color: var(--ink); font-weight: 500; }

/* ----------------------------------------------------------- experience */
.body { flex: 1 1 520px; min-width: 0; }

.statement {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 20ch;
}
.accent { color: var(--teal); }

.muted { margin-top: 18px; max-width: 58ch; color: var(--muted); }
.band--b .label, .band--b .muted { color: var(--muted-b); }

/* --------------------------------------------------------------- footer */
.footer {
  background: linear-gradient(var(--graphite), var(--graphite));
  color: var(--on-dark);
}

.contact { padding-top: clamp(56px, 8vw, 96px); }
.contact .kicker { margin-bottom: 14px; }

.email {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  text-decoration-color: var(--teal-on-dark);
}

.contact-note { margin-top: 14px; color: var(--on-dark-muted); max-width: 52ch; }

/* Company details: information, not a feature. */
.legal {
  margin-top: clamp(48px, 7vw, 80px);
  border-top: 1px solid var(--hair-dark);
  padding-top: 24px;
  padding-bottom: max(32px, env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 40px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--on-dark-faint);
}

.copyright { display: inline-flex; align-items: center; gap: 12px; color: var(--on-dark-muted); }

.registered { flex: 0 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.registered a { color: var(--on-dark-muted); }
