/* ==========================================================================
	Fix for AI faulty coding. CSS overrides the browser built-in hidden
   ========================================================================== */
[hidden] { display: none !important; }

/* ==========================================================================
   Translate Health — shared stylesheet
   Palette values are pulled from the Translate Health logo.
   Flat UI only. The navy-to-cyan gradient lives in the logo and nowhere else.
   ========================================================================== */

:root {
  --ink-navy:  #16203F;
  --deep-navy: #1B2A4A;
  --blue:      #244A86;
  --cyan:      #3BD6E8;
  --bg:        #FFFFFF;
  --bg-alt:    #EDF1F5;
  --muted:     #56637A;
  --line:      #D6DEE7;
  --white:     #FFFFFF;
  /* Brand cyan is too light for text on the warm background.
     This is the same hue held back to a value that clears WCAG AA on white. */
  --cyan-ink:  #0A7080;

  /* Display is a Franklin Gothic revival: newspaper masthead authority, set
     heavy and tight. Body is Plex Sans, drawn for a technology and engineering
     company, which is the register this firm actually works in. Figures are
     set in Plex Mono because the numbers here are capital numbers and want
     tabular alignment. */
  --display: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --body:    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1120px;
  --measure: 68ch;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-navy);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 4px; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--ink-navy); color: var(--white);
  padding: 12px 20px; z-index: 100;
}
.skip:focus { left: 16px; top: 16px; }

/* --------------------------------------------------------------- type ---- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.7rem, 6.2vw, 4.5rem); font-weight: 800; }

/* The brand sets the operative word in cyan. Carried through here. */
.em { color: var(--cyan-ink); font-style: normal; }
.band-dark .em, .action .em, .site-footer .em { color: var(--cyan); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.55rem); }
h3 { font-size: 1.18rem; font-weight: 600; letter-spacing: -0.012em; line-height: 1.25; }

p { margin: 0 0 1.15em; max-width: var(--measure); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 20px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--cyan);
  flex: none;
  transform: translateY(-1px);
}

.lede {
  font-size: 1.22rem;
  line-height: 1.6;
  color: var(--deep-navy);
}

.small { font-size: 0.92rem; color: var(--muted); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

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

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { height: 42px; width: auto; }

/* The supplied logo is a vertical lockup, so the header uses the mark on its
   own and sets the wordmark in the display face beside it at a readable size. */
.brand-text {
  font-family: var(--display);
  font-size: 1.16rem;
  font-weight: 700;
  color: var(--ink-navy);
  letter-spacing: -0.022em;
  white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--deep-navy);
  text-decoration: none;
}
.site-nav a:hover { color: var(--blue); text-decoration: none; }
.site-nav a.current { color: var(--blue); }

.nav-cta {
  background: var(--ink-navy);
  color: var(--white) !important;
  padding: 11px 20px;
  border-radius: 5px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--blue); text-decoration: none; }

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

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

.hero { position: relative; padding-bottom: 0; }
.hero-logo { height: 168px; width: auto; margin-bottom: 38px; }

/* --- The swoosh: the signature curve from the Translate Health collateral.
   Navy fills below the curve, a cyan hairline rides its crest, and a faint
   hexagon field sits inside the navy. It carries the hero into the
   audience bar so the two read as one shape. --- */
.swoosh { display: block; width: 100%; height: auto; margin-top: 70px; }
.swoosh-fill { fill: var(--ink-navy); }
.swoosh-line { fill: none; stroke: var(--cyan); stroke-width: 2.5; }

.hero h1 { max-width: 16ch; margin-bottom: 28px; }

.hero-sub {
  font-size: 1.28rem;
  line-height: 1.55;
  color: var(--deep-navy);
  max-width: 44ch;
  margin-bottom: 40px;
}

/* Brand line, demoted to a kicker above the headline */
.kicker {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 24px;
}
.kicker .em { color: var(--cyan-ink); }

/* --- The offer, in sequence. A hairline runs across the three with a cyan
   node at each, because the order is the point: understand before you
   innovate, innovate before you deliver. --- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 48px;
  margin-top: 52px;
  border-top: 1px solid var(--line);
}
.pillar { padding: 38px 0 0; position: relative; }
.pillar::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  width: 11px;
  height: 11px;
  background: var(--cyan);
  border-radius: 50%;
}
.pillar h3 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink-navy);
  margin-bottom: 14px;
}
.pillar p { margin-bottom: 0; font-size: 1.02rem; }

.rule-cyan {
  width: 64px;
  height: 3px;
  background: var(--cyan);
  border: 0;
  margin: 0 0 36px;
}

/* ------------------------------------------------------ audience switch ---- */

.audience-bar {
  background: var(--ink-navy);
  border-bottom: 1px solid var(--line);
  margin-top: -1px;
  position: relative;
}
/* faint hexagon field, the texture used in the brand collateral */
.audience-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0L56 16v32L28 64 0 48V16z' fill='none' stroke='%233BD6E8' stroke-width='1'/%3E%3C/svg%3E");
  opacity: 0.10;
  pointer-events: none;
}
.audience-inner { position: relative; }

.audience-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  flex-wrap: wrap;
}

.audience-q {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9FA9BE;
  margin: 0;
}

.switch { display: flex; gap: 8px; }

.switch button {
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 600;
  color: #C7CDDB;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.26);
  border-radius: 5px;
  padding: 11px 22px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.switch button:hover { border-color: var(--cyan); color: var(--white); }
.switch button[aria-selected="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink-navy);
}

/* ------------------------------------------------------------ sections ---- */

.band { padding: 88px 0; }
.band-alt { background: var(--bg-alt); }
/* white sections that sit next to each other still need a seam */
.band + .band:not(.band-alt) { border-top: 1px solid var(--line); }
.band-alt + .band:not(.band-alt) { border-top: 0; }

.band-dark {
  background: var(--ink-navy);
  color: #E8EAF0;
  padding: 88px 0;
}
.band-dark h2, .band-dark h3 { color: var(--white); }
.band-dark .eyebrow { color: var(--cyan); }
.band-dark .eyebrow::after { background: rgba(255,255,255,0.18); }
.band-dark p { color: #C7CDDB; }
.band-dark a { color: var(--cyan); }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 64px;
  align-items: start;
}

/* --------------------------------------------------------- practice ------- */

.practice { border-top: 1px solid var(--line); padding: 30px 0; }
.practice:last-of-type { border-bottom: 1px solid var(--line); }
.practice h3 { margin-bottom: 10px; }
.practice p { margin-bottom: 0; }

/* ---------------------------------------------------- capabilities ------- */
/* The three-part shift: data aware, strategically guided, action biased.
   Numbered in mono so the sequence reads as a progression. */
.capabilities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 52px;
  border-top: 1px solid rgba(255,255,255,0.16);
}
.cap {
  padding: 34px 40px 8px 0;
  border-right: 1px solid rgba(255,255,255,0.16);
}
.cap:last-child { border-right: 0; padding-right: 0; }
.cap + .cap { padding-left: 40px; }
.cap-n {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.04em;
}
.cap h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.42rem;
  color: var(--white) !important;
  margin: 12px 0 12px;
}
.cap p { color: #C7CDDB; font-size: 0.98rem; margin-bottom: 0; }

.report-lens { margin-top: 72px; }
.report-lens-lead {
  max-width: 60ch;
  color: #C7CDDB;
  padding-top: 34px;
  border-top: 1px solid rgba(255,255,255,0.16);
}

/* ------------------------------------------------------------- triad ------ */

.triad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-top: 44px;
}

.triad-card {
  background: rgba(255,255,255,0.04);
  border-top: 3px solid var(--cyan);
  padding: 32px 28px 34px;
}
.triad-card h3 {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan) !important;
  margin-bottom: 16px;
}
.triad-card .q {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.26rem;
  line-height: 1.35;
  color: var(--white);
  margin-bottom: 14px;
}
.triad-card p { font-size: 0.95rem; margin-bottom: 0; }

/* ------------------------------------------------------------ clients ----- */

.client-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
  max-width: none;
}
.client-list li {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--deep-navy);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 9px 16px;
  border-radius: 5px;
}

/* ---------------------------------------------------------- logo wall ----- */
/* Logos normalized to a common optical height and rendered in a restrained
   monochrome-until-hover treatment. That reads as a credential rather than a
   boast, and evens out six marks of very different weight and colour. */
.logo-wall {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  max-width: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.logo-wall li {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 34px;
  min-height: 132px;
}
.logo-wall img {
  max-height: 52px;
  max-width: 82%;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.62;
  transition: filter 200ms ease, opacity 200ms ease;
}
.logo-wall li:hover img {
  filter: none;
  opacity: 1;
}
/* SHN mark is supplied at low resolution, so cap it smaller to hide softening */
.logo-wall img[alt^="Scarborough"] { max-height: 40px; }

@media (prefers-reduced-motion: reduce) {
  .logo-wall img { transition: none; }
}

/* -------------------------------------------------------------- tool ------ */

.tool-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  padding: 40px;
}
.tool-card p { margin-bottom: 0; }

/* --------------------------------------------------------- action band ---- */

.action {
  background: var(--deep-navy);
  color: var(--white);
  padding: 84px 0;
  border-top: 4px solid var(--cyan);
  position: relative;
  overflow: hidden;
}
.action::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0L56 16v32L28 64 0 48V16z' fill='none' stroke='%233BD6E8' stroke-width='1'/%3E%3C/svg%3E");
  opacity: 0.07;
  pointer-events: none;
}
.action .wrap { position: relative; }
.action h2 { color: var(--white); margin-bottom: 16px; }
.action .lede { color: #C7CDDB; max-width: 52ch; }

.challenge-form {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 900px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }

.challenge-form label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.challenge-form input,
.challenge-form textarea,
.challenge-form select {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--white);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 5px;
  padding: 13px 15px;
  width: 100%;
}
.challenge-form textarea { min-height: 130px; resize: vertical; }
.challenge-form input::placeholder,
.challenge-form textarea::placeholder { color: rgba(255,255,255,0.42); }
.challenge-form input:focus,
.challenge-form textarea:focus,
.challenge-form select:focus {
  border-color: var(--cyan);
  outline: none;
}
.challenge-form select option { color: var(--ink-navy); }

.btn {
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: var(--cyan);
  color: var(--ink-navy);
  border: 0;
  border-radius: 5px;
  padding: 15px 34px;
  cursor: pointer;
  justify-self: start;
  transition: background 160ms ease;
}
.btn:hover { background: var(--white); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--ink-navy);
  border: 1px solid var(--ink-navy);
  padding: 14px 30px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.95rem;
}
.btn-outline:hover { background: var(--ink-navy); color: var(--white); text-decoration: none; }

.form-note { font-size: 0.86rem; color: #9FA9BE; margin-top: 4px; }

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

.site-footer {
  background: var(--ink-navy);
  color: #9FA9BE;
  padding: 56px 0 44px;
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.site-footer a { color: #C7CDDB; }
.site-footer .tag {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--white);
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }

/* ------------------------------------------------------------- founder ---- */

.founder {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 26px;
  margin-top: 44px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.founder h3 { margin-bottom: 4px; }
.founder .role {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.founder p { font-size: 0.98rem; }

/* --------------------------------------------------------------- team ----- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 48px;
  margin-top: 56px;
}

.bio { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 26px; }

.portrait {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1.24rem;
  color: var(--blue);
  overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }

.bio h3 { margin-bottom: 4px; }
.bio .role {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.bio p { font-size: 0.98rem; }

/* -------------------------------------------------------------- clock ----- */

.clock-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  margin-top: 48px;
}

.controls {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 32px;
}
.controls .field { margin-bottom: 22px; }
.controls label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.controls input,
.controls select {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink-navy);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 12px 14px;
  width: 100%;
}
.controls input:focus, .controls select:focus { border-color: var(--blue); outline: none; }

.btn-row { display: flex; gap: 10px; margin-top: 26px; }
.btn-row .btn { flex: 1; justify-self: stretch; text-align: center; }
.btn-ghost {
  flex: 1;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  background: transparent;
  color: var(--deep-navy);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 15px 20px;
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--ink-navy); }

.readout {
  background: var(--ink-navy);
  color: var(--white);
  padding: 44px 40px;
  border-top: 4px solid var(--cyan);
}
.readout .cap {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.big-number {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  margin: 0 0 8px;
  max-width: none;
}
.delta {
  font-family: var(--mono);
  font-size: 0.94rem;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
  margin: 0;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 40px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.14);
}
.metric { background: var(--ink-navy); padding: 22px 20px; }
.metric .k {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9FA9BE;
  margin-bottom: 8px;
}
.metric .v {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------- responsive ----- */

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .pillars { grid-template-columns: 1fr; gap: 0; }
  .pillar { padding: 34px 0 30px; border-bottom: 1px solid var(--line); }
  .pillar:last-child { border-bottom: 0; padding-bottom: 0; }
  .pillar::before { top: -6px; }
  .triad { grid-template-columns: 1fr; }
  .capabilities { grid-template-columns: 1fr; }
  .cap, .cap + .cap {
    padding: 30px 0 4px;
    border-right: 0;
    border-top: 1px solid rgba(255,255,255,0.16);
  }
  .capabilities { border-top: 0; }
  .team-grid { grid-template-columns: 1fr; gap: 44px; }
  .clock-grid { grid-template-columns: 1fr; gap: 36px; }
  .challenge-form { grid-template-columns: 1fr; }
  .tool-card { grid-template-columns: 1fr; gap: 26px; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 22px; }
  .band, .band-dark, .action { padding: 60px 0; }
  .hero { padding: 60px 0 48px; }
  .site-nav { gap: 18px; }
  .site-nav .hide-sm { display: none; }
  .header-inner { height: 66px; }
  .logo-wall { grid-template-columns: 1fr; }
  .logo-wall li { min-height: 108px; padding: 30px; }
  .hero-logo { height: 116px; margin-bottom: 26px; }
  .brand img { height: 34px; }
  .brand-text { font-size: 1.08rem; }
  .swoosh { margin-top: 44px; }
  .bio, .founder { grid-template-columns: 84px minmax(0, 1fr); gap: 18px; }
  .portrait { width: 84px; height: 84px; font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dialect-fade { animation: none; }
  * { transition: none !important; }
}

@media print {
  .site-header, .action, .audience-bar { display: none; }
}
