/* Miracle Info Systems — main stylesheet
   Colours are defined once here. Change a value to restyle the whole site. */
:root {
  --ink: #1D2E3A;
  --ink-soft: #4A5B67;
  --teal: #2C6E72;
  --teal-deep: #1F5458;
  --mist: #F3F6F8;
  --sky: #DCEAF0;
  --saffron: #E2A43A;
  --saffron-soft: #FBEBCD;
  --mint: #DDEFE7;
  --lavender: #E7E4F4;
  --peach: #FBE4D5;
  --line: #D9E2E8;
  --white: #FFFFFF;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:hover { color: var(--teal-deep); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 36em; }
.muted { color: var(--ink-soft); }

.container { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--white { background: var(--white); }
.section--tight { padding: 3rem 0; }
.section-head { max-width: 640px; margin-bottom: 2.75rem; }
.section-head p { color: var(--ink-soft); }
.kicker {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600; font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
  font-family: var(--font-body);
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--teal); color: var(--white); }
.btn--primary:hover { background: var(--teal-deep); color: var(--white); }
.btn--warm { background: var(--saffron); color: var(--ink); }
.btn--warm:hover { background: #CF9228; color: var(--ink); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 246, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand img { width: 42px; height: 42px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.1; }
.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 500;
  padding: 0.5rem 0.9rem; border-radius: 999px;
}
.nav a:hover { background: var(--sky); color: var(--ink); }
.nav a.active { background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.nav .hiring { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--saffron); margin-left: 6px; vertical-align: middle; }
.nav .btn { margin-left: 0.6rem; padding: 0.6rem 1.2rem; }
.nav a.btn--primary, .nav a.btn--primary:hover { color: var(--white); }
.nav .btn:hover { background: var(--teal-deep); }
.menu-toggle { display: none; background: none; border: 0; padding: 0.5rem; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 28px; height: 28px; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--white); padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.85rem 1rem; }
  .nav .btn { margin: 0.5rem 0 0; justify-content: center; }
}

/* Hero */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { max-width: 12em; }
.hero .lead { margin-bottom: 2rem; }
.hero-art { position: relative; }
.hero-art img { width: 100%; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { max-width: 560px; } }

/* Hiring strip */
.hiring-strip { background: var(--ink); color: var(--white); }
.hiring-strip .container { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.5rem; padding: 1.4rem 0; }
.hiring-strip strong { font-family: var(--font-display); font-size: 1.15rem; margin-right: 0.5rem; }
.hiring-strip a {
  color: var(--white); text-decoration: none;
  border: 1px solid rgba(255,255,255,.3); border-radius: 999px;
  padding: 0.4rem 1rem; font-size: 0.95rem;
}
.hiring-strip a:hover { background: var(--saffron); border-color: var(--saffron); color: var(--ink); }

/* Page header (inner pages) */
.page-hero { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.page-hero-art { background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem; border: 1px solid var(--line); }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: 1fr; } .page-hero-art { max-width: 520px; } }

/* Service tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.tiles--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .tiles, .tiles--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tiles, .tiles--3 { grid-template-columns: 1fr; } }
.tile {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem 1.5rem;
  text-decoration: none; color: var(--ink);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(29, 46, 58, .45); border-color: transparent; color: var(--ink); }
.tile-icon {
  width: 54px; height: 54px; border-radius: 16px;
  display: grid; place-items: center; margin-bottom: 1.25rem;
  transition: background-color .25s, color .25s;
  color: var(--teal-deep);
}
.tile-icon svg { width: 26px; height: 26px; }
.tile:hover .tile-icon { background: var(--saffron) !important; color: var(--ink); }
.tile h3 { margin-bottom: 0.5rem; }
.tile p { color: var(--ink-soft); font-size: 0.98rem; flex: 1; }
.tile-link { font-weight: 600; color: var(--teal); font-size: 0.95rem; display: inline-flex; align-items: center; gap: 0.35rem; }
.tile-link svg { width: 16px; height: 16px; }
.tile--featured { background: var(--sky); border-color: var(--sky); }
.bg-sky { background: var(--sky); } .bg-mint { background: var(--mint); }
.bg-lavender { background: var(--lavender); } .bg-peach { background: var(--peach); }
.tile--featured .tile-icon { background: var(--white); }

.badge {
  display: inline-block; font-size: 0.8rem; font-weight: 600;
  background: var(--saffron-soft); color: #7A5310;
  padding: 0.25rem 0.7rem; border-radius: 999px;
}

/* Tech badges */
.tech-list { display: flex; flex-wrap: wrap; gap: 0.7rem; list-style: none; padding: 0; margin: 0; }
.tech-list li {
  background: var(--white); border: 1px solid var(--line);
  padding: 0.55rem 1.1rem; border-radius: 999px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.tech-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.tech-list li:nth-child(3n+2)::before { background: var(--saffron); }
.tech-list li:nth-child(3n)::before { background: #8C80C9; }

/* Split / intro */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 2rem; } }
.art-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); padding: 1.5rem; }

/* Careers band (home) */
.careers-band {
  background: var(--teal-deep); color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 5vw, 3.75rem);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center;
}
.careers-band h2, .careers-band h3 { color: var(--white); }
.careers-band p { color: #D3E4E5; }
.role-links { display: grid; gap: 0.7rem; }
.role-links a {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  color: var(--white); text-decoration: none; padding: 0.9rem 1.2rem; border-radius: var(--radius-sm);
  font-weight: 500;
}
.role-links a:hover { background: var(--saffron); color: var(--ink); border-color: var(--saffron); }
.role-links svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .careers-band { grid-template-columns: 1fr; } }

/* CTA strip */
.cta-strip {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.cta-strip h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 0.3rem; }
.cta-strip p { margin: 0; color: var(--ink-soft); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.timeline::before {
  content: ""; position: absolute; top: 26px; left: 26px; right: calc(25% - 30px); height: 2px;
  background: repeating-linear-gradient(90deg, var(--teal) 0 8px, transparent 8px 14px);
}
.timeline li { position: relative; padding-top: 4.5rem; }
.timeline .step {
  position: absolute; top: 0; left: 0;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--teal);
  display: grid; place-items: center; color: var(--teal-deep);
}
.timeline .step svg { width: 24px; height: 24px; }
.timeline li:last-child .step { background: var(--saffron); border-color: var(--saffron); color: var(--ink); }
.timeline .period { font-weight: 700; color: var(--teal); font-size: 0.95rem; display: block; margin-bottom: 0.35rem; }
.timeline h3 { font-size: 1.15rem; }
.timeline p { color: var(--ink-soft); font-size: 0.98rem; }
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { top: 26px; bottom: 26px; left: 26px; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--teal) 0 8px, transparent 8px 14px); }
  .timeline li { padding: 0 0 2rem 5rem; }
}

/* Values */
.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.values div { background: var(--white); padding: 1.5rem; }
.values h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.values p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 1000px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .values { grid-template-columns: 1fr; } }

.mission { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 3rem; }
.mission > div { border-radius: var(--radius-md); padding: 2rem; }
.mission h3 { font-size: 1.4rem; }
.mission p { margin: 0; color: var(--ink-soft); }
@media (max-width: 700px) { .mission { grid-template-columns: 1fr; } }

/* Founder note */
.founder {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3rem; align-items: center;
}
.founder blockquote { margin: 0; }
.founder blockquote p:first-child { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.25; letter-spacing: -0.015em; color: var(--ink); }
.founder blockquote p { color: var(--ink-soft); }
.founder cite { font-style: normal; font-weight: 600; color: var(--ink); display: block; margin-top: 1.25rem; }
@media (max-width: 900px) { .founder { grid-template-columns: 1fr; } }

/* Trusted by (hidden until logos are added) */
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }

/* Benefits */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.benefit { background: var(--white); border-radius: var(--radius-md); padding: 1.6rem; border: 1px solid var(--line); }
.benefit .tile-icon { margin-bottom: 1rem; }
.benefit p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }
.benefit--wide { grid-column: span 2; display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; background: var(--sky); border-color: var(--sky); }
.benefit--wide .tile-icon { background: var(--white); }
@media (max-width: 900px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .benefits { grid-template-columns: 1fr; } .benefit--wide { grid-column: auto; grid-template-columns: 1fr; } }

/* Role cards */
.roles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 800px) { .roles { grid-template-columns: 1fr; } }
.role {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 1.75rem; display: flex; flex-direction: column; gap: 0.9rem;
  transition: box-shadow .25s, transform .25s;
}
.role:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(29,46,58,.45); }
.role-top { display: flex; gap: 1rem; align-items: center; }
.role-top .tile-icon { margin: 0; flex: none; }
.role h3 { margin: 0; }
.role p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.93rem; color: var(--ink-soft); }
.meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.meta svg { width: 16px; height: 16px; color: var(--teal); }
.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tags span { font-size: 0.85rem; background: var(--mist); border: 1px solid var(--line); padding: 0.2rem 0.7rem; border-radius: 999px; }
.role .btn { align-self: flex-start; margin-top: 0.4rem; }

/* Process */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: step; }
.process li { background: var(--white); border-radius: var(--radius-md); padding: 1.4rem; border: 1px solid var(--line); counter-increment: step; font-weight: 600; }
.process li::before {
  content: counter(step); display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: var(--white);
  font-family: var(--font-display); margin-bottom: 0.9rem;
}
.process li:last-child::before { background: var(--saffron); color: var(--ink); }
.process small { display: block; font-weight: 400; color: var(--ink-soft); margin-top: 0.3rem; font-size: 0.9rem; }
@media (max-width: 900px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .process { grid-template-columns: 1fr; } }

/* FAQ + collapsibles */
.faq { max-width: 820px; }
details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}
summary {
  cursor: pointer; list-style: none; padding: 1.1rem 1.3rem;
  font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary .chev { width: 20px; height: 20px; flex: none; transition: transform .25s; color: var(--teal); }
details[open] summary .chev { transform: rotate(180deg); }
details .details-body { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); }
details .details-body ul { margin: 0; padding-left: 1.2rem; }
details .details-body li { margin-bottom: 0.45rem; }

/* Job page */
.back-link svg { width: 18px; height: 18px; }
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none; font-weight: 600; margin-bottom: 1.5rem; }
.job-summary {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 1.75rem; display: grid; gap: 1.1rem;
}
.job-summary dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.job-summary dt { font-size: 0.88rem; color: var(--ink-soft); }
.job-summary dd { margin: 0; font-weight: 600; }
@media (max-width: 600px) { .job-summary dl { grid-template-columns: 1fr; } }
.job-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 900px) { .job-layout { grid-template-columns: 1fr; } }
.job-layout .sticky { position: sticky; top: 100px; }

/* Remote diagram */
.remote { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); padding: clamp(1.75rem, 4vw, 3rem); display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: center; }
@media (max-width: 900px) { .remote { grid-template-columns: 1fr; } }

/* Forms */
.form-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4rem; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--mist);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: var(--white); box-shadow: 0 0 0 3px rgba(44,110,114,.15); }
.field input[type="file"] { background: var(--white); border-style: dashed; padding: 1rem; }
.field .hint { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.35rem; }
.field .error { font-size: 0.85rem; color: #B3261E; margin-top: 0.35rem; }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.93rem; color: var(--ink-soft); margin: 1.25rem 0; }
.consent input { margin-top: 0.3rem; width: 18px; height: 18px; accent-color: var(--teal); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Contact details */
.contact-cards { display: grid; gap: 1rem; margin-top: 2rem; }
.contact-card { display: flex; gap: 1rem; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.25rem; }
.contact-card .tile-icon { margin: 0; flex: none; width: 46px; height: 46px; border-radius: 14px; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.contact-card p { margin: 0; color: var(--ink-soft); }

/* Prose (privacy) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.25rem; }
.prose ul { padding-left: 1.2rem; }

/* Footer */
.site-footer { background: var(--ink); color: #C9D4DB; padding: 4rem 0 2rem; margin-top: 0; }
.site-footer a { color: #C9D4DB; text-decoration: none; }
.site-footer a:hover { color: var(--saffron); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.5rem; }
.footer-grid h3 { color: var(--white); font-size: 1.05rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.footer-brand span { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--white); }
.footer-brand img { width: 40px; height: 40px; }
.footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--saffron); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding-top: 1.5rem; font-size: 0.9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

/* Thank-you */
.center-card { max-width: 620px; margin: 0 auto; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); }
.center-card .tile-icon { margin: 0 auto 1.25rem; background: var(--mint); }
.center-card .btn-row { justify-content: center; }

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

/* Benefits: featured first card */
.benefit--featured { background: var(--sky); border-color: var(--sky); }
.benefit--featured .tile-icon { background: var(--white); }

/* Trusted by */
.trusted { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 1.5rem; }
.trusted-card { margin: 0; background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.5rem; }
.logo-slot { height: 120px; border-radius: var(--radius-sm); background: var(--white); display: grid; place-items: center; padding: 1rem; margin-bottom: 1rem; border: 1px dashed var(--line); }
.logo-slot span { color: var(--ink-soft); font-weight: 600; }
.logo-slot img { max-height: 70px; max-width: 100%; width: auto; }
.trusted-card figcaption { font-size: 0.92rem; font-weight: 600; color: var(--teal); }
@media (max-width: 640px) { .trusted { grid-template-columns: 1fr; } }

/* Photo slots: show a photo from assets/img/photos/, or the illustration if no photo is uploaded */
.photo-frame { border-radius: var(--radius-lg); overflow: hidden; background: var(--white); border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame--portrait img { object-position: center 25%; }
.photo-frame.is-illustration { padding: 1.5rem; }
.photo-frame.is-illustration img { object-fit: contain; }
.photo-frame--hero { aspect-ratio: 7 / 6; }
.photo-frame--hero.is-illustration { padding: 0; border: 0; background: transparent; }
@media (max-width: 900px) { .photo-frame { max-width: 560px; } }

/* Hiring steps on job pages */
.job-steps { list-style: none; padding: 0; margin: 0; counter-reset: js; display: grid; gap: 0.75rem; }
.job-steps li { counter-increment: js; display: grid; grid-template-columns: 36px 1fr; column-gap: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.2rem; }
.job-steps li::before { content: counter(js); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; background: var(--teal); color: var(--white); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }
.job-steps li:nth-child(3) { background: var(--sky); border-color: var(--sky); }
.job-steps li:nth-child(3)::before { background: var(--saffron); color: var(--ink); }
.job-steps span { color: var(--ink-soft); font-size: 0.97rem; }

/* Healthcare focus tile */
.tile--focus { border-color: var(--saffron); box-shadow: inset 0 0 0 1px var(--saffron); }

/* Job summary extras */
.job-summary .dl-full { grid-column: 1 / -1; }
.job-summary .key-label { margin: 0; font-size: 0.88rem; color: var(--ink-soft); }
.details-body strong, .job-layout p strong { color: var(--ink); font-weight: 700; }

/* Founder note */
.founder .photo-frame--portrait { aspect-ratio: 4 / 5; max-width: 440px; }
.founder .kicker { margin-bottom: 1rem; }

/* Client logos: keep full colour so the brands are recognisable */
.logo-slot { border-style: solid; }
.job-summary .dl-full dd { font-weight: 500; font-size: 0.97rem; color: var(--ink-soft); }

/* Tile header: icon on the left, label on the right */
.tile-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; margin-bottom: 1.25rem; }
.tile-top .tile-icon { margin-bottom: 0; }
.tile-top .badge { margin-top: 0.3rem; white-space: nowrap; }

/* Founder signature */
.founder cite .cite-name { font-weight: 700; color: var(--ink); }
.founder cite .cite-title { font-weight: 400; color: var(--ink-soft); }

/* Work schedule: full width, label above value */
.job-summary .dl-full { grid-column: 1 / -1; padding-top: 1rem; border-top: 1px solid var(--line); }
.job-summary .dl-full dt { margin-bottom: 0.25rem; }
