/* =============================================================
   IT services page (it.html) - same design DNA as the profile,
   the "second side of the coin".
   ============================================================= */

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 540px;
  display: flex; align-items: center; justify-content: center;
  padding: 130px 30px 80px;
  background: var(--ink);
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('/images/hero-dna3d.jpg') center / cover no-repeat;
  background-image: image-set(url('/images/hero-dna3d.webp') type('image/webp'), url('/images/hero-dna3d.jpg') type('image/jpeg'));
}
@media (max-width: 767px) {
  .hero-bg { background-image: image-set(url('/images/hero-dna3d-m.webp') type('image/webp'), url('/images/hero-dna3d-m.jpg') type('image/jpeg')); }
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 23, 45, .30) 0%, rgba(21, 72, 123, .62) 60%, rgba(21, 72, 123, .70) 100%);
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 820px; width: 100%; }
.hero-eyebrow {
  font-family: 'Roboto', sans-serif; font-weight: 500;
  font-size: 13px; letter-spacing: .32em; text-transform: uppercase;
  color: rgba(255, 255, 255, .88);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(36px, 5.6vw, 64px);
  letter-spacing: .03em; text-transform: uppercase; line-height: 1.1;
  color: #FFFFFF;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.hero-lede {
  max-width: 700px; margin: 20px auto 0;
  font-size: clamp(15px, 1.5vw, 18px); line-height: 1.6;
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.hero-actions { position: absolute; top: 28px; left: 30px; z-index: 3; display: flex; gap: 10px; }
.hero-actions .btn { padding: 11px 20px; font-size: 12.5px; box-shadow: 0 4px 14px rgba(0, 23, 45, .28); }
.hero-actions .btn svg.back { transform: scaleX(-1); }
.hero-cta { margin-top: 30px; }
.hero-cta .btn { background: #FFFFFF; border-color: #FFFFFF; color: var(--blue); }
.hero-cta .btn:hover { background: var(--blue-tint); border-color: var(--blue-tint); color: var(--blue-deep); }
@media (max-width: 1100px) {
  .hero-actions { display: none; }
  .hero { padding-top: 80px; }
}
@media (max-width: 1024px) { .hero { min-height: 480px; padding: 70px 28px 70px; } }
@media (max-width: 767px) {
  .hero { min-height: 0; padding: 60px 20px 64px; }
  .hero-eyebrow { font-size: 11px; letter-spacing: .22em; margin-bottom: 12px; }
}

/* ---------- intro ---------- */
.intro { max-width: 820px; margin: 0 auto; }
.intro .lead {
  font-family: 'Roboto Slab', serif; font-style: italic;
  font-size: 18px; line-height: 1.6;
  color: var(--blue-deep);
  padding-bottom: 20px; margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.intro p { color: var(--ink-2); }

/* ---------- services: numbered two-column list ---------- */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; max-width: 1040px; margin: 0 auto; counter-reset: svc; list-style: none; }
.services li {
  counter-increment: svc;
  display: grid; grid-template-columns: 52px 1fr; gap: 0 16px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.services li::before {
  content: counter(svc, decimal-leading-zero);
  grid-row: span 2;
  font-family: 'Roboto', sans-serif; font-weight: 600;
  font-size: 28px; line-height: 1; letter-spacing: .02em;
  color: var(--blue-bright);
}
.services h3 { font-size: 18px; margin-bottom: 6px; }
.services p { color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 800px) { .services { grid-template-columns: 1fr; } }

/* ---------- use cases: icon panel cards ---------- */
.use-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 1140px; margin: 0 auto; }
.use-case {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.use-case:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue); }
.use-case .icon-panel { display: flex; align-items: center; justify-content: center; min-height: 140px; background: var(--blue-deep); }
.use-case .icon-panel svg { width: 64px; height: 64px; fill: #FFFFFF; }
.use-case .body { flex: 1; padding: 26px 26px 28px; }
.use-case h3 { text-align: center; font-size: 18px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 2px solid var(--blue-tint); }
.use-case p { font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.use-case p.result { color: var(--blue-deep); font-weight: 500; margin-bottom: 0; }
@media (max-width: 960px) { .use-cases { grid-template-columns: 1fr; max-width: 600px; } }
@media (max-width: 767px) { .use-case .icon-panel { min-height: 92px; } .use-case .icon-panel svg { width: 44px; height: 44px; } }

/* ---------- process: 4 steps with arrow connectors ---------- */
.process-strip { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1180px; margin: 0 auto; list-style: none; }
.process-step { position: relative; text-align: center; padding: 22px 22px; }
.process-step .icon {
  width: 92px; height: 92px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--blue-deep); border-radius: 50%;
  background: var(--paper);
  transition: background .2s, transform .2s var(--ease);
}
.process-step .icon svg { width: 44px; height: 44px; fill: var(--blue-deep); transition: fill .2s; }
.process-step:hover .icon { background: var(--blue-deep); transform: translateY(-2px); }
.process-step:hover .icon svg { fill: #FFFFFF; }
.process-step .step-num { font-family: 'Roboto', sans-serif; font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-deep); margin-bottom: 4px; }
.process-step h3 { font-size: 17px; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 10px; }
.process-step p { font-size: 14px; color: var(--ink-2); max-width: 250px; margin: 0 auto; }
.process-step:not(:last-child)::after { content: ''; position: absolute; top: 68px; right: -14px; width: 28px; height: 2px; background: var(--blue-deep); }
.process-step:not(:last-child)::before { content: ''; position: absolute; top: 62px; right: -14px; z-index: 1; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 10px solid var(--blue-deep); }
@media (max-width: 1024px) {
  .process-strip { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .process-step:not(:last-child)::after, .process-step:not(:last-child)::before { display: none; }
}
@media (max-width: 560px) {
  .process-strip { grid-template-columns: 1fr; gap: 4px; }
  .process-step { display: grid; grid-template-columns: 64px 1fr; gap: 0 16px; text-align: left; padding: 16px 0; border-top: 1px solid var(--line); }
  .process-step .icon { grid-row: span 3; width: 60px; height: 60px; margin: 0; }
  .process-step .icon svg { width: 30px; height: 30px; }
  .process-step p { max-width: none; margin: 0; }
}

/* ---------- background: why a biotechnologist builds your tools ---------- */
.background { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: center; max-width: 980px; margin: 0 auto; }
.background .portrait { width: 220px; height: 220px; border-radius: 50%; overflow: hidden; border: 5px solid var(--blue); box-shadow: 0 0 0 8px #FFFFFF, var(--shadow-md); }
.background .portrait img { width: 100%; height: 100%; object-fit: cover; }
.background h2 { margin-bottom: 16px; }
.background p { color: var(--ink-2); }
.background .facts { list-style: none; margin: 18px 0 22px; display: grid; gap: 8px; }
.background .facts li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--ink); }
.background .facts li::before { content: ''; position: absolute; left: 2px; top: .72em; width: 8px; height: 2px; background: var(--blue); }
@media (max-width: 800px) {
  .background { grid-template-columns: 1fr; gap: 28px; text-align: left; }
  .background .portrait { width: 160px; height: 160px; margin: 0 auto; }
}

/* ---------- contact ---------- */
.contact-block { max-width: 720px; margin: 0 auto; text-align: center; }
.contact-block .quote { margin: 0 0 30px; padding-bottom: 28px; border-bottom: 1px solid var(--line); font-size: 16px; }
.contact-block p { color: var(--ink-2); }
.contact-block .btn-row { margin-top: 26px; }

/* ---------- hero title: long keyword title must never overflow ---------- */
.hero h1 { font-size: clamp(30px, 5vw, 58px); overflow-wrap: break-word; hyphens: manual; }
@media (max-width: 480px) { .hero h1 { font-size: 27px; letter-spacing: .01em; } }

/* ---------- FAQ (details/summary, no JS) ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 56px 18px 22px;
  font-family: 'Roboto', sans-serif; font-weight: 600; font-size: 16px; line-height: 1.4; color: var(--blue);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item p { padding: 0 22px 20px; margin: 0; color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 767px) { .faq-item summary { font-size: 15px; padding: 16px 48px 16px 18px; } .faq-item p { padding: 0 18px 18px; } }
