/* ==========================================================================
   EB Pharma Innovation — stylesheet
   --------------------------------------------------------------------------
   1. DESIGN TOKENS  <- edit this block to re-theme the entire site
   2. Base & reset
   3. Centred layout grid
   4. Components (buttons, cards, lists, brand, header)
   5. Sections
   6. Responsive
   7. Motion preferences
   --------------------------------------------------------------------------
   Geometry is derived from the master visual reference:
     container 67.4% of viewport   hero panel aspect 1.98
     portrait  36.5% of container  circle  38.9% of container
   ========================================================================== */


/* ==========================================================================
   1. DESIGN TOKENS
   Change the values here and the whole site follows. Nothing below this
   block hard-codes a brand colour, radius, shadow or font.
   ========================================================================== */
:root {

  /* ---- Colour ----
     Feminine semi-formal palette: medium purple lead, soft pink accent,
     olive green for the scientific marks, cream and lilac grounds. ---- */
  --color-primary:        #6e4b9e;  /* medium purple — headings, CTAs       */
  --color-primary-hover:  #56397d;  /* deeper purple                        */
  --color-primary-soft:   #f2ebfa;  /* pale lilac wash — header pill        */

  --color-background:     #fffcf9;  /* light cream page                     */
  --color-hero:           #f7f1fb;  /* pale lilac panel                     */
  --color-surface:        #ffffff;  /* cards                                */
  --color-surface-alt:    #fdf6fa;  /* quiet blush band                     */

  --color-accent:         #f9d3e4;  /* soft pink — hero circle, icon discs  */
  --color-accent-2:       #fceaf3;  /* secondary very subtle circle         */
  --color-accent-deep:    #d2779f;  /* pink at text strength, used rarely   */
  /* accent family — one ink (text-safe) + one vivid (icons) + one tint each.
     Every ink clears 4.5:1 on white, cream, lilac and blush grounds.        */
  --accent-violet:        #7b3fd4;
  --accent-violet-vivid:  #8b5cf6;
  --accent-violet-tint:   #f3ecfd;
  --accent-pink:          #c2246e;
  --accent-pink-vivid:    #e84a9b;
  --accent-pink-tint:     #fdeaf3;
  --accent-green:         #3f7d22;
  --accent-green-vivid:   #67b84b;
  --accent-green-tint:    #eef6e7;
  --accent-gold:          #8a6a12;
  --accent-gold-vivid:    #e0ac1f;
  --accent-gold-tint:     #fbf3df;
  --accent-plum:          #6b3fa0;

  --color-text:           #3b2f4a;  /* deep plum charcoal                   */
  --color-heading:        var(--color-primary);
  --color-muted:          #6c6280;  /* restrained plum-grey                 */
  --color-border:         #efe6f4;  /* very subtle lilac                    */
  --color-border-strong:  #dfcfe9;

  --color-on-dark:        #fbf6ff;
  --color-on-dark-muted:  #cdb8e4;
  --color-on-dark-border: rgba(255, 255, 255, 0.18);

  /* ---- Typography ---- */
  /* "Segoe UI Variable Text" sits ahead of static Segoe UI so the medium
     weights below resolve properly when Poppins is not installed. */
  --font-sans: "Poppins", "Montserrat", "Segoe UI Variable Text", "Segoe UI",
               system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* one ladder for the whole site: body < medium < heading < display */
  --weight-body:    500;   /* paragraphs, nav, meta — quietly confident */
  --weight-medium:  600;   /* buttons, labels, inline emphasis          */
  --weight-heading: 700;   /* h1–h3, card and section headings          */
  --weight-display: 800;   /* hero headline only                        */

  --fs-xs:   0.78rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.0625rem;
  --fs-lg:   1.125rem;
  --fs-h3:   clamp(1.1rem, 1rem + 0.35vw, 1.25rem);
  --fs-h2:   clamp(1.6rem, 1.15rem + 1.5vw, 2.25rem);
  --fs-h1:   clamp(1.95rem, 1.2rem + 2.3vw, 2.8rem);

  --lh-heading: 1.4;   /* the reference sets its headings generously open */
  --lh-body:    1.7;

  --tracking-btn: 0.06em;
  --tracking-eyebrow: 0.12em;

  /* ---- Spacing ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  --section-y:     clamp(3.5rem, 6vw, 6.5rem);
  --container-max: 1240px;                       /* professional max width  */
  --gutter:        clamp(1.25rem, 5.5vw, 6.5rem);/* breathing room, both sides */

  /* ---- Radius ---- */
  --radius-sm:    10px;
  --radius-md:    18px;
  --radius-lg:    26px;
  --radius-panel: 40px;    /* hero / contact panels, large images */
  --radius-pill:  999px;

  /* ---- Shadow (very restrained) ---- */
  --shadow-sm:   0 1px 2px rgba(74, 48, 105, 0.05);
  --shadow-card: 0 12px 34px -22px rgba(74, 48, 105, 0.26);

  --border-hairline: 1px solid var(--color-border);
  --transition: 200ms ease;

  --header-height: 100px;
}


/* ==========================================================================
   2. BASE & RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  /* short pages (Home) still push the footer to the bottom of the viewport */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: var(--weight-body);
  line-height: var(--lh-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-sans);
  font-weight: var(--weight-heading);
  color: var(--color-heading);
  line-height: var(--lh-heading);
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-4);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.35; }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

/* keeps inline emphasis clearly ahead of the stronger body weight */
strong, b { font-weight: var(--weight-heading); }

main { flex: 1 0 auto; }

img { max-width: 100%; height: auto; display: block; }
ul  { margin: 0; padding: 0; list-style: none; }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-primary-hover); }

svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: -9999px; top: 0;
  z-index: 200;
  background: var(--color-primary);
  color: var(--color-on-dark);
  padding: var(--space-3) var(--space-5);
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: var(--color-on-dark); }


/* ==========================================================================
   3. CENTRED LAYOUT GRID
   Every section — header, hero, services, about, why, contact, footer —
   uses this one container, so the whole page sits on a single centred grid.
   ========================================================================== */
.container {
  width: min(100% - (var(--gutter) * 2), var(--container-max));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }

/* Centred section header (heading + lede), as in the reference */
.section-head {
  max-width: 40rem;
  margin: 0 auto clamp(2.5rem, 4vw, 3.75rem);
  text-align: center;
}
.section-head p {
  color: var(--color-muted);
  font-size: var(--fs-md);
  margin: 0;
}

/* Reveal-on-scroll, applied by JS only to content below the fold */
.js-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.js-reveal.is-visible { opacity: 1; transform: none; }


/* ==========================================================================
   4. COMPONENTS
   ========================================================================== */

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  padding: 1.75em 2.3em;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-btn);
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition);
}
.btn-arrow { width: 15px; height: 15px; stroke-width: 2; flex: none; }

.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-hover); color: #fff; }

.btn-light { background: #fff; color: var(--color-primary); }
.btn-light:hover { background: var(--color-primary-soft); color: var(--color-primary); }

/* ---- Cards ---- */
.card {
  background: var(--color-surface);
  border: var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 2.4vw, 2.25rem);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.card:hover { box-shadow: var(--shadow-card); border-color: var(--color-border-strong); }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  margin-bottom: var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-primary);
}
.card-icon svg { width: 25px; height: 25px; }

/* ---- Check lists (the reference's benefit list) ---- */
.check-list { display: grid; gap: var(--space-3); }
.check-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--color-muted);
  font-size: var(--fs-md);
}
.check-list li strong { color: var(--color-primary); font-weight: var(--weight-medium); }
/* one tick shape, tinted through --tick so any block can set its own accent */
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 1.1rem; height: 1.1rem;
  background-color: var(--tick, var(--accent-green-vivid));
  -webkit-mask: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 5 5L19 7'/%3E%3C/svg%3E");
  mask: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 5 5L19 7'/%3E%3C/svg%3E");
}
.check-list-sm li { font-size: var(--fs-sm); padding-left: 1.7rem; }
.check-list-sm li::before { width: 0.95rem; height: 0.95rem; top: 0.45em; }

/* ---- Brand ---- */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--color-primary); }
.brand:hover { color: var(--color-primary); }
/* brand mark: assets/logo-mark.png — height-driven so the aspect never distorts */
.brand-mark { width: auto; height: 40px; flex: none; }
.brand-name {
  font-size: 1.3rem;
  font-weight: var(--weight-heading);
  letter-spacing: -0.02em;
  color: var(--color-primary);
  white-space: nowrap;
}
.brand-name span { font-weight: var(--weight-body); }

/* ---- Header: logo left · nav centred · CTA right ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-background);
  transition: box-shadow var(--transition);
}
.site-header.is-stuck { box-shadow: 0 6px 24px -20px rgba(74, 48, 105, 0.42); }

.header-inner {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;   /* keeps the nav truly centred */
  align-items: center;
  gap: var(--space-4);
}

.nav { display: contents; }

.nav-list {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.6vw, 2.75rem);
}
.nav-list a {
  position: relative;
  font-size: var(--fs-base);
  font-weight: var(--weight-body);
  color: var(--color-text);
  padding-block: 0.35rem;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-list a:hover, .nav-list a.is-active { color: var(--color-primary); font-weight: var(--weight-medium); }
.nav-list a:hover::after, .nav-list a.is-active::after { transform: scaleX(1); }

/* language switch + phone pill share the right-hand cell */
.header-end {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.2vw, 1rem);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-soft);
}
.lang-btn {
  padding: 0.45rem 0.7rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-muted);
  font-family: inherit;
  font-size: var(--fs-xs);
  font-weight: var(--weight-heading);
  letter-spacing: var(--tracking-btn);
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
}
.lang-btn:hover { color: var(--color-primary); }
.lang-btn.is-active { background: var(--color-primary); color: #fff; }

.header-cta {
  grid-column: 3;
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--color-primary-soft);
  text-align: center;
  transition: background-color var(--transition);
}
.header-cta:hover { background: #e8ddf6; }
.header-cta-title { font-size: var(--fs-base); font-weight: var(--weight-heading); color: var(--color-primary); }
.header-cta-sub { font-size: var(--fs-xs); color: var(--color-muted); }

.nav-toggle {
  display: none;
  grid-column: 3;
  justify-self: end;
  width: 46px; height: 46px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  cursor: pointer;
}
.nav-toggle-bars { display: block; width: 18px; margin-inline: auto; }
.nav-toggle-bars i {
  display: block; height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle-bars i + i { margin-top: 4px; }
.nav-toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }


/* ==========================================================================
   5. SECTIONS
   ========================================================================== */

/* ---- Hero: one large rounded panel on the centred grid ---- */
.hero { padding-block: 0 var(--space-4); }

.hero-panel {
  position: relative;
  overflow: hidden;                       /* clips the portrait, as in the reference */
  border-radius: var(--radius-panel);
  background: var(--color-hero);
  min-height: clamp(480px, 44vw, 640px);  /* panel aspect ≈ 1.98 at desktop */
  display: flex;
  align-items: center;
  padding: clamp(2.5rem, 5vw, 3.5rem) 6.1%;
}

/* soft peach circle — flat, behind the portrait */
.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-panel::before {                     /* primary peach circle */
  width: 38.9%;
  aspect-ratio: 1;
  left: 72.5%;
  top: 46.3%;
  transform: translate(-50%, -50%);
  background: var(--color-accent);
}
.hero-panel::after {                      /* secondary, very subtle */
  width: 12%;
  aspect-ratio: 1;
  left: 91%;
  top: 32%;
  transform: translate(-50%, -50%);
  background: var(--accent-violet-tint);
}

.hero-copy { position: relative; z-index: 2; max-width: 42%; }
.hero-title {
  font-weight: var(--weight-display);
  line-height: 1.5;
  margin-bottom: var(--space-5);
}
.hero-lede {
  color: var(--color-muted);
  max-width: 30rem;
  margin-bottom: var(--space-6);
}
.hero-note {
  display: block;
  margin-top: var(--space-6);
  font-size: var(--fs-sm);
  color: var(--color-muted);
}
.hero-note strong { color: var(--color-primary); font-weight: var(--weight-medium); }

.hero-figure {
  position: absolute;
  z-index: 1;
  margin: 0;
  right: 7.4%;
  top: 14.5%;
  width: 36.5%;
}
.hero-figure img { width: 100%; height: auto; }

/* ---- Hero expertise strip: one navy band on the same centred grid ---- */
.hero-strip {
  --strip-gap: clamp(1.25rem, 3.2vw, 3.25rem);
  position: relative;
  z-index: 3;                                    /* rides over the panel it hugs */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-2) var(--strip-gap);
  /* pulled up so the bar overlaps the hero panel and reads as one unit */
  margin-top: clamp(-2.25rem, -2.2vw, -1.5rem);
  /* deep, generous band — the copy sits centred with room to breathe */
  padding: clamp(1.9rem, 3.4vw, 2.75rem) clamp(1.25rem, 3vw, 2rem);
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  color: var(--color-on-dark);
  font-size: clamp(0.8rem, 0.62rem + 0.3vw, 0.95rem);
  font-weight: var(--weight-heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-strip li { display: flex; align-items: center; gap: var(--strip-gap); }
/* subtle dot separator, carried by every item after the first */
.hero-strip li + li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-on-dark-muted);
}

/* ---- Our Mission (home): editorial 3-column, no card boxes ---- */
.mission { background: var(--color-hero); }   /* quiet band, separates it from the hero */
.mission-head { max-width: 52rem; }
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.75rem);
}
/* square frame matches the source files, so the microscope, bulb and globe
   are never cropped — the three still render at identical size */
.mission-item { text-align: center; }
.mission-item img {
  width: 60%;
  max-width: 230px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  margin: 0 auto var(--space-4);
}
.mission-item h3 { margin-bottom: var(--space-3); }
.mission-item > p {
  max-width: 34ch;
  margin-inline: auto;
  color: var(--color-muted);
  font-size: var(--fs-sm);
}

/* ---- About + mission ---- */
/* two columns: copy left, illustration right */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);   /* ~57% / 43% */
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about-copy { max-width: 40rem; }
.about-copy h2 { margin-bottom: var(--space-4); }
.about-copy .about-heading {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  font-size: clamp(1.4rem, 1.05rem + 1.1vw, 1.9rem);
}
.about-copy > p { margin: 0; color: var(--color-muted); }

.about-figure { margin: 0; }
.about-figure img {
  width: 100%;
  height: auto;
  object-fit: contain;      /* the whole illustration stays visible, undistorted */
}

/* ---- Services ---- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.2vw, 1.75rem);
}
.service > p { color: var(--color-muted); font-size: var(--fs-sm); }
.service .check-list { margin-top: var(--space-5); }

/* ---- Services showcase: 3 editorial items, no card boxes ---- */
.showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 4.5vw, 3.75rem);
}
.showcase-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 30%;   /* keeps the subject in frame on portrait sources */
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
}
.showcase-item h3 { margin-bottom: var(--space-3); }
.showcase-item > p { color: var(--color-muted); font-size: var(--fs-sm); }

/* ---- Services explorer: detail panel + vertical service tabs ---- */
.explorer { margin-top: clamp(3rem, 5vw, 4.5rem); }
.explorer-head { margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }

/* navigation left (25–30%), detail panel right — tops aligned */
.explorer-grid {
  display: grid;
  grid-template-columns: clamp(230px, 27%, 330px) minmax(0, 1fr);
  gap: clamp(1.25rem, 2.4vw, 2.25rem);
  align-items: start;
}

.explorer-panel {
  padding: clamp(1.75rem, 3.4vw, 2.75rem);
  border: var(--border-hairline);
  border-radius: var(--radius-lg);
  background: var(--color-surface-alt);
}
.explorer-pane { display: none; }
.explorer-pane.is-active { display: block; }
.explorer-pane:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 6px; }
.explorer-pane h3 { margin-bottom: var(--space-3); }
.explorer-lede {
  max-width: 44rem;
  margin-bottom: var(--space-6);
  color: var(--color-muted);
  font-size: var(--fs-md);
}

.explorer-topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5) clamp(1.5rem, 3vw, 2.5rem);
}
.explorer-topic { padding-top: var(--space-4); border-top: 1px solid var(--color-accent); }
.explorer-topic h4 {
  margin: 0 0 var(--space-2);
  font-size: var(--fs-base);
  font-weight: var(--weight-heading);
  line-height: 1.4;
  color: var(--color-primary);
}
.explorer-topic p { margin: 0; color: var(--color-muted); font-size: var(--fs-sm); }

/* equal-height rows keep the four buttons on one rhythm;
   the group rides at the middle height of the detail panel */
.explorer-tabs {
  display: grid;
  grid-auto-rows: 1fr;
  gap: var(--space-3);
  align-self: center;
}
.explorer-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 3.5rem;
  padding: 0.9rem clamp(1rem, 1.6vw, 1.25rem);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-primary);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: var(--weight-medium);
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}
.explorer-tab:hover {
  background: var(--color-primary-soft);
  border-color: #d9c7ea;
}
.explorer-tab[aria-selected="true"] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  font-weight: var(--weight-heading);
}
/* small chevron marks the active item only */
.explorer-tab::after {
  content: "";
  display: none;
  flex: none;
  width: 1rem;
  height: 1rem;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E");
}
.explorer-tab[aria-selected="true"]::after { display: block; }

/* ---- Navy divider band between Our Mission and Solutions ---- */
.bridge { padding-block: clamp(1.75rem, 3vw, 2.75rem); }
.bridge-panel {
  padding: clamp(2.5rem, 4.4vw, 3.5rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: var(--radius-panel);
  background: var(--color-primary);
  text-align: center;
}
.bridge-head {
  max-width: 44rem;
  margin-bottom: 0;
}
.bridge-head h2 { color: #fff; margin-bottom: var(--space-4); }
.bridge-head p { color: var(--color-on-dark); }

/* ---- Solutions: three pillars + a light process line ---- */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.4vw, 2rem);
}
/* one shared crop keeps the three pillars visually level */
.solution img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
}
.solution h3 { margin-bottom: var(--space-3); }
.solution > p { color: var(--color-muted); font-size: var(--fs-sm); }
.solution .check-list { margin-top: var(--space-5); }

.process {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-3) clamp(1rem, 2.4vw, 2rem);
  margin: clamp(2.5rem, 4vw, 3.5rem) 0 0;
  padding: clamp(1.75rem, 3vw, 2.5rem) 0 0;
  border-top: var(--border-hairline);
  list-style: none;
  font-size: var(--fs-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-primary);
}
.process li { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
/* peach arrow carries the eye from one step to the next */
.process li + li::before {
  content: "";
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e0ac1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

/* ---- Home contact CTA: one navy panel on the centred grid ---- */
.cta { padding-top: 0; }          /* Solutions already supplies the gap above */
.cta-panel {
  padding: clamp(2rem, 3.6vw, 2.9rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: var(--radius-panel);
  background: var(--color-primary);
  color: var(--color-on-dark);
  text-align: center;
}
.cta-panel h2 { color: #fff; margin-bottom: clamp(1.1rem, 2vw, 1.6rem); }

/* two balanced groups on one centred row: email | phone · WhatsApp */
.cta-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: var(--space-3) clamp(1.75rem, 4vw, 3.25rem);
  max-width: 820px;
  margin-inline: auto;
}
.cta-links li { display: flex; align-items: baseline; gap: 0.65rem; }
.cta-links a {
  color: #fff;
  font-size: var(--fs-md);
  font-weight: var(--weight-heading);
  transition: color var(--transition);
}
.cta-links a:hover { color: var(--color-accent); }
.cta-dot { color: var(--color-on-dark-muted); }
.cta-links .cta-wa { font-weight: var(--weight-medium); }

/* ---- Why us + who we work with ---- */
/* a rounded panel on the same grid, matching the hero and contact panels */
.why-panel {
  background: var(--color-surface-alt);
  border-radius: var(--radius-panel);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
}
.why-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5) clamp(2rem, 5vw, 4rem);
  max-width: 60rem;
  margin-inline: auto;
}
.why-list li strong { display: block; font-size: var(--fs-md); }

.audiences {
  margin-top: clamp(2.75rem, 5vw, 4rem);
  padding-top: clamp(2rem, 3.5vw, 3rem);
  border-top: var(--border-hairline);
  text-align: center;
}
.audiences-title {
  font-size: var(--fs-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-5);
}
.audience-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); }
.audience-row li {
  padding: 0.6rem 1.35rem;
  background: var(--color-surface);
  border: var(--border-hairline);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  color: var(--color-primary);
}

/* ---- Contact: navy panel on the same centred grid ---- */
.contact { padding-bottom: var(--section-y); }
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
  padding: clamp(2.25rem, 5vw, 4rem);
  border-radius: var(--radius-panel);
  background: var(--color-primary);
  color: var(--color-on-dark);
}
.contact-panel h2 { color: #fff; }
.contact-head > p { color: var(--color-on-dark-muted); margin-bottom: var(--space-6); }

.contact-details { display: grid; }
.contact-details li {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-on-dark-border);
}
.contact-details li:first-child { border-top: 1px solid var(--color-on-dark-border); }
.contact-icon { flex: none; color: var(--color-on-dark-muted); }
.contact-icon svg { width: 21px; height: 21px; }
.contact-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-on-dark-muted);
}
.contact-body a, .contact-body > span:last-child {
  color: #fff;
  font-size: var(--fs-sm);
  overflow-wrap: anywhere;
}
.contact-body a { width: fit-content; border-bottom: 1px solid transparent; }
.contact-body a:hover { color: #fff; border-bottom-color: var(--color-accent-deep); }

/* ---- Footer ---- */
.site-footer {
  border-top: var(--border-hairline);
  color: var(--color-muted);
  padding-block: var(--space-6);
  font-size: var(--fs-sm);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.footer-inner p { margin: 0; }
.footer-brand strong { color: var(--color-primary); font-weight: var(--weight-heading); }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.footer-nav a { color: var(--color-muted); }
.footer-nav a:hover { color: var(--color-primary); }
.footer-copy { font-size: var(--fs-xs); }


/* ==========================================================================
   6. RESPONSIVE
   ========================================================================== */

/* Tablet — hero stacks, portrait stays prominent and centred */
@media (max-width: 940px) {
  .hero-panel {
    display: block;
    min-height: 0;
    padding: clamp(2.25rem, 6vw, 3rem) clamp(1.5rem, 6vw, 3rem) 0;
    text-align: left;
  }
  .hero-copy { max-width: none; }
  .hero-figure {
    position: relative;
    right: auto; top: auto;
    width: min(320px, 76%);
    margin: var(--space-6) auto 0;
  }
  .hero-panel::before { width: 68%; left: 50%; top: auto; bottom: 6%; transform: translateX(-50%); }
  .hero-panel::after  { width: 18%; left: 84%; top: auto; bottom: 42%; transform: translateX(-50%); }

  .about-grid { grid-template-columns: minmax(0, 1fr); }   /* text first, image under */
  .about-copy { max-width: none; }
  .about-figure { max-width: 520px; margin-inline: auto; }

  .contact-panel { grid-template-columns: minmax(0, 1fr); }
  .contact-head { text-align: center; }
  .contact-head .btn { margin-inline: auto; }
}

/* Mobile navigation */
@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .nav {
    display: flex;
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-4) var(--gutter) var(--space-6);
    background: var(--color-surface);
    border-bottom: var(--border-hairline);
    box-shadow: 0 18px 40px -28px rgba(74, 48, 105, 0.45);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav-list { grid-column: auto; flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li + li { border-top: var(--border-hairline); }
  .nav-list a { display: block; padding: var(--space-4) 0; }
  .nav-list a::after { display: none; }

  .header-end {
    grid-column: auto;
    justify-self: stretch;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
    margin-top: var(--space-5);
  }
  .lang-switch { justify-content: center; }

  .header-cta {
    grid-column: auto;
    justify-self: stretch;
  }

  .service-grid,
  .solution-grid,
  .mission-grid,
  .showcase,
  .why-list { grid-template-columns: minmax(0, 1fr); }

  /* navigation stacks above the detail panel as a plain vertical list */
  .explorer-grid { grid-template-columns: minmax(0, 1fr); }
  .explorer-tabs { grid-auto-rows: auto; }
}

@media (max-width: 560px) {
  :root { --header-height: 76px; --radius-panel: 28px; }
  .brand-mark { height: 34px; }
  .brand-name { font-size: 1.12rem; }
  .hero-copy .btn { width: 100%; }
  /* fewer, cleaner rows rather than five cramped ones */
  .hero-strip {
    --strip-gap: 0.9rem;
    padding: 1.4rem 1rem;
  }

  .explorer-topics { grid-template-columns: minmax(0, 1fr); }
  /* two rows: email, then phone · WhatsApp still grouped together */
  .cta-links { flex-direction: column; }

  /* About Me reads as one centred column on phones */
  .about-copy {
    max-width: 34rem;
    margin-inline: auto;
    text-align: center;
  }
  .about-figure { max-width: 320px; }
}


/* ==========================================================================
   7. MOTION PREFERENCES
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js-reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   8. ACCENT SYSTEM
   One rhythm, applied where content already comes in sets. Each item takes
   an ink (title text), a vivid (icon / tick) and a tint (disc, pill, rule).
   Body copy stays neutral — colour marks titles, icons, tags and details.
   ========================================================================== */

/* ---- Services: four cards, four personalities ---- */
.service-grid .service:nth-child(4n + 1) { --ink: var(--accent-violet); --vivid: var(--accent-violet-vivid); --tint: var(--accent-violet-tint); }
.service-grid .service:nth-child(4n + 2) { --ink: var(--accent-pink);   --vivid: var(--accent-pink-vivid);   --tint: var(--accent-pink-tint); }
.service-grid .service:nth-child(4n + 3) { --ink: var(--accent-green);  --vivid: var(--accent-green-vivid);  --tint: var(--accent-green-tint); }
.service-grid .service:nth-child(4n + 4) { --ink: var(--accent-gold);   --vivid: var(--accent-gold-vivid);   --tint: var(--accent-gold-tint); }

.service .card-icon { background: var(--tint); color: var(--ink); }
.service > h3       { color: var(--ink); }
.service .check-list li { --tick: var(--vivid); }
.service:hover { border-color: var(--tint); }

/* ---- Solutions: three pillars ---- */
.solution-grid .solution:nth-child(3n + 1) { --ink: var(--accent-violet); --vivid: var(--accent-violet-vivid); }
.solution-grid .solution:nth-child(3n + 2) { --ink: var(--accent-pink);   --vivid: var(--accent-pink-vivid); }
.solution-grid .solution:nth-child(3n + 3) { --ink: var(--accent-green);  --vivid: var(--accent-green-vivid); }
.solution > h3 { color: var(--ink); }
.solution .check-list li { --tick: var(--vivid); }

/* ---- Our Mission: accent follows the illustration ---- */
.mission-item:nth-child(1) h3 { color: var(--accent-violet); }   /* microscope */
.mission-item:nth-child(2) h3 { color: var(--accent-gold); }     /* light bulb */
.mission-item:nth-child(3) h3 { color: var(--accent-green); }    /* globe      */

/* ---- Services showcase strip ---- */
.showcase-item:nth-child(1) h3 { color: var(--accent-violet); }
.showcase-item:nth-child(2) h3 { color: var(--accent-pink); }
.showcase-item:nth-child(3) h3 { color: var(--accent-green); }

/* ---- About Me points (same component as the Why Us list) ---- */
/* ---- Services explorer: topic rules cycle, tabs stay brand purple ---- */
.explorer-topic:nth-child(4n + 1) { border-top-color: var(--accent-violet-tint); }
.explorer-topic:nth-child(4n + 2) { border-top-color: var(--accent-pink-tint); }
.explorer-topic:nth-child(4n + 3) { border-top-color: var(--accent-green-tint); }
.explorer-topic:nth-child(4n + 4) { border-top-color: var(--accent-gold-tint); }
.explorer-tab:hover { border-color: var(--accent-violet-tint); color: var(--accent-violet); }

/* ---- Why Us: the reference implementation, now on the shared tokens ---- */
[data-page="why"] .why-panel .section-head h2 { color: var(--accent-plum); }
.why-list li:nth-child(4n + 1) { --tick: var(--accent-violet-vivid); }
.why-list li:nth-child(4n + 2) { --tick: var(--accent-pink-vivid); }
.why-list li:nth-child(4n + 3) { --tick: var(--accent-green-vivid); }
.why-list li:nth-child(4n + 4) { --tick: var(--accent-gold-vivid); }
.why-list li:nth-child(4n + 1) strong { color: var(--accent-violet); }
.why-list li:nth-child(4n + 2) strong { color: var(--accent-pink); }
.why-list li:nth-child(4n + 3) strong { color: var(--accent-green); }
.why-list li:nth-child(4n + 4) strong { color: var(--accent-gold); }
.audiences-title  { color: var(--accent-pink); }
.audiences        { border-top-color: #ecdff7; }

/* ---- Pills / tags: pale fill, matching darker ink ---- */
.audience-row li {
  border-color: transparent;
  background: var(--tint);
  color: var(--ink);
  transition: background-color var(--transition), color var(--transition);
}
.audience-row li:nth-child(4n + 1) { --tint: var(--accent-violet-tint); --ink: var(--accent-plum); }
.audience-row li:nth-child(4n + 2) { --tint: var(--accent-pink-tint);   --ink: var(--accent-pink); }
.audience-row li:nth-child(4n + 3) { --tint: var(--accent-green-tint);  --ink: var(--accent-green); }
.audience-row li:nth-child(4n + 4) { --tint: var(--accent-gold-tint);   --ink: var(--accent-gold); }

/* ==========================================================================
   9. CONTACT FORM
   Sits under the purple contact panel; uses the accent system for its states.
   ========================================================================== */
.contact-form-wrap { margin-top: clamp(2.5rem, 4.5vw, 4rem); }
.form-head { max-width: 40rem; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }

.contact-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  max-width: 900px;
  margin-inline: auto;
}
.form-field { display: grid; gap: var(--space-2); margin: 0; }
.form-field-wide { grid-column: 1 / -1; }

.contact-form label {
  font-size: var(--fs-sm);
  font-weight: var(--weight-medium);
  color: var(--accent-plum);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1.05rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: inherit;
  font-size: var(--fs-base);
  font-weight: var(--weight-body);
  line-height: 1.5;
  transition: border-color var(--transition), background-color var(--transition), box-shadow var(--transition);
}
.contact-form textarea { resize: vertical; min-height: 9rem; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--color-muted); }

.contact-form input:hover,
.contact-form textarea:hover { border-color: var(--accent-violet-vivid); }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background: var(--accent-violet-tint);
  border-color: var(--accent-violet);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}
/* :user-invalid only fires after the visitor has actually interacted */
.contact-form input:user-invalid,
.contact-form textarea:user-invalid {
  border-color: var(--accent-pink-vivid);
  background: var(--accent-pink-tint);
}

/* the honeypot must stay reachable to bots but invisible to people */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) clamp(1rem, 2.5vw, 2rem);
}
.contact-form .btn-primary:disabled { opacity: 0.6; cursor: default; }

.form-feedback {
  display: none;
  margin: 0;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: var(--weight-medium);
}
.form-feedback.is-visible { display: block; }
.form-feedback.is-success { background: var(--accent-green-tint); color: var(--accent-green); }
.form-feedback.is-error   { background: var(--accent-pink-tint);  color: var(--accent-pink); }

@media (max-width: 760px) {
  .contact-form { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Footer visitor counter ---- */
.footer-count {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--accent-violet-tint);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-muted);
  font-size: var(--fs-xs);
  line-height: 1;
}
.footer-count-icon { width: 1rem; height: 1rem; flex: none; color: var(--accent-violet); }
.footer-count-value {
  min-width: 3.5ch;              /* holds its width so nothing jumps on load */
  color: var(--accent-plum);
  font-weight: var(--weight-medium);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* ---- Navigation: one accent per destination -------------------------------
   Rest state uses the accent; the active page uses a deeper version of the
   same hue plus its underline, so the current page still reads first.       */
.nav-list a[data-i18n="nav.home"]     { --nav-ink: #7b3fd4; --nav-ink-strong: #5f2fa8; }
.nav-list a[data-i18n="nav.services"] { --nav-ink: #3f7d22; --nav-ink-strong: #2f6118; }
.nav-list a[data-i18n="nav.why"]      { --nav-ink: #c2246e; --nav-ink-strong: #9d1a58; }
.nav-list a[data-i18n="nav.contact"]  { --nav-ink: #8a6a12; --nav-ink-strong: #6f550c; }

.nav-list a[data-i18n] { color: var(--nav-ink, var(--color-text)); }
.nav-list a[data-i18n]::after { background: var(--nav-ink, var(--color-primary)); }
.nav-list a[data-i18n]:hover,
.nav-list a[data-i18n].is-active { color: var(--nav-ink-strong, var(--color-primary)); }
.nav-list a[data-i18n].is-active::after { background: var(--nav-ink-strong, var(--color-primary)); }

/* ---- Global expertise: copy beside an illustrated world map ---- */
.global { padding-top: 0; }
.global-panel {
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3.5vw, 3rem);
  border: var(--border-hairline);
  border-radius: var(--radius-panel);
  background: linear-gradient(180deg, var(--accent-violet-tint) 0%, var(--color-surface) 60%);
  box-shadow: var(--shadow-card);
}
.global-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
.global-copy h2 { margin-bottom: var(--space-3); }
.global-lede {
  max-width: 26rem;
  margin: 0 0 clamp(1.75rem, 3vw, 2.5rem);
  color: var(--color-muted);
  font-size: var(--fs-md);
}

/* the three expertise items */
.global-points { display: grid; gap: clamp(1.25rem, 2.4vw, 1.75rem); }
.global-point { display: flex; align-items: flex-start; gap: var(--space-4); }
.global-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px; height: 48px;
  border-radius: var(--radius-pill);
  background: var(--tint);
  color: var(--ink);
}
.global-icon svg { width: 23px; height: 23px; }
.global-point-body { border-left: 1px solid var(--tint); padding-left: var(--space-4); }
.global-point h3 { margin-bottom: var(--space-2); color: var(--ink); }
.global-point p { margin: 0; color: var(--color-muted); font-size: var(--fs-sm); }

.global-point-violet { --ink: var(--accent-violet); --tint: var(--accent-violet-tint); }
.global-point-pink   { --ink: var(--accent-pink);   --tint: var(--accent-pink-tint); }
.global-point-green  { --ink: var(--accent-green);  --tint: var(--accent-green-tint); }

/* map: silhouette image with routes and markers overlaid in the same viewBox */
.global-map { margin: 0; }
.global-map-frame { position: relative; }
.global-map img { width: 100%; height: auto; display: block; }
.global-map-overlay {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
}

.map-route path {
  fill: none;
  stroke: var(--accent-violet-vivid);
  stroke-width: 1.4;
  stroke-dasharray: 5 6;
  stroke-linecap: round;
  opacity: 0.55;
}
.map-spark path { fill: var(--accent-gold-vivid); opacity: 0.5; stroke: none; }

.map-pin path { stroke: none; }
.map-pin .map-pin-eye { fill: #fff; stroke: none; }
.map-pin text {
  fill: var(--accent-plum);
  font-family: var(--font-sans);
  font-size: 21px;
  font-weight: var(--weight-medium);
  text-anchor: middle;
  stroke: none;
}
.map-pin-violet path { fill: var(--accent-violet); }
.map-pin-pink   path { fill: var(--accent-pink-vivid); }
.map-pin-gold   path { fill: var(--accent-gold-vivid); }
.map-pin-green  path { fill: var(--accent-green-vivid); }

@media (max-width: 940px) {
  .global-grid { grid-template-columns: minmax(0, 1fr); }   /* copy first, map under */
  .global-lede { max-width: none; }
}
