/* Silver Strand Holdings — site styles.
   Palette comes from the mark: logo grey #7A838C and logo blue #0A8CDA.
   The logo colours are used for graphics only; text uses darker tones that pass WCAG AA. */

@font-face {
  font-family: "Libre Franklin";
  src: url("/assets/fonts/libre-franklin-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1C232B;          /* headings and body text */
  --ink-2: #48525D;        /* secondary text, 8.1:1 on white */
  --grey: #7A838C;         /* logo grey: frame lines and rules */
  --line: #D3D8DE;         /* light dividers */
  --mist: #EDF0F3;         /* panel background */
  --paper: #FFFFFF;
  --blue: #0A8CDA;         /* logo blue: the mark and focus rings */
  --blue-ink: #0A609A;     /* links and buttons, 6.6:1 against white */
  --blue-ink-deep: #074873;
  --error: #A3261C;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 38rem;
  --stroke: 3px;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  --step-3: clamp(2.25rem, 1.4rem + 3.6vw, 4.25rem);

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: var(--step-3); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); line-height: 1.25; }

p { margin: 0; text-wrap: pretty; }
.nowrap { white-space: nowrap; }
p + p { margin-top: 1em; }

a { color: var(--blue-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-ink-deep); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper);
}
.skip-link:focus { top: 1rem; }

/* Header ---------------------------------------------------------------- */

.site-header { border-bottom: 1px solid var(--line); }

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.125rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 2.25rem; height: 2.25rem; flex: none; }
.brand-name { font-size: 1.125rem; font-weight: 650; letter-spacing: -0.01em; }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list a {
  display: inline-block;
  padding-block: 0.625rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.nav-list a:hover { color: var(--ink); text-decoration: underline; }

/* Hero: the mark drawn at page scale ----------------------------------- */

.hero { padding-block: clamp(2.5rem, 7vw, 6rem) clamp(3rem, 8vw, 7rem); }

.frame {
  --mark: clamp(3.5rem, 11vw, 8.5rem);
  --gap: clamp(0.625rem, 1.4vw, 1.125rem);
  position: relative;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
  border-left: var(--stroke) solid var(--grey);
  border-bottom: var(--stroke) solid var(--grey);
}
.frame::before { /* top edge, stopping short of the square */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: calc(var(--mark) + var(--gap));
  height: var(--stroke);
  background: var(--grey);
}
.frame::after { /* right edge, starting below the square */
  content: "";
  position: absolute;
  top: calc(var(--mark) + var(--gap));
  right: 0;
  bottom: 0;
  width: var(--stroke);
  background: var(--grey);
}
.frame-mark {
  position: absolute;
  top: 0;
  right: 0;
  width: var(--mark);
  height: var(--mark);
  background: var(--blue);
}
@media (prefers-reduced-motion: no-preference) {
  .frame-mark { animation: settle 700ms cubic-bezier(0.2, 0.7, 0.2, 1) 150ms both; }
  @keyframes settle {
    from { transform: translate(28%, -28%); opacity: 0; }
    to { transform: none; opacity: 1; }
  }
}

.frame h1 { max-width: 17ch; padding-right: calc(var(--mark) * 0.5); }

.lede {
  max-width: var(--measure);
  margin-top: 1.5rem;
  color: var(--ink-2);
  font-size: var(--step-1);
  line-height: 1.55;
}
.lede + .lede { margin-top: 0.875rem; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 2.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.375rem;
  border: 2px solid var(--blue-ink);
  background: var(--blue-ink);
  color: #FFFFFF;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--blue-ink-deep); border-color: var(--blue-ink-deep); color: #FFFFFF; text-decoration: none; }
.button-quiet { background: transparent; color: var(--blue-ink); }
.button-quiet:hover { background: var(--mist); color: var(--blue-ink-deep); }
.button[disabled] { opacity: 0.6; cursor: progress; }

/* Sections -------------------------------------------------------------- */

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-criteria, .section-partners { border-top: 1px solid var(--line); }
.section-process { background: var(--mist); }
.section-contact { background: var(--paper); }

.section-head { max-width: var(--measure); margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { margin-top: 0.875rem; color: var(--ink-2); font-size: var(--step-1); line-height: 1.5; }

/* Criteria -------------------------------------------------------------- */

.criteria-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}
@media (min-width: 60rem) {
  .criteria-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
}

.spec { margin: 0; border-top: var(--stroke) solid var(--ink); }
.spec-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.25rem;
  padding-block: 1.125rem;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 40rem) {
  .spec-row { grid-template-columns: 12rem minmax(0, 1fr); gap: 1.5rem; }
}
.spec dt { font-weight: 650; }
.spec dd { margin: 0; color: var(--ink-2); max-width: var(--measure); }

.not-fit {
  padding: 1.5rem 1.5rem 1.75rem;
  background: var(--mist);
  border-left: var(--stroke) solid var(--grey);
}
.not-fit h3 { font-size: 1.0625rem; }
.not-fit ul { margin: 0.875rem 0 0; padding-left: 1.125rem; color: var(--ink-2); }
.not-fit li + li { margin-top: 0.3rem; }
.not-fit .note { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink-2); font-size: var(--step--1); line-height: 1.55; }

.industries { margin-top: clamp(3rem, 6vw, 4.5rem); }
.industries-intro { margin-top: 0.5rem; color: var(--ink-2); }
.industry-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
@media (min-width: 48rem) {
  .industry-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; }
}
.industry-list li { padding-block: 0.875rem; border-bottom: 1px solid var(--line); }
.industry-list strong { display: block; font-weight: 600; }
.industry-list span { display: block; color: var(--ink-2); font-size: var(--step--1); margin-top: 0.125rem; }

/* Process --------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 64rem) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; }
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.25rem 0 1.5rem 3rem;
  border-top: var(--stroke) solid var(--grey);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1.125rem;
  color: var(--blue-ink);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}
@media (min-width: 64rem) {
  .steps li { padding: 3.25rem 0 0; }
  .steps li::before { top: 1.125rem; }
  .steps li:first-child { border-top-color: var(--blue); }
}
.steps h3 { font-size: 1.0625rem; }
.steps p { margin-top: 0.5rem; color: var(--ink-2); font-size: 0.9875rem; }

/* Partners -------------------------------------------------------------- */

.partners {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}
@media (min-width: 48rem) {
  .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; }
}
.partner { padding-top: 1.25rem; border-top: var(--stroke) solid var(--ink); max-width: var(--measure); }
.partner-role { margin-top: 0.25rem; color: var(--ink-2); font-weight: 500; }
.partner-role + p { margin-top: 1rem; }

[data-todo] { background: #FFF3C4; outline: 1px dashed #9A7A00; }

/* Contact --------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}
@media (min-width: 60rem) {
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 5rem; }
}
.contact-intro p { margin-top: 1rem; color: var(--ink-2); max-width: 30rem; }
.contact-intro .contact-meta { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: var(--step--1); }

.contact-form {
  padding: clamp(1.25rem, 4vw, 2.5rem);
  background: var(--mist);
  border-top: var(--stroke) solid var(--blue);
}

.field { margin: 0 0 1.25rem; padding: 0; border: 0; min-width: 0; }
.field > label, .field legend { display: block; margin-bottom: 0.375rem; padding: 0; font-weight: 600; font-size: 0.9375rem; }
.optional { color: var(--ink-2); font-weight: 400; }

input[type="text"], input[type="email"], input[type="tel"], textarea {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid #7E8791;
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 0; border-color: var(--blue-ink); }
[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }

.choices { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.choice { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; font-size: 1rem; cursor: pointer; }
.choice input { width: 1.125rem; height: 1.125rem; margin: 0; accent-color: var(--blue-ink); }

.field-hint { margin-top: 0.375rem; color: var(--ink-2); font-size: var(--step--1); }
.field-error { margin-top: 0.375rem; color: var(--error); font-size: var(--step--1); font-weight: 600; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.75rem; }
.privacy-line { color: var(--ink-2); font-size: var(--step--1); }

.form-status:empty { display: none; }
.form-status { margin-top: 1.25rem; padding: 1rem 1.125rem; border-left: var(--stroke) solid var(--blue); background: var(--paper); }
.form-status.is-error { border-left-color: var(--error); }
.form-status:focus { outline: none; }
.form-status h3 { font-size: 1.0625rem; }
.form-status p { margin-top: 0.375rem; color: var(--ink-2); }

.contact-form.is-sent .field,
.contact-form.is-sent .form-foot { display: none; }
.contact-form.is-sent .form-status { margin-top: 0; }

/* Footer ---------------------------------------------------------------- */

.site-footer { background: var(--ink); color: #C9CFD6; }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.75rem;
  font-size: var(--step--1);
}
.site-footer a { color: #FFFFFF; }
.site-footer a:hover { color: #FFFFFF; }

/* Simple pages (privacy, message status, 404) ---------------------------- */

.page { padding-block: clamp(2.5rem, 7vw, 5rem); }
.page h1 { font-size: var(--step-2); max-width: 30ch; }
.page h2 { font-size: var(--step-1); margin-top: 2.25rem; }
.prose { max-width: var(--measure); }
.prose p, .prose ul { margin-top: 1rem; color: var(--ink-2); }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.375rem; }
.page .actions { margin-top: 2rem; }

@media print {
  .site-header nav, .contact-form, .skip-link { display: none; }
  .frame-mark { animation: none; }
}
