/* ============================================================
   MK Innovation Consulting — Design System
   Concept: "The Register" — a ledger-inspired identity that
   grounds the firm's Big4/accounting heritage in its own
   visual language: ref codes, hairline rules, entry rows.
   Palette: corporate navy / blue.
   ============================================================ */


:root {
  --navy: #071A4A;        /* Primary / brand navy */
  --blue: #0066B3;        /* Secondary blue (logo blue) */
  --cyan: #0099D8;        /* Accent blue */
  --gold: #C79A3C;        /* Accent — used sparingly for "extra" moments */
  --paper: #FFFFFF;       /* Background */
  --paper-raised: #F4F8FC; /* Light sections / cards */
  --ink: #172033;         /* Text */
  --ink-soft: #38445C;    /* Softer body text, between ink and slate */
  --slate: #667085;       /* Muted text */
  --line: #DCE5EF;        /* Borders */
  --line-soft: #EAF1F8;   /* Softer border / divider */

  --font-display: 'Fraunces', serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --max-w: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible > * {
  transition-delay: calc(var(--i, 0) * 90ms);
}

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

a { color: inherit; text-decoration: none; }

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

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}


.ref {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate);
  letter-spacing: 0.02em;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(42px, 6.4vw, 68px); font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 3.8vw, 40px); }
h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.005em; }

p { margin: 0 0 1em; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hairline {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

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

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 40;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.topbar.scrolled {
  box-shadow: 0 8px 24px -18px rgba(7,26,74,0.35);
  border-bottom-color: transparent;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 120px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 110px;
  width: auto;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--navy);
  border: 1.5px solid var(--blue);
  border-radius: 3px;
  padding: 2px 8px;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-mono);
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--slate);
  display: none;
}

@media (min-width: 720px) {
  .brand-name { display: inline; }
}

@media (max-width: 640px) {
  .brand-logo { height: 70px; }
  .topbar-inner { min-height: auto; }
}

nav.mainnav {
  display: flex;
  align-items: center;
  gap: 44px;
}

nav.mainnav a {
  font-family: var(--font-mono);
  font-size: 20px;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 3px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

nav.mainnav a:hover,
nav.mainnav a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--cyan);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
}

@media (max-width: 640px) {
  nav.mainnav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 32px 16px;
  }
  nav.mainnav.open { display: flex; }
  nav.mainnav a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .nav-toggle { display: inline-block; }
}

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

.hero {
  padding: 100px 0 76px;
  position: relative;
  overflow: hidden;
}


.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 800px) {
  .hero-split { grid-template-columns: 1fr; }
}



.img-placeholder.wide { aspect-ratio: 4 / 3; }
.img-placeholder.square { aspect-ratio: 1 / 1; }
.img-placeholder img,
.img-placeholder video { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }

/* Hero media gets a subtle offset frame + shadow — the layered look */
.hero .img-placeholder {
  box-shadow: 0 30px 60px -30px rgba(7,26,74,0.28);
}


/* ---------- Media placeholder (video / GIF ready) ----------
   Drop a <video autoplay muted loop playsinline> or <img> with
   class="media-fill" inside any .img-placeholder / .media-placeholder
   to replace the dashed box — sizing & radius are inherited. */
.media-placeholder {
  background: var(--paper-raised);
  border: 1px dashed var(--cyan);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--blue);
  text-align: center;
  line-height: 1.6;
  padding: 12px;
}

.media-placeholder .play-glyph {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--cyan);
}

.media-fill { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }

.hero-ref {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 24px;
}


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

.hero .lede { margin-bottom: 34px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.03em;
  padding: 13px 22px;
  border-radius: 3px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--paper);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -14px rgba(0,102,179,0.55);
}

.btn.ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
  box-shadow: none;
}

.btn.ghost:hover { background: var(--navy); color: var(--paper); box-shadow: 0 14px 28px -14px rgba(7,26,74,0.5); }

/* ---------- Section shell ---------- */

.section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.section-head .eyebrow { margin-bottom: 10px; display: block; }

/* ---------- The Register (signature ledger-row component) ---------- */

.register {
  border-top: 1px solid var(--line);
}

.entry {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.entry.entry-img {
  grid-template-columns: 88px 1fr 200px;
}

.entry.entry-img .img-placeholder { min-height: 140px; }

@media (max-width: 700px) {
  .entry.entry-img { grid-template-columns: 1fr; }
  .entry.entry-img .img-placeholder { max-width: 280px; min-height: 180px; }
}

.entry {
  transition: background 0.25s ease, padding-left 0.25s ease;
}

.entry:hover {
  background: linear-gradient(90deg, var(--paper-raised), transparent);
}

.entry-code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--blue);
  padding-top: 4px;
}

.entry-code.big {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  font-style: italic;
  /* Fallback fill for browsers that ignore -webkit-text-stroke
     (older Android WebViews render this solid instead of outlined) */
  color: var(--cyan);
  padding-top: 0;
}

/* Outline effect only where text-stroke is actually supported */
@supports (-webkit-text-stroke: 1px black) or (text-stroke: 1px black) {
  .entry-code.big {
    color: var(--line);
    -webkit-text-stroke: 1px var(--cyan);
    text-stroke: 1px var(--cyan);
  }
}

.entry-body h3 { margin-bottom: 8px; }

.entry-body ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--slate);
  font-size: 15px;
  line-height: 1.7;
}

.entry-body ul li { margin-bottom: 2px; }

.entry-body p { color: var(--slate); font-size: 15px; max-width: 62ch; }

@media (max-width: 560px) {
  .entry { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Two/three column blocks ---------- */

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

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 44px -28px rgba(7,26,74,0.35);
  border-color: var(--cyan);
}

.card-img {
  height: 190px;
  margin: -28px -28px 20px -28px;
  border-radius: 4px 4px 0 0;
}

.card h3 { margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--slate); }

/* ---------- Stats bar ---------- */

.stats-bar {
  background: var(--navy);
  padding: 40px 0;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 600;
  color: var(--paper);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9BB3D9;
  margin-top: 8px;
}

/* ---------- Sponsors & Certifications strip ---------- */

.logos-band {
  background: var(--paper-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 48px 0;
}

.logos-band .section-head { margin-bottom: 28px; }

.logos-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 20px;
}

/* ---------- Service detail expander ---------- */

.expander {
  margin-top: 16px;
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
}

.expander summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--blue);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.expander summary::-webkit-details-marker { display: none; }

.expander summary::after {
  content: '+';
  margin-left: auto;
  font-size: 16px;
  color: var(--cyan);
  transition: transform 0.25s ease;
}

.expander[open] summary::after { transform: rotate(45deg); }

.expander-body {
  padding-top: 14px;
  display: grid;
  gap: 10px;
}

.expander-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  font-size: 14px;
}

.expander-row .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate);
}

.expander-row .value {
  color: var(--ink-soft);
}

/* ---------- Industries We Serve ---------- */

.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

.industry-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.industry-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 44px -28px rgba(7,26,74,0.35);
  border-color: var(--cyan);
}

.industry-card .media-placeholder {
  aspect-ratio: 4 / 3;
  border: none;
  border-radius: 0;
  border-bottom: 1px dashed var(--line);
}

.industry-card .industry-label {
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-align: center;
}

/* ---------- Testimonials ---------- */

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background: var(--paper-raised);
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 26px;
}

.testimonial-card .quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 14px;
}

.testimonial-card .attribution {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--slate);
}

/* ---------- Pull note ---------- */

.pull {
  border-left: 3px solid var(--cyan);
  padding-left: 24px;
  margin: 8px 0;
}

.pull p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  max-width: 48ch;
}

/* ---------- Subscribe / CTA band ---------- */

.band {
  background: var(--navy);
  color: var(--paper);
  padding: 56px 0;
}

.band h2 { color: var(--paper); }
.band p { color: #AFC1D9; }

.band-row {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.field-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

input[type="email"], input[type="text"], textarea {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  color: var(--ink);
  width: 100%;
  min-width: 0;
}

.band input[type="email"] {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.3);
  color: var(--paper);
  min-width: 260px;
}

.band input[type="email"]::placeholder { color: #90A0BB; }

textarea { width: 100%; min-height: 140px; resize: vertical; font-family: var(--font-body); }

label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slate);
  display: block;
  margin-bottom: 6px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}

.field { margin-bottom: 20px; }

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

footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer-logo {
  height: 110px;
  width: auto;
}

.footer-col .eyebrow { margin-bottom: 12px; }
.footer-col a, .footer-col p { font-size: 14px; color: var(--slate); display: block; margin-bottom: 6px; }
.footer-col a:hover { color: var(--blue); }

.copyright {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate);
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}

/* ---------- Team ---------- */

.team-card {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  transition: background 0.25s ease;
}

.team-card:hover { background: linear-gradient(90deg, var(--paper-raised), transparent); }

.team-card:last-child { border-bottom: 1px solid var(--line); }

.avatar {
  width: 160px;
  height: 160px;
  border-radius: 4px;
  background: var(--paper-raised);
  border: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--slate);
  text-align: center;
  line-height: 1.4;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 560px) {
  .team-card { grid-template-columns: 1fr; }
  .avatar { width: 100%; height: auto; aspect-ratio: 1 / 1; }
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--blue);
  background: rgba(0,102,179,0.09);
  border-radius: 3px;
  padding: 3px 8px;
  margin-top: 6px;
}

.media-placeholder:has(img),
.media-placeholder:has(video) {
  border: none;
  padding: 0;
  background: none;
}

/* ---------- Certifications strip ---------- */

.cert-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.cert-slot {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.cert-slot:hover {
  border-color: var(--cyan);
  box-shadow: 0 20px 40px -24px rgba(7,26,74,0.3);
}

.cert-slot img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Temporarily hidden until real content is provided */
.testimonials-section,
.expander,
.service-expanders-hidden {
  display: none;
}
/* ---------- Industry placeholders (icon + drop-in media) ---------- */

.industry-media {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background:
    linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 100% 24px,
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 24px 100%,
    linear-gradient(160deg, var(--paper-raised), var(--paper));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.industry-code {
  position: absolute;
  top: 10px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--slate);
}


.industry-media .media-fill {
  position: absolute;
  inset: 0;
  border-radius: 0;
}

.industry-media:has(.media-fill) .industry-ill,
.industry-media:has(.media-fill) .industry-code { display: none; }

/* ---------- Industry illustrations (two-tone, animated) ---------- */

.industry-ill {
  width: 82%;
  height: auto;
  overflow: visible;
  transition: transform 0.4s var(--ease);
}
.industry-card:hover .industry-ill { transform: translateY(-3px) scale(1.04); }

.industry-ill * { transform-box: fill-box; }
.industry-ill .navy { fill: var(--navy); }
.industry-ill .blue { fill: var(--blue); }
.industry-ill .cyan { fill: var(--cyan); }
.industry-ill .soft { fill: var(--line); }
.industry-ill .pale { fill: #fff; }
.industry-ill .glyph { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.industry-ill .glyph-c { fill: none; stroke: var(--cyan); stroke-width: 2.2; stroke-linecap: round; }
.industry-ill .ring { fill: none; stroke: var(--cyan); stroke-width: 5; stroke-dasharray: 4 3.2; }
.industry-ill .ring-w { fill: none; stroke: #fff; stroke-width: 1.2; opacity: .8; }
.industry-ill .coin { fill: #fff; font: 600 11px var(--font-body); }
.industry-ill .grid { fill: none; stroke: var(--line); stroke-width: 1; }
.industry-ill .cable { fill: none; stroke: var(--cyan); stroke-width: 1.4; }
.industry-ill .handle { fill: none; stroke: var(--cyan); stroke-width: 4; stroke-linecap: round; }
.industry-ill .puff { fill: var(--cyan); opacity: 0; }
.industry-ill .wave { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; }
.industry-ill .type { fill: none; stroke: var(--blue); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: ind-type 5s ease-in-out infinite; }
.industry-ill .type.c { stroke: var(--cyan); }
.industry-ill .t2 { animation-delay: .5s; } .industry-ill .t3 { animation-delay: 1s; }
.industry-ill .ecg { fill: none; stroke: var(--cyan); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: ind-type 3.4s ease-in-out infinite; }

.industry-ill .blink { animation: ind-blink 1s steps(1) infinite; }
.industry-ill .bob { animation: ind-bob 3.2s ease-in-out infinite; }
.industry-ill .bob.d2 { animation-delay: -1.6s; }
.industry-ill .gear { animation: ind-spin 8s linear infinite; transform-origin: center; }
.industry-ill .pulse { animation: ind-pulse 2s ease-in-out infinite; transform-origin: center; }
.industry-ill .puff { animation: ind-smoke 3.6s ease-out infinite; transform-origin: center; }
.industry-ill .p2 { animation-delay: 1.2s; } .industry-ill .p3 { animation-delay: 2.4s; }
.industry-ill .wave { animation: ind-wave 3s linear infinite; }
.industry-ill .car { animation: ind-drive 6s linear infinite; }
.industry-ill .price-tag { animation: ind-swing 3s ease-in-out infinite; transform-origin: 0% 0%; }
.industry-ill .heart { animation: ind-pulse 1.6s ease-in-out infinite; transform-origin: center; }
.industry-ill .spark { animation: ind-pulse 2.4s ease-in-out infinite; transform-origin: center; }
.industry-ill .s2 { animation-delay: -.8s; } .industry-ill .s3 { animation-delay: -1.6s; }

@keyframes ind-type { 0% { stroke-dashoffset: 1; opacity: 1; } 45%, 85% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes ind-blink { 50% { opacity: 0; } }
@keyframes ind-bob { 50% { transform: translateY(-5px); } }
@keyframes ind-spin { to { transform: rotate(360deg); } }
@keyframes ind-pulse { 50% { transform: scale(1.18); opacity: .75; } }
@keyframes ind-smoke { 0% { transform: translate(0,0) scale(.5); opacity: 0; } 20% { opacity: .6; } 100% { transform: translate(10px,-22px) scale(1.5); opacity: 0; } }
@keyframes ind-wave { to { transform: translateX(-40px); } }
@keyframes ind-drive { from { transform: translateX(8px); } to { transform: translateX(140px); } }
@keyframes ind-swing { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }

@media (prefers-reduced-motion: reduce) {
  .industry-ill * { animation: none !important; }
  .industry-ill .type, .industry-ill .ecg { stroke-dashoffset: 0; }
}
@media (max-width: 720px) {
  .grid-3[style*="1.3fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
/* ---------- Layout polish: consistent image sizing ---------- */

.hero { padding: 72px 0 56px; }
.hero-split { gap: 56px; }
.hero-split .media-placeholder { aspect-ratio: 4 / 3; max-height: 440px; width: 100%; box-shadow: 0 30px 60px -34px rgba(7,26,74,0.35); }
.hero-split .media-fill { border-radius: 6px; }

.entry.entry-img { grid-template-columns: 88px 1fr 260px; align-items: start; gap: 32px; }
.entry.entry-img .media-placeholder,
.entry.entry-img .img-placeholder { width: 100%; aspect-ratio: 3 / 2; min-height: 0; max-width: none; align-self: center; }
.entry.entry-img .media-fill { border-radius: 6px; }
@media (max-width: 700px) {
  .entry.entry-img { grid-template-columns: 1fr; gap: 14px; }
  .entry.entry-img .media-placeholder,
  .entry.entry-img .img-placeholder { max-width: 100%; }
}

.card-img { height: 200px; }
.card .media-placeholder, .card-img { overflow: hidden; }

.team-card { grid-template-columns: 170px 1fr; align-items: start; }
.avatar { width: 170px; height: 210px; border-style: solid; }
.avatar img { object-position: center top; }
@media (max-width: 560px) { .avatar { width: 100%; height: 260px; } }

.media-placeholder:has(.media-fill) { display: block; position: relative; overflow: hidden; }
.media-placeholder:has(.media-fill) .media-fill { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Hero no longer clips its media shadow (the old ruled-lines layer needed overflow:hidden) */
.hero { overflow: visible; }
.hero-split .media-placeholder { box-shadow: 0 24px 40px -30px rgba(7,26,74,0.30); }

.tag:empty { display: none; }


/* ============================================================
   POLISH PASS — softer surfaces, calmer type, more air.
   Palette and fonts unchanged; everything keys off the variables above.
   ============================================================ */

:root {
  --r-lg: 18px;   /* cards, panels */
  --r-md: 12px;   /* images, inputs, buttons */
  --shadow-soft: 0 1px 2px rgba(7,26,74,0.04), 0 18px 40px -26px rgba(7,26,74,0.28);
  --shadow-lift: 0 2px 4px rgba(7,26,74,0.05), 0 28px 50px -26px rgba(7,26,74,0.38);
}

.reveal { transform: translateY(16px); }
.section { padding: 88px 0; }

/* ----- Header ----- */
.topbar { border-bottom-color: var(--line-soft); }
.topbar-inner { padding: 12px 32px; min-height: 96px; }
.brand-logo { height: 80px; }
.brand-name { font-family: var(--font-body); font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--slate); }
nav.mainnav { gap: 36px; }
nav.mainnav a { font-family: var(--font-body); font-size: 16px; font-weight: 500; letter-spacing: 0; border-bottom-width: 2px; padding: 8px 0; }
@media (max-width: 640px) { .brand-logo { height: 60px; } .topbar-inner { min-height: auto; } }

/* ----- Labels & type ----- */
.eyebrow, .hero-ref {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--blue);
}
.hero-ref { margin-bottom: 18px; }
h1 { letter-spacing: -0.025em; line-height: 1.04; }
h2 { letter-spacing: -0.02em; }
.section-head { margin-bottom: 44px; }
.section-head h2 { font-size: 48px; margin-top: 6px; }

/* ----- Hero ----- */
.hero { padding: 80px 0 72px; }
.hero::before {
  content: '';
  position: absolute;
  inset: 0 -50vw;
  z-index: -1;
  background:
    radial-gradient(560px 420px at 76% 48%, rgba(0,153,216,0.15), transparent 70%),
    linear-gradient(180deg, #EFF6FC 0%, #FFFFFF 100%);
  pointer-events: none;
}
.hero-split .media-placeholder {
  border-radius: 22px;
  box-shadow: 0 40px 70px -36px rgba(7,26,74,0.45), 0 0 0 1px rgba(7,26,74,0.05);
}
.hero-split .media-fill { border-radius: 22px; }
.lede { color: var(--ink-soft); font-size: 20px; }

/* ----- Buttons ----- */
.btn { font-family: var(--font-body); font-size: 15px; font-weight: 500; letter-spacing: 0.01em; padding: 14px 26px; border-radius: var(--r-md); }
.btn:hover { transform: translateY(-2px); }
.btn.ghost { border-color: rgba(7,26,74,0.25); }
.btn.ghost:hover { border-color: var(--navy); }

/* ----- Entry rows → soft cards (numbers dropped: these aren't a sequence) ----- */
.register { border-top: none; display: grid; gap: 20px; }
.entry, .entry.entry-img {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  padding: 22px 22px 22px 36px;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: center;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.entry:hover { background: #fff; box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.entry .entry-code { display: none; }
.entry-body h3 { font-size: 26px; margin-bottom: 12px; }
.entry-body p { font-size: 16px; max-width: 58ch; }
.entry-body ul { margin-top: 0; }
.entry-body ul li { margin-bottom: 4px; }
.entry-body ul li::marker { color: var(--cyan); }
.entry.entry-img .media-placeholder, .entry.entry-img .img-placeholder { border-radius: var(--r-md); align-self: center; }
.entry.entry-img .media-fill { border-radius: var(--r-md); }
@media (max-width: 700px) {
  .entry, .entry.entry-img { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  .entry .media-placeholder { order: -1; }
}

/* ----- Cards ----- */
.card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg); box-shadow: var(--shadow-soft); overflow: hidden; padding: 28px; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--line-soft); }
.card-img { border-radius: 0; }
.card-img .media-fill { transition: transform 0.6s var(--ease); }
.card:hover .card-img .media-fill { transform: scale(1.05); }
.grid-3 { gap: 28px; }

/* ----- Stats ----- */
.stats-bar {
  padding: 56px 0;
  background:
    radial-gradient(600px 220px at 85% 0%, rgba(0,153,216,0.28), transparent 70%),
    linear-gradient(135deg, #071A4A 0%, #0A2A6E 100%);
}
.stats-row { gap: 0; }
.stats-row > div { padding: 4px 16px; }
.stats-row > div + div { border-left: 1px solid rgba(255,255,255,0.14); }
.stat-num { font-size: clamp(36px, 4.6vw, 54px); }
.stat-label { font-family: var(--font-body); font-size: 15px; letter-spacing: 0; text-transform: none; color: #A9C0E6; margin-top: 10px; }
@media (max-width: 640px) { .stats-row > div:nth-child(3) { border-left: none; } .stats-row { row-gap: 24px; } }

/* ----- Pull quote ----- */
.pull { border-left: 4px solid var(--cyan); border-radius: 2px; padding: 6px 0 6px 28px; }
.pull p { font-size: 28px; line-height: 1.3; color: var(--navy); max-width: 36ch; }

/* ----- Certificates ----- */
.logos-band { background: linear-gradient(180deg, #F2F7FC 0%, #FFFFFF 100%); border: none; padding: 80px 0; }
.cert-slot { border: 1px solid var(--line-soft); border-radius: var(--r-lg); box-shadow: var(--shadow-soft); padding: 24px; }
.cert-slot:hover { border-color: var(--line-soft); box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.cert-slot { transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease); }

/* ----- Industries ----- */
.industry-card { border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line-soft); box-shadow: var(--shadow-soft); }
.industry-card:hover { border-color: var(--line-soft); box-shadow: var(--shadow-lift); transform: translateY(-4px); }
.industry-media { border-bottom-color: var(--line-soft); }
.industry-card .industry-label { font-family: var(--font-body); font-size: 15.5px; font-weight: 600; color: var(--navy); padding: 16px; }
.industry-code { display: none; }
.industry-grid { gap: 22px; }

/* ----- Team ----- */
.team-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-top: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  padding: 24px;
  margin-bottom: 22px;
  gap: 32px;
}
.team-card:hover { background: #fff; box-shadow: var(--shadow-lift); }
.team-card:last-child { border-bottom: 1px solid var(--line-soft); margin-bottom: 0; }
.avatar { border-radius: 14px; border: none; background: linear-gradient(160deg, #EAF2FB, #F7FAFD); color: #8aa0bf; }
.tag { font-family: var(--font-body); font-size: 13px; font-weight: 500; border-radius: 999px; padding: 4px 12px; background: rgba(0,153,216,0.1); color: var(--blue); }
.team-card h3 { font-size: 24px; }

/* ----- Forms ----- */
input[type="email"], input[type="text"], textarea { font-size: 15px; padding: 13px 16px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); transition: border-color 0.2s, box-shadow 0.2s; }
input:focus-visible, textarea:focus-visible { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(0,153,216,0.15); }
label { font-family: var(--font-body); font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-soft); margin-bottom: 8px; }

/* ----- Newsletter band ----- */
.band {
  padding: 64px 0;
  background:
    radial-gradient(520px 200px at 10% 0%, rgba(0,153,216,0.25), transparent 70%),
    linear-gradient(135deg, #071A4A 0%, #0A2A6E 100%);
}
.band input[type="email"] { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.28); color: #fff; }
.band input[type="email"]:focus-visible { border-color: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,0.15); }

/* ----- Footer ----- */
footer { background: #F6F9FD; border-top: none; padding: 56px 0 32px; }
.footer-logo { height: 90px; }
.footer-col .eyebrow { font-size: 14px; color: var(--navy); }
.footer-col a, .footer-col p { font-size: 15px; }
.copyright { font-family: var(--font-body); font-size: 13px; border-top-color: var(--line); }

/* ----- Focus & motion hygiene ----- */
a:focus-visible, button:focus-visible { outline: 3px solid rgba(0,153,216,0.45); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .card, .entry, .team-card, .industry-card, .cert-slot, .btn { transition: none; }
}

/* ---------- Chatbot ---------- */

#chat-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 12px 28px -10px rgba(7,26,74,0.5);
  z-index: 100;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

#chat-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -10px rgba(7,26,74,0.6);
}

#chat-window {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 340px;
  max-width: calc(100vw - 32px);
  height: 460px;
  max-height: calc(100vh - 130px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 60px -20px rgba(7,26,74,0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 101;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

#chat-window.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

#chat-header {
  background: var(--navy);
  color: #fff;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#chat-close {
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  opacity: 0.7;
  padding: 0 4px;
}

#chat-close:hover { opacity: 1; }

#chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: var(--paper-raised);
  font-size: 14px;
  line-height: 1.5;
}

.chat-msg {
  margin-bottom: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  max-width: 85%;
  word-wrap: break-word;
}

.chat-msg.bot {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  background: var(--blue);
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

#chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}

#user-input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
}

#user-input:focus { outline: none; border-color: var(--cyan); }

#chat-form button {
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}

#chat-form button:hover {
  background: var(--navy-dark);
}

@media (max-width: 480px) {
  #chat-window {
    right: 16px;
    left: 16px;
    width: auto;
    bottom: 88px;
  }
  #chat-button { bottom: 16px; right: 16px; }
}


/* ============================================================
   Industries & Credentials pages, Education illustration, 6-link nav
   ============================================================ */

/* Education illustration bits */
.industry-ill .bookline { fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linecap: round; }
.industry-ill .cord { fill: none; stroke: var(--cyan); stroke-width: 2.2; stroke-linecap: round; }
.industry-ill .tassel { animation: ind-swing 2.8s ease-in-out infinite; transform-origin: 50% 0%; }
@media (prefers-reduced-motion: reduce) { .industry-ill .tassel { animation: none; } }

/* Industries page: bigger 3-up cards */
.industry-grid.industry-grid-lg { grid-template-columns: repeat(3, 1fr); gap: 28px; }
.industry-grid-lg .industry-media { aspect-ratio: 16 / 11; }
.industry-grid-lg .industry-ill { width: 70%; }
.industry-grid-lg .industry-card .industry-label { font-size: 18px; padding: 20px; }
@media (max-width: 900px) { .industry-grid.industry-grid-lg { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .industry-grid.industry-grid-lg { grid-template-columns: 1fr; } }

/* Credentials page: portrait certificates at a readable size */
.cert-strip.cert-strip-lg { grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: start; }
.cert-card { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.cert-card .cert-slot { aspect-ratio: 3 / 4; padding: 18px; background: #fff; text-decoration: none; cursor: zoom-in; }
.cert-card figcaption { display: flex; flex-direction: column; gap: 4px; padding: 0 4px; }
.cert-card figcaption strong { font-family: var(--font-display); font-size: 21px; font-weight: 500; color: var(--navy); }
.cert-card figcaption span { font-size: 15px; color: var(--slate); }
@media (max-width: 900px) { .cert-strip.cert-strip-lg { grid-template-columns: 1fr; max-width: 420px; } }

/* Six nav links need the mobile menu a little earlier */
@media (max-width: 1020px) {
  nav.mainnav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 32px 16px;
  }
  nav.mainnav.open { display: flex; }
  nav.mainnav a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .nav-toggle { display: inline-block; }
}
@media (min-width: 1021px) and (max-width: 1180px) { nav.mainnav { gap: 22px; } .brand-name { font-size: 14px; } }

/* Keep the full-bleed hero wash from ever causing sideways scroll on phones */
html { overflow-x: clip; }

/* Equal-height certificate frames */
.cert-card .cert-slot { aspect-ratio: 3 / 4; overflow: hidden; padding: 14px; min-height: 0; }
.cert-card .cert-slot img { width: 100%; height: 100%; object-fit: contain; }

/* Hero wash fades out instead of ending in a hard edge */
.hero::before { -webkit-mask-image: linear-gradient(#000 55%, transparent 100%); mask-image: linear-gradient(#000 55%, transparent 100%); }

/* Newsletter: email + button stay on one row */
@media (min-width: 641px) {
  .band .field-row { display: flex; gap: 12px; flex-wrap: nowrap; align-items: stretch; }
  .band .field-row input[type="email"] { flex: 1; min-width: 0; }
  .band .field-row .btn { white-space: nowrap; }
}


/* Jump links on the Industries & Credentials page */
.jump-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.jump-links a { font-weight: 500; font-size: 15px; color: var(--navy); padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(7,26,74,0.2); background: #fff; transition: border-color 0.2s, color 0.2s, transform 0.2s; }
.jump-links a:hover { border-color: var(--cyan); color: var(--blue); transform: translateY(-2px); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Five nav links fit a little lower — mobile menu from 900px */
@media (min-width: 901px) and (max-width: 1020px) {
  nav.mainnav { display: flex; position: static; flex-direction: row; background: none; border: none; padding: 0; gap: 20px; }
  nav.mainnav a { padding: 8px 0; border-bottom: 2px solid transparent; }
  .nav-toggle { display: none; }
}


/* ---------- Skip link ---------- */
.skip-link { position:absolute; left:-9999px; top:8px; background:var(--navy); color:#fff; padding:10px 16px; border-radius:6px; z-index:1000; }
.skip-link:focus { left:8px; }

/* ---------- Chatbot ---------- */
.hidden { display:none !important; }
#chat-button { position:fixed; right:22px; bottom:22px; width:56px; height:56px; border-radius:50%; border:0; background:var(--blue); color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; box-shadow:0 8px 24px rgba(7,26,74,.28); z-index:900; transition:transform .2s var(--ease), background .2s; }
#chat-button:hover { background:var(--navy); transform:translateY(-2px); }
#chat-window { position:fixed; right:22px; bottom:90px; width:340px; max-width:calc(100vw - 32px); height:460px; max-height:calc(100vh - 120px); background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:0 18px 48px rgba(7,26,74,.22); display:flex; flex-direction:column; overflow:hidden; z-index:900; }
#chat-header { background:var(--navy); color:#fff; padding:14px 16px; font-family:var(--font-body); font-weight:600; display:flex; justify-content:space-between; align-items:center; }
#chat-close { background:none; border:0; color:#fff; font-size:24px; line-height:1; cursor:pointer; padding:0 4px; }
#chat-body { flex:1; overflow-y:auto; padding:14px; display:flex; flex-direction:column; gap:10px; background:var(--paper-raised); }
.chat-msg { max-width:85%; padding:9px 13px; border-radius:12px; font-size:14.5px; line-height:1.45; }
.chat-msg.bot { background:#fff; border:1px solid var(--line); color:var(--ink); align-self:flex-start; }
.chat-msg.user { background:var(--blue); color:#fff; align-self:flex-end; }
#chat-form { display:flex; gap:8px; padding:10px; border-top:1px solid var(--line); background:#fff; }
#chat-form input { flex:1; min-width:0; padding:10px 12px; border:1px solid var(--line); border-radius:8px; font:inherit; font-size:14.5px; }
#chat-form button { background:var(--blue); color:#fff; border:0; border-radius:8px; padding:0 16px; font:inherit; font-weight:500; cursor:pointer; }
#chat-form button:hover { background:var(--navy); }


/* =====================================================================
   OVERRIDES (keep this block at the very bottom of the file)
   ===================================================================== */

/* ----- Entry rows: zig-zag layout and sizing ----- */

.register { --img-w: 280px; }   /* one number controls all image widths */

.entry-body h3 { font-size: 26px; margin-bottom: 12px; }
.entry-body p  { font-size: 17px; line-height: 1.65; max-width: 55ch; }
.entry-body ul { font-size: 16px; line-height: 1.65; }
.entry-body ul li { margin-bottom: 6px; }

/* Desktop and tablet: image right by default, flipped left on even rows */
@media (min-width: 701px) {
  .register .entry.entry-img {
    grid-template-columns: 1fr var(--img-w);
    gap: 40px;
    padding: 20px 20px 20px 36px;
    align-items: center;
  }
  .register .entry.entry-img:nth-child(even) {
    grid-template-columns: var(--img-w) 1fr;
    padding: 20px 36px 20px 20px;
  }
  .register .entry.entry-img:nth-child(even) .media-placeholder {
    order: -1;
  }
  .register .entry.entry-img .media-placeholder,
  .register .entry.entry-img .img-placeholder {
    aspect-ratio: 3 / 2;
    width: 100%;
  }
}

/* Tablets */
@media (min-width: 701px) and (max-width: 1000px) {
  .register { --img-w: 210px; }
  .entry-body h3 { font-size: 26px; }
  .entry-body p  { font-size: 16px; }
  .entry-body ul { font-size: 15.5px; }
}

/* Mobile: single column, image on top */
@media (max-width: 700px) {
  .entry-body h3 { font-size: 24px; }
  .entry-body p  { font-size: 16px; }
  .entry-body ul { font-size: 16px; }
}

/* ----- Mobile menu button: hamburger icon instead of the word MENU ----- */

.nav-toggle {
  /* hide the "MENU" text */
  font-size: 0;
  color: transparent;
  line-height: 0;
  /* button box */
  width: 46px;
  height: 42px;
  padding: 0;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  /* three horizontal lines */
  background-color: transparent;
  background-image:
    linear-gradient(var(--navy), var(--navy)),
    linear-gradient(var(--navy), var(--navy)),
    linear-gradient(var(--navy), var(--navy));
  background-repeat: no-repeat;
  background-size: 22px 2px;
  background-position: center 12px, center 20px, center 28px;
  transition: border-color 0.2s, background-color 0.2s;
}
.nav-toggle:hover { border-color: var(--cyan); }

/* While the menu is open, show an X instead */
.nav-toggle[aria-expanded="true"] {
  background-image:
    linear-gradient(45deg,  transparent 46%, var(--navy) 46%, var(--navy) 54%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, var(--navy) 46%, var(--navy) 54%, transparent 54%);
  background-size: 22px 22px, 22px 22px;
  background-position: center, center;
}
/* Make services images stretch to match the text height */
.entry.entry-img .media-placeholder {
  align-self: stretch; 
  height: 100%;
  min-height: 220px; 
}
.entry.entry-img .media-fill {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
/* Fix contrast for stats labels */
.stat-label {
  color: #FFFFFF !important;
}
/* --- MOBILE FIX: TEAM PAGE --- */
@media (max-width: 600px) {
  /* Make the team cards sit side-by-side even on mobile */
  .team-card {
    grid-template-columns: 90px 1fr !important; /* 90px image, rest is text */
    gap: 16px !important;
    padding: 16px !important;
    align-items: center !important;
  }
  
  /* Make the avatars a perfect small square */
  .avatar {
    width: 90px !important;
    height: 90px !important;
    aspect-ratio: 1/1;
  }
  
  /* Tighten up the text */
  .team-card h3 { font-size: 20px !important; margin-bottom: 4px; }
  .team-card .tag { font-size: 11px !important; margin-bottom: 8px; }
  .team-card p { font-size: 14.5px !important; line-height: 1.5 !important; }
}
/* --- MOBILE FIX: SERVICES PAGE --- */
@media (max-width: 700px) {
  /* Force everything into a single column */
  .entry.entry-img, 
  .register .entry.entry-img:nth-child(even) {
    grid-template-columns: 1fr !important;
    padding: 20px !important;
    gap: 20px !important;
  }

  /* Put the image on top of the text */
  .entry .media-placeholder, 
  .entry.entry-img .media-placeholder {
    order: -1; /* This moves the image above the text */
    height: auto !important;
    aspect-ratio: 16/9 !important; /* Wide cinematic shape for mobile */
    width: 100% !important;
  }

  /* Fix the heading sizes */
  .entry-body h3 {
    font-size: 28px !important;
    margin-bottom: 12px !important;
  }

  /* Fix the bullet list spacing */
  .entry-body ul {
    font-size: 16px !important;
    padding-left: 20px !important;
    margin-top: 10px !important;
  }
}
/* Fix Team Photo 5 on mobile */
@media (max-width: 600px) {
  /* If you want the photo to not crop the face, change it to 'contain' */
  .avatar img {
    object-fit: cover;
    object-position: center 15%; /* This shifts the crop upward to show the face */
  }
}

@media (max-width: 700px) {
  .wrap {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  /* Also add space inside the cards so text doesn't touch the card borders */
  .entry, .entry.entry-img, .team-card, .cert-card {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* Fix Swapnali's photo crop without affecting the others */
.team-card:nth-child(6) .avatar img {
  object-position: center 20% !important; 
}
