/* The firm's public careers page. Read by strangers, on anything, often on a phone, often once.
   Branded Banwo & Ighodalo: the firm's red, and the seven colours of its own starburst for variety
   (Peter, 5 Oct 2026: "more modern and lively"). A person reading a job advert has not been invited to
   an assessment and should not be shown one. */

/* The two faces, from this site's own folder (fonts/, with their SIL Open Font Licences beside them):
   a visitor's browser asks nobody else for anything. */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/careers/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/careers/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink:      #17161a;
  --ink-soft: #46434c;
  --ink-mute: #66626d;
  --paper:    #f5f3f0;
  --card:     #ffffff;
  --rule:     #e3ded8;

  --brand:    #9C1E2E;
  --brand-dk: #761523;
  --brand-tint: #f7e9eb;

  /* The red INSIDE the logo artwork, lifted from bi-logo.svg: anything set to sit WITH the logo uses
     it, so the word beside the lockup matches the wordmark. */
  --logo-ink: #9F292B;

  /* The starburst's own seven colours (bi-icon.svg). Identity, never judgement: a colour here never
     says good or bad — that is what the three below are for. Each has a tint to sit behind dark text
     and an ink dark enough to read on that tint. */
  --sb-green: #0E9846;   --sb-green-ink: #0b6e34;   --sb-green-tint: #e2f3ea;
  --sb-indigo: #3A3185;  --sb-indigo-ink: #3A3185;  --sb-indigo-tint: #e9e7f4;
  --sb-purple: #7F2D82;  --sb-purple-ink: #7F2D82;  --sb-purple-tint: #f3e6f3;
  --sb-lime: #B3CC1D;    --sb-lime-ink: #556300;    --sb-lime-tint: #f2f7d9;
  --sb-red: #E32125;     --sb-red-ink: #b0181c;     --sb-red-tint: #fbe6e6;
  --sb-magenta: #E50B7F; --sb-magenta-ink: #ad0761; --sb-magenta-tint: #fde6f1;
  --sb-orange: #EF7F1A;  --sb-orange-ink: #9a4d06;  --sb-orange-tint: #fdf0e1;

  --warn:     #8a5200;
  --warn-bg:  #f8eeda;
  --good:     #0f6b5c;
  --good-bg:  #e4f1ee;
  --bad:      #9a1c1c;
  --bad-bg:   #f8e7e7;

  --head: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --shadow: 0 10px 28px rgba(40, 10, 20, .08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .cardTitle, .stepTitle, legend { font-family: var(--head); letter-spacing: -.015em; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); line-height: 1.08; margin: 0 0 .7rem; font-weight: 700; text-wrap: balance; }
h2 { font-size: 1.3rem; margin: 2rem 0 .7rem; line-height: 1.25; font-weight: 700; }
h3 { font-size: 1.1rem; margin: 0; line-height: 1.3; font-weight: 700; }

a { color: var(--brand); }
a:hover { color: var(--brand-dk); }

/* Focus is visible on everything, in the brand, at a width that survives a card's own border. A
   public form is the one place somebody may be filling this in entirely by keyboard. */
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

svg.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.18em; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Page widths: reading width for the advert and the form, the wide one for the list. */
.wrap { max-width: 48rem; margin: 0 auto; padding: 0 20px; }
.wrap.wide { max-width: 72rem; }

/* Anything the script swaps needs its own rule, not the [hidden] attribute: an element CSS has
   given a display to ignores the browser's own hidden, and only a screenshot shows it. */
[hidden] { display: none !important; }

.muted { color: var(--ink-mute); }

/* Read by a screen reader, not shown. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- the top bar --------------------------------------------------------------------------- */

.top { background: #fff; border-bottom: 1px solid var(--rule); }
.topBar { max-width: 72rem; display: flex; align-items: center; gap: 1rem; padding-block: .8rem; }
.topHome { display: block; line-height: 0; }
/* The firm's supplied lockup. Height is fixed and the width follows the artwork's own ratio, so the
   box is reserved before the SVG loads. */
.mastLogo { display: block; height: 52px; width: auto; }

/* "CAREERS", set to sit with the lockup: the logo's own red, uppercase, tracked out to echo the
   wordmark. The wordmark is outlines, not a font, so this is the nearest humanist face to hand. */
.mastFirm {
  margin: 0;
  padding-left: 1rem;
  border-left: 1px solid var(--rule);
  font-family: Optima, Candara, "Gill Sans", "Gill Sans MT", var(--head);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--logo-ink);
}
.topNav { margin-left: auto; display: flex; align-items: center; gap: 1.2rem; }
.topLink { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.topLink:hover { color: var(--brand); }
.topNav .btn { white-space: nowrap; }
@media (max-width: 46rem) {
  .topLink, .mastFirm { display: none; }
  .mastLogo { height: 40px; }
  .topNav .btn.small { padding: .45rem .8rem; font-size: .85rem; }
}

/* ---- buttons --------------------------------------------------------------------------------- */

button, .btn {
  font: inherit;
  font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
button:hover:not(:disabled), .btn:hover { background: var(--brand-dk); border-color: var(--brand-dk); color: #fff; }
button:disabled { opacity: .6; cursor: default; }
.btn.small { padding: .5rem 1rem; font-size: .92rem; }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light:hover { background: var(--brand-tint); color: var(--brand-dk); border-color: var(--brand-tint); }
.btn.light.outline { border-color: var(--rule); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Secondary actions: outlined, so the one filled button stays the one that sends. */
button.secondary, .addRow, .removeRow {
  background: transparent; color: var(--brand); border: 1px solid var(--rule);
}
button.secondary:hover:not(:disabled), .addRow:hover:not(:disabled), .removeRow:hover:not(:disabled) {
  background: var(--brand-tint); color: var(--brand-dk); border-color: var(--brand);
}
.addRow, .removeRow { padding: .4rem .9rem; font-size: .88rem; }
.addRow { margin: 0 0 .8rem; }
.removeRow { margin-top: .1rem; }

/* ---- the banner, and the stripe of the starburst's colours ---------------------------------- */

.banner { position: relative; overflow: hidden; background: #2b0a12; min-height: clamp(20rem, 46vw, 28rem); display: flex; }
.bannerPhoto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
/* The wash: dark where the words are, clear where the photograph is. */
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30, 4, 10, .92) 0%, rgba(80, 12, 26, .66) 45%, rgba(80, 12, 26, .05) 80%); }
.bannerText { position: relative; z-index: 1; max-width: 72rem; width: 100%; align-self: flex-end; padding-block: 3rem 4.5rem; color: #fff; }
.bannerText h1 { max-width: 14ch; color: #fff; }
.kicker { margin: 0 0 .6rem; font-size: .8rem; letter-spacing: .28em; text-transform: uppercase; color: #f5c9d0; font-weight: 600; }
.bannerText .lede { margin: 0 0 1.5rem; max-width: 34rem; font-size: 1.08rem; color: rgba(255, 255, 255, .9); }

.stripe {
  height: 6px;
  background: linear-gradient(90deg,
    var(--sb-green) 0 14.28%, var(--sb-indigo) 0 28.57%, var(--sb-purple) 0 42.85%, var(--sb-lime) 0 57.14%,
    var(--sb-red) 0 71.42%, var(--sb-magenta) 0 85.71%, var(--sb-orange) 0);
}

/* ---- the list of roles ------------------------------------------------------------------------ */

/* The search, laid over the banner's lower edge. */
.finder {
  position: relative; z-index: 2; margin-top: -2.2rem;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: .7rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem;
}
.search {
  flex: 1 1 18rem; display: flex; align-items: center; gap: .55rem;
  border: 1px solid var(--rule); border-radius: 10px; padding: 0 .8rem; color: var(--ink-mute);
}
.search input { border: 0; outline: none; padding: .7rem 0; width: 100%; font: inherit; background: transparent; color: var(--ink); }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.count { margin: 0 .4rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }

.sectionTitle { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin: 2.4rem 0 1rem; }

/* Two columns from a desktop's width, one on a tablet held upright and on a phone. */
.roles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 56rem) { .roles { grid-template-columns: 1fr; } }

.role {
  position: relative;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.15rem 1.35rem;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .2rem 1rem; align-items: start;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.role::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--c, var(--brand)); }
.role:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.roleIcon { grid-row: span 3; width: 2.9rem; height: 2.9rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.25rem; background: var(--t, var(--brand-tint)); color: var(--ink-c, var(--brand)); }
.role h3 { grid-column: 2; }
.role h3 a { color: var(--ink); text-decoration: none; }
.role h3 a:hover { color: var(--brand); }
/* The whole card answers a click, through the title's link stretched over it. */
.role h3 a::after { content: ""; position: absolute; inset: 0; }
.roleApply { grid-column: 3; grid-row: 1 / span 3; align-self: center; position: relative; z-index: 1; }
@media (max-width: 34rem) { .roleApply { display: none; } }

/* The employment type as a badge, and who the role is for beside it. */
.roleBadges { grid-column: 2; margin: .35rem 0 .25rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.badge, .posts {
  font-size: .72rem; letter-spacing: .06em; font-weight: 700; text-transform: uppercase;
  border-radius: 999px; padding: .15rem .6rem;
  background: var(--t, var(--brand-tint)); color: var(--ink-c, var(--brand));
}
.posts { background: var(--paper); color: var(--ink-soft); }

.roleMeta { grid-column: 2; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem 1rem; color: var(--ink-mute); font-size: .88rem; }
.roleMeta span { display: inline-flex; align-items: center; gap: .35rem; }
.roleMeta .closing { color: var(--warn); font-weight: 600; }
/* Quieter than everything else on the card. Nobody chooses a job by its reference; everybody who
   writes in is asked for it. */
.roleMeta .ref { font-variant-numeric: tabular-nums; opacity: .8; }

/* The seven colours, given out in turn: c0 to c6. */
.c0 { --c: var(--sb-indigo);  --t: var(--sb-indigo-tint);  --ink-c: var(--sb-indigo-ink); }
.c1 { --c: var(--sb-green);   --t: var(--sb-green-tint);   --ink-c: var(--sb-green-ink); }
.c2 { --c: var(--sb-orange);  --t: var(--sb-orange-tint);  --ink-c: var(--sb-orange-ink); }
.c3 { --c: var(--sb-magenta); --t: var(--sb-magenta-tint); --ink-c: var(--sb-magenta-ink); }
.c4 { --c: var(--sb-purple);  --t: var(--sb-purple-tint);  --ink-c: var(--sb-purple-ink); }
.c5 { --c: var(--sb-red);     --t: var(--sb-red-tint);     --ink-c: var(--sb-red-ink); }
.c6 { --c: var(--sb-lime);    --t: var(--sb-lime-tint);    --ink-c: var(--sb-lime-ink); }

/* Before you apply: three cards, each with its own colour. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 52rem) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border-radius: var(--radius); padding: 1.25rem; border-top: 4px solid var(--c); }
.step p { margin: 0; }
.stepIcon { width: 2.6rem; height: 2.6rem; border-radius: 12px; display: grid; place-items: center; background: var(--t); color: var(--ink-c); font-size: 1.15rem; margin-bottom: .7rem; }
.stepTitle { font-size: 1.1rem; font-weight: 700; margin: .15rem 0 .3rem !important; }

/* "Don't see the right role?", beside a photograph of the firm's own people. */
.cvPanel { margin: 2.4rem 0 0; display: grid; grid-template-columns: 1fr 1fr; border-radius: 18px; overflow: hidden; background: var(--card); border: 1px solid var(--rule); }
@media (max-width: 46rem) { .cvPanel { grid-template-columns: 1fr; } }
.cvPhoto { width: 100%; height: 100%; min-height: 15rem; object-fit: cover; object-position: 50% 35%; display: block; }
.cvText { padding: 2rem; align-self: center; }
.cvText h2 { margin-top: 0; }
.cvText p { margin: 0 0 1.2rem; }

/* The quiet footnote under the list of roles. */
.privacy { margin: 2rem 0 0; color: var(--ink-mute); font-size: .88rem; }

/* ---- cards and notes --------------------------------------------------------------------------- */

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.35rem 1.45rem;
  margin: 0 0 1rem;
}
.card p:last-child { margin-bottom: 0; }
.card.quiet { margin-top: .5rem; }
.cardTitle { font-weight: 700; margin: 0 0 .35rem; }
.card .muted { margin: 0; }

.note { border-radius: 10px; padding: .8rem 1rem; margin: 1rem 0; }
.note.bad  { background: var(--bad-bg);  color: var(--bad);  border-left: 4px solid var(--bad); }
.note.good { background: var(--good-bg); color: var(--good); border-left: 4px solid var(--good); }
.note.warn { background: var(--warn-bg); color: var(--warn); border-left: 4px solid var(--warn); }

/* ---- one advert: its heading band --------------------------------------------------------------- */

.pageHead {
  background: radial-gradient(120% 160% at 90% 0%, #b8283b 0%, var(--brand) 40%, var(--brand-dk) 75%, #3d0b14 100%);
  color: #fff;
}
.pageHead .wrap { padding-block: 1.6rem 2.2rem; }
.pageHead h1 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.6rem); margin: .8rem 0 .8rem; max-width: none; }
.pageHead h1:empty { display: none; }
.back { display: inline-flex; align-items: center; gap: .4rem; color: #f5c9d0; text-decoration: none; font-weight: 600; font-size: .92rem; }
.back:hover { color: #fff; }
.headMeta { margin: 0; color: rgba(255, 255, 255, .85); }

/* The facts as pills on the band. */
.facts { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.facts li { background: rgba(255, 255, 255, .14); color: #fff; border-radius: 999px; padding: .25rem .8rem; font-size: .88rem; font-weight: 500; }
.facts li.closing { background: #fff; color: var(--brand-dk); font-weight: 700; }
.facts li.ref { background: transparent; color: rgba(255, 255, 255, .75); font-variant-numeric: tabular-nums; }

#advertScreen > .wrap, #noticeScreen > .wrap { padding-top: 1.5rem; padding-bottom: 4rem; }

/* The advert body, as the firm typed it: plain text, its line breaks its only formatting — and plain
   text is the point: nothing anybody types into the advert box can become markup here. */
.advert { white-space: pre-wrap; margin: 0; }

.closing { color: var(--warn); font-weight: 600; }

/* ---- the form ------------------------------------------------------------------------------------ */

/* Each part of the form is a card of its own, so a long form reads as a handful of short ones and
   somebody can see where they are in it. */
.section {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--card);
  margin: 0 0 1rem;
  padding: 1rem 1.25rem .5rem;
  min-width: 0;   /* a fieldset otherwise refuses to shrink below its content on a phone */
}
.section legend {
  font-weight: 700;
  font-size: 1.02rem;
  padding: 0 .4rem;
  margin-left: -.4rem;
  display: inline-flex; align-items: center; gap: .55rem;
}
.lgIcon { width: 1.9rem; height: 1.9rem; border-radius: 9px; display: inline-grid; place-items: center; background: var(--brand-tint); color: var(--brand); font-size: .95rem; }

/* Two fields side by side where they belong together, one above the other on a phone. */
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .9rem; }
@media (max-width: 34rem) { .row2 { grid-template-columns: 1fr; } }

/* "Applying as": two large choices rather than a dropdown. */
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: .3rem 0 .7rem; }
@media (max-width: 34rem) { .kinds { grid-template-columns: 1fr; } }
.kind {
  display: flex; gap: .6rem; align-items: center;
  border: 1px solid var(--rule); border-radius: 12px;
  padding: .8rem .9rem; cursor: pointer; font-weight: 600;
  transition: border-color .15s ease, background .15s ease;
}
.kind:hover { border-color: var(--brand); }
.kind input { accent-color: var(--brand); width: 1.1rem; height: 1.1rem; margin: 0; }
.kind:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--brand); }

/* One entry of a repeating section, separated by a rule rather than boxed again. */
.entry { padding: .2rem 0 .6rem; }
.entry + .entry { border-top: 1px dashed var(--rule); padding-top: .9rem; }

.inline { display: flex; gap: .5rem; align-items: center; margin: -.3rem 0 .9rem; font-size: .92rem; }
.inline input { accent-color: var(--brand); }

.field { margin: 0 0 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .3rem; font-size: .95rem; }
.field .hint { display: block; color: var(--ink-mute); font-size: .85rem; margin-top: .3rem; }
.field .hint.over { color: var(--bad); font-weight: 600; }
.hint { color: var(--ink-mute); font-size: .88rem; }
.req { color: var(--brand); }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"], input[type="file"], textarea, select {
  width: 100%;
  font: inherit;
  color: inherit;
  padding: .65rem .8rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--card);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); outline: none; }
input[type="file"] { padding: .55rem; background: var(--paper); border-style: dashed; }
textarea { resize: vertical; }
/* A box with no rows asked for is a free-text answer and starts roomy; one that says rows means it. */
textarea:not([rows]) { min-height: 8rem; }

/* A field the page has switched off has to look switched off. */
input:disabled, select:disabled, textarea:disabled {
  background: var(--paper);
  color: var(--ink-mute);
  border-style: dashed;
  cursor: not-allowed;
}

.sendBtn { padding: .85rem 1.8rem; font-size: 1.05rem; margin-top: .4rem; }

.optional { font-weight: 400; color: var(--ink-mute); font-size: .9rem; }

/* ---- the applicant's photo --------------------------------------------------------------------- */

/* A passport photo's shape — 3 by 4 — beside its buttons, and above them on a phone. The live picture and
   the photo taken both fill the frame, cut the way the photo is cut. */
.photoBox { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1rem 1.25rem; margin: .2rem 0 1rem; }
.photoFrame {
  position: relative;
  width: 11rem; max-width: 100%;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--rule); border-radius: 14px;
  background: linear-gradient(165deg, var(--brand-tint) 0%, var(--paper) 100%);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .55);
  overflow: hidden;
}
.photoFrame video, .photoFrame canvas, .photoEmpty {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.photoFrame video, .photoFrame canvas { object-fit: cover; }
/* The live picture is a mirror, as every video call is: move left and the picture moves left. The photo taken is
   not mirrored — it is the face as other people see it. */
.photoFrame video { transform: scaleX(-1); }
/* The silhouette takes the firm's red, faded: a place for a face, not a face. */
.photoEmpty { color: var(--brand); }
.photoAvatar { display: block; width: 100%; height: 100%; }
/* The face guide over the live picture: an oval where a passport photo's face sits, everything around it
   dimmed by the oval's own shadow (the frame clips it). */
.photoGuide {
  position: absolute; left: 50%; top: 44%;
  width: 64%; height: 60%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, .9);
  box-shadow: 0 0 0 999px rgba(23, 22, 26, .32);
  pointer-events: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
/* Every check passing: the oval turns solid green, with a soft ring, and the countdown starts. */
.photoGuide.ok {
  border: 3px solid var(--sb-green);
  box-shadow: 0 0 0 999px rgba(23, 22, 26, .32), 0 0 0 6px rgba(14, 152, 70, .28);
}
/* The countdown: a dark pill low in the frame, each number popping in. */
.photoCount {
  position: absolute; left: 50%; bottom: 7%;
  transform: translateX(-50%);
  min-width: 2.6rem; height: 2.6rem; padding: 0 .6rem;
  display: grid; place-items: center;
  border-radius: 999px;
  background: rgba(23, 22, 26, .66); color: #fff;
  font: 700 1.35rem/1 var(--head);
  pointer-events: none;
}
.photoCount.pop { animation: photoCountPop .45s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes photoCountPop {
  from { transform: translateX(-50%) scale(1.5); opacity: 0; }
  to   { transform: translateX(-50%) scale(1); opacity: 1; }
}
/* The photo is taken: a white flash that fades, as a camera's would. */
.photoFrame.flash::after {
  content: ""; position: absolute; inset: 0;
  background: #fff; opacity: 0;
  animation: photoFlash .5s ease-out;
  pointer-events: none;
}
@keyframes photoFlash { from { opacity: .9; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .photoCount.pop, .photoFrame.flash::after { animation: none; }
}
.photoActions { flex: 1 1 14rem; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.photoActions .hint { margin: .2rem 0 0; }
/* While the camera is on, the status is the one thing to do next: said plainly, in the page's own ink. */
.photoActions .photoStatus { color: var(--ink); font-weight: 600; min-height: 1.4em; }
/* The checks, ticked off live: an empty ring while waiting, amber when not yet right, a green tick when right. */
.photoChecks { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .92rem; }
.photoChecks li { display: flex; align-items: center; gap: .55rem; color: var(--ink-mute); transition: color .2s ease; }
.photoChecks .tick {
  position: relative; flex: none;
  width: 1.15rem; height: 1.15rem;
  border-radius: 50%;
  border: 2px solid var(--rule);
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.photoChecks li[data-state="no"] .tick { border-color: var(--warn); }
.photoChecks li[data-state="ok"] { color: var(--ink); }
.photoChecks li[data-state="ok"] .tick { background: var(--good); border-color: var(--good); transform: scale(1.05); }
.photoChecks li[data-state="ok"] .tick::after {
  content: ""; position: absolute;
  left: .3rem; top: .1rem;
  width: .25rem; height: .5rem;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---- filling the form in from the CV --------------------------------------------------------------- */

/* The offer, and the wait: under the file box, where the question arises. A rule down the left in the
   firm's red marks it as the firm speaking, not another box to fill. */
.fillIn {
  border: 1px solid var(--rule);
  border-left: 4px solid var(--brand);
  border-radius: 12px;
  background: var(--brand-tint);
  padding: .9rem 1rem;
  margin: .1rem 0 1rem;
}
.fillIn p { margin: 0 0 .7rem; }
.fillIn .fillInTitle { margin-bottom: .4rem; }
.fillInActions { display: flex; flex-wrap: wrap; gap: .5rem; }
.fillIn button.secondary { background: #fff; }

#fillInResult p { margin: 0; }
#fillInResult #fillInResultLinks { margin-top: .4rem; }
#fillInResultLinks a { margin-right: .9rem; white-space: nowrap; }

/* A box the CV filled: marked in WORDS beside it, and by a rule down its left edge — never by colour
   alone. The mark goes the moment the applicant changes the answer. */
.fromCv input, .fromCv select, .fromCv textarea { border-left: 4px solid var(--warn); }
.cvMark { display: block; font-size: .84rem; color: var(--warn); margin-top: .3rem; }
.cvMark details { display: inline; }
.cvMark summary { display: inline; cursor: pointer; color: var(--brand); text-decoration: underline; margin-left: .35rem; }
.cvMark q { display: block; color: var(--ink-soft); font-style: italic; margin-top: .2rem; }
.cvNote { display: block; font-size: .84rem; color: var(--ink-mute); margin-top: .2rem; }

/* The tick that says they have read the notice. A wide hit area on purpose. */
.field.consent { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.2rem; }
.field.consent label {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-weight: 400;
  cursor: pointer;
  line-height: 1.5;
  margin: 0;
}
.field.consent input { width: 1.15rem; height: 1.15rem; margin-top: .18rem; flex: none; accent-color: var(--brand); }

/* ---- sent ------------------------------------------------------------------------------------------- */

.sentCard { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 2rem; text-align: center; margin-top: .5rem; }
.sentCard h2 { margin: .6rem 0 1rem; }
.sentIcon { width: 3.4rem; height: 3.4rem; border-radius: 50%; display: inline-grid; place-items: center; background: var(--good-bg); color: var(--good); font-size: 1.6rem; }
.sentCard .note { text-align: left; }

/* ---- the privacy notice ----------------------------------------------------------------------------- */

/* Reading text, not a form: a comfortable measure and room between the sections. */
.notice { max-width: 68ch; line-height: 1.65; }
.notice h2 { font-size: 1.1rem; margin: 1.5rem 0 .45rem; }
.notice h2:first-child { margin-top: 0; }
.notice p { margin: 0 0 .8rem; }
.notice p:last-child { margin-bottom: 0; }
.notice ul { margin: 0 0 .8rem; padding-left: 1.2rem; }
.notice li { margin: 0 0 .3rem; }

/* ---- the foot ------------------------------------------------------------------------------------------ */

.foot { margin-top: 4rem; background: #1d1a20; color: #cfcad5; font-size: .9rem; }
.footRow { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; padding-block: 1.6rem; }
.footRow p { margin: 0; }
.footRow a { color: #fff; }
.footMark { height: 34px; width: auto; background: #fff; border-radius: 50%; padding: 5px; }
.footLinks { margin-left: auto !important; }
@media (max-width: 46rem) { .footLinks { margin-left: 0 !important; } }
