/* Shared styles for geekwork.co.uk: the home page, portfolio and landing pages. */

@font-face {
  font-family: "Caveat";
  src: url("/fonts/caveat-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
}

:root {
  --bg: #f7f5ef;
  --surface: #fffdf8;
  --panel: #eae6dc;
  --ink: #121212;
  --muted: #66645f;
  --line: #d9d5ca;
  --accent: #d66a16;
  --accent-dark: #a94c0d;
  --accent-light: #f0a16a;
  --dark-line: #383838;
  --dark-muted: #aaa8a2;
  --max: 1200px;
  --shadow: 0 24px 70px rgba(24, 20, 14, .08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 245, 239, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(217, 213, 202, .8);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.045em;
  font-size: 24px;
  white-space: nowrap;
}

.brand-mark { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 15px;
}

.nav-links a {
  text-decoration: none;
  transition: color .18s ease;
}

.nav-links a:hover { color: var(--ink); }

/* Buttons and links */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 2px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.01em;
  text-align: center;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.button:hover {
  transform: translateY(-1px);
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.nav-links .button { color: #fff; }

.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.button.secondary:hover {
  background: var(--surface);
  border-color: var(--ink);
}

.card-link {
  margin-top: auto;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
}

.card-link::after { content: "  →"; color: var(--accent); }

/* Type */

h1, h2, h3, p { margin-top: 0; }

.eyebrow {
  margin: 0 0 22px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

section { padding: 104px 0; }

.section-heading {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 70px;
  margin-bottom: 58px;
  align-items: end;
}

/* Eyebrow on the left, heading on the right */
.section-heading.aside {
  grid-template-columns: .55fr 1.45fr;
  align-items: start;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -.05em;
  font-weight: 740;
}

.section-heading p {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 20px;
}

.section-heading .eyebrow {
  margin-bottom: 22px;
  color: var(--accent-dark);
  font-size: 13px;
}

.dark .section-heading .eyebrow { color: var(--accent-light); }

.cta .eyebrow {
  margin-bottom: 22px;
  font-size: 13px;
}

/* Stone background for alternate sections */

.tint {
  --line: #cfcabe;
  background: var(--panel);
}

/* Hero */

.hero {
  padding: 104px 0 90px;
}

h1 {
  max-width: 1100px;
  margin-bottom: 34px;
  font-size: clamp(46px, 6.6vw, 92px);
  line-height: 1;
  letter-spacing: -.06em;
  font-weight: 760;
}

h1 span { display: block; }
h1 .soft { color: #8a8780; }

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: 72px;
  align-items: end;
}

.hero-copy p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(20px, 2.1vw, 26px);
  line-height: 1.38;
  letter-spacing: -.02em;
}


.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.proof-strip {
  padding: 24px 0;
  background: var(--ink);
  color: var(--dark-muted);
  font-size: 14px;
}

.proof-strip .note { color: var(--accent-light); }

.proof-strip .shell {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 28px;
}

.proof-strip strong { color: #fff; font-weight: 700; }

/* Who it's for */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.audience-card {
  padding: 34px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.label {
  margin: 0 0 48px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.audience-card h3 {
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -.04em;
}

.audience-card p:not(.label) { color: var(--muted); margin-bottom: 28px; }

/* Problem */


.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.problem-item {
  min-height: 300px;
  padding: 34px 32px 36px 0;
  border-right: 1px solid var(--line);
}

.problem-item + .problem-item { padding-left: 32px; }
.problem-item:last-child { border-right: 0; }

.number {
  display: block;
  margin-bottom: 64px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
}

.problem-item h3 {
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.problem-item p { color: var(--muted); margin-bottom: 0; }

/* How it works */

.dark {
  background: var(--ink);
  color: #fff;
}

.dark .eyebrow { color: var(--accent-light); }
.dark .section-heading p { color: #bdbbb5; }

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
}

.process-step {
  min-height: 240px;
  padding: 30px;
  border-right: 1px solid var(--dark-line);
}

.process-step:first-child { padding-left: 0; }
.process-step:last-child { border-right: 0; }

.process-step .number { color: var(--accent-light); margin-bottom: 64px; }

.process-step h3 {
  margin-bottom: 8px;
  font-size: 30px;
  letter-spacing: -.04em;
}

.process-step p { color: var(--dark-muted); margin-bottom: 0; font-size: 15px; }

/* Services */

.services { background: var(--surface); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.service-card {
  padding: 38px;
  border: 1px solid var(--line);
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.service-card.featured {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: var(--shadow);
}

.service-card.featured .label { color: var(--accent-light); }

.service-card h3 {
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -.045em;
}

.service-card > p:not(.label) { color: var(--muted); }
.service-card.featured > p:not(.label) { color: #c0beb8; }

.service-card ul {
  margin: 12px 0 34px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.service-card.featured ul { border-color: #3a3a3a; }

.service-card li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.service-card.featured li {
  border-color: #3a3a3a;
  color: #d0cec8;
}

/* Resale */

.resale-panel {
  padding: 64px;
  background: var(--panel);
}

.resale-panel .section-heading { margin-bottom: 48px; }

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #cfcabe;
}

.option {
  padding: 28px 28px 4px 0;
  border-right: 1px solid #cfcabe;
}

.option + .option { padding-left: 28px; }
.option:last-child { border-right: 0; }

.option h3 {
  margin-bottom: 10px;
  font-size: 24px;
  letter-spacing: -.035em;
}

.option p { color: var(--muted); margin-bottom: 0; }

/* Work */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.work-card {
  padding: 38px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.work-card h3 {
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -.04em;
}

.work-card p:not(.label) { color: var(--muted); }

.journey {
  margin: 8px 0 26px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.journey li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}

.journey strong {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding-top: 2px;
}

.tags {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  padding: 5px 10px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* Products */

.products { background: var(--surface); }
.products .work-card { background: var(--bg); }
.products .mini { --mini-bg: var(--surface); background: var(--surface); }

.product-name {
  margin-bottom: 6px;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -.05em;
}

.section-more { margin: 34px 0 0; }

/* Technology page */

.tech-detail .product-name { font-size: 32px; line-height: 1.08; }
.tech-detail .tags { margin-top: 22px; }
.tech-detail .journey a { color: var(--accent-dark); }

/* Portfolio page */

.nav-links a[aria-current="page"] { color: var(--ink); }

.page-hero h1 { font-size: clamp(42px, 5.4vw, 76px); }

.product-list { border-top: 1px solid var(--line); }

.product-detail {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
  padding: 52px 0;
  border-bottom: 1px solid var(--line);
}

.product-detail .label { margin-bottom: 28px; }

.product-idea {
  margin-bottom: 30px;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -.02em;
}

.product-detail .journey { margin: 0; }
.product-detail .journey li { grid-template-columns: 130px 1fr; }

.quote-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.quote {
  margin: 0;
  padding: 34px 38px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
}

.quote p {
  font-size: 21px;
  line-height: 1.4;
  letter-spacing: -.02em;
}

.quote footer { color: var(--muted); font-size: 14px; }

/* Handwritten notes */

.note {
  display: inline-block;
  font-family: Caveat, "Segoe Print", "Bradley Hand", cursive;
  font-size: 27px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  color: var(--accent-dark);
  transform: rotate(-3deg);
}

.dark .note { color: var(--accent-light); }

.note-inline { margin-left: 8px; font-size: 22px; }

.note-block { display: block; margin-top: 18px; }

/* What you actually get: the paperwork */

.desk { background: var(--panel); }

.artefacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.artefact-wrap { position: relative; }

.artefact-wrap .note {
  position: absolute;
  z-index: 2;
}

.artefact-wrap.summary .note { right: -6px; bottom: -44px; transform: rotate(-4deg); }
.artefact-wrap.mot .note { left: 14px; top: -40px; transform: rotate(-3deg); }

.paper {
  padding: 34px 36px 30px;
  background: #fff;
  color: var(--ink);
  border: 1px solid #ddd8cc;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .03), 0 22px 50px rgba(24, 20, 14, .12);
  font-size: 14px;
  line-height: 1.5;
}

.summary .paper { transform: rotate(-1.2deg); }
.mot .paper { transform: rotate(1deg); margin-top: 30px; }

.paper-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--ink);
}

.paper-head strong { display: block; font-size: 19px; letter-spacing: -.03em; }
.paper-head .brand { font-size: 15px; }

.stamp {
  flex: none;
  padding: 2px 8px;
  border: 1.5px solid var(--accent);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: rotate(-4deg);
}

.paper h4 {
  margin: 16px 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.paper p { margin: 0; color: #3b3a37; }
.paper .meta { color: var(--muted); font-size: 13px; }

.paper ol { margin: 4px 0 0; padding-left: 20px; color: #3b3a37; }
.paper ol li { padding: 2px 0; }
.paper ol li.picked { font-weight: 700; color: var(--ink); }

.paper ol li.picked span {
  background: linear-gradient(100deg, transparent 0 1%, rgba(240, 161, 106, .55) 2% 97%, transparent 98%) 0 85% / 100% 55% no-repeat;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.paper-foot {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 13px;
}

.mot-fields {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  margin: 0 0 16px;
  font-size: 13px;
}

.mot-fields dt { color: var(--muted); }
.mot-fields dd { margin: 0; font-weight: 600; }

.mot-items { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }

.mot-items li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.mot-items b { display: block; font-weight: 700; }
.mot-items span { color: var(--muted); }
.mot-items .result { color: #fff; }

.result {
  align-self: start;
  padding: 3px 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
}

.result.pass { background: #2f7d4f; }
.result.advisory { background: #a86f08; }
.result.fail { background: #b3361f; }

/* Does your system keep you awake? */

.sleep.dark { --line: var(--dark-line); }
.sleep.dark .sleep-grid > div > p:not(.eyebrow) { color: #bdbbb5; }
.sleep.dark .sleep-checks label:hover { background: #1f1f1f; }

.sleep-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
  align-items: start;
}

.sleep-grid h2 {
  margin-bottom: 20px;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -.05em;
}

.sleep-grid > div > p:not(.eyebrow) { color: var(--muted); font-size: 19px; }

.sleep-checks {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.sleep-checks label {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .15s ease;
}

.sleep-checks label:hover { background: var(--surface); }

.sleep-checks input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.sleep-result {
  margin-top: 34px;
  padding: 28px 30px;
  background: var(--accent);
  color: #fff;
}

.sleep-score {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 8px;
}

.sleep-score strong {
  font-size: 54px;
  line-height: 1;
  letter-spacing: -.05em;
}

.sleep-score .note { color: var(--ink); font-size: 32px; }

.sleep-result p { margin: 0 0 18px; color: rgba(255, 255, 255, .9); }
.sleep-result p:last-child { margin-bottom: 0; }
.sleep-result .button { background: #fff; border-color: #fff; color: var(--ink); }
.sleep-result .button:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Product examples */

.product-card .label { margin-bottom: 14px; }

.mini {
  height: 168px;
  margin: -6px 0 26px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 13px;
  line-height: 1.4;
  overflow: hidden;
}

.mini-tag {
  float: right;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.mini-score { display: flex; gap: 22px; align-items: center; }

.ring {
  flex: none;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, var(--mini-bg, var(--bg)) 79%, transparent 80%),
    conic-gradient(#2f7d4f calc(var(--value) * 1%), var(--line) 0);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.bars { flex: 1; display: grid; gap: 10px; }
.bars div { display: grid; grid-template-columns: 84px 1fr 22px; gap: 8px; align-items: center; color: var(--muted); }
.bars i { display: block; height: 7px; background: var(--line); }
.bars i::before { content: ""; display: block; height: 100%; width: calc(var(--value) * 1%); background: var(--ink); }
.bars b { color: var(--ink); text-align: right; }

.mini-title { font-weight: 700; }
.mini-checks { margin: 8px 0 0; padding: 0; list-style: none; }
.mini-checks li { display: flex; gap: 8px; padding: 3px 0; border-bottom: 1px solid var(--line); }
.mini-checks li:last-child { border-bottom: 0; }
.mini-checks li::before { content: "\2713"; flex: none; width: 14px; color: #2f7d4f; font-weight: 800; }
.mini-checks li.missing { color: #b3361f; }
.mini-checks li.missing::before { content: "\2717"; color: #b3361f; }

.mini.cctv { padding: 0; background: #1d1f1e; border-color: #1d1f1e; }
.mini.cctv svg { display: block; width: 100%; height: 100%; }

.pulse { display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.pulse-bars { display: flex; align-items: flex-end; gap: 7px; height: 70px; }
.pulse-bars i { flex: 1; height: calc(var(--value) * 1%); background: #cfcabe; }
.pulse-bars i:last-child { background: var(--accent); }
.pulse-stats { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); }
.pulse-stats b { display: block; color: var(--ink); font-size: 15px; }

/* Reasons not to hire Geekwork */

.reasons {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--dark-line);
}

.reasons li {
  display: grid;
  grid-template-columns: 70px minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 30px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--dark-line);
}

.reasons .number { margin: 0; color: var(--accent-light); }

.reasons h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -.04em;
}

.reasons p { margin: 0; color: var(--dark-muted); }

/* Landing pages */

.lp-hero { padding: 96px 0 72px; }

.lp-hero h1 {
  max-width: 980px;
  font-size: clamp(42px, 5.6vw, 80px);
}

.lp-lead {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(19px, 1.9vw, 24px);
  line-height: 1.4;
  letter-spacing: -.015em;
}

.lp-hero .note { margin-top: 26px; }

.lp-section { padding: 80px 0; }

.lp-narrow { max-width: 900px; }

.quiz { display: grid; gap: 16px; }

.q {
  margin: 0;
  padding: 26px 28px 28px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.q legend {
  float: left;
  width: 100%;
  padding: 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.q legend span {
  margin-right: 12px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
}

.choices {
  clear: both;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 16px;
}

.choices label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px 15px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.choices label:hover { border-color: var(--muted); }
.choices label:has(input:checked) { border-color: var(--accent); background: #fbeee3; }
.choices input { flex: none; margin: 2px 0 0; accent-color: var(--accent); }

.quiz-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 30px;
}

.quiz-foot .muted { color: var(--muted); font-size: 15px; }

.button:disabled,
.button[aria-disabled="true"] {
  opacity: .35;
  cursor: not-allowed;
  transform: none;
}

.verdict-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 22px;
  margin-bottom: 18px;
}

.verdict-head h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -.05em;
}

.verdict-head .note { font-size: 34px; }

.verdict-copy { max-width: 760px; color: #d0cec8; font-size: 20px; }

.scale { margin: 40px 0 48px; }

.scale-bar {
  position: relative;
  height: 10px;
  background: linear-gradient(90deg, #2f7d4f, #a86f08 40%, var(--accent) 70%, #b3361f);
}

.scale-marker {
  position: absolute;
  top: -9px;
  left: calc(var(--pos, 0) * 1%);
  width: 4px;
  height: 28px;
  margin-left: -2px;
  background: #fff;
  transition: left .5s ease;
}

.scale-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 14px;
  color: var(--dark-muted);
  font-size: 13px;
}

.scale-labels span:nth-child(2) { text-align: center; padding-right: 20%; }
.scale-labels span:nth-child(3) { text-align: center; padding-left: 20%; }
.scale-labels span:last-child { text-align: right; }

.fix-list {
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--dark-line);
}

.fix-list li {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 30px;
  padding: 18px 0;
  border-bottom: 1px solid var(--dark-line);
}

.fix-list b { font-size: 18px; letter-spacing: -.02em; }
.fix-list span { color: var(--dark-muted); }

.lp-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.lp-actions .button:not(.secondary) { background: var(--accent); border-color: var(--accent); }
.lp-actions .button:not(.secondary):hover { background: #fff; border-color: #fff; color: var(--ink); }
.dark .button.secondary { color: #fff; border-color: var(--dark-line); }
.dark .button.secondary:hover { background: #222; border-color: #fff; }

.lp-small { margin-top: 18px; color: var(--dark-muted); font-size: 14px; }

/* MOT self-check */

.mot-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 48px;
  align-items: start;
}

.mot-layout .choices { grid-template-columns: 1fr; }

.mot-sticky { position: sticky; top: 100px; }
.mot-sticky .paper { transform: rotate(.6deg); }

.result.untested { background: #b9b5ab; }

.mot-verdict {
  margin-top: 16px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
}

/* Eighth of a CTO */

.pizza-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.pizza { width: 100%; max-width: 460px; justify-self: center; }
.pizza .slice { fill: #ead9b8; stroke: var(--bg); stroke-width: 4; cursor: pointer; transition: fill .2s ease; }
.pizza .slice:hover { fill: #f0c48e; }
.pizza .slice.on { fill: var(--accent); }
.pizza .slice:focus-visible { outline: none; stroke: var(--ink); }
.pizza text { font-size: 13px; font-weight: 700; fill: var(--ink); pointer-events: none; text-anchor: middle; }
.pizza text.on { fill: #fff; }

.duties {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.duties label {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 4px 14px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.duties input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.duties b { font-size: 17px; }
.duties span { grid-column: 2; color: var(--muted); font-size: 14px; }

.fraction {
  margin: 28px 0 8px;
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
}

.fraction-copy { color: var(--muted); font-size: 18px; }

.big-quote {
  max-width: 980px;
  margin: 0;
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 740;
  line-height: 1.12;
  letter-spacing: -.04em;
}

/* Bottle it calculator */

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.calc-inputs { display: grid; gap: 34px; }

.calc-inputs label { display: block; font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.calc-inputs output { float: right; color: var(--accent-dark); font-weight: 800; }

.calc-inputs input[type="range"] {
  width: 100%;
  margin-top: 14px;
  accent-color: var(--accent);
}

.calc-result {
  padding: 40px;
  background: var(--ink);
  color: #fff;
}

.calc-result .label { margin-bottom: 18px; color: var(--accent-light); }

.calc-total {
  margin: 0;
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.055em;
}

.calc-result p:not(.label):not(.calc-total) { margin: 16px 0 0; color: #c9c7c1; }
.calc-result .note { margin-top: 18px; color: var(--accent-light); }

/* AI Software Assurance page */

.audience-grid.two { grid-template-columns: repeat(2, 1fr); }

.concerns {
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.concerns li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.service-grid.three { grid-template-columns: repeat(3, 1fr); }
.service-grid.three h3 { font-size: 28px; }

.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.review-layout .paper { transform: rotate(.8deg); }
.artefact-wrap.test .note { right: 8px; top: -40px; transform: rotate(-3deg); }

.test-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.test-steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.test-steps .number { grid-row: span 2; margin: 6px 0 0; }

.test-steps h3 {
  margin: 0 0 4px;
  font-size: 26px;
  letter-spacing: -.04em;
}

.test-steps p { margin: 0; color: var(--muted); }

.result.low { background: #66645f; }

.fine-print.journey { margin: 0; }
.fine-print.journey li { grid-template-columns: 130px 1fr; }

.cta .button.secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.cta .button.secondary:hover { background: var(--ink); border-color: var(--ink); }

/* Home page: the hero carousel, one slide per service */

.carousel { padding-bottom: 64px; }

h1.eyebrow { line-height: 1.4; }

/* Without the script, the slides stack one under another */
.slides { display: grid; gap: 72px; }

.carousel.is-ready .slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility 0s linear .45s;
}

.carousel.is-ready .slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity .45s ease;
}

.slide-title {
  max-width: 1100px;
  margin-bottom: 34px;
  font-size: clamp(44px, 5.6vw, 80px);
  line-height: 1;
  letter-spacing: -.06em;
  font-weight: 760;
}

.slide-title span { display: block; }
.slide-title .soft { color: #8a8780; }

.carousel-nav {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-top: 64px;
}

.carousel:not(.is-ready) .carousel-nav { display: none; }

.carousel-tabs {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px 18px;
}

.carousel-tab {
  position: relative;
  padding: 16px 0 4px;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: color .18s ease;
}

.carousel-tab::before,
.carousel-tab i {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
}

.carousel-tab::before { right: 0; background: var(--line); }
.carousel-tab i { width: 0; background: var(--accent); }
.carousel-tab:hover,
.carousel-tab[aria-selected="true"] { color: var(--ink); }
.carousel-tab[aria-selected="true"] i { width: 100%; }
.carousel-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* While it plays, the bar under the chosen service fills up, then the next slide shows */
.carousel.is-playing .carousel-tab[aria-selected="true"] i { animation: slide-progress 8s linear forwards; }
.carousel:hover .carousel-tab i,
.carousel:focus-within .carousel-tab i { animation-play-state: paused; }

@keyframes slide-progress { from { width: 0; } to { width: 100%; } }

.carousel-toggle {
  flex: none;
  min-width: 64px;
  margin-top: 10px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.carousel-toggle:hover { border-color: var(--ink); color: var(--ink); }

/* Home page: short service cards, each linking to its own page */

.service-card.compact > p:not(.label) { margin-bottom: 30px; }

/* Footer: a link to every service page */

.footer-services {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-bottom: 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--dark-line);
  font-size: 14px;
}

.footer-services a { color: #fff; text-decoration: none; }
.footer-services a:hover,
.footer-services a[aria-current="page"] { color: var(--accent-light); }

/* Contact chooser */

.contact-dialog {
  width: min(520px, calc(100% - 32px));
  padding: 34px 34px 30px;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.contact-dialog::backdrop { background: rgba(18, 18, 18, .55); }

.contact-dialog h2 {
  margin: 0 0 6px;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -.04em;
}

.contact-dialog .eyebrow { margin-bottom: 14px; }

.contact-close {
  position: absolute;
  top: 10px;
  right: 14px;
  padding: 4px 8px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.contact-close:hover { color: var(--ink); }

.contact-about { margin: 0; color: var(--muted); font-size: 15px; }

.contact-options { display: grid; gap: 10px; margin-top: 22px; }

.contact-option {
  display: block;
  width: 100%;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink);
  background: var(--bg);
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.contact-option:hover { background: #fff; border-color: var(--ink); }
.contact-option.whatsapp { border-left-color: #25d366; }
.contact-option.email { border-left-color: var(--accent); }
.contact-option b { display: block; font-size: 18px; letter-spacing: -.02em; }
.contact-option span { color: var(--muted); font-size: 14px; }

/* Why Geekwork */

.credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: start;
}

.credentials h2 {
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -.05em;
}

.credentials-copy p:not(.eyebrow) { color: var(--muted); font-size: 19px; margin-bottom: 0; }

.credential-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.credential-list li {
  position: relative;
  padding: 16px 0 16px 34px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}

.credential-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 28px;
  width: 10px;
  height: 2px;
  background: var(--accent);
}

/* Call to action */

.cta {
  padding: 120px 0;
  background: var(--accent);
  color: #fff;
}

.cta .eyebrow { color: rgba(255, 255, 255, .75); }

.cta-inner {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 72px;
  align-items: end;
}

.cta h2 {
  margin-bottom: 20px;
  max-width: 850px;
  font-size: clamp(44px, 5.6vw, 76px);
  line-height: 1;
  letter-spacing: -.055em;
}

.cta p {
  max-width: 700px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, .86);
  font-size: 20px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cta .button {
  width: 100%;
  min-height: 58px;
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.cta .button:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.cta-email {
  color: rgba(255, 255, 255, .86);
  font-size: 15px;
  text-align: center;
}

/* Footer */

.site-footer {
  padding: 36px 0 44px;
  background: var(--ink);
  color: var(--dark-muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-end;
}

.footer-brand {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.footer-legal { text-align: right; max-width: 560px; }
.footer-legal a { color: #fff; }

/* Responsive */

/* Chat (chat.js) */

.chat-launch {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  min-height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 2px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  box-shadow: var(--shadow), 0 6px 18px rgba(24, 20, 14, .18);
  cursor: pointer;
}

.chat-launch:hover { background: var(--accent-dark); }
.chat-launch.is-open { background: var(--ink); }

.chat-panel {
  position: fixed;
  right: 22px;
  bottom: 86px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: min(390px, calc(100% - 44px));
  height: min(560px, calc(100vh - 120px));
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), 0 10px 30px rgba(24, 20, 14, .14);
}

.chat-panel[hidden] { display: none; }

.chat-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line);
}

.chat-head .eyebrow { margin-bottom: 4px; }
.chat-sub { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.chat-sub a { color: var(--accent-dark); }

.chat-close {
  align-self: flex-start;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  max-width: 88%;
  padding: 10px 13px;
  font-size: 15px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chat-msg a { color: var(--accent-dark); }
.chat-assistant { align-self: flex-start; background: var(--bg); border-left: 3px solid var(--line); }
.chat-user { align-self: flex-end; background: var(--ink); color: #fff; }
.chat-note { align-self: center; max-width: 100%; color: var(--muted); font-size: 13px; text-align: center; }
.chat-typing { color: var(--muted); }

.chat-form {
  display: flex;
  gap: 8px;
  padding: 12px 18px 8px;
  border-top: 1px solid var(--line);
}

.chat-form textarea {
  flex: 1;
  min-height: 50px;
  max-height: 120px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  resize: vertical;
}

.chat-form textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.chat-send { min-height: 50px; padding: 0 16px; cursor: pointer; }
.chat-send:disabled { opacity: .5; cursor: default; }

.chat-actions {
  display: flex;
  justify-content: space-between;
  padding: 4px 18px 14px;
  font-size: 14px;
}

.chat-handoff { color: var(--accent-dark); font-weight: 700; }

.chat-end {
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.chat-end:disabled { visibility: hidden; }

@media (max-width: 600px) {
  .chat-launch { right: 16px; bottom: 16px; }
  .chat-panel { right: 0; bottom: 0; width: 100%; height: 100%; height: 100dvh; border: 0; }
  .chat-launch.is-open { display: none; }
}

@media (max-width: 1060px) {
  .nav-links a:not(.button) { display: none; }
}

@media (max-width: 920px) {
  .hero { padding-top: 84px; }
  .hero-copy,
  .section-heading,
  .section-heading.aside,
  .credentials,
  .cta-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-actions,
  .cta-actions { max-width: 420px; }
  .audience-grid,
  .audience-grid.two,
  .problem-grid,
  .service-grid,
  .service-grid.three,
  .work-grid,
  .quote-grid,
  .option-grid { grid-template-columns: 1fr; }
  .audience-card { min-height: auto; }
  .problem-item,
  .problem-item + .problem-item {
    min-height: auto;
    padding: 30px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .problem-item:last-child { border-bottom: 0; }
  .number { margin-bottom: 28px; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(2) { border-right: 0; }
  .process-step:nth-child(-n+2) { border-bottom: 1px solid var(--dark-line); }
  .process-step:nth-child(3) { padding-left: 0; }
  .process-step .number { margin-bottom: 28px; }
  .option,
  .option + .option {
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid #cfcabe;
  }
  .option:last-child { border-bottom: 0; }
  .resale-panel { padding: 44px 34px; }
  .product-detail { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .artefacts,
  .sleep-grid { grid-template-columns: 1fr; gap: 64px; }
  .mot .paper { margin-top: 0; }
  .reasons li { grid-template-columns: 50px 1fr; gap: 8px 20px; }
  .choices { grid-template-columns: 1fr; }
  .fix-list li { grid-template-columns: 1fr; gap: 4px; }
  .mot-layout,
  .pizza-layout,
  .calc,
  .review-layout { grid-template-columns: 1fr; gap: 40px; }
  .carousel-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .artefact-wrap.test { margin-top: 30px; }
  .mot-sticky { position: static; }
  .reasons li p { grid-column: 2; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .shell { width: min(calc(100% - 32px), var(--max)); }
  .nav { min-height: 66px; }
  .nav-links .button { min-height: 42px; padding: 0 14px; }
  .hero { padding: 64px 0 60px; }
  h1 { font-size: clamp(38px, 11vw, 56px); }
  section { padding: 76px 0; }
  .section-heading { margin-bottom: 40px; }
  .proof-strip .shell { flex-direction: column; }
  .process { grid-template-columns: 1fr; }
  .process-step,
  .process-step:first-child,
  .process-step:nth-child(3) {
    min-height: auto;
    padding: 26px 0;
    border-right: 0;
    border-bottom: 1px solid var(--dark-line);
  }
  .process-step:last-child { border-bottom: 0; }
  .audience-card,
  .service-card,
  .work-card { padding: 28px; }
  .quote { padding: 26px 24px; }
  .label { margin-bottom: 32px; }
  .resale-panel { padding: 34px 22px; }
  .journey li,
  .product-detail .journey li { grid-template-columns: 1fr; gap: 2px; }
  .paper { padding: 26px 22px 24px; }
  .summary .paper,
  .mot .paper { transform: none; }
  .artefact-wrap .note { position: static; display: block; }
  .artefact-wrap.summary .note { margin-top: 18px; }
  .artefact-wrap.mot .note { margin-bottom: 14px; }
  .mot-items li { grid-template-columns: 80px 1fr; }
  .review-layout .paper { transform: none; }
  .artefact-wrap.test { margin-top: 0; }
  .artefact-wrap.test .note { margin-bottom: 14px; }
  .test-steps li { grid-template-columns: 40px 1fr; gap: 0 12px; }
  .fine-print.journey li { grid-template-columns: 1fr; gap: 2px; }
  .slide-title { font-size: clamp(38px, 11vw, 56px); }
  .carousel { padding-bottom: 52px; }
  .carousel-nav { flex-direction: column-reverse; gap: 18px; margin-top: 44px; }
  .carousel-toggle { margin-top: 0; }
  .sleep-result { padding: 24px 22px; }
  .reasons li { grid-template-columns: 1fr; }
  .lp-hero { padding: 64px 0 52px; }
  .q { padding: 22px 18px 20px; }
  .calc-result { padding: 30px 24px; }
  .scale-labels { font-size: 11px; }
  .reasons li p { grid-column: auto; }
  .cta { padding: 84px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-legal { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-tab i { animation: none !important; }
  *, *::before, *::after { transition: none !important; }
}
