/* Siddtec. Carries over the existing site's look: warm off-white ground, charcoal ink,
   Marcellus headings, soft daylight photography with 15px corners, spaced capital links.
   Layout: airy split heroes and centred short sections; one charcoal band per page
   carries the hard message (risk and cost) so the rest can stay calm. */
:root {
  color-scheme: light;
  --bg: #FAF5F2;
  --sand: #EBE5DB;
  --stone: #D4D0CD;
  --taupe: #8B8580;
  --ink: #2F3235;
  --text: #3E3E3E;
  --line: #DDD5CD;
  --white: #FFFFFF;
  --on-ink: #F4EFEB;
  --on-ink-muted: #C4BEB8;
  --severe: #B32121;
  --high: #A8641A;
  --moderate: #6F6A64;
  --off: #DDD5CD;
  --display: "marcellus", "Marcellus", Georgia, "Times New Roman", serif;
  --body: "graphie_regular", "Albert Sans", Helvetica, Arial, sans-serif;
  --logo: "aeonik_bold", "Albert Sans", Helvetica, Arial, sans-serif;
  --r: 15px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.68;
}
img { max-width: 100%; display: block; }
.wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding-left: max(22px, env(safe-area-inset-left, 0px));
  padding-right: max(22px, env(safe-area-inset-right, 0px));
}
h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  line-height: 1.14;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.14rem;
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
}
p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.label {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--taupe);
}
.stack { display: flex; flex-direction: column; gap: 1.15rem; min-width: 0; }
.lede { font-size: 1.22rem; line-height: 1.55; max-width: 33em; }
.measure { max-width: 40em; }

/* Links and buttons, after the old site's spaced capitals */
.link {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 8px 0;
  border-bottom: 1px solid var(--ink);
  transition: opacity 0.3s ease;
}
.link::after { content: "\27F6"; margin-left: 12px; letter-spacing: 0; }
.link:hover { opacity: 0.7; }
.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--ink);
  color: var(--on-ink);
  padding: 17px 28px;
  border: 0;
  border-radius: var(--r);
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.btn:hover { opacity: 0.82; }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn-sm { padding: 12px 20px; font-size: 0.76rem; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; }

/* Header */
.top-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding-block: 30px;
}
.logo {
  font-family: var(--logo);
  font-weight: 700;
  font-size: 1.85rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.nav { display: flex; flex-wrap: wrap; gap: 4px 26px; font-family: var(--display); font-size: 1.04rem; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { border-bottom-color: var(--stone); }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }

/* Hero */
.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 64px;
  align-items: center;
  padding-block: 44px 88px;
}
.hero-copy { display: flex; flex-direction: column; gap: 1.6rem; min-width: 0; }
.photo { border-radius: var(--r); overflow: hidden; background: var(--sand); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.tall { aspect-ratio: 4 / 5; }
.photo.wide { aspect-ratio: 3 / 2; }
.photo.square { aspect-ratio: 1 / 1; }

/* Sections */
.sec { padding-block: 88px; }
.sec-head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 48px; }
.sec-head p { max-width: 40em; }
.centre { text-align: center; align-items: center; }
.sand { background: var(--sand); }
.two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.two.mid { align-items: center; }

/* Charcoal band */
.band { background: var(--ink); color: var(--on-ink); }
.band h2, .band h3 { color: var(--white); }
.band .label, .band .sec-head p, .band .muted { color: var(--on-ink-muted); }
.band .link { color: var(--on-ink); border-bottom-color: var(--on-ink); }
.band .btn { background: var(--bg); color: var(--ink); }
.band a:focus-visible { outline-color: var(--on-ink); }

/* The three figures */
.sums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.sum {
  display: flex; flex-direction: column; gap: 12px;
  padding: 30px 28px 32px;
  border: 1px solid rgba(244, 239, 235, 0.22);
  border-radius: var(--r);
  min-width: 0;
}
.sum .n {
  font-family: var(--display);
  font-size: clamp(2.5rem, 4.5vw, 3.7rem);
  line-height: 1;
  color: var(--white);
  font-variant-numeric: lining-nums;
  white-space: nowrap;
}
.sum p { font-size: 0.99rem; line-height: 1.55; color: var(--on-ink-muted); }
.sum.ours { background: var(--bg); border-color: var(--bg); }
.sum.ours .n, .sum.ours h3 { color: var(--ink); }
.sum.ours p { color: var(--text); }
.asd { margin-top: 48px; display: flex; flex-direction: column; gap: 22px; }
.asd dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.asd dl div { border-top: 1px solid rgba(244, 239, 235, 0.3); padding-top: 16px; }
.asd dd { margin: 0; font-family: var(--display); font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.1; color: var(--white); }
.asd dt { color: var(--on-ink-muted); font-size: 0.98rem; }
.fine { font-size: 0.93rem; line-height: 1.55; color: var(--taupe); max-width: 46em; margin-top: 26px; }
.band .fine { color: var(--on-ink-muted); }

/* Three paths and other column sets */
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; }
.col { display: flex; flex-direction: column; gap: 14px; min-width: 0; align-items: flex-start; }
.centre .col, .cols3.centre .col { align-items: center; text-align: center; }
.col h2 { font-size: 1.6rem; }
.path { border-top: 1px solid var(--ink); padding-top: 24px; }
.path h3 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; line-height: 1.2; }

/* Work */
.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 40px; }
.work figure { margin: 0; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.work figcaption { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.work h3 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; }

/* Lists */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { padding: 15px 0; border-top: 1px solid var(--line); }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.band .ticks li { border-color: rgba(244, 239, 235, 0.22); }
.svc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; list-style: none; margin: 0; padding: 0; }
.svc li { padding: 24px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.svc h3 { font-family: var(--display); font-weight: 400; font-size: 1.45rem; }
.feature { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.feature > div {
  background: var(--white); border-radius: var(--r); padding: 34px 32px;
  display: flex; flex-direction: column; gap: 14px; align-items: flex-start; min-width: 0;
}
.feature h3 { font-family: var(--display); font-weight: 400; font-size: 1.75rem; line-height: 1.2; }

/* Example day */
.day { list-style: none; margin: 0; padding: 0; max-width: 46em; }
.day li {
  display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 4px 24px;
  padding: 16px 0; border-top: 1px solid rgba(244, 239, 235, 0.22);
}
.day .t { font-family: var(--display); color: var(--white); font-size: 1.1rem; }
.day-end { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; color: var(--white); margin-top: 36px; }

/* Exposure table */
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  font-weight: 400; font-size: 0.76rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--taupe); text-align: left; padding: 0 22px 14px 0; border-bottom: 1px solid var(--ink);
}
td { vertical-align: top; padding: 24px 22px 24px 0; border-bottom: 1px solid var(--line); font-size: 1rem; line-height: 1.55; }
td:last-child, th:last-child { padding-right: 0; }
td.sys { width: 25%; }
td.sys strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.28rem; line-height: 1.25; color: var(--ink); }
td.sys span { display: block; color: var(--taupe); font-size: 0.95rem; margin-top: 6px; }
td.where { width: 24%; }
td.exp { width: 120px; white-space: nowrap; }
.sev { font-weight: 600; font-size: 0.98rem; display: flex; flex-direction: column; gap: 8px; }
.sev b { display: flex; gap: 5px; }
.sev b i { width: 9px; height: 9px; border-radius: 50%; background: var(--off); }
.sev-3 { color: var(--severe); } .sev-3 b i { background: var(--severe); }
.sev-2 { color: var(--high); } .sev-2 b i:nth-child(-n+2) { background: var(--high); }
.sev-1 { color: var(--moderate); } .sev-1 b i:first-child { background: var(--moderate); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 10px; min-width: 0; border-top: 1px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(step); font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--ink); margin-bottom: 6px; }
.steps p { font-size: 1rem; line-height: 1.6; }

.std { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; }
.std li { padding: 18px 0; border-top: 1px solid var(--line); }
.std strong { display: block; font-weight: 600; color: var(--ink); }

.duties { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.duties div { display: flex; flex-direction: column; gap: 10px; min-width: 0; border-top: 1px solid var(--ink); padding-top: 20px; }
.duties h3 { font-family: var(--display); font-weight: 400; font-size: 1.4rem; }
.duties p { font-size: 1rem; line-height: 1.6; }

/* Questions */
.faq { max-width: 46em; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer; font-family: var(--display); font-size: 1.3rem; line-height: 1.3; color: var(--ink);
  padding: 20px 40px 20px 0; list-style: none; position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-family: var(--body); font-size: 1.5rem; font-weight: 300; }
details[open] summary::after { content: "\2212"; }
details p { padding: 0 0 22px; max-width: 40em; }

/* Sample finding */
.finding { background: var(--white); border-radius: var(--r); padding: 30px 32px; min-width: 0; }
.finding-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.finding h3 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; margin-bottom: 14px; }
.finding dl { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.finding dt { font-size: 0.76rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--taupe); }
.finding dd { margin: 0; font-size: 1rem; line-height: 1.55; }
.finding .sev { flex-direction: row; align-items: center; gap: 10px; }

/* Call to action block, after the old site's sand contact block */
.cta { text-align: center; }
.cta .wrap { display: flex; flex-direction: column; align-items: center; gap: 1.3rem; }
.cta p { max-width: 34em; }

/* Form, after the old site's underlined fields */
.form { display: flex; flex-direction: column; gap: 24px; max-width: 36rem; margin-top: 10px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.form label { font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); }
.opt { letter-spacing: 0.08em; color: var(--taupe); text-transform: none; margin-left: 6px; }
.form input, .form select, .form textarea {
  font: inherit; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--taupe); border-radius: 0;
  padding: 10px 2px; width: 100%;
}
.form textarea { resize: vertical; line-height: 1.55; border: 1px solid var(--taupe); border-radius: 10px; padding: 12px 14px; margin-top: 8px; }
.hint { font-size: 0.95rem; color: var(--taupe); line-height: 1.5; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.status { padding: 14px 18px; border-radius: 10px; background: var(--white); border: 1px solid var(--ink); }
.status.bad { border-color: var(--severe); color: var(--severe); }
.status.good { background: var(--ink); color: var(--on-ink); }
.next-list { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 12px; }

/* Footer */
footer { padding-block: 64px 40px; font-size: 0.98rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 64px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.ack { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); text-align: center; color: var(--taupe); font-size: 0.92rem; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.ack p { max-width: 56em; }

@media (max-width: 920px) {
  .hero-in, .two { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-in { padding-block: 24px 60px; }
  .sec { padding-block: 60px; }
  .sums, .cols3, .duties { grid-template-columns: minmax(0, 1fr); }
  .cols3 { gap: 36px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .photo.tall { aspect-ratio: 4 / 3; }
  .top-in { padding-block: 22px; }
}
@media (max-width: 760px) {
  thead { position: absolute; left: -9999px; }
  table, tbody, tr, td { display: block; width: auto; }
  td.sys, td.where, td.exp { width: auto; }
  tr { padding: 22px 0; border-bottom: 1px solid var(--line); }
  tbody tr:first-child { border-top: 1px solid var(--ink); }
  td { border: 0; padding: 0 0 12px; }
  td.exp { padding-bottom: 0; }
  td[data-label]::before { content: attr(data-label); display: block; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--taupe); }
  .std, .svc, .work { grid-template-columns: minmax(0, 1fr); }
  .asd dl { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .steps, .field-row { grid-template-columns: minmax(0, 1fr); }
  .day li { grid-template-columns: minmax(0, 1fr); }
  .lede { font-size: 1.12rem; }
  .nav { gap: 2px 20px; font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .link, .btn { transition: none; }
}

/* --- Audit fixes --- */
.gap-top { margin-top: 38px; }
.sec.first { padding-top: 44px; }
.lead-item { margin-bottom: 72px; }

/* Figures size themselves to their box, so the longest one never spills */
.sum { container-type: inline-size; }
.sum .n { font-size: clamp(1.9rem, 16cqi, 3.7rem); }

/* Headings, text and links sit on shared rows across side-by-side blocks */
.sum, .steps li, .path, .rows-2 > .col, .duties > div {
  display: grid;
  grid-template-rows: subgrid;
  row-gap: 12px;
  align-content: start;
}
.sum, .steps li, .path { grid-row: span 3; }
.rows-2 > .col, .duties > div { grid-row: span 2; }
.cols3.centre > .col { justify-items: center; }
.path { justify-items: start; }
.steps li::before { margin-bottom: 0; }
.feature > div .link { margin-top: auto; }

/* Footer */
.foot { align-items: flex-start; }
.foot .logo { line-height: 1; }
.foot ul { padding-top: 4px; }
.foot a[href^="mailto"], .foot a[href^="tel"], main a[href^="mailto"] { text-decoration: underline; text-underline-offset: 3px; }

/* Header on small screens: logo and Enquire share the first row, links below */
@media (max-width: 920px) {
  .top-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .top-in .logo { order: 1; }
  .top-in .btn { order: 2; }
  .top-in .nav { order: 3; grid-column: 1 / -1; }
}

/* Times read better in the text face: the display face draws 0 like a capital O */
.day .t { font-family: var(--body); font-weight: 600; font-size: 1rem; }

/* Footer columns on a fixed grid so the three lists line up */
.foot {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 48px;
  align-items: end;
}
.foot ul { padding-top: 0; }
@media (max-width: 760px) {
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .foot > .stack { grid-column: 1 / -1; }
}

/* Header: links centred between the logo and the Enquire button */
@media (min-width: 921px) {
  .top-in { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .top-in .logo { justify-self: start; }
  .top-in .btn { justify-self: end; }
}

/* Photos are wrapped in <picture> so browsers can pick a lighter format */
.photo picture { display: block; width: 100%; height: 100%; }
.foot .hint { margin-top: 4px; }

/* Headings that keep the outline in order but look like the smaller style */
.as-h3 { font-family: var(--body); font-weight: 600; font-size: 1.14rem; line-height: 1.3; }
.finding h2 { font-size: 1.5rem; line-height: 1.25; margin-bottom: 14px; }

/* Photos fill their frame by position, not by percentage height. Some browsers
   don't resolve a percentage height inside an aspect-ratio box on first paint,
   which left the frame empty until the page was revisited. */
.photo { position: relative; }
.photo picture { display: contents; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
