/* tensium.co.uk: the company site for AI labs. Light and editorial:
   Instrument Serif headings, Inter text, JetBrains Mono labels; black and
   white with Tensium red. Design: https://claude.ai/artifact/P9xVGL7EF6yFhiNKyobufi */

:root {
  --bg: #f7f7f4;
  --ink: #121314;
  --ink-2: #3b3e44;
  --muted: #5a5d63;
  --line: #dcdcd6;
  --field-line: #b9b9b2;
  --band: #ececE7;
  --red: #c8102e;
  --red-on-dark: #ff6b7d;
  --dark-text: #f2f2ee;
  --dark-muted: #c4c6cb;
  --dark-line: #3a3c40;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
a { color: var(--ink); }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
img, svg { display: block; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
@media (max-width: 600px) { .wrap { padding-left: 16px; padding-right: 16px; } }

/* --- Type ---------------------------------------------------------------- */
.kicker { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.label { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.display { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -0.01em; }
.h1 { font-size: clamp(44px, 7vw, 92px); line-height: 1.02; max-width: 980px; }
.h1--page { font-size: clamp(42px, 6vw, 76px); max-width: 940px; }
.h2 { font-size: clamp(34px, 4.5vw, 56px); line-height: 1.08; }
.h3 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; }
.lead { font-size: 20px; color: var(--ink-2); max-width: 660px; }
.body { color: var(--ink-2); }
.small { font-size: 15px; }

/* --- Buttons --------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 14px 24px; font: inherit; font-weight: 500; text-decoration: none; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.btn:hover { color: var(--ink); background: #ffffff; }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { background: #2a2c30; color: var(--bg); }
.btn--red { background: var(--red); border-color: var(--red); color: #ffffff; min-height: 52px; padding: 16px 28px; }
.btn--red:hover { background: #a90d26; border-color: #a90d26; color: #ffffff; }
.btn--small { min-height: 44px; padding: 10px 18px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* --- Header and footer ----------------------------------------------------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 22px; padding-bottom: 22px; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 18px; letter-spacing: 0.22em; text-decoration: none; }
.wordmark::after { content: ''; width: 8px; height: 8px; background: var(--red); }
.site-nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; }
.site-nav__links a { text-decoration: none; }
.site-nav__links a[aria-current='page'] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--red); }
.site-nav__quiet { color: var(--muted); }

.site-footer { background: var(--ink); color: var(--dark-muted); font-size: 15px; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 64px; padding-top: 56px; padding-bottom: 56px; }
.site-footer .wordmark { color: var(--dark-text); margin-bottom: 8px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.site-footer a { color: var(--dark-text); text-decoration: none; }
.site-footer a:hover { color: var(--red-on-dark); }
.site-footer a.mail { text-decoration: underline; }

/* --- Sections ---------------------------------------------------------------- */
.hero { padding-top: 112px; padding-bottom: 96px; }
.hero .kicker { margin-bottom: 28px; }
.hero .lead { margin-top: 36px; }
.page-head { padding-top: 96px; padding-bottom: 72px; }
.page-head .kicker { margin-bottom: 24px; }
.page-head .lead { margin-top: 28px; font-size: 19px; }
@media (max-width: 600px) { .hero { padding-top: 72px; padding-bottom: 64px; } .page-head { padding-top: 64px; padding-bottom: 48px; } }

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }
.ruled { border-top: 1px solid var(--line); }
.section { padding-top: 88px; padding-bottom: 88px; }
.section--tight { padding-top: 72px; padding-bottom: 72px; }
@media (max-width: 600px) { .section, .section--tight { padding-top: 56px; padding-bottom: 56px; } }
.section > .label, .section > .wrap > .label { margin-bottom: 48px; }
.section .h2, .section--tight .h2 { margin-bottom: 40px; }

.grid { display: grid; gap: 48px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid--4 { gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.grid .h3 { margin-bottom: 12px; }

.dark { background: var(--ink); color: var(--dark-text); }
.dark .h2 { max-width: 760px; margin-bottom: 56px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { border-top: 1px solid var(--dark-line); padding-top: 24px; }
.steps .num { font-family: var(--mono); font-size: 13px; color: var(--red-on-dark); }
.steps h3 { margin: 12px 0 10px; font-size: 19px; font-weight: 600; }
.steps p { color: var(--dark-muted); font-size: 16px; }

.cards > div { border-top: 2px solid var(--ink); padding-top: 20px; }
.cards h3, .topics h3 { margin-bottom: 8px; font-size: 19px; font-weight: 600; }
.cards p, .topics p { color: var(--ink-2); font-size: 16px; }

.cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px 48px; }
.cta > div { flex: 1 1 520px; }
.cta .h2 { margin-bottom: 16px; }
.cta p { max-width: 560px; color: var(--ink-2); }

.band { background: var(--band); }
.band__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.band__inner > div { flex: 1 1 520px; }
.band h2 { margin-bottom: 6px; font-size: 20px; font-weight: 600; }
.band p { color: var(--ink-2); }

/* --- Contact ------------------------------------------------------------------- */
.contact { display: flex; flex-wrap: wrap; gap: 64px; padding-top: 96px; padding-bottom: 96px; }
@media (max-width: 600px) { .contact { gap: 40px; padding-top: 56px; padding-bottom: 56px; } }
.contact__intro { flex: 1 1 380px; min-width: 0; }
.contact__intro .kicker { margin-bottom: 24px; }
.contact__intro .h1--page { font-size: clamp(42px, 5vw, 68px); margin-bottom: 24px; }
.contact__intro > p { max-width: 460px; color: var(--ink-2); margin-bottom: 40px; }
.contact__block { border-top: 1px solid var(--line); padding-top: 24px; margin-bottom: 28px; }
.contact__block .label { margin-bottom: 6px; }
.contact__mail { font-size: 19px; }
.contact__form { flex: 1 1 520px; min-width: 0; background: #ffffff; border: 1px solid var(--line); padding: 40px; }
@media (max-width: 600px) { .contact__form { padding: 24px 20px; } }

.form { display: flex; flex-direction: column; gap: 22px; }
.form__row { display: flex; flex-wrap: wrap; gap: 22px; }
.field { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea { font: inherit; padding: 12px 14px; min-height: 48px; border: 1px solid var(--field-line); border-radius: 0; background: var(--bg); color: var(--ink); width: 100%; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.form .btn { align-self: flex-start; }
.form__note { font-size: 13px; color: var(--muted); }
.form__status { font-size: 15px; padding: 12px 14px; border: 1px solid var(--line); }
.form__status[data-kind='ok'] { border-color: #0e8a5c; color: #0b6b47; background: #e6f6ef; }
.form__status[data-kind='error'] { border-color: var(--red); color: #9c0c24; background: #fbeced; }
/* Bots fill every field; people never see this one. */
.form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
