/* ==========================================================================
   Health Tech page
   Palette taken from the Claude Design "Accessible Health Tech Studio" concept
   and applied as this page's light-mode colours, including the site header.
   ========================================================================== */

.ht-page,
html[data-force-theme="light"] {
  --ht-bg: #F1F5F4;
  --ht-cream: #F7F3EC;
  --ht-ink: #0C2A2B;
  --ht-blue: #17557E;
  --ht-mint: #A8E0CE;
  --ht-green: #0E5A52;
  --ht-body: #33504D;
  --ht-muted: #55716D;
  --ht-faint: #7C9894;
  --ht-line: #D2E0DC;
  --ht-band: #E6EFED;
  --ht-card: #FFFFFF;
  --ht-media: #DCE8E5;
  --ht-dark-card: #123433;
  --ht-dark-line: #23514E;
  --ht-dark-muted: #A9C3BE;
  --ht-field-line: #B7CCC7;
}

/* --------------------------------------------------------------------------
   Site chrome: header, footer and page background recoloured for this page
   The header keeps its existing markup, layout, logo and nav font.
   -------------------------------------------------------------------------- */

html[data-force-theme="light"] {
  --color-primary: var(--ht-blue);
  --color-primary-bright: var(--ht-ink);
  --color-header-bg: rgba(247, 243, 236, 0.92);
  --color-header-link: var(--ht-ink);
  --color-logo-text: var(--ht-ink);
  --color-logo-accent: var(--ht-blue);
  --color-footer-bg: var(--ht-band);
  --color-footer-text: var(--ht-muted);
  --color-footer-legal: var(--ht-faint);
  --color-footer-border: var(--ht-line);
  --color-text-muted: var(--ht-muted);
  --color-text-secondary: var(--ht-body);
  /* Mobile nav overlay (style.css paints it with these two) */
  --color-black: var(--ht-cream);
  --color-white: var(--ht-ink);
}

html[data-force-theme="light"] body {
  background: var(--ht-bg);
  color: var(--ht-ink);
}

html[data-force-theme="light"] .header-strip {
  background: var(--color-header-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ht-line);
}

html[data-force-theme="light"] .site-header {
  background: transparent;
}

html[data-force-theme="light"] .site-footer {
  background: var(--ht-band);
  border-top: 1px solid var(--ht-line);
}

html[data-force-theme="light"] :focus-visible {
  outline: 3px solid var(--ht-green);
  outline-offset: 3px;
}

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

.ht-page {
  padding-top: 120px; /* clears the fixed site header */
  font-family: 'Atkinson Hyperlegible', system-ui, sans-serif;
  color: var(--ht-ink);
  background: var(--ht-bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* Resets are wrapped in :where() so they carry no specificity and every
   component rule below can override them without an arms race. */

:where(.ht-page) h1,
:where(.ht-page) h2,
:where(.ht-page) h3 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: pretty;
}

:where(.ht-page) p {
  margin: 0;
  text-wrap: pretty;
}

:where(.ht-page) img {
  display: block;
  max-width: 100%;
}

:where(.ht-page) ul,
:where(.ht-page) ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Not in :where() — this has to beat `[data-theme="light"] a` from style.css.
   Component links below carry a .ht-page prefix so they in turn beat this. */
.ht-page a {
  color: var(--ht-blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.ht-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.ht-section {
  padding: clamp(64px, 8vw, 104px) 0 0;
}

/* --- Buttons --- */

.ht-page .ht-btn {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ht-page .ht-btn-primary {
  font-size: 18px;
  color: #F1F5F4;
  background: var(--ht-blue);
  padding: 16px 32px;
}

.ht-page .ht-btn-primary:hover,
.ht-page .ht-btn-primary:focus {
  background: var(--ht-ink);
  color: #F1F5F4;
}

.ht-page .ht-btn-outline {
  font-size: 18px;
  color: var(--ht-ink);
  background: transparent;
  border-color: var(--ht-ink);
  padding: 16px 30px;
}

.ht-page .ht-btn-outline:hover,
.ht-page .ht-btn-outline:focus {
  background: var(--ht-ink);
  color: #F1F5F4;
}

.ht-page .ht-btn-ghost {
  font-size: 16px;
  color: var(--ht-ink);
  background: transparent;
  border-color: var(--ht-ink);
  padding: 12px 26px;
  white-space: nowrap;
}

.ht-page .ht-btn-ghost:hover,
.ht-page .ht-btn-ghost:focus {
  background: var(--ht-mint);
  color: var(--ht-ink);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.ht-hero {
  padding: clamp(48px, 6vw, 96px) 0 clamp(48px, 6vw, 72px);
}

.ht-hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: end;
}

.ht-hero h1 {
  font-size: clamp(40px, 5.4vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.ht-mark {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--ht-mint) 62%, var(--ht-mint) 96%, transparent 96%);
}

.ht-lede {
  font-size: 21px;
  line-height: 1.55;
  max-width: 620px;
  margin: 32px 0 40px;
  color: var(--ht-body);
}

.ht-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.ht-hero-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid var(--ht-ink);
  background: var(--ht-media);
}

.ht-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Client band
   -------------------------------------------------------------------------- */

.ht-band {
  border-top: 1px solid var(--ht-line);
  border-bottom: 1px solid var(--ht-line);
  background: var(--ht-band);
}

.ht-band-inner {
  padding-top: 36px;
  padding-bottom: 36px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
}

.ht-band-label {
  max-width: 320px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ht-muted);
}

.ht-band-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 44px;
  align-items: center;
  justify-content: flex-end;
}

.ht-band-logos li {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ht-band-logos img {
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  filter: grayscale(1) contrast(1.15);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

/* Per-logo heights so the marks read at the same optical weight, the same
   approach the health page uses. Raw heights differ because the artwork
   aspect ratios do. */
.ht-band-logos li:nth-child(1) img { height: 60px; }  /* NHS — wide mark */
.ht-band-logos li:nth-child(2) img { height: 44px; }  /* Kent — tall wordmark */
.ht-band-logos li:nth-child(3) img { height: 32px; }  /* Surrey — crest + text, very wide */
.ht-band-logos li:nth-child(4) img { height: 48px; }  /* Sussex — tall US mark */
.ht-band-logos li:nth-child(5) img { height: 46px; }  /* HFMT — square-ish */

/* Hamburg's artwork is light gold (avg luminance ~165), so grayscale alone
   leaves it too pale against the band. Knock it down to match the others. */
.ht-band-logos li:nth-child(5) img {
  filter: grayscale(1) brightness(0.55) contrast(1.4);
}

.ht-band-logos li:hover img {
  opacity: 1;
  filter: grayscale(0);
}

/* --------------------------------------------------------------------------
   Section heads
   -------------------------------------------------------------------------- */

.ht-section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 48px;
}

.ht-section-head h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.06;
}

.ht-section-head p {
  margin-top: 6px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ht-body);
}

/* --------------------------------------------------------------------------
   What we build
   -------------------------------------------------------------------------- */

.ht-cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ht-cap {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--ht-ink);
  border-radius: 22px;
  overflow: hidden;
  background: var(--ht-card);
}

.ht-cap-wide {
  grid-column: span 2;
}

.ht-cap-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--ht-media);
  border-bottom: 2px solid var(--ht-ink);
  overflow: hidden;
}

.ht-cap-media-wide {
  aspect-ratio: 16 / 6;
}

.ht-cap-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ht-cap h3 {
  font-size: 24px;
  letter-spacing: -0.02em;
  padding: 22px 24px;
}

/* --------------------------------------------------------------------------
   Testimonials (dark)
   -------------------------------------------------------------------------- */

.ht-dark {
  margin-top: clamp(64px, 8vw, 104px);
  background: var(--ht-ink);
  color: #F1F5F4;
  padding: clamp(64px, 8vw, 96px) 0;
}

.ht-dark-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 56px;
}

.ht-dark-head h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.06;
}

.ht-dark-head p {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ht-dark-muted);
}

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

.ht-quote {
  margin: 0;
  padding: 36px;
  border: 1px solid var(--ht-dark-line);
  border-radius: 22px;
  background: var(--ht-dark-card);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ht-quote blockquote {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  color: #F1F5F4;
  text-wrap: pretty;
}

.ht-quote figcaption {
  margin-top: auto;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ht-dark-muted);
  border-top: 1px solid var(--ht-dark-line);
  padding-top: 20px;
}

.ht-quote figcaption strong {
  display: block;
  color: var(--ht-mint);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Projects
   -------------------------------------------------------------------------- */

.ht-projects-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  margin-bottom: 48px;
}

.ht-projects-head h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.06;
  margin-bottom: 18px;
}

.ht-projects-head p {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ht-body);
  max-width: 640px;
}

.ht-project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.ht-page .ht-project {
  border: 2px solid var(--ht-ink);
  border-radius: 24px;
  overflow: hidden;
  background: var(--ht-card);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ht-page .ht-project:hover,
.ht-page .ht-project:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 0 -4px var(--ht-mint);
}

.ht-project-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-bottom: 2px solid var(--ht-ink);
  background: var(--ht-media);
  overflow: hidden;
}

.ht-project-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ht-project-body {
  padding: 28px;
}

.ht-project-body h3 {
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.ht-project-body p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ht-body);
}

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

.ht-pull {
  margin: 0;
  padding: 40px 44px;
  background: var(--ht-green);
  color: #F1F5F4;
  border-radius: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}

.ht-pull blockquote {
  margin: 0;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(21px, 2.2vw, 27px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.ht-pull figcaption {
  font-size: 15px;
  line-height: 1.5;
  color: #BFD8CF;
  max-width: 190px;
}

.ht-steps {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ht-step {
  padding: 28px;
  border: 2px solid var(--ht-ink);
  border-radius: 20px;
  background: var(--ht-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 230px;
}

.ht-step-accent {
  background: var(--ht-mint);
}

.ht-step-num {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--ht-blue);
}

.ht-step h3 {
  font-size: 25px;
  letter-spacing: -0.02em;
}

.ht-step p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ht-body);
}

.ht-step-accent p {
  color: #0B2E2A;
}

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

.ht-contact {
  padding-bottom: clamp(72px, 9vw, 112px);
}

.ht-contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: start;
}

.ht-contact-text {
  position: sticky;
  top: 110px;
}

.ht-contact-text h2 {
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.07;
  margin-bottom: 24px;
}

.ht-contact-text p {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ht-body);
  margin-bottom: 28px;
}

.ht-contact-note {
  font-size: 17px !important;
  color: var(--ht-muted) !important;
  border-left: 3px solid var(--ht-mint);
  padding-left: 18px;
  margin-bottom: 0 !important;
}

.ht-form {
  background: var(--ht-card);
  border: 2px solid var(--ht-ink);
  border-radius: 28px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.ht-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
}

.ht-form-full {
  grid-column: 1 / -1;
}

.ht-form input,
.ht-form textarea {
  font: inherit;
  font-weight: 400;
  color: var(--ht-ink);
  padding: 14px 16px;
  border: 2px solid var(--ht-field-line);
  border-radius: 12px;
  background: var(--ht-bg);
  width: 100%;
}

.ht-form textarea {
  resize: vertical;
}

.ht-form input::placeholder,
.ht-form textarea::placeholder {
  color: var(--ht-faint);
  opacity: 1;
}

.ht-form input:focus,
.ht-form textarea:focus {
  border-color: var(--ht-green);
  background: var(--ht-card);
  outline: none;
}

.ht-form-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

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

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1000px) {
  .ht-hero-inner,
  .ht-section-head,
  .ht-dark-head,
  .ht-contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ht-hero-media {
    aspect-ratio: 16 / 10;
    max-width: 620px;
  }

  .ht-contact-text {
    position: static;
  }

  .ht-band-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ht-band-label {
    max-width: none;
  }

  .ht-band-logos {
    justify-content: flex-start;
  }

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

  .ht-cap-wide {
    grid-column: span 2;
  }

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

@media (max-width: 720px) {
  .ht-wrap {
    padding: 0 20px;
  }

  .ht-lede {
    font-size: 19px;
  }

  .ht-cap-grid,
  .ht-quote-grid,
  .ht-project-grid,
  .ht-steps {
    grid-template-columns: 1fr;
  }

  .ht-cap-wide {
    grid-column: span 1;
  }

  .ht-cap-media-wide {
    aspect-ratio: 4 / 3;
  }

  .ht-projects-head {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .ht-pull {
    grid-template-columns: 1fr;
    padding: 32px 28px;
    align-items: start;
  }

  .ht-pull figcaption {
    max-width: none;
  }

  .ht-form {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }

  .ht-step {
    min-height: 0;
  }

  .ht-btn-primary,
  .ht-btn-outline {
    font-size: 17px;
    padding: 14px 26px;
  }
}
