/* Talcen Design and Build website styles.
   Tokens are copied from the brand pack (talcen_brand.css). Use them by name. */

/* ---------- fonts (self hosted) ---------- */

@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/montserrat_500.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/montserrat_600.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/hanken_grotesk_400.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/hanken_grotesk_500.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/hanken_grotesk_600.woff2") format("woff2"); }

/* Extra characters such as the Welsh w and y with circumflex. Only downloaded when a page uses them. */
@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/montserrat_500_ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F, U+1EF2-1EFF; }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/montserrat_600_ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F, U+1EF2-1EFF; }
@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/hanken_grotesk_400_ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F, U+1EF2-1EFF; }
@font-face { font-family: "Hanken Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/hanken_grotesk_500_ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F, U+1EF2-1EFF; }
@font-face { font-family: "Hanken Grotesk"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/hanken_grotesk_600_ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F, U+1EF2-1EFF; }

/* ---------- tokens ---------- */

:root {
  /* colour */
  --slate: #2e3438;      /* text, logo, dark sections */
  --slate700: #4a5257;   /* secondary text */
  --slate500: #5f676c;   /* muted text, field borders */
  --copper: #b4693e;     /* accent: logo, rules, headings 24px and up only */
  --copper700: #94532e;  /* copper at text size, links, buttons */
  --copper300: #d9a07c;  /* copper on slate */
  --stone: #e8e3da;      /* secondary surface */
  --offwhite: #f7f5f1;   /* page background */
  --white: #ffffff;      /* cards and fields */
  --line: #d6d0c5;       /* hairline dividers */

  /* type */
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  /* spacing */
  --space1: 4px;
  --space2: 8px;
  --space3: 16px;
  --space4: 24px;
  --space5: 40px;
  --space6: 64px;
  --space7: 96px;

  /* shape */
  --radiusNone: 0;
  --radiusSmall: 2px;
  --radiusFull: 9999px;
  --strokeHairline: 1px;
  --strokeStrong: 3px;

  /* layout helpers built from the tokens */
  --maxWidth: 1200px;
  --pagePad: var(--space4);
  --sectionPad: var(--space6);
}

@media (min-width: 700px) {
  :root { --pagePad: var(--space5); }
}
@media (min-width: 900px) {
  :root { --sectionPad: var(--space7); }
}

/* ---------- base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  hyphens: none;
  scroll-padding-top: calc(var(--space4) + 88px); /* clears the sticky header */
}

body {
  margin: 0;
  background: var(--offwhite);
  color: var(--slate);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.647;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; border-radius: var(--radiusNone); background: var(--stone); }
svg { display: block; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3, .display { font-family: var(--font-display); color: var(--slate); text-wrap: balance; }

.display { font-size: 2.25rem; line-height: 1.167; font-weight: 500; letter-spacing: -0.01em; }
h1, .h1 { font-size: 1.875rem; line-height: 1.267; font-weight: 500; }
h2, .h2 { font-size: 1.5rem; line-height: 1.333; font-weight: 500; }
h3, .h3 { font-size: 1.25rem; line-height: 1.4; font-weight: 600; }

@media (min-width: 900px) {
  .display { font-size: 3.5rem; line-height: 1.071; }
  h1, .h1 { font-size: 2.5rem; line-height: 1.2; }
  h2, .h2 { font-size: 1.75rem; line-height: 1.286; }
}

.label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  line-height: 1.333;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--copper700);
}
.label_slate { color: var(--slate700); }

.lead { font-size: 1.125rem; line-height: 1.556; color: var(--slate700); }
@media (min-width: 900px) { .lead { font-size: 1.25rem; line-height: 1.6; } }

.small { font-size: 0.875rem; line-height: 1.571; }
.muted { color: var(--slate700); }
strong { font-weight: 500; }

p + p { margin-top: var(--space3); }
.measure { max-width: 68ch; }

a { color: var(--copper700); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--slate); }

:focus-visible { outline: var(--strokeStrong) solid var(--copper700); outline-offset: 2px; border-radius: var(--radiusSmall); }
.on_slate :focus-visible, .site_footer :focus-visible { outline-color: var(--copper300); }

.visually_hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip_link {
  position: absolute; left: var(--space3); top: var(--space3); z-index: 20;
  padding: var(--space2) var(--space3); background: var(--slate); color: var(--offwhite);
  font-weight: 600; transform: translateY(-200%);
}
.skip_link:focus { transform: none; color: var(--offwhite); outline-color: var(--copper300); }

/* ---------- layout ---------- */

.container { width: min(100% - (2 * var(--pagePad)), var(--maxWidth)); margin-inline: auto; }

.section { padding-block: var(--sectionPad); }
.section_tight { padding-block: var(--space6); }
.section_stone { background: var(--stone); }
.section_slate { background: var(--slate); color: var(--offwhite); }
.section_slate h2, .section_slate h3 { color: var(--offwhite); }
.section_slate .lead, .section_slate p { color: var(--stone); }
.section_slate .label { color: var(--copper300); }
.section_line { border-top: var(--strokeHairline) solid var(--line); }

.grid { display: grid; gap: var(--space5) var(--space4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .span_3 { grid-column-end: span 3; }
  .span_4 { grid-column-end: span 4; }
  .span_5 { grid-column-end: span 5; }
  .span_6 { grid-column-end: span 6; }
  .span_7 { grid-column-end: span 7; }
  .span_8 { grid-column-end: span 8; }
  .start_7 { grid-column-start: 7; }
  .start_8 { grid-column-start: 8; }
  .align_center { align-items: center; }
}

.gap_top { margin-top: var(--space5); }
.wide_only { display: none; }
@media (min-width: 900px) { .wide_only { display: block; } }
.stack > * + * { margin-top: var(--space3); }
.stack_large > * + * { margin-top: var(--space4); }

/* section heading: copper rule, label, heading */
.section_head { margin-bottom: var(--space5); }
.section_head::before, .rule::before {
  content: ""; display: block; width: var(--space5); height: var(--strokeStrong);
  background: var(--copper); margin-bottom: var(--space4);
}
.section_slate .section_head::before { background: var(--copper300); }
.section_head:last-child { margin-bottom: 0; }
.section_head .label { margin-bottom: var(--space2); }
.section_head .lead, .section_head .intro { margin-top: var(--space3); max-width: 60ch; }
.section_head_row { display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; gap: var(--space3) var(--space5); }
.section_head_row::before { margin-bottom: var(--space2); }
@media (min-width: 700px) {
  .section_head_row { grid-template-columns: minmax(0, 1fr) auto; }
  .section_head_row::before { grid-column: 1 / -1; }
}

/* ---------- buttons and links ---------- */

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px var(--space4);
  border: var(--strokeHairline) solid var(--copper700); border-radius: var(--radiusNone);
  background: var(--copper700); color: var(--offwhite);
  font-family: var(--font-body); font-size: 0.9375rem; line-height: 1.333; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.button:hover { background: var(--slate); border-color: var(--slate); color: var(--offwhite); }
.button_secondary { background: transparent; border-color: var(--slate); color: var(--slate); }
.button_secondary:hover { background: var(--slate); color: var(--offwhite); }
.button_light { background: transparent; border-color: var(--offwhite); color: var(--offwhite); }
.button_light:hover { background: var(--offwhite); border-color: var(--offwhite); color: var(--slate); }
.on_slate .button:not(.button_light) { background: var(--offwhite); border-color: var(--offwhite); color: var(--slate); }
.on_slate .button:not(.button_light):hover { background: var(--copper300); border-color: var(--copper300); color: var(--slate); }
.button[disabled] { opacity: 0.7; cursor: progress; }

.button_row { display: flex; flex-wrap: wrap; gap: var(--space3); margin-top: var(--space4); }

.text_link { font-weight: 600; font-size: 0.9375rem; }

/* ---------- header ---------- */

.site_header { position: sticky; top: 0; z-index: 10; background: var(--offwhite); border-bottom: var(--strokeHairline) solid var(--line); }
.site_header_inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space3) var(--space4); padding-block: var(--space4); }
.site_logo { display: block; flex: none; }
.site_logo img { width: 148px; height: auto; background: none; }

.site_nav { flex-basis: 100%; }
.site_nav ul { display: flex; flex-direction: column; }
.site_nav li { border-top: var(--strokeHairline) solid var(--line); }
.site_nav li a {
  display: block; padding: var(--space3) 0;
  font-family: var(--font-display); font-size: 0.75rem; line-height: 1.333; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; text-decoration: none; color: var(--slate);
}
.site_nav li a:hover { color: var(--copper700); }
.site_nav li a[aria-current="page"] { color: var(--copper700); }
.site_nav .button { width: 100%; margin-top: var(--space3); }

.menu_button {
  display: none; align-items: center; gap: var(--space2);
  min-height: 48px; padding: 0 var(--space3); margin-right: calc(var(--space3) * -1);
  background: none; border: 0; border-radius: var(--radiusNone); color: var(--slate); cursor: pointer;
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
}
.menu_icon { position: relative; width: 20px; height: 12px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.menu_button[aria-expanded="true"] .menu_icon { border-bottom-color: transparent; }

/* small screens with scripting: the menu opens and closes */
@media (max-width: 899px) {
  .js .menu_button { display: inline-flex; }
  .js .site_nav { display: none; }
  .js .site_nav.is_open { display: block; }
}

@media (min-width: 900px) {
  .site_header_inner { flex-wrap: nowrap; }
  .site_logo img { width: 176px; }
  .site_nav { flex-basis: auto; display: flex; align-items: center; gap: var(--space5); }
  .site_nav ul { flex-direction: row; gap: var(--space5); }
  .site_nav li { border-top: 0; }
  .site_nav li a { padding: var(--space3) 0; border-bottom: 2px solid transparent; }
  .site_nav li a[aria-current="page"] { border-bottom-color: var(--copper); }
  .site_nav .button { width: auto; margin-top: 0; }
}

/* ---------- home hero ---------- */

.hero_media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero_panel { background: var(--slate); color: var(--offwhite); padding: var(--space5) var(--pagePad); }
.hero_panel .label { color: var(--copper300); margin-bottom: var(--space3); }
.hero_panel .display { color: var(--offwhite); }
.hero_panel .lead { color: var(--stone); margin-top: var(--space4); max-width: 46ch; }

@media (min-width: 700px) {
  .hero_media img { aspect-ratio: 16 / 9; max-height: 720px; }
  .hero_wrap { width: min(100% - (2 * var(--pagePad)), var(--maxWidth)); margin-inline: auto; }
  .hero_panel { position: relative; max-width: 680px; margin-top: calc(var(--space7) * -1.5); padding: var(--space5); }
}
@media (min-width: 1100px) {
  .hero_panel { margin-top: -220px; padding: var(--space6) var(--space5); }
}

/* ---------- page header ---------- */

.page_head { padding-block: var(--space6); }
.page_head .label { margin-bottom: var(--space3); }
.page_head h1 { max-width: 22ch; }
.page_head .lead { margin-top: var(--space4); max-width: 60ch; }
@media (min-width: 900px) { .page_head { padding-block: var(--space7) var(--space6); } }

/* ---------- cards ---------- */

.card_grid { display: grid; gap: var(--space5) var(--space4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .card_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .card_grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card { position: relative; display: flex; flex-direction: column; }
.card_image { overflow: hidden; background: var(--stone); }
.card_image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 400ms ease; }
.card_body { padding-top: var(--space3); }
.card_body .label { display: block; margin-bottom: var(--space2); }
.card_title { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.4; font-weight: 600; }
.card_trigger {
  appearance: none; background: none; border: 0; padding: 0; margin: 0; border-radius: var(--radiusNone);
  font: inherit; color: var(--slate); text-align: left; text-decoration: none; cursor: pointer;
}
.card_trigger::after { content: ""; position: absolute; inset: 0; }
.card:hover .card_trigger, .card_trigger:hover { color: var(--copper700); }
.card:focus-within .card_trigger:focus-visible { outline: none; }
.card:has(.card_trigger:focus-visible) { outline: var(--strokeStrong) solid var(--copper700); outline-offset: 4px; }
.card_meta { display: flex; flex-wrap: wrap; margin-top: var(--space2); font-size: 0.875rem; line-height: 1.571; color: var(--slate700); }
.card_meta span + span { margin-left: var(--space3); padding-left: var(--space3); border-left: var(--strokeHairline) solid var(--slate500); }
.card_summary { margin-top: var(--space2); font-size: 0.9375rem; line-height: 1.6; color: var(--slate700); }

/* sector tiles */
.tile_grid { display: grid; gap: var(--space5) var(--space4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 600px) { .tile_grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .tile_grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.tile { position: relative; }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tile h3 { margin-top: var(--space3); font-size: 1.0625rem; line-height: 1.412; }
.tile h3 a { color: var(--slate); text-decoration: none; }
.tile h3 a::after { content: ""; position: absolute; inset: 0; }
.tile:hover h3 a { color: var(--copper700); }
.tile:has(a:focus-visible) { outline: var(--strokeStrong) solid var(--copper700); outline-offset: 4px; }
.tile a:focus-visible { outline: none; }
.tile p { margin-top: var(--space2); font-size: 0.875rem; line-height: 1.571; color: var(--slate700); }

/* ---------- steps, principles and service lists ---------- */

.step_grid { display: grid; gap: var(--space5) var(--space4); grid-template-columns: minmax(0, 1fr); counter-reset: step; }
@media (min-width: 600px) { .step_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .step_grid.cols_4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step_grid.cols_3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.step { border-top: var(--strokeHairline) solid var(--slate500); padding-top: var(--space3); }
.section_slate .step { border-top-color: var(--copper300); }
.step_number { display: block; margin-bottom: var(--space3); }
.step_grid.numbered .step { counter-increment: step; }
.step_grid.numbered .step_number::before { content: counter(step, decimal-leading-zero); }
.step h3 { margin-bottom: var(--space2); }
.step p { color: var(--slate700); font-size: 1rem; line-height: 1.625; }
.section_slate .step p { color: var(--stone); }

.service { display: grid; gap: var(--space3) var(--space4); grid-template-columns: minmax(0, 1fr); padding-block: var(--space5); border-top: var(--strokeHairline) solid var(--line); }
.service:last-child { border-bottom: var(--strokeHairline) solid var(--line); }
.service p { color: var(--slate700); }
.service_outcome { background: var(--stone); padding: var(--space4); }
.service_outcome .label { display: block; margin-bottom: var(--space2); }
.service_outcome p { color: var(--slate); }
@media (min-width: 900px) {
  .service { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .service_name { grid-column: span 3; }
  .service_text { grid-column: span 5; }
  .service_outcome { grid-column: span 4; }
}

.media_pair { display: grid; gap: var(--space4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .media_pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.media_pair img, .media img { width: 100%; object-fit: cover; }

.name_panel { background: var(--white); border: var(--strokeHairline) solid var(--line); padding: var(--space5) var(--space4); }
.name_panel img { width: 120px; background: none; margin-bottom: var(--space4); }
@media (min-width: 900px) { .name_panel { padding: var(--space6) var(--space5); } }

.call_to_action h2 { max-width: 20ch; }
.call_to_action p { max-width: 52ch; margin-top: var(--space3); }

/* ---------- projects ---------- */

.filter { display: flex; flex-wrap: wrap; gap: var(--space2); margin-bottom: var(--space4); }
.filter_button {
  min-height: 44px; padding: var(--space2) var(--space3);
  background: transparent; border: var(--strokeHairline) solid var(--slate500); border-radius: var(--radiusNone);
  color: var(--slate); cursor: pointer;
  font-family: var(--font-display); font-size: 0.75rem; line-height: 1.333; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
}
.filter_button:hover { border-color: var(--slate); background: var(--stone); }
.filter_button[aria-pressed="true"] { background: var(--slate); border-color: var(--slate); color: var(--offwhite); }
.projects_status { min-height: 1.571em; margin-bottom: var(--space5); color: var(--slate700); font-size: 0.875rem; line-height: 1.571; }
/* hold space for the cards while the script draws them, so the page below does not jump */
.js [data-projects='all'] { min-height: 60vh; }
.card[hidden] { display: none; }

.project_dialog {
  width: min(100% - (2 * var(--space3)), 980px); max-height: calc(100dvh - (2 * var(--space3)));
  padding: 0; border: 0; border-radius: var(--radiusNone); background: var(--offwhite); color: var(--slate); overflow: auto;
}
.project_dialog::backdrop { background: rgba(46, 52, 56, 0.8); }
.dialog_inner { padding: var(--space4); }
@media (min-width: 700px) { .dialog_inner { padding: var(--space5); } }
.dialog_top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space4); margin-bottom: var(--space4); }
.dialog_top .label { display: block; margin-bottom: var(--space2); }
.dialog_close {
  flex: none; min-height: 44px; padding: var(--space2) var(--space3);
  background: transparent; border: var(--strokeHairline) solid var(--slate); border-radius: var(--radiusNone);
  color: var(--slate); font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600; cursor: pointer;
}
.dialog_close:hover { background: var(--slate); color: var(--offwhite); }
.dialog_lead_image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.dialog_content { display: grid; gap: var(--space4) var(--space5); grid-template-columns: minmax(0, 1fr); margin-block: var(--space5); }
@media (min-width: 800px) { .dialog_content { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }
.dialog_facts > div { padding-block: var(--space3); border-top: var(--strokeHairline) solid var(--line); }
.dialog_facts dt { margin-bottom: var(--space1); }
.dialog_facts dd { font-size: 0.9375rem; line-height: 1.6; }
.dialog_text .lead { color: var(--slate); margin-bottom: var(--space3); }
.dialog_text p { color: var(--slate700); }
.dialog_body { margin-top: var(--space3); }
html.dialog_open { overflow: hidden; }

/* ---------- forms ---------- */

.form_card { background: var(--white); border: var(--strokeHairline) solid var(--line); padding: var(--space4); }
@media (min-width: 700px) { .form_card { padding: var(--space5); } }
.form_card h2 { margin-bottom: var(--space2); }

.field { margin-top: var(--space4); }
.field label, .field_label { display: block; font-weight: 600; font-size: 1rem; line-height: 1.5; margin-bottom: var(--space1); }
.optional { font-weight: 400; color: var(--slate700); }
.hint { display: block; font-size: 0.875rem; line-height: 1.571; color: var(--slate700); margin-bottom: var(--space2); }

.input, .select, .textarea {
  display: block; width: 100%; min-height: 48px; padding: 10px 12px;
  background: var(--white); color: var(--slate);
  border: var(--strokeHairline) solid var(--slate500); border-radius: var(--radiusSmall);
  font: inherit; font-size: 1rem; line-height: 1.5;
}
.textarea { min-height: 160px; resize: vertical; }
.select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--slate) 50%), linear-gradient(135deg, var(--slate) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px; background-repeat: no-repeat; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--slate); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline-offset: 0; }
[aria-invalid="true"] { border-color: var(--copper700); border-width: 2px; }

.field_error { display: block; margin-top: var(--space2); color: var(--copper700); font-weight: 600; font-size: 0.9375rem; line-height: 1.467; }
.field_error[hidden] { display: none; }

.check { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space3); align-items: start; }
.check input { width: 28px; height: 28px; margin: 0; accent-color: var(--copper700); border-radius: var(--radiusSmall); }
.check label { font-weight: 400; margin: 0; }

.error_summary { border: 2px solid var(--copper700); padding: var(--space4); margin-top: var(--space4); background: var(--offwhite); }
.error_summary[hidden] { display: none; }
.error_summary h3 { margin-bottom: var(--space2); }
.error_summary li + li { margin-top: var(--space1); }
.error_summary a { font-weight: 600; }

.form_success { border-top: var(--strokeStrong) solid var(--copper); padding-top: var(--space4); }
.form_success[hidden] { display: none; }
.form_success p { margin-top: var(--space3); }

.next_steps { counter-reset: next; margin-top: var(--space4); }
.next_steps li { counter-increment: next; display: grid; grid-template-columns: var(--space5) minmax(0, 1fr); padding-block: var(--space3); border-top: var(--strokeHairline) solid var(--line); }
.next_steps li::before { content: counter(next, decimal-leading-zero); font-family: var(--font-display); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.24em; color: var(--copper700); padding-top: 6px; }

.privacy { margin-top: var(--space5); padding-top: var(--space4); border-top: var(--strokeHairline) solid var(--line); }
.privacy h2 { font-size: 1.25rem; line-height: 1.4; font-weight: 600; margin-bottom: var(--space3); }
.privacy p { font-size: 0.9375rem; line-height: 1.6; color: var(--slate700); }

/* ---------- footer ---------- */

.site_footer { background: var(--slate); color: var(--stone); padding-block: var(--space6) var(--space5); }
.site_footer a { color: var(--offwhite); }
.site_footer a:hover { color: var(--copper300); }
.footer_top { display: grid; gap: var(--space5) var(--space4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .footer_top { grid-template-columns: 6fr 3fr 3fr; } }
.footer_brand img { width: 200px; background: none; margin-bottom: var(--space4); }
.footer_brand p { max-width: 36ch; color: var(--offwhite); }
.footer_brand p[lang="cy"] { color: var(--stone); margin-top: var(--space2); }
.site_footer .label { color: var(--copper300); margin-bottom: var(--space3); }
.footer_nav li + li { margin-top: var(--space2); }
.footer_nav a { text-decoration: none; }
.footer_nav a:hover { text-decoration: underline; }
.footer_bottom { margin-top: var(--space6); padding-top: var(--space4); border-top: var(--strokeHairline) solid var(--slate500); font-size: 0.875rem; line-height: 1.571; }
.footer_bottom p + p { margin-top: var(--space2); }

/* ---------- page not found ---------- */

.not_found { display: grid; gap: var(--space5); align-items: center; grid-template-columns: minmax(0, 1fr); padding-block: var(--space7); }
@media (min-width: 900px) { .not_found { grid-template-columns: 7fr 5fr; } }
.gable_lines { width: 100%; max-width: 420px; height: auto; }
.gable_lines polyline { fill: none; stroke-width: 3; stroke-linecap: butt; stroke-linejoin: miter; }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 400ms ease, transform 400ms ease; }
  .js .reveal.is_visible { opacity: 1; transform: none; }
  .card:hover .card_image img { transform: scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site_header { position: static; }
  .site_header .menu_button, .site_nav, .skip_link, .filter { display: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .section_slate, .site_footer, .hero_panel { background: none; color: var(--slate); }
}
