/* ------------------------------------------------------------------
   GIYA Global — careers page

   Loaded after styles.css, and only on this page.

   This is the one page an applicant sees before they decide whether
   GIYA is worth their afternoon, so it is built differently from the
   portal behind it: far more air, one typeface, and a single moment
   of motion at the top rather than movement scattered down the page.

   Three rules held throughout:

     1. The opening is paper. White, then the logo, then the words.
     2. The form wears the logo. Navy for what you read, the teal-to-
        blue of the logo's arrow for everything you touch: the field
        you are in, the role you picked, the button that sends it.
     3. Motion follows you down. Each section rises in as it reaches
        the screen, and the page you land on after sending has its
        own small show. Everything stops for reduced motion.

   The type stack is Apple's own on Apple hardware and Inter elsewhere,
   which is the closest widely available match to SF Pro. Tight
   tracking at display sizes is what makes the difference between
   "large text" and the keynote look.
   ------------------------------------------------------------------ */

.careers {
  --paper:    #FFFFFF;
  --c-ink:    #0B2545;
  --c-soft:   #51657E;
  --c-faint:  #8595A8;
  --c-blue:   #1A5FB4;
  --c-blue-dk:#134A8E;
  --c-wash:   #F3F6FA;
  --c-line:   #DCE5F0;

  --sf: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
        "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  background: var(--paper);
  color: var(--c-ink);
  font-family: var(--sf);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}

.careers ::selection { background: #CFE0F7; color: var(--c-ink); }

/* Visible focus everywhere, because this page is a form and people
   do tab through forms. */
.careers :focus-visible {
  outline: 2px solid var(--c-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   1 · THE OPENING

   Three beats, one after another:
     the logo, large, on nothing;
     the logo travelling up into the header while the page fills in
       around it;
     four phrases, with GIYA gliding to where each one needs it.
   ============================================================ */

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--paper);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* The header is not part of the opening. It arrives once the logo has
   travelled up to its place in it. */
.hero-bar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(20px, 5vw, 56px);
}
.hero-logo { display: block; opacity: 0; }
.hero-logo.landed { opacity: 1; }
.hero-logo svg { height: 40px; width: auto; aspect-ratio: 978 / 245; display: block; --tag: 0; }

/* The tagline under the logo is legible at the opening size and a
   smudge at header size, so the header copy hides it. The flying copy
   fades it out on the way up, which is why --tag is registered: a
   registered number can be transitioned, a plain custom property
   would snap. */
@property --tag { syntax: '<number>'; inherits: true; initial-value: 1; }

.hero-signin {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-soft);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid var(--c-line);
  border-radius: 100px;
  transition: border-color .2s ease, color .2s ease, opacity .7s ease;
  white-space: nowrap;
  opacity: 0;
}
.hero-bar.in .hero-signin { opacity: 1; }
.hero-signin:hover { border-color: var(--c-ink); color: var(--c-ink); }

/* ---- 1a · the logo, large ---- */
.hero-opener {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.hero-opener svg {
  /* Scaled up: most of the screen on a phone, a commanding width on
     a desktop, and never wider than the screen it is on. */
  width: min(88vw, clamp(320px, 64vw, 940px));
  height: auto;
  aspect-ratio: 978 / 245;
  overflow: visible;
  opacity: 0;
  transform: scale(.9);
  filter: blur(14px);
  transform-origin: 50% 50%;
}
.hero-opener.in svg {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition: opacity 1.1s cubic-bezier(.22,.61,.36,1),
              transform 1.3s cubic-bezier(.22,.61,.36,1),
              filter 1.1s cubic-bezier(.22,.61,.36,1);
}
/* The flight to the header. The end state is computed by careers.js
   from where the header logo really is, so it lands exactly on it. */
.hero-opener.fly svg {
  opacity: 1;
  filter: blur(0);
  --tag: 0;
  transform: translate(var(--fx, 0px), var(--fy, 0px)) scale(var(--fs, .3));
  transition: transform 1.15s cubic-bezier(.65,0,.35,1), --tag .45s ease;
}
.hero-opener.gone { display: none; }

/* ---- 1b · the things a career is made of ----
   Soft tiles, each one a small drawing that moves on its own: a
   headset's sound arcs pulse, a tick draws itself, the bars climb, the
   globe turns. They sit above and below the line, never behind it. */
.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  --ts: clamp(56px, 6.6vw, 88px);
}

.glow {
  position: absolute;
  width: 46vmax; height: 46vmax;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0;
  transition: opacity 2.2s ease;
}
.glow.g1 { left: -14vmax; top: -16vmax;
  background: radial-gradient(closest-side, rgba(26,95,180,.16), rgba(26,95,180,0));
  animation: glowA 22s ease-in-out infinite alternate; }
.glow.g2 { right: -16vmax; bottom: -20vmax;
  background: radial-gradient(closest-side, rgba(70,150,235,.16), rgba(70,150,235,0));
  animation: glowB 26s ease-in-out infinite alternate; }
.hero-art.in .glow { opacity: 1; }
@keyframes glowA { to { translate: 9vmax 6vmax; } }
@keyframes glowB { to { translate: -8vmax -7vmax; } }

.tile {
  position: absolute;
  left: calc(var(--x) * 1% - var(--ts) / 2);
  top:  calc(var(--y) * 1% - var(--ts) / 2);
  width: var(--ts);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--c-blue);
  border-radius: 26%;
  background: linear-gradient(180deg, #FFFFFF, #F1F5FB);
  border: 1px solid var(--c-line);
  box-shadow: 0 18px 36px -18px rgba(19,74,142,.38),
              0 2px 6px -2px rgba(19,74,142,.12),
              inset 0 1px 0 #fff;
  opacity: 0;
  transform: translateY(22px) scale(.86);
  filter: blur(8px);
  animation: drift var(--dur, 7s) ease-in-out var(--dl, 0s) infinite alternate;
}
.hero-art.in .tile {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition: opacity .9s cubic-bezier(.22,.61,.36,1) var(--d, 0ms),
              transform 1.1s cubic-bezier(.22,.61,.36,1) var(--d, 0ms),
              filter .9s cubic-bezier(.22,.61,.36,1) var(--d, 0ms);
}
/* `translate` and `rotate` are their own properties, so the drift
   never fights the entrance, which uses `transform`. */
@keyframes drift {
  from { translate: 0 -9px; rotate: -2.2deg; }
  to   { translate: 0  9px; rotate:  2.2deg; }
}

/* Desktop positions: a row above the line, a row below. */
.t1  { --x: 7;  --y: 17; --dur: 7.4s; --dl: -1s;   --mx: 15; --my: 15; }
.t3  { --x: 23; --y: 27; --dur: 6.2s; --dl: -3s;   --mx: 39; --my: 24; }
.t5  { --x: 41; --y: 14; --dur: 8s;   --dl: -2s;   --mx: 63; --my: 14; }
.t7  { --x: 59; --y: 26; --dur: 6.8s; --dl: -4.5s; --mx: 86; --my: 25; }
.t9  { --x: 76; --y: 15; --dur: 7.8s; --dl: -.5s;  --mx: 50; --my: 33; }
.t6  { --x: 91; --y: 28; --dur: 6.5s; --dl: -2.5s; --mx: 14; --my: 85; }
.t2  { --x: 9;  --y: 77; --dur: 7s;   --dl: -3.5s; --mx: 38; --my: 76; }
.t4  { --x: 27; --y: 69; --dur: 8.2s; --dl: -1.5s; --mx: 62; --my: 86; }
.t8  { --x: 46; --y: 79; --dur: 6.6s; --dl: -5s;   --mx: 86; --my: 75; }
.t10 { --x: 65; --y: 70; --dur: 7.6s; --dl: -.8s;  --mx: 50; --my: 68; }

.tile svg { width: 64%; height: 64%; overflow: visible; display: block; }
.tile .s { fill: none; stroke: currentColor; stroke-width: 2.6;
           stroke-linecap: round; stroke-linejoin: round; }
.tile .s.f { fill: rgba(26,95,180,.12); }
.tile .dot { fill: currentColor; }

/* each drawing's own motion */
.tile .wave { animation: wave 2.2s ease-in-out infinite; }
@keyframes wave { 0%,100% { opacity: .15; } 50% { opacity: 1; } }

.tile .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 3.6s ease-in-out infinite; }
@keyframes draw { 0% { stroke-dashoffset: 1; } 30%,75% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }

.tile .ecg { stroke-dasharray: .42 .58; animation: ecg 2.4s linear infinite; }
@keyframes ecg { from { stroke-dashoffset: .42; } to { stroke-dashoffset: -.58; } }

.tile .d1, .tile .d2, .tile .d3 { transform-box: fill-box; transform-origin: center;
  animation: typing 1.3s ease-in-out infinite; }
.tile .d2 { animation-delay: .16s; }
.tile .d3 { animation-delay: .32s; }
@keyframes typing { 0%,60%,100% { translate: 0 0; opacity: .5; } 30% { translate: 0 -4px; opacity: 1; } }

.tile .bar { fill: rgba(26,95,180,.85); transform-box: fill-box; transform-origin: 50% 100%;
  animation: grow 3.8s cubic-bezier(.45,0,.2,1) infinite; }
.tile .b2 { animation-delay: .25s; }
.tile .b3 { animation-delay: .5s; }
@keyframes grow { 0% { transform: scaleY(.25); } 40%,80% { transform: scaleY(1); } 100% { transform: scaleY(.25); } }

.tile .mer { transform-box: fill-box; transform-origin: center; animation: spin 5s ease-in-out infinite alternate; }
@keyframes spin { from { transform: scaleX(1); } to { transform: scaleX(.12); } }
.tile .pin { transform-box: fill-box; transform-origin: center; animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.7); opacity: 1; } 70%,100% { transform: scale(1.7); opacity: .25; } }

.tile .cursor { animation: blink 1.1s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.tile .hand { transform-origin: 32px 32px; animation: tick 9s linear infinite; }
@keyframes tick { to { transform: rotate(360deg); } }

.tile .leaf { transform-box: view-box; animation: sprout 4.2s ease-in-out infinite alternate; }
.tile .l1 { transform-origin: 32px 38px; }
.tile .l2 { transform-origin: 32px 30px; animation-delay: .5s; }
@keyframes sprout { from { transform: scale(.72) rotate(-4deg); } to { transform: scale(1) rotate(3deg); } }

/* ---- 1c · the line ----
   Words are placed by careers.js, one by one, so that every phrase is
   centred as a whole. Nothing here uses flow layout: GIYA moves by
   transform, the words around it by their own left offset. */
.hero-stage {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(16px, 5vw, 56px);
}

.hero-line {
  position: relative;
  width: 100%;
  margin: 0;
  font-size: clamp(2rem, 7.4vw, 7.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
  height: 1.12em;
  white-space: nowrap;
}
.hero-line.stack { height: 2.28em; }

/* GIYA is never part of a fade. It arrives once, then only ever moves. */
.hero-giya {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  opacity: 0;
  filter: blur(10px);
  /* GIYA wears the logo's own arrow gradient, teal into blue. */
  color: #0293BC;
  background: linear-gradient(120deg, #04B7A8 0%, #0293BC 45%, #0058DC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: .04em;
  transition: transform .95s cubic-bezier(.65,0,.35,1);
  will-change: transform;
}
.hero-giya.in {
  opacity: 1;
  filter: blur(0);
  transition: transform .95s cubic-bezier(.65,0,.35,1),
              opacity .9s cubic-bezier(.22,.61,.36,1),
              filter .9s cubic-bezier(.22,.61,.36,1);
}
.hero-line.nomo .hero-giya,
.hero-line.nomo .hero-giya.in { transition: none; }

/* Each of the other words is its own element so they can arrive one
   after another. Blur on the way in and out is the detail that reads as
   Apple rather than as a generic fade. */
.hw {
  position: absolute;
  top: 0;
  display: block;
  opacity: 0;
  transform: translateY(0.42em);
  filter: blur(7px);
  will-change: opacity, transform, filter;
}
.hw.in {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition: opacity .5s cubic-bezier(.22,.61,.36,1),
              transform .5s cubic-bezier(.22,.61,.36,1),
              filter .5s cubic-bezier(.22,.61,.36,1);
}
.hw.out {
  opacity: 0;
  transform: translateY(-0.38em);
  filter: blur(7px);
  transition: opacity .32s ease-in, transform .32s ease-in, filter .32s ease-in;
}

/* ---- scroll cue ---- */
.hero-cue {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 0 0 34px;
  opacity: 0;
  transition: opacity .6s ease;
}
.hero-cue.in { opacity: 1; }
.hero-cue span { font-size: 13px; color: var(--c-faint); letter-spacing: .01em; }
.hero-cue i {
  width: 1px; height: 38px;
  background: linear-gradient(to bottom, var(--c-line), var(--c-faint));
  display: block;
  animation: cueDrop 1.9s cubic-bezier(.4,0,.2,1) infinite;
  transform-origin: top;
}
@keyframes cueDrop {
  0%   { transform: scaleY(0); opacity: 0; }
  35%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(38px); opacity: 0; }
}

/* On a phone the tiles take the positions written for it, two rows of
   four, and are smaller. */
@media (max-width: 639px) {
  .hero-art { --ts: 46px; }
  .tile { left: calc(var(--mx) * 1% - var(--ts) / 2); top: calc(var(--my) * 1% - var(--ts) / 2); }
  .hero-logo svg { height: 32px; }
}

/* ============================================================
   2 · THE PAGE BELOW
   ============================================================ */

.sheet {
  background: var(--c-wash);
  border-top: 1px solid var(--c-line);
}

.wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

.sheet .wrap { padding-bottom: clamp(56px, 9vw, 96px); }

.careers .lede {
  padding: clamp(64px, 11vw, 120px) 0 clamp(28px, 5vw, 48px);
}
.careers .lede h2 {
  font-family: var(--sf);
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.12;
  margin: 0 0 14px;
  color: var(--c-ink);
  max-width: 18ch;
}
.careers .lede p {
  margin: 0;
  font-size: clamp(1rem, 1.9vw, 1.14rem);
  line-height: 1.6;
  color: var(--c-soft);
  max-width: 62ch;
}

.careers section > h3 {
  font-family: var(--sf);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--c-ink);
  margin: 0 0 4px;
}
.careers section > .sub {
  font-size: .94rem;
  color: var(--c-soft);
  margin: 0 0 20px;
  max-width: 60ch;
  line-height: 1.55;
}

/* ---- role picker ----
   A real radio group: arrow keys move between roles, which is how a
   radio group is supposed to behave and what a <select> gave up. */
.roles {
  display: grid;
  gap: 10px;
  border: 0;
  padding: 0;
  margin: 0 0 clamp(40px, 7vw, 68px);
}
@media (min-width: 720px) { .roles { grid-template-columns: 1fr 1fr; } }

.role { position: relative; display: block; }
.role input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.role-card {
  display: grid;
  gap: 5px;
  height: 100%;
  padding: 17px 18px;
  background: var(--paper);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.role input:hover + .role-card { border-color: #BCCCE2; }
.role input:focus-visible + .role-card {
  outline: 2px solid var(--c-blue);
  outline-offset: 2px;
}
.role input:checked + .role-card {
  border-color: var(--c-blue);
  box-shadow: inset 0 0 0 1px var(--c-blue);
}

.role-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.role-name { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.role-what { font-size: .875rem; line-height: 1.5; color: var(--c-soft); margin: 0; }

.role-tag {
  font-size: .688rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--paper);
  background: var(--c-blue);
  padding: 3px 8px;
  border-radius: 100px;
  white-space: nowrap;
}

/* ---- form ---- */
.careers form { margin: 0; }

.careers fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 clamp(36px, 6vw, 56px);
}
.careers fieldset:last-of-type { margin-bottom: 0; }
.careers legend {
  display: block;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--c-ink);
  padding: 0;
  margin: 0 0 4px;
}
.careers .fs-note {
  font-size: .94rem;
  color: var(--c-soft);
  line-height: 1.55;
  margin: 0 0 20px;
  max-width: 60ch;
}

.careers .f { margin-bottom: 16px; }
.careers .f > label {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  color: var(--c-ink);
  margin-bottom: 6px;
}
.careers .f .opt { color: var(--c-faint); font-weight: 400; }

/* Heading for a group of fields that answer one question together.
   Not a <label>: it points at no single control, and attaching it to
   the first one would make a screen reader announce the country box
   as "Where you will be working from Country". */
.careers .grouplabel {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  color: var(--c-ink);
  margin-bottom: 8px;
}

.careers input[type="text"],
.careers input[type="email"],
.careers input[type="tel"],
.careers select,
.careers textarea {
  width: 100%;
  font: inherit;
  font-size: .97rem;
  color: var(--c-ink);
  background: var(--paper);
  border: 1px solid var(--c-line);
  border-radius: 9px;
  padding: 11px 13px;
  transition: border-color .16s ease, box-shadow .16s ease;
  appearance: none;
  -webkit-appearance: none;
}
.careers select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%2351657E' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px;
}
.careers select:disabled {
  background-color: var(--c-wash);
  color: var(--c-faint);
  cursor: not-allowed;
}
.careers textarea { min-height: 112px; resize: vertical; line-height: 1.55; }
.careers input:focus, .careers select:focus, .careers textarea:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(26, 95, 180, .13);
}
.careers .hint { display: block; font-size: .8rem; color: var(--c-faint); margin-top: 6px; line-height: 1.45; }

.careers .pair { display: grid; gap: 0 14px; }
@media (min-width: 600px) { .careers .pair { grid-template-columns: 1fr 1fr; } }

/* The three location fields read as one answer, so they are banded
   together rather than floating as three unrelated questions. */
.where {
  display: grid;
  gap: 0 14px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--c-line);
  border-radius: 12px;
}
@media (min-width: 680px) { .where { grid-template-columns: 1fr 1fr; } }
.where .f:last-child { margin-bottom: 0; }
@media (min-width: 680px) { .where .f:nth-last-child(-n+2) { margin-bottom: 0; } }

/* ---- files ---- */
.careers .dz {
  display: grid;
  gap: 3px;
  justify-items: center;
  text-align: center;
  padding: 26px 18px;
  background: var(--paper);
  border: 1px dashed #C4D2E4;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}
.careers .dz:hover, .careers .dz.hot { border-color: var(--c-blue); background: #F7FAFE; }
.careers .dz b { font-size: .95rem; font-weight: 600; }
.careers .dz span { font-size: .8rem; color: var(--c-faint); }

.careers .chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  background: var(--paper);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  font-size: .9rem;
}
.careers .chip button {
  font: inherit;
  font-size: .85rem;
  color: var(--c-soft);
  background: none;
  border: 0;
  padding: 4px 6px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.careers .chip button:hover { color: var(--c-ink); }

/* ---- consent + submit ---- */
.careers .check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  align-items: start;
  margin-bottom: 18px;
}
.careers .check input {
  width: 18px; height: 18px;
  margin: 2px 0 0;
  accent-color: var(--c-blue);
  flex: none;
}
.careers .check label { font-size: .875rem; line-height: 1.55; color: var(--c-soft); }

.careers .send {
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  width: 100%;
  padding: 15px 20px;
  color: var(--paper);
  background: var(--c-ink);
  border: 0;
  border-radius: 100px;
  cursor: pointer;
  transition: background .18s ease, transform .1s ease;
}
.careers .send:hover { background: var(--c-blue-dk); }
.careers .send:active { transform: scale(.995); }
.careers .send[disabled] { opacity: .55; cursor: progress; }
.careers .sending { font-size: .875rem; color: var(--c-soft); margin: 0 0 12px; }

.careers .foot {
  padding: 26px 0 40px;
  font-size: .85rem;
  color: var(--c-faint);
  line-height: 1.6;
}
.careers .foot a { color: var(--c-soft); }

/* ---- errors ---- */
.careers .bad { border-color: #C0504A !important; }
.careers .errline {
  font-size: .82rem;
  color: #A33A34;
  margin-top: 6px;
}

/* ============================================================
   3 · THE FORM IN THE LOGO'S COLOURS

   Later in the file than the base form rules on purpose: this pass
   only re-colours and re-shapes, so the layout above stays the one
   source of truth for spacing.

     navy  #011629  the logo's G and wordmark: text
     teal  #00839E  GLOBAL: labels, accents
     arrow #04B7A8 → #0293BC → #0058DC: anything you act on
   ============================================================ */
.careers {
  --g-navy: #011629;
  --g-teal: #00839E;
  --g-a1:   #04B7A8;
  --g-a2:   #0293BC;
  --g-a3:   #0058DC;
  --g-grad: linear-gradient(120deg, var(--g-a1) 0%, var(--g-a2) 48%, var(--g-a3) 100%);
  --g-tint: #E6F4F6;
  --g-edge: #BFDCE4;
}

/* The sheet: a pale wash with two slow brand-coloured glows, so the
   form sits on colour rather than on grey. */
.sheet {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60vmax 40vmax at 100% 0%, rgba(4,183,168,.10), transparent 60%),
    radial-gradient(60vmax 50vmax at 0% 55%, rgba(0,88,220,.08), transparent 60%),
    radial-gradient(50vmax 40vmax at 100% 100%, rgba(2,147,188,.09), transparent 60%),
    #F5F9FB;
  border-top: 0;
}
.sheet::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--g-grad);
}
.sheet .wrap { position: relative; }

.careers .lede h2 { color: var(--g-navy); }
.careers .lede h2::after {
  content: "";
  display: block;
  width: 64px; height: 4px;
  margin-top: 18px;
  border-radius: 4px;
  background: var(--g-grad);
}

/* Each question is a card with the gradient along its top edge and a
   numbered badge, so the form reads as steps rather than a wall. */
.careers fieldset.card {
  position: relative;
  background: #fff;
  border: 1px solid #DCE9EF;
  border-radius: 18px;
  padding: clamp(22px, 4vw, 32px) clamp(18px, 4vw, 30px) clamp(20px, 4vw, 28px);
  margin: 0 0 clamp(18px, 3vw, 24px);
  box-shadow: 0 1px 2px rgba(1,22,41,.04), 0 18px 40px -28px rgba(0,88,220,.35);
  overflow: hidden;
}
.careers fieldset.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--g-grad);
  transform-origin: left;
}
.careers fieldset.card:last-of-type { margin-bottom: 0; }
.careers fieldset.card > legend {
  float: left;           /* keeps the legend inside the card's padding */
  width: 100%;
  color: var(--g-navy);
  padding-right: 44px;
  margin-bottom: 4px;
}
.careers fieldset.card > legend + * { clear: both; }
.careers fieldset.card > .fs-note { clear: both; }
.step-no {
  position: absolute;
  top: clamp(20px, 4vw, 28px);
  right: clamp(18px, 4vw, 26px);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--g-teal);
  background: var(--g-tint);
  border-radius: 100px;
  padding: 4px 9px;
  font-variant-numeric: tabular-nums;
}
.careers fieldset.card .roles { margin-bottom: 0; }

.careers .f > label, .careers .grouplabel { color: var(--g-navy); }
.careers .hint { color: #6F8796; }

/* ---- the text boxes ----
   At rest: a teal-tinted edge on the faintest teal ground.
   Hovered: the edge deepens to the logo teal.
   Focused: the edge becomes the arrow gradient, drawn with the
   two-background trick (white over the padding, gradient over the
   border), and a soft teal glow around it.                         */
.careers input[type="text"],
.careers input[type="email"],
.careers input[type="tel"],
.careers select,
.careers textarea {
  color: var(--g-navy);
  border: 1.5px solid var(--g-edge);
  background-color: #FAFDFD;
  border-radius: 11px;
  transition: border-color .18s ease, box-shadow .22s ease, background-color .18s ease;
}
.careers input[type="text"]:hover,
.careers input[type="email"]:hover,
.careers input[type="tel"]:hover,
.careers select:hover:not(:disabled),
.careers textarea:hover { border-color: var(--g-teal); }

.careers input[type="text"]:focus,
.careers input[type="email"]:focus,
.careers input[type="tel"]:focus,
.careers textarea:focus {
  border-color: transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--g-grad) border-box;
  box-shadow: 0 0 0 4px rgba(4,183,168,.16), 0 8px 20px -12px rgba(0,88,220,.45);
}
/* A select keeps its chevron image, so it takes a solid teal edge
   instead of the gradient. */
.careers select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%2300839E' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.careers select:focus {
  border-color: var(--g-a2);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(4,183,168,.16), 0 8px 20px -12px rgba(0,88,220,.45);
}
.careers select:disabled { background-color: #EEF4F6; border-color: #DCE9EF; }
.careers ::placeholder { color: #93AAB5; }
.careers ::selection { background: #C9ECEC; color: var(--g-navy); }
.careers :focus-visible { outline-color: var(--g-a2); }

.where { background: linear-gradient(180deg, #F3FAFB, #FFFFFF); border: 1px solid #D5E8EE; }

/* ---- roles ---- */
.role-card {
  border: 1.5px solid #DCE9EF;
  border-radius: 14px;
  transition: border-color .2s ease, box-shadow .25s ease, transform .2s ease, background .2s ease;
}
.role input:hover + .role-card { border-color: var(--g-edge); transform: translateY(-2px);
  box-shadow: 0 12px 24px -18px rgba(0,88,220,.5); }
.role input:focus-visible + .role-card { outline-color: var(--g-a2); }
.role input:checked + .role-card {
  border-color: transparent;
  background:
    linear-gradient(180deg, #F2FBFB, #fff) padding-box,
    var(--g-grad) border-box;
  box-shadow: 0 14px 28px -18px rgba(0,88,220,.55);
}
.role-name { color: var(--g-navy); }
.role input:checked + .role-card .role-name { color: var(--g-a3); }
.role-tag {
  background: var(--g-grad);
  box-shadow: 0 4px 10px -4px rgba(0,88,220,.6);
  position: relative;
  overflow: hidden;
}
/* a light that runs across the In demand pill every few seconds */
.role-tag::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.65) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: sheen 3.6s ease-in-out 1s infinite;
}
@keyframes sheen { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

/* ---- checkboxes and files ---- */
.careers .check input { accent-color: var(--g-a2); }
.careers .check label { color: #4E6676; }

.careers .dz {
  border: 1.5px dashed #9FCAD6;
  background: linear-gradient(180deg, #F6FBFC, #fff);
  border-radius: 14px;
  padding: 24px 18px;
}
.careers .dz:hover, .careers .dz.hot {
  border-color: var(--g-a2);
  background: linear-gradient(180deg, #ECF8F9, #fff);
}
.careers .dz b { color: var(--g-navy); }
.dz-ic { width: 40px; height: 40px; margin-bottom: 6px; overflow: visible; }
.dz-ic .dz-sheet, .dz-ic .dz-fold, .dz-ic .dz-up {
  fill: none; stroke: var(--g-teal); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.dz-ic .dz-sheet { fill: #E6F4F6; }
.dz-ic .dz-up { stroke: var(--g-a3); animation: lift 2s ease-in-out infinite; }
.dz-ic .dz-rec { fill: #E5484D; animation: rec 1.4s ease-in-out infinite; }
@keyframes lift { 0%, 100% { translate: 0 2px; } 50% { translate: 0 -3px; } }
@keyframes rec { 50% { opacity: .2; } }
.careers .chip { border: 1.5px solid var(--g-edge); background: #F3FAFB; color: var(--g-navy); }
.careers .chip::before {
  content: "";
  width: 9px; height: 9px; flex: none;
  border-radius: 50%;
  background: var(--g-grad);
  margin-right: -4px;
}

/* ---- the button ----
   The logo's arrow gradient, with a slow light passing over it. While
   it sends, the label gives way to a spinner and the light speeds up,
   so a long upload never looks like a frozen page.                  */
.careers .send {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  background: var(--g-grad);
  background-size: 140% 100%;
  background-position: 0% 50%;
  box-shadow: 0 14px 28px -16px rgba(0,88,220,.75), inset 0 1px 0 rgba(255,255,255,.25);
  transition: background-position .5s ease, box-shadow .25s ease, transform .12s ease, opacity .2s ease;
  text-decoration: none;
}
.careers .send:hover { background: var(--g-grad); background-size: 140% 100%; background-position: 100% 50%;
  box-shadow: 0 18px 32px -16px rgba(0,88,220,.85); }
.careers .send:active { transform: scale(.99); }
.careers .send::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%);
  transform: translateX(-100%);
  animation: sheen 4.5s ease-in-out 2s infinite;
  pointer-events: none;
}
.send-label { display: inline-flex; align-items: center; gap: 10px; transition: opacity .2s ease, transform .25s ease; }
.send-label svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.careers .send:hover .send-label svg { transform: translateX(4px); }

.send-busy {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .25s ease;
}
.spin {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  animation: spin360 .8s linear infinite;
}
@keyframes spin360 { to { transform: rotate(360deg); } }
.careers .send.busy,
.careers .send[disabled] { opacity: 1; cursor: progress; }
.careers .send.busy .send-label { opacity: 0; transform: translateY(-8px); }
.careers .send.busy .send-busy { opacity: 1; transform: none; }
.careers .send.busy::after { animation-duration: 1.4s; animation-delay: 0s; }
.careers .send.busy { background-position: 100% 50%; }
#send-busy-txt::after { content: "…"; }
.careers .sending { color: var(--g-teal); font-weight: 500; text-align: center; }

.careers .foot { padding: 34px 0 0; color: #6F8796; text-align: center; }
.careers .foot a { color: var(--g-teal); }

/* ---- sections rising in as they reach the screen ---- */
.rv { opacity: 0; transform: translateY(28px); filter: blur(6px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1), filter .7s ease; }
.rv.on { opacity: 1; transform: none; filter: none; }
fieldset.card.rv::before { transform: scaleX(0); transition: transform 1s cubic-bezier(.65,0,.35,1) .2s; }
fieldset.card.rv.on::before { transform: scaleX(1); }
/* Without the script there is nothing to switch them on. */
html.no-js .rv { opacity: 1; transform: none; filter: none; }

/* ============================================================
   4 · RECEIVED — the full-screen page after sending
   ============================================================ */
.done {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  display: grid;
  justify-items: center;
  padding: clamp(40px, 8vh, 80px) 20px clamp(40px, 8vh, 72px);
  opacity: 0;
  transition: opacity .5s ease;
}
.done[hidden] { display: none; }
.done.show { opacity: 1; }
body.done-open { overflow: hidden; }

.done-art { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.done-art .glow { opacity: 1; }
.done-art .g1 { background: radial-gradient(closest-side, rgba(4,183,168,.22), rgba(4,183,168,0)); }
.done-art .g2 { background: radial-gradient(closest-side, rgba(0,88,220,.18), rgba(0,88,220,0)); }

/* Sparks burst out from the mark once, then drift. */
.spark {
  position: absolute;
  left: 50%; top: calc(clamp(40px, 8vh, 80px) + 52px);
  width: 10px; height: 10px;
  border-radius: 3px;
  background: var(--g-grad);
  opacity: 0;
}
.done.show .spark { animation: burst 1.6s cubic-bezier(.15,.7,.3,1) .55s forwards, float 6s ease-in-out 2.2s infinite alternate; }
/* They fan out to either side of the mark and stay level with it,
   so none of them lands on the words below. */
.k1 { --sx: calc(-1 * min(250px, 40vw)); --sy: -30px; --r: 40deg; }
.k2 { --sx: min(230px, 38vw);  --sy: -50px; --r: -30deg; width: 7px; height: 7px; border-radius: 50%; }
.k3 { --sx: calc(-1 * min(150px, 30vw)); --sy: 26px; --r: 70deg; width: 6px; height: 14px; }
.k4 { --sx: min(160px, 32vw);  --sy: 20px; --r: -60deg; }
.k5 { --sx: calc(-1 * min(320px, 44vw)); --sy: 10px; --r: 20deg; width: 6px; height: 6px; border-radius: 50%; }
.k6 { --sx: min(320px, 44vw);  --sy: -6px; --r: 80deg; width: 6px; height: 14px; }
.k7 { --sx: calc(-1 * min(100px, 24vw)); --sy: -62px; --r: -20deg; width: 7px; height: 7px; border-radius: 50%; }
.k8 { --sx: min(110px, 26vw);  --sy: -66px; --r: 50deg; }
@keyframes burst {
  0%   { opacity: 0; transform: translate(-50%, 0) scale(.2) rotate(0); }
  20%  { opacity: 1; }
  100% { opacity: .85; transform: translate(calc(-50% + var(--sx)), var(--sy)) scale(1) rotate(var(--r)); }
}
@keyframes float {
  from { transform: translate(calc(-50% + var(--sx)), var(--sy)) rotate(var(--r)); }
  to   { transform: translate(calc(-50% + var(--sx)), calc(var(--sy) - 14px)) rotate(calc(var(--r) + 25deg)); }
}

.done-in {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  text-align: center;
}
.done-in > * { opacity: 0; transform: translateY(18px); }
.done.show .done-in > * { animation: rise .7s cubic-bezier(.22,.61,.36,1) forwards; }
.done.show .done-in > :nth-child(1) { animation-delay: .05s; }
.done.show .done-in > :nth-child(2) { animation-delay: .9s; }
.done.show .done-in > :nth-child(3) { animation-delay: 1.05s; }
.done.show .done-in > :nth-child(4) { animation-delay: 1.2s; }
.done.show .done-in > :nth-child(5) { animation-delay: 1.35s; }
.done.show .done-in > :nth-child(6) { animation-delay: 1.45s; }
.done.show .done-in > :nth-child(7) { animation-delay: 1.65s; }
.done.show .done-in > :nth-child(8) { animation-delay: 1.75s; }
.done.show .done-in > :nth-child(9) { animation-delay: 2.6s; }
.done.show .done-in > :nth-child(10) { animation-delay: 2.7s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* the mark: a halo pulses, the ring draws itself, then the tick */
.done-mark { width: clamp(96px, 16vw, 124px); height: auto; margin: 0 auto 18px; display: block; overflow: visible; }
.dm-halo { fill: rgba(4,183,168,.10); transform-origin: 60px 60px; }
.dm-ring, .dm-tick { fill: none; stroke: url(#done-grad); stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; }
.dm-ring { stroke-width: 6; transform: rotate(-90deg); transform-origin: 60px 60px; }
.dm-tick { stroke-width: 8; }
.done.show .dm-ring { animation: drawIn .9s cubic-bezier(.65,0,.35,1) .2s forwards; }
.done.show .dm-tick { animation: drawIn .5s cubic-bezier(.65,0,.35,1) .95s forwards; }
.done.show .dm-halo { animation: halo 2.6s ease-out 1.1s infinite; }
@keyframes drawIn { to { stroke-dashoffset: 0; } }
@keyframes halo { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }

.done-in h2 {
  font-size: clamp(1.75rem, 5.2vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--g-navy);
  margin: 0 0 10px;
}
.done-lead {
  font-size: clamp(1.1rem, 2.6vw, 1.35rem);
  font-weight: 600;
  margin: 0 0 14px;
  background: var(--g-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--g-a2);
}
.done-sub { color: #4E6676; line-height: 1.6; margin: 0 auto 16px; max-width: 46ch; }

.ref-wrap {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  max-width: 420px;
  margin: 0 auto 10px;
  border-radius: 16px;
  padding: 2px;
  background: var(--g-grad);
  box-shadow: 0 18px 36px -20px rgba(0,88,220,.7);
}
.ref {
  flex: 1;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(1.15rem, 4vw, 1.5rem);
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--g-navy);
  background: #fff;
  border-radius: 14px 0 0 14px;
  padding: 16px 14px;
  word-break: break-all;
}
.ref-copy {
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
  background: transparent;
  border: 0;
  padding: 0 18px;
  cursor: pointer;
}
.ref-copy:hover { background: rgba(255,255,255,.12); border-radius: 0 14px 14px 0; }
.done-note { font-size: .88rem; color: #6F8796; margin: 0 0 30px; }

.next-h {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--g-teal);
  margin: 0 0 14px;
}
.next {
  list-style: none;
  margin: 0 auto 22px;
  padding: 0;
  text-align: left;
  position: relative;
}
/* the line that joins the steps draws down through them */
.next::before {
  content: "";
  position: absolute;
  left: 23px; top: 24px; bottom: 24px;
  width: 2px;
  background: var(--g-grad);
  transform-origin: top;
  transform: scaleY(0);
  opacity: .5;
}
.done.show .next::before { animation: lineDown 1.6s cubic-bezier(.65,0,.35,1) 1.9s forwards; }
@keyframes lineDown { to { transform: scaleY(1); } }

.next li {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  padding: 0 0 18px;
  opacity: 0;
  transform: translateX(-12px);
}
.done.show .next li { animation: slideIn .6s cubic-bezier(.22,.61,.36,1) forwards; }
.done.show .next li:nth-child(1) { animation-delay: 1.9s; }
.done.show .next li:nth-child(2) { animation-delay: 2.15s; }
.done.show .next li:nth-child(3) { animation-delay: 2.4s; }
.done.show .next li:nth-child(4) { animation-delay: 2.65s; }
.done.show .next li:nth-child(5) { animation-delay: 2.9s; }
@keyframes slideIn { to { opacity: 1; transform: none; } }

.ni {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: #fff;
  border: 1.5px solid #D5E8EE;
  color: var(--g-teal);
  box-shadow: 0 10px 20px -14px rgba(0,88,220,.6);
  position: relative;
  z-index: 1;
}
.next li.is-done .ni { background: var(--g-grad); border-color: transparent; color: #fff; }
.ni svg { width: 28px; height: 28px; overflow: visible; }
.ni .s { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ni .dot { fill: currentColor; }
.ni .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 3.4s ease-in-out infinite; }
.ni .d2 { animation-delay: .6s; }
.ni .wave { animation: wave 1.8s ease-in-out infinite; }
.ni .w2 { animation-delay: .3s; }
.ni .nod { animation: typing 1.6s ease-in-out infinite; }
.ni .rocket { animation: lift 1.8s ease-in-out infinite; }
.ni .flame { stroke: #F59E0B; transform-origin: 24px 34px; animation: flick .35s ease-in-out infinite alternate; }
@keyframes flick { from { transform: scaleY(.7); opacity: .7; } to { transform: scaleY(1.15); opacity: 1; } }

.next b { display: block; font-size: 1rem; font-weight: 600; color: var(--g-navy); margin: 3px 0 2px; }
.next p { margin: 0; font-size: .9rem; line-height: 1.5; color: #4E6676; }
.next li.is-done b::after {
  content: "Done";
  margin-left: 8px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: #fff;
  background: var(--g-grad);
  padding: 2px 8px;
  border-radius: 100px;
  vertical-align: 2px;
}

.done-safe { font-size: .85rem; color: #6F8796; line-height: 1.6; margin: 0 auto 22px; max-width: 48ch; }
.done-safe a { color: var(--g-teal); }
.done-home { width: auto; padding: 14px 28px; color: #fff; }

/* ============================================================
   Reduced motion: the sequence still says all four phrases, it
   just stops animating between them. Nothing is lost but the show.
   The page opens already resolved: header in place, drawings still,
   the last phrase on screen.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .careers *, .careers *::before, .careers *::after {
    animation: none !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .hw { opacity: 1; transform: none; filter: none; }
  .hero-giya { opacity: 1; filter: none; }
  .tile { opacity: 1; transform: none; filter: none; }
  .glow { opacity: 1; }
  .hero-opener { display: none; }
  .hero-logo { opacity: 1; }
  .hero-signin { opacity: 1; }
  .tile .draw { stroke-dashoffset: 0; }
  .tile .ecg { stroke-dasharray: none; }
  .hero-cue i { height: 38px; }
  .rv { opacity: 1; transform: none; filter: none; }
  fieldset.card.rv::before { transform: none; }
  .done-in > *, .next li { opacity: 1 !important; transform: none !important; }
  .dm-ring, .dm-tick { stroke-dashoffset: 0; }
  .next::before { transform: none; }
  .spark { display: none; }
  .ni .draw { stroke-dashoffset: 0; }
}
