/* =========================================================================
   Evangelatos Group · assets/css/rounded.css

   2.19.0: ROUNDED CARDS, AFTER NNGROUP.GR

   One layer over site.css, loaded after it, so the whole change is in one
   file and comes out by removing one enqueue. It does three things:

   1. The ground turns a pale mist, and every block that used to run edge to
      edge (the bar, the hero, the page headers, the white sections, the
      company sectors, the closing question, the footer) becomes a rounded
      card inset from the window, all on one frame.
   2. Buttons, chips, fields and images get round ends and corners.
   3. The home page's new blocks (inc/home.php) are laid out here.

   The pages keep their content and their order. The Companies page keeps
   its design: only its rectangles are rounded, and Mercury and Selecta take
   their brand colours (inc/cpt.php).

   The recurring detail is the notch: a card's corner cut out and painted the
   colour behind the card, with a round arrow in it. Two fillets beside it
   curve the card's edge into the cut, so it reads as one shape.
   ====================================================================== */

:root {
  --c-mist:    #E8EEEB;   /* the ground: mist with a teal bias */
  --c-mist-2:  #D7E8E2;   /* a light card on it */
  --c-ghost:   #CFDCD7;   /* the mark as a watermark on the ground */
  --ground:    var(--c-mist);

  --edge:  clamp(12px, 1.6vw, 24px);   /* how far a block sits in from the window */
  --frame: 1480px;                     /* the widest a block gets */
  --gap:   clamp(10px, 1.3vw, 18px);   /* between two blocks */

  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;

  --bar-h: 64px;
}

@media (max-width: 720px) {
  :root {
    --r-xl: 22px;
    --r-lg: 18px;
  }
}

body { background: var(--ground); }

[hidden] { display: none !important; }

/* An anchor lands below the floating bar, not under it. */
section[id],
article[id],
li[id] { scroll-margin-top: calc(var(--bar-h) + 28px); }

/* =========================================================================
   THE FRAME

   Every rounded block takes the same width: the window less an edge on each
   side, up to --frame. The words inside keep .evg-wrap's measure.
   ====================================================================== */

.evg-bar,
.evg-drawer,
.evg-hero,
.evg-rhome,
.evg-head--photo,
.evg-tint,
.evg-forpartners,
.evg-codiv,
.evg-ask,
.evg-foot {
  width: min(100% - 2 * var(--edge), var(--frame));
  margin-inline: auto;
}

/* Hairlines between sections go: the blocks and the gaps between them
   draw the edges now. */
.evg-section + .evg-section,
.evg-section + .evg-tint,
.evg-tint + .evg-section { border-top: 0; }

/* =========================================================================
   THE BAR

   Floating and rounded, the same on every page. The home page's bar used to
   lie over the hero as glass; the hero is now three cards below it.
   ====================================================================== */

.evg-bar {
  position: sticky;
  top: 10px;
  margin-top: 10px;
  border-radius: var(--r-lg);
  border-bottom: 0;
  background: color-mix(in srgb, var(--c-slate) 93%, transparent);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--c-white) 8%, transparent),
    0 14px 34px -22px rgb(22 32 43 / .7);
}

.evg-bar::after { border-radius: inherit; }

.evg-bar__in {
  max-width: none;
  min-height: var(--bar-h);
  padding: .55rem .6rem .55rem 1.4rem;
  gap: 1rem;
}

.evg-nav { margin-inline: auto; }
.evg-nav__list { gap: .15rem; }

.evg-nav__link {
  display: inline-block;
  padding: .62rem .95rem;
  border-bottom: 0;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .92rem;
  opacity: .86;
  transition: background .2s var(--ease), opacity .2s var(--ease), color .2s var(--ease);
}

.evg-nav__link:hover {
  background: color-mix(in srgb, var(--c-white) 8%, transparent);
  opacity: 1;
}

.evg-nav__link.is-current {
  color: var(--c-aqua);
  background: color-mix(in srgb, var(--c-aqua) 13%, transparent);
  opacity: 1;
}

.evg-bar__end { gap: .5rem; }

/* The corporate presentation, up here as well as in the footer. */
.evg-bar__deck {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  height: 44px;
  padding: 0 1.1rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--c-aqua) 55%, transparent);
  color: var(--c-white);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .86rem;
  white-space: nowrap;
  transition: background .2s var(--ease);
}

.evg-bar__deck:hover,
.evg-bar__deck:focus-visible { background: color-mix(in srgb, var(--c-aqua) 14%, transparent); }

.evg-bar__deck-i { width: 17px; height: 17px; stroke-width: 1.9; }

.evg-lang {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 .75rem;
  border-radius: 999px;
  border-color: color-mix(in srgb, var(--c-aqua) 50%, transparent);
  font-family: var(--font-display);
}

.evg-burger {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: var(--c-aqua);
  align-content: center;
}

.evg-burger span {
  width: 18px;
  margin-inline: auto;
  background: var(--c-slate);
}

.evg-burger span + span { margin-top: 5px; }

@media (max-width: 1180px) {
  .evg-bar__deck { display: none; }
}

@media (max-width: 860px) {
  .evg-burger { display: grid; }
  .evg-bar__in { padding-left: 1.1rem; }
}

/* The drawer, as a rounded panel under the bar rather than a band. */
.evg-drawer {
  top: calc(10px + var(--bar-h) + 8px);
  margin-top: 8px;
  border-radius: var(--r-lg);
  box-shadow: 0 24px 40px -20px rgb(22 32 43 / .7);
}

.evg-drawer__list { padding: .6rem; }

.evg-drawer__list a {
  padding: .85rem 1rem;
  border-radius: var(--r-md);
  font-size: 1.15rem;
}

.evg-drawer__list a:hover { background: color-mix(in srgb, var(--c-white) 8%, transparent); }

/* =========================================================================
   SHARED PIECES
   ====================================================================== */

/* ---- the notch ---------------------------------------------------------- */

.evg-notch {
  --nb: var(--ground);
  --nr: 20px;
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 10px 0 0 10px;
  background: var(--nb);
  border-top-left-radius: var(--nr);
  pointer-events: none;
}

.evg-notch::before,
.evg-notch::after {
  content: "";
  position: absolute;
  width: var(--nr);
  height: var(--nr);
  background: radial-gradient(circle at 0 0, transparent calc(var(--nr) - .6px), var(--nb) var(--nr));
}

.evg-notch::before { right: 0; top: calc(var(--nr) * -1); }
.evg-notch::after  { left: calc(var(--nr) * -1); bottom: 0; }

/* bottom left, for a tab with words in it */
.evg-notch--bl {
  right: auto;
  left: 0;
  padding: 10px 10px 0 0;
  border-top-left-radius: 0;
  border-top-right-radius: var(--nr);
}

.evg-notch--bl::before,
.evg-notch--bl::after {
  background: radial-gradient(circle at 100% 0, transparent calc(var(--nr) - .6px), var(--nb) var(--nr));
}

.evg-notch--bl::before { right: auto; left: 0; }
.evg-notch--bl::after  { left: auto; right: calc(var(--nr) * -1); }

/* No seam on hover (2.20.0). The notch is three pieces laid over the picture,
   and where two of them meet, or where one meets the card's edge, a hairline
   of the picture showed through, most of all while the picture zooms on hover
   and is drawn on a layer of its own. So each piece now overlaps the next by a
   pixel and runs a pixel past the card's edge, which the card clips. Every
   visible edge stays exactly where it was. */
.evg-notch {
  right: -1px;
  bottom: -1px;
  padding: 10px 1px 1px 10px;
}

.evg-notch::before,
.evg-notch::after {
  width: calc(var(--nr) + 1px);
  height: calc(var(--nr) + 1px);
}

.evg-notch--bl {
  right: auto;
  left: -1px;
  padding: 10px 10px 1px 1px;
}

/* the picture keeps its own layer from the start, so hovering does not
   re-draw it at a different scale under the notch */
.evg-post__media img,
.evg-panel__bg,
.evg-hco__bg { will-change: transform; }

.evg-go {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--c-slate);
  color: var(--c-aqua);
  transition: background .25s var(--ease), color .25s var(--ease);
}

.evg-go svg {
  width: 22px;
  height: 22px;
  transition: transform .35s var(--ease);
}

a:hover .evg-go,
a:focus-visible .evg-go,
.evg-panel:hover .evg-go,
.evg-panel:focus-within .evg-go {
  background: var(--c-teal);
  color: var(--c-white);
}

a:hover .evg-go svg,
a:focus-visible .evg-go svg,
.evg-panel:hover .evg-go svg,
.evg-panel:focus-within .evg-go svg { transform: rotate(-45deg); }

/* ---- pills -------------------------------------------------------------- */

.evg-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .78rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.evg-pill--aqua { background: var(--c-aqua); color: var(--c-slate); }
.evg-pill--aqua:hover,
a:hover > .evg-pill--aqua { background: var(--c-white); }

.evg-pill--dark { background: var(--c-slate); color: var(--c-white); }
.evg-pill--dark:hover { background: var(--c-teal-text); }

.evg-pill--paper {
  background: var(--c-white);
  color: var(--c-slate);
  border-color: color-mix(in srgb, var(--c-slate) 14%, transparent);
}
.evg-pill--paper:hover { border-color: var(--c-teal); color: var(--c-teal-text); }

.evg-pill__i { width: 17px; height: 17px; stroke-width: 1.9; flex: none; }

.evg-pill__m {
  padding-left: .55rem;
  border-left: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  opacity: .75;
}

.evg-arrow {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform .25s var(--ease);
}

a:hover .evg-arrow,
a:focus-visible .evg-arrow { transform: translateX(3px); }

.evg-display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.1rem, 4.2vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.evg-display em { font-style: normal; font-weight: 800; }

.evg-rhead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.evg-rhead .evg-eyebrow { margin-bottom: .75rem; }

.evg-textlink {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
  color: var(--c-teal-text);
  text-decoration: none;
}

.evg-round {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--c-slate) 14%, transparent);
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-slate);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), opacity .2s var(--ease);
}

.evg-round svg { width: 20px; height: 20px; }
.evg-round:hover:not(:disabled) { background: var(--c-slate); color: var(--c-aqua); }
.evg-round:disabled { opacity: .35; cursor: default; }

/* =========================================================================
   THE HOME PAGE
   ====================================================================== */

/* ---- the three sectors -------------------------------------------------- */

.evg-hero {
  margin-top: var(--gap);
  gap: var(--gap);
  background: none;
  min-height: clamp(440px, 66vh, 700px);
}

.evg-panel {
  border-radius: var(--r-xl);
  overflow: hidden;
}

.evg-hero .evg-panel__rule { display: none; }
.evg-panel__body { padding-right: 70px; }

@media (max-width: 860px) {
  .evg-panel { min-height: clamp(280px, 44vh, 400px); }
}

/* ---- who we are: the bento ---------------------------------------------- */

.evg-bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
  margin-top: var(--gap);
}

.evg-bento.has-profile.has-figs {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, .95fr);
}

.evg-bento.has-profile:not(.has-figs),
.evg-bento.has-figs:not(.has-profile) {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
}

.evg-bento__about {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.3rem;
  min-height: 540px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--r-xl);
  background: var(--c-slate);
  color: var(--c-white);
  text-decoration: none;
}

.evg-bento__photo {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: -1;
  width: 100%;
  height: 60%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 48%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 48%);
  transition: transform 1s var(--ease);
}

.evg-bento__about:hover .evg-bento__photo { transform: scale(1.04); }

.evg-bento__about .evg-eyebrow { margin: 0; color: var(--c-aqua); }

.evg-bento__intro {
  max-width: 23ch;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 1.95vw, 1.95rem);
  line-height: 1.28;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.evg-bento__facts {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.evg-chip-glass {
  padding: .5rem .9rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--c-white) 20%, transparent);
  background: rgb(34 43 53 / .58);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  color: var(--c-white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .84rem;
}

.evg-bento__profile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.4rem, 2.6vw, 2.1rem);
  border-radius: var(--r-xl);
  background: var(--c-mist-2);
}

.evg-bento__arcs {
  position: absolute;
  top: 0;
  right: 0;
  z-index: -1;
  width: 90%;
  height: auto;
  color: var(--c-teal);
  opacity: .4;
}

.evg-tag {
  align-self: flex-start;
  margin: 0;
  padding: .42rem .9rem;
  border: 1px solid color-mix(in srgb, var(--c-teal-text) 45%, transparent);
  border-radius: 999px;
  color: var(--c-teal-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
}

.evg-bento__cover {
  display: block;
  width: 84%;
  margin: auto;
  overflow: hidden;
  border-radius: 12px;
  transform: rotate(-4deg);
  box-shadow: 0 0 0 6px var(--c-white), 0 34px 50px -26px rgb(22 32 43 / .6);
  transition: transform .6s var(--ease);
}

.evg-bento__cover img { width: 100%; height: auto; }

.evg-bento__profile:hover .evg-bento__cover { transform: rotate(-1.5deg) translateY(-6px); }

.evg-bento__h {
  margin: .4rem 0 0;
  font-size: clamp(1.25rem, 1.7vw, 1.6rem);
  line-height: 1.15;
}

.evg-bento__line {
  margin: 0;
  max-width: 40ch;
  font-size: var(--fs-caption);
  color: var(--c-slate-soft);
}

.evg-bento__files {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0;
}

.evg-bento__figs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-auto-rows: 1fr;
  gap: var(--gap);
}

.evg-fig {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 160px;
  padding: 1.3rem 1.6rem;
  border-radius: var(--r-xl);
  background: var(--c-deep-1);
  color: var(--c-white);
}

.evg-fig__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .6;
}

.evg-fig::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(200deg, rgb(22 32 43 / .05) 10%, rgb(22 32 43 / .92) 78%);
}

.evg-fig__n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 3.6vw, 3.8rem);
  line-height: .95;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
  color: var(--c-aqua);
}

/* 2.19.1: filled, not outlined. */

.evg-fig__n.is-pending { opacity: .5; }

.evg-fig__l {
  margin-top: .5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}

@media (max-width: 1180px) {
  .evg-bento.has-profile.has-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evg-bento.has-profile .evg-bento__figs {
    grid-column: 1 / -1;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    grid-auto-rows: auto;
  }
}

@media (max-width: 760px) {
  .evg-bento,
  .evg-bento.has-profile.has-figs,
  .evg-bento.has-profile:not(.has-figs),
  .evg-bento.has-figs:not(.has-profile) { grid-template-columns: minmax(0, 1fr); }
  .evg-bento__about { min-height: 470px; }
  .evg-bento .evg-bento__figs { grid-template-columns: minmax(0, 1fr); }
}

/* ---- the statement ------------------------------------------------------ */

.evg-saying {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 2.25fr);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 4rem);
  padding-block: clamp(3.5rem, 8vw, 7.5rem);
}

.evg-saying__mark {
  justify-self: center;
  width: 100%;
  max-width: 280px;
  height: auto;
  color: var(--c-ghost);
}

.evg-saying__text {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: -.04em;
  color: var(--ink);
  text-wrap: balance;
}

.evg-saying__text em {
  font-style: normal;
  font-weight: 800;
  color: var(--c-teal-text);
  background: linear-gradient(90deg, var(--c-teal-text), var(--c-teal));
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 760px) {
  .evg-saying {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 3rem;
  }
  .evg-saying__mark { justify-self: start; max-width: 84px; }
}

/* ---- the companies ------------------------------------------------------ */

.evg-hcos {
  display: grid;
  gap: clamp(1.6rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--c-slate);
  color: var(--c-white);
}

/* The heading over its line on the left, the sector filter on the right.
   2.19.1 took out the outlined word that sat opposite the heading. */
.evg-hcos__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.2rem 3.5rem;
}

.evg-hcos__head .evg-display,
.evg-hcos__lede { grid-column: 1; }

.evg-hcos__filters {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
}

.evg-hcos__lede {
  margin: 0;
  max-width: 44ch;
  font-size: 1.05rem;
  color: color-mix(in srgb, var(--c-white) 84%, transparent);
}

.evg-hcos__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .5rem;
}

.evg-filter {
  background: transparent;
  border-color: color-mix(in srgb, var(--c-white) 24%, transparent);
  color: var(--c-white);
}

.evg-filter:hover { border-color: var(--c-aqua); }

.evg-filter[aria-pressed="true"] {
  background: var(--c-aqua);
  border-color: var(--c-aqua);
  color: var(--c-slate);
}

.evg-hcos__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.evg-hco {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--c-deep-1);
  transition: opacity .35s var(--ease), filter .35s var(--ease);
}

/* a cut-out on the company's own gradient: Mercury red, Selecta red to
   indigo, Wheego indigo, Chauffeur black */
.evg-hco.has-stage { background: var(--stage, linear-gradient(168deg, var(--c-deep-1) 0%, #0d141c 100%)); }

.evg-hco.is-dim { opacity: .22; filter: grayscale(1); }

.evg-hco__link {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  height: 100%;
  min-height: clamp(300px, 25vw, 370px);
  padding: 1.5rem;
  color: var(--c-white);
  text-decoration: none;
}

.evg-hco__link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
              rgb(22 32 43 / .5) 0%,
              rgb(22 32 43 / .08) 30%,
              rgb(22 32 43 / .25) 50%,
              rgb(22 32 43 / .92) 100%);
}

/* On a brand gradient the copy stands on the gradient's own dark stop, not
   on slate, so the card stays the brand's colour to its foot. */
.evg-hco.has-stage .evg-hco__link::before {
  background: linear-gradient(180deg,
              transparent 42%,
              color-mix(in srgb, var(--scrim, var(--c-deep-1)) 94%, transparent) 100%);
}

.evg-hco__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

/* Every car stands on the same ground line, a set height up from the foot
   of the card, and they are matched on height rather than width. Pinned from
   the top at one width, the Chauffeur saloon (2.7:1 against about 2:1 for the
   SUVs) came out shorter, so its wheels sat higher than the others' and it
   looked to float. A box of one height, the picture fitted into it from the
   bottom right, keeps all four on the line; the width cap stops the long car
   running out of the card, and contain keeps its proportions when it does. */
.evg-hco {
  --car-ground: 37%;
  --car-h: 42%;
}

.evg-hco__car {
  position: absolute;
  right: -5%;
  bottom: var(--car-ground);
  z-index: -2;
  width: 92%;
  height: var(--car-h);
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 22px 18px rgb(0 0 0 / .45));
  transition: transform 1s var(--ease);
}

.evg-hco__glow {
  position: absolute;
  right: 0;
  bottom: calc(var(--car-ground) - 6%);
  z-index: -2;
  width: 82%;
  aspect-ratio: 1.9;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
              color-mix(in srgb, var(--glow) 42%, transparent) 0%,
              color-mix(in srgb, var(--glow) 14%, transparent) 45%,
              transparent 72%);
}

.evg-hco:hover .evg-hco__bg { transform: scale(1.05); }
.evg-hco:hover .evg-hco__car { transform: translateX(-10px); }

.evg-hco__logo {
  height: clamp(28px, 2.6vw, 38px);
  width: auto;
  max-width: 62%;
  object-fit: contain;
  object-position: left center;
}

.evg-hco__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
}

.evg-hco__body {
  display: grid;
  gap: .35rem;
  padding-right: 64px;
}

.evg-hco__body .evg-eyebrow {
  margin: 0;
  font-size: 12px;
  color: var(--c-aqua);
}

.evg-hco__desc {
  max-width: 34ch;
  font-size: .95rem;
  line-height: 1.45;
  color: color-mix(in srgb, var(--c-white) 92%, transparent);
}

.evg-hco__also {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: .35rem;
  padding: .4rem .8rem .4rem .65rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--c-white) 18%, transparent);
  background: rgb(22 32 43 / .5);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  font-size: .78rem;
  line-height: 1.3;
}

.evg-hco__also img { height: 15px; width: auto; flex: none; }

.evg-hco .evg-notch { --nb: var(--c-slate); --nr: 18px; }

.evg-hco .evg-go {
  width: 46px;
  height: 46px;
  background: var(--c-aqua);
  color: var(--c-slate);
}

.evg-hcos__foot {
  display: flex;
  justify-content: flex-end;
  margin: 0;
}

@media (max-width: 1020px) {
  .evg-hcos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evg-hcos__head { grid-template-columns: minmax(0, 1fr); }
  .evg-hcos__filters { grid-column: 1; grid-row: auto; justify-content: flex-start; }
}

@media (max-width: 600px) {
  .evg-hcos__grid { grid-template-columns: minmax(0, 1fr); }
  .evg-hcos__foot { justify-content: flex-start; }

  /* One card to the width: the ground line rises, because the copy at the
     foot wraps to more lines, and the card is tall enough to hold both. */
  .evg-hco { --car-ground: 46%; --car-h: 36%; }
  .evg-hco.has-stage .evg-hco__link { min-height: 360px; }
}

/* ---- the milestones ----------------------------------------------------- */

.evg-course {
  display: grid;
  gap: 1.75rem;
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(1.5rem, 3vw, 2.5rem);
}

.evg-course__arrows { display: flex; gap: .5rem; }

.evg-course__track {
  list-style: none;
  margin: 0;
  padding: 0 0 4px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, calc(100% / 6));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.evg-course__track::-webkit-scrollbar { display: none; }

.evg-course__ms {
  scroll-snap-align: start;
  display: grid;
  grid-template-rows: auto 30px auto;
  align-content: start;
  gap: .75rem;
  padding-right: 1.4rem;
}

.evg-course__year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.evg-course__year.is-pending { opacity: .4; }

.evg-course__dot { position: relative; }

.evg-course__dot::before {
  content: "";
  position: absolute;
  left: 0;
  right: -1.4rem;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: color-mix(in srgb, var(--c-teal) 40%, transparent);
}

.evg-course__dot::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--c-teal);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--c-teal) 18%, transparent);
}

.evg-course__label {
  max-width: 22ch;
  font-size: .96rem;
  line-height: 1.45;
  color: var(--c-slate-soft);
}

/* ---- news, careers, partnerships ---------------------------------------- */

.evg-more2 {
  display: grid;
  gap: 1.75rem;
  padding-block: clamp(2rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 4.5rem);
}

.evg-posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.evg-post {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--c-slate) 12%, transparent);
  border-radius: var(--r-xl);
  background: var(--c-white);
  color: inherit;
  text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.evg-post:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 40px -30px rgb(22 32 43 / .55);
}

.evg-post__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom-right-radius: var(--r-lg);
  background: var(--c-deep-1);
}

.evg-post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.evg-post:hover .evg-post__media img { transform: scale(1.05); }

.evg-post .evg-notch { --nb: var(--c-white); --nr: 18px; }

.evg-post__tab {
  display: block;
  padding: .5rem 1.1rem .1rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .02em;
  color: var(--c-teal-text);
}

.evg-post__body {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  flex: 1;
  padding: .9rem 1.6rem 1.6rem;
}

/* No line under the tab while the card lifts (2.22.1). The lift moves the
   card by part of a pixel, so the photo's bottom edge lands inside a pixel
   row; the photo and the white tab each half-cover that row, and it showed
   as a grey line under the tab. The text panel now starts a pixel higher, in
   the card's own white, and covers that edge. Its padding gains the pixel
   back, so nothing moves. */
.evg-post__body {
  position: relative;
  z-index: 1;
  margin-top: -1px;
  padding-top: calc(.9rem + 1px);
  background: inherit;
}

.evg-post__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.22;
  letter-spacing: -.012em;
  text-wrap: balance;
}

.evg-post__line {
  font-size: .96rem;
  line-height: 1.5;
  color: var(--c-slate-soft);
}

.evg-post__more {
  margin-top: auto;
  padding-top: .5rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  color: var(--c-teal-text);
}

/* The News page: as many columns as fit, filled from the left, so two
   announcements sit as two cards rather than stretching across the row. */
.evg-posts--news {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}

@media (max-width: 900px) {
  .evg-posts { grid-template-columns: minmax(0, 1fr); }
  .evg-posts--news { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
  .evg-post__media { aspect-ratio: 21 / 9; }
  .evg-posts--news .evg-post__media { aspect-ratio: 16 / 10; }
}

@media (max-width: 600px) {
  .evg-post__media { aspect-ratio: 16 / 10; }
}

/* =========================================================================
   THE OTHER PAGES

   Same pages, same order. What ran edge to edge is now a rounded block on
   the mist; what sat on the white stays on the ground between them.
   ====================================================================== */

/* ---- page headers over a photograph ------------------------------------- */

.evg-head--photo {
  margin-top: var(--gap);
  border-radius: var(--r-xl);
}

/* ---- the white sections, as sheets -------------------------------------- */

.evg-tint,
.evg-forpartners {
  margin-block: var(--gap);
  border-radius: var(--r-xl);
  background: var(--c-white);
}

/* ---- the Companies page: its design, with round corners ----------------- */

.evg-codiv {
  margin-top: var(--gap);
  border-radius: var(--r-xl);
}

.evg-card { border-radius: var(--r-lg); }

/* On a phone the card splits into the copy above and the artwork below. The
   artwork keeps the brand colour; the copy takes the gradient's dark stop,
   because Mercury's and Selecta's reds are too light for white text there
   (4.4:1 and 3.9:1). */
@media (max-width: 700px) {
  .evg-card.has-stage .evg-card__body { background: var(--scrim, transparent); }
}

/* ---- the closing question ----------------------------------------------- */

.evg-ask {
  margin-block: var(--gap);
  border-radius: var(--r-xl);
}

/* ---- the corporate profile on The Group page ---------------------------- */

.evg-profile { border-radius: var(--r-xl); overflow: hidden; }
.evg-profile__cover,
.evg-profile__cover img { border-radius: var(--r-md); }

/* ---- buttons, chips, fields, pictures ----------------------------------- */

.evg-btn,
.evg-profile__dl,
.evg-foot__deck,
.evg-chip,
.evg-shared li,
.evg-form__submit,
.evg-form input[type="file"]::file-selector-button { border-radius: 999px; }

.evg-btn { padding: .75rem 1.4rem; }

.evg-form input[type="text"],
.evg-form input[type="email"],
.evg-form input[type="tel"],
.evg-form select { border-radius: var(--r-sm); }

.evg-form textarea { border-radius: var(--r-md); }

.evg-form__note,
.evg-form__file,
.evg-note,
.evg-confirm { border-radius: var(--r-sm); }

.evg-band img,
.evg-article__img,
.evg-article__img img,
.evg-ph,
.evg-slot { border-radius: var(--r-xl); }

.evg-404__cos a { border-radius: 999px; }

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

.evg-foot {
  margin-top: var(--gap);
  margin-bottom: var(--edge);
  overflow: hidden;
  border-radius: var(--r-xl);
}

.evg-foot__social a { border-radius: 50%; }

/* =========================================================================
   2.20.0: CAREERS, AS CARDS, AND A PAGE PER JOB

   A job is a news card (.evg-post) whose picture is the hiring company's
   banner: its photograph, or its car on its brand colour, with its logo. The
   card opens the job's own page, which opens on the same banner, large.
   ====================================================================== */

/* ---- the company's banner, wherever it is drawn ------------------------ */

.evg-banner.has-stage { background: var(--stage, linear-gradient(168deg, var(--c-deep-1) 0%, #0d141c 100%)); }

.evg-banner__glow {
  position: absolute;
  right: 4%;
  bottom: 8%;
  width: 70%;
  aspect-ratio: 1.9;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
              color-mix(in srgb, var(--glow) 42%, transparent) 0%,
              color-mix(in srgb, var(--glow) 14%, transparent) 45%,
              transparent 72%);
}

/* The card's picture rule fills the frame with any image in it; the logo and
   the car are not pictures to be cropped, so they are set back here. */
.evg-post__media .evg-banner__logo {
  position: absolute;
  top: 20px;
  left: 22px;
  z-index: 2;
  width: auto;
  height: 30px;
  max-width: 55%;
  object-fit: contain;
  object-position: left center;
}

.evg-post__media .evg-banner__car {
  position: absolute;
  right: -4%;
  bottom: 14%;
  z-index: 1;
  width: auto;
  height: 52%;
  max-width: 78%;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 16px 14px rgb(0 0 0 / .45));
}

/* a photograph darkens at the top, where the white logo sits */
.evg-banner.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgb(22 32 43 / .55) 0%, rgb(22 32 43 / 0) 42%);
  pointer-events: none;
}

.evg-post:hover .evg-post__media .evg-banner__logo { transform: none; }
.evg-post:hover .evg-post__media .evg-banner__car { transform: translateX(-8px); }

/* ---- the cards ---------------------------------------------------------- */

.evg-jobcards {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  border-bottom: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: var(--gap);
}

/* the old list's rules, padding and top alignment, off: a card draws its own
   edge, and the cards in a row end level */
.evg-jobcards .evg-role {
  padding: 0;
  border: 0;
  display: flex;
  align-items: stretch;
}

.evg-jobcard__link { width: 100%; }

.evg-jobcard__co {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  color: var(--c-teal-text);
}

.evg-jobcard__meta {
  font-size: .92rem;
  color: var(--c-slate-soft);
}

.evg-jobcard__desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.evg-jobcard__foot {
  margin-top: auto;
  padding-top: .9rem;
  border-top: 1px solid color-mix(in srgb, var(--c-slate) 10%, transparent);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
}

.evg-jobcard__closes {
  font-size: .86rem;
  color: var(--c-slate-soft);
}

.evg-jobcard__foot .evg-post__more {
  margin: 0;
  padding: 0;
}

/* ---- a job's page: the banner ------------------------------------------- */

.evg-jobhead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  width: min(100% - 2 * var(--edge), var(--frame));
  min-height: clamp(400px, 50vh, 560px);
  margin: var(--gap) auto 0;
  padding-block: clamp(3rem, 6vw, 5rem);
  border-radius: var(--r-xl);
  background: var(--c-deep-1);
  color: var(--c-white);
}

.evg-jobhead.has-stage { background: var(--stage, linear-gradient(168deg, var(--c-deep-1) 0%, #0d141c 100%)); }

.evg-jobhead__art {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.evg-jobhead__art .evg-banner__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.evg-jobhead__art .evg-banner__car {
  position: absolute;
  right: 4%;
  bottom: 10%;
  width: auto;
  height: 62%;
  max-width: 52%;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 24px 22px rgb(0 0 0 / .5));
}

.evg-jobhead__art .evg-banner__glow {
  right: 6%;
  bottom: 4%;
  width: 46%;
}

/* the words on the left keep their ground, whatever is behind them */
.evg-jobhead__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgb(22 32 43 / .92) 0%, rgb(22 32 43 / .72) 45%, rgb(22 32 43 / .2) 100%);
}

.evg-jobhead.has-stage .evg-jobhead__art::after {
  background: linear-gradient(90deg,
              var(--scrim, var(--c-deep-1)) 0%,
              color-mix(in srgb, var(--scrim, var(--c-deep-1)) 72%, transparent) 42%,
              transparent 70%);
}

.evg-jobhead__logo {
  position: absolute;
  top: clamp(1.5rem, 3vw, 2.5rem);
  right: clamp(1.5rem, 3vw, 2.5rem);
  z-index: 1;
  width: auto;
  height: clamp(32px, 3vw, 44px);
  max-width: 30%;
  object-fit: contain;
  object-position: right center;
}

.evg-jobhead__in { position: relative; width: 100%; }

.evg-jobhead .evg-eyebrow { color: var(--c-aqua); }
.evg-jobhead .evg-eyebrow a { color: inherit; text-decoration: none; }
.evg-jobhead .evg-eyebrow a:hover { text-decoration: underline; text-underline-offset: .2em; }

.evg-jobhead__title {
  max-width: 18ch;
  margin: .25rem 0 1.25rem;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  color: var(--c-white);
}

/* Beside a car the words keep to the left half, so a long title wraps
   before it reaches the car rather than running under it. */
@media (min-width: 761px) {
  .evg-jobhead.has-stage .evg-jobhead__in > * { max-width: 50%; }
  .evg-jobhead.has-stage .evg-jobhead__art .evg-banner__car { max-width: 44%; right: 3%; }
}

.evg-jobhead__chips {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.evg-jobhead__chips li {
  padding: .5rem .95rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--c-white) 25%, transparent);
  background: rgb(22 32 43 / .45);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
}

.evg-jobhead__act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.25rem;
  margin: 0;
}

.evg-jobhead__closes {
  font-size: .95rem;
  color: color-mix(in srgb, var(--c-white) 80%, transparent);
}

@media (max-width: 760px) {
  .evg-jobhead { min-height: 580px; }
  .evg-jobhead__art .evg-banner__car {
    top: 11%;
    bottom: auto;
    right: -4%;
    height: 24%;
    max-width: 72%;
  }
  .evg-jobhead__art .evg-banner__glow { top: 14%; bottom: auto; width: 80%; }
  .evg-jobhead__art::after,
  .evg-jobhead.has-stage .evg-jobhead__art::after {
    background: linear-gradient(180deg,
                transparent 20%,
                color-mix(in srgb, var(--scrim, var(--c-deep-1)) 85%, transparent) 55%,
                var(--scrim, var(--c-deep-1)) 100%);
  }
  .evg-jobhead__logo { left: 1.5rem; right: auto; object-position: left center; }
}

/* ---- a job's page: the description and the details --------------------- */

.evg-jobmain__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
}

.evg-jobmain__lede {
  max-width: 46ch;
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.35;
  text-wrap: pretty;
}

.evg-jobmain__body { max-width: var(--measure); }

.evg-jobmain__h {
  margin: 2.25rem 0 1rem;
  font-size: 1.35rem;
}

/* 2.20.1: a job's text as HR typed it: plain lines, small headings, and
   bullets only where HR put them (evg_job_text). */
.evg-jobtext { max-width: var(--measure); }
.evg-jobtext + .evg-jobtext,
.evg-jobtext + .evg-jobmain__h { margin-top: 1.75rem; }

.evg-jobtext p { margin: 0 0 .7rem; }
.evg-jobtext p:last-child { margin-bottom: 0; }

.evg-jobtext__h {
  margin: 1.75rem 0 .75rem;
  font-size: 1.2rem;
  line-height: 1.25;
}

.evg-jobtext > .evg-jobtext__h:first-child { margin-top: 0; }

.evg-jobmain__points,
.evg-jobtext__list {
  list-style: none;
  margin: 0 0 .9rem;
  padding: 0;
  display: grid;
  gap: .7rem;
  max-width: var(--measure);
}

.evg-jobmain__points li,
.evg-jobtext__list li {
  position: relative;
  padding-left: 1.6rem;
}

.evg-jobtext__list li::before,
.evg-jobmain__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--c-teal);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-teal) 16%, transparent);
}

.evg-jobfacts {
  position: sticky;
  top: calc(var(--bar-h) + 28px);
  display: grid;
  gap: 1rem;
  padding: 1.75rem;
  border: 1px solid color-mix(in srgb, var(--c-slate) 12%, transparent);
  border-radius: var(--r-xl);
  background: var(--c-white);
}

.evg-jobfacts .evg-eyebrow { margin: 0; }

.evg-jobfacts__list { margin: 0; display: grid; }

.evg-jobfacts__list div {
  display: grid;
  gap: .15rem;
  padding: .75rem 0;
  border-top: 1px solid color-mix(in srgb, var(--c-slate) 10%, transparent);
}

.evg-jobfacts__list dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-slate-soft);
}

.evg-jobfacts__list dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--c-slate);
}

.evg-jobfacts__apply { justify-content: center; }
.evg-jobfacts__back { justify-self: center; }

@media (max-width: 900px) {
  .evg-jobmain__grid { grid-template-columns: minmax(0, 1fr); }
  .evg-jobfacts { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  .evg-go svg,
  .evg-arrow,
  .evg-bento__photo,
  .evg-bento__cover,
  .evg-hco,
  .evg-hco__bg,
  .evg-hco__car,
  .evg-post,
  .evg-post__media img { transition: none; }
}
