/* ==========================================================================
   Styles for markup added on top of the original design.
   Kept separate so assets/css/style.css stays untouched.
   ========================================================================== */

/* ---------- Thank-you page ---------- */
.ty__steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  counter-reset: ty;
}

.ty__steps li {
  position: relative;
  padding: 0 0 1.6rem 3.2rem;
  counter-increment: ty;
}

.ty__steps li::before {
  content: counter(ty, decimal-leading-zero);
  position: absolute;
  inset-inline-start: 0;
  top: 0.1rem;
  font-family: var(--font-head, inherit);
  font-size: 0.95rem;
  color: var(--gold, #c9a227);
  letter-spacing: 0.04em;
}

.ty__steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-start: 0.55rem;
  top: 1.9rem;
  bottom: 0.4rem;
  width: 1px;
  background: currentColor;
  opacity: 0.16;
}

.ty__steps strong { display: block; margin-bottom: 0.25rem; }
.ty__steps span { display: block; opacity: 0.72; font-size: 0.95rem; }

.ty__card {
  padding: 2rem;
  border: 1px solid rgb(0 0 0 / 0.1);
  border-radius: 14px;
  background: rgb(0 0 0 / 0.02);
}

.ty__card h3 { margin-bottom: 0.5rem; }
.ty__card p { opacity: 0.75; margin-bottom: 1.25rem; }
.ty__card .btn-lux { display: inline-flex; }

/* ---------- Fallbacks for records without an uploaded image ---------- */
.logo-cell__name,
.tavatar__initials {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-head, inherit);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tavatar__initials {
  border-radius: 50%;
  background: rgb(255 255 255 / 0.1);
  font-size: 1.1rem;
}

.dev__logo img { max-width: 100%; height: auto; object-fit: contain; }

/* ---------- Empty states ---------- */
.jobs__none {
  padding: 2rem;
  border: 1px dashed rgb(0 0 0 / 0.16);
  border-radius: 12px;
  text-align: center;
  opacity: 0.8;
}

/* ---------- Form error state (a submission that did not go through) ---------- */
.eform.is-error::after,
.aform.is-error::after {
  content: "Something went wrong. Please call us instead.";
  display: block;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: rgb(179 38 30 / 0.1);
  color: #b3261e;
  font-size: 0.9rem;
}

/* ---------- Footer: "Developed by" credit ---------- */
.footer__credit {
  opacity: 0.72;
  font-size: 0.86rem;
}

.footer__credit a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity 0.3s var(--ease, ease);
}

.footer__credit a:hover { opacity: 0.6; }

/* ==========================================================================
   Home hero.

   Restraint is the brief. Three rules held throughout:
   1. The photograph is the hero — the scrim earns legibility and stops.
   2. One voice at a time. The headline is the only loud element.
   3. Everything sits inside one viewport, with air around it.

   Spacing runs on a single scale (--s) so the vertical rhythm is deliberate
   rather than a pile of ad-hoc margins.
   ========================================================================== */

.chero {
  --s: clamp(0.75rem, 1.1vh, 1rem);   /* rhythm unit */
  --rail-h: 84px;

  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  /* An auto column would be sized by max-content, and the logo marquee's
     track is deliberately max-content wide. Pin the column so nothing
     inside can stretch the hero past the viewport. */
  grid-template-columns: minmax(0, 1fr);
  isolation: isolate;
  overflow: hidden;
  background: var(--ink, #0e1620);
}

/* ------------------------------------------------------------- the plate -- */
.chero__plate { position: absolute; inset: 0; z-index: -2; }

.chero__still {
  position: absolute;
  inset: 0;
  opacity: 0;
  /* 18s per full cycle: slow enough to read as atmosphere, not a slideshow */
  animation: 18s linear infinite;
}

.chero__still[style*="--i:0"] { animation-name: chero-a; }
.chero__still[style*="--i:1"] { animation-name: chero-b; }

.chero__still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: chero-drift 18s ease-in-out infinite alternate;
  transform-origin: 60% 45%;
}

@keyframes chero-a { 0%,42% { opacity: 1 } 50%,92% { opacity: 0 } 100% { opacity: 1 } }
@keyframes chero-b { 0%,42% { opacity: 0 } 50%,92% { opacity: 1 } 100% { opacity: 0 } }
@keyframes chero-drift { from { transform: scale(1.03) } to { transform: scale(1.1) } }

/* ------------------------------------------------------------- the scrim --
   Weighted to the left third where the words live, then released so the
   skyline keeps its colour. Nothing above 78%.                              */
.chero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg,
      rgba(10, 16, 24, 0.78) 0%,
      rgba(10, 16, 24, 0.62) 26%,
      rgba(10, 16, 24, 0.22) 50%,
      rgba(10, 16, 24, 0.04) 68%,
      rgba(10, 16, 24, 0.00) 85%),
    linear-gradient(to top,
      rgba(10, 16, 24, 0.80) 0%,
      rgba(10, 16, 24, 0.20) 18%,
      rgba(10, 16, 24, 0.00) 38%);
}

/* -------------------------------------------------------------- the grid -- */
.chero__inner {
  position: relative;
  align-self: center;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
  width: 100%;
  padding-top: calc(var(--s) * 9);     /* clears the floating header */
  padding-bottom: calc(var(--s) * 3);
}

/* a measured column — long lines are what made the last one feel cramped */
.chero__copy { max-width: min(34rem, 100%); min-width: 0; }

/* ------------------------------------------------------------------ type -- */
.chero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: calc(var(--s) * 1.4);
}

.chero__eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--brand, #6a97cc);
}

/* The brand line, in the site's own gradient treatment. It sits above the
   headline as the first thing read, so the headline steps down a size. */
.chero__brand {
  margin: 0 0 calc(var(--s) * 0.9);
  font-family: var(--font-head, inherit);
  font-size: clamp(1.6rem, 2.9vw, 2.55rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  /* Warm gold, as on the brand's own treatment — it separates the company
     name from the blue used everywhere else for links and accents. */
  background-image: linear-gradient(100deg,
    #c08f4e 0%,
    #e4c594 26%,
    #fbf1dd 50%,
    #e4c594 74%,
    #c08f4e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Two lines, always. Capped so it never dominates the frame. */
.chero__title {
  font-family: var(--font-head, inherit);
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 calc(var(--s) * 2);
}

.chero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }

.chero__title em {
  font-family: var(--font-serif, Georgia, serif);
  font-style: italic;
  font-weight: 400;
  color: var(--brand-light, #9cbce3);
  padding-right: 0.05em;
}

.chero__lead {
  max-width: min(42ch, 100%);
  font-size: clamp(0.95rem, 1.02vw, 1.02rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 calc(var(--s) * 3);
}

/* ----------------------------------------------------------- the search -- */
.chero__search {
  display: flex;
  align-items: stretch;
  gap: 4px;
  padding: 4px;
  max-width: min(27rem, 100%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  margin-bottom: calc(var(--s) * 2.5);
}

.chero__field {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.35s var(--ease, ease);
}

.chero__field:hover { background: rgba(255, 255, 255, 0.08); }
.chero__field + .chero__field { box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.14); }
.chero__field + .chero__field:hover { box-shadow: none; }

.chero__field > span {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.chero__field select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  /* WebKit paints a closed select with the option's colour unless the fill
     colour is set explicitly, which is what left this text dark navy. */
  -webkit-text-fill-color: #fff;
  cursor: pointer;
  outline: none;
  text-overflow: ellipsis;
}

.chero__field select option {
  color: var(--ink, #0e1620);
  background: #fff;
}

/* main.js swaps every <select> for a custom widget: the real control is
   hidden and a div.selx__face is rendered in its place. Element selectors
   like `.chero__field select` therefore never touch the visible text, so
   the face has to be styled directly. */
.chero__field .selx__face {
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  background-image: none;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  -webkit-text-fill-color: #fff;
  cursor: pointer;
  outline: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chero__field .selx__face:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.6); outline-offset: 3px; border-radius: 4px; }

/* The widget parks its menu on <body>, so it sits on the page background
   rather than on the hero — dark text on light is correct there. */
.selx__panel .selx__opt { color: var(--ink, #0e1620); }

.chero__go {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink, #0e1620);
  cursor: pointer;
  transition: background 0.35s var(--ease, ease), color 0.35s;
}

.chero__go:hover { background: var(--brand, #6a97cc); color: #fff; }

/* ---------------------------------------------------------- the actions -- */
.chero__actions { display: flex; align-items: center; gap: clamp(1.1rem, 2vw, 1.75rem); flex-wrap: wrap; }

.chero__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 10px 10px 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.35s var(--ease, ease), border-color 0.35s;
}

.chero__btn:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.55); color: #fff; }

.chero__btn-dot {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink, #0e1620);
  transition: transform 0.4s var(--ease, ease);
}

.chero__btn:hover .chero__btn-dot { transform: rotate(45deg); }

.chero__call {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}

.chero__call:hover { color: #fff; border-color: #fff; }

/* ------------------------------------------------------------- the picks --
   Real inventory fills the right of the frame, looping slowly so the panel
   reads as a live catalogue. The backdrop is dark rather than clear glass:
   against a bright sky, translucent glass loses the text.
   -------------------------------------------------------------------------- */
.chero__picks {
  --row-h: 86px;        /* one project row */
  --rows: 3;            /* rows visible at once */

  display: flex;
  flex-direction: column;
  width: min(clamp(20rem, 29vw, 25rem), 100%);
  padding: 18px 16px 6px;
  border-radius: 24px;
  background: rgba(9, 14, 22, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(26px) saturate(130%);
  -webkit-backdrop-filter: blur(26px) saturate(130%);
  box-shadow: 0 30px 70px -32px rgba(0, 0, 0, 0.95);
}

.chero__picks-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  padding: 0 8px 12px;
}

/* ---- the loop ---- */
.chero__loop {
  position: relative;
  height: calc(var(--row-h) * var(--rows));
  overflow: hidden;
  /* the ends fade so rows enter and leave rather than popping */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
}

.chero__track {
  display: flex;
  flex-direction: column;
  animation: chero-roll 26s linear infinite;
}

/* two identical sets, so -50% lands exactly where it started */
@keyframes chero-roll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

.chero__loop:hover .chero__track,
.chero__loop:focus-within .chero__track { animation-play-state: paused; }

/* A short loop needs a gentler fade, or it eats the rows it is framing. */
.chero__picks:has(.chero__loop) { --mask: 9%; }

@media (max-height: 700px), (max-width: 767.98px) {
  .chero__loop {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 4%, #000 96%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 4%, #000 96%, transparent 100%);
  }
}

.chero__set { display: flex; flex-direction: column; }

/* ---- a row ---- */
.chero__pick {
  display: flex;
  align-items: center;
  gap: 14px;
  height: var(--row-h);
  padding: 0 10px;
  border-radius: 15px;
  text-decoration: none;
  transition: background 0.35s var(--ease, ease);
}

.chero__pick:hover { background: rgba(255, 255, 255, 0.12); }

.chero__pick-media {
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  border-radius: 13px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.chero__pick-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease, ease);
}

.chero__pick:hover .chero__pick-media img { transform: scale(1.08); }

.chero__pick-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.chero__pick-name {
  font-size: 1.02rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.22;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chero__pick-meta {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.66);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chero__pick-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-light, #9cbce3);
  margin-top: 2px;
}

.chero__pick-go {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-inline-start: auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity 0.35s, transform 0.35s var(--ease, ease), background 0.35s;
}

.chero__pick:hover .chero__pick-go {
  opacity: 1;
  transform: translateX(0);
  background: var(--brand, #6a97cc);
}

.chero__picks-all {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
  padding: 13px 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.3s;
}

.chero__picks-all:hover { color: #fff; }
.chero__picks-all svg { transition: transform 0.35s var(--ease, ease); }
.chero__picks-all:hover svg { transform: translateX(3px); }

/* -------------------------------------------------------------- the rail -- */
.chero__rail {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 16, 24, 0.3);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.chero__rail-inner {
  min-width: 0;
  /* the floating WhatsApp button sits bottom-right; keep the marquee clear
     of it so logos never slide underneath */
  padding-inline-end: clamp(5.5rem, 9vw, 6.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.chero__figures { flex: 0 0 auto; display: flex; gap: clamp(1.6rem, 3.2vw, 3.2rem); margin: 0; }
.chero__figures div { display: flex; align-items: baseline; gap: 0.45rem; }

.chero__figures dd {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.015em;
  color: #fff;
}

.chero__figures dt {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

/* The partner logos scroll continuously. The set is rendered twice so the
   track meets itself at -50%; hovering pauses it. */
.chero__brands {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 54%;
  margin-inline-start: auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.chero__brands-track {
  display: flex;
  width: max-content;
  animation: chero-marquee 34s linear infinite;
}

@keyframes chero-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.chero__brands:hover .chero__brands-track { animation-play-state: paused; }

.chero__brands-set { display: flex; align-items: center; gap: 14px; padding-inline-end: 14px; }

/* These PNGs are palette images with no alpha, so a knockout filter would
   render each as a solid white block. They sit on a light chip at their own
   colours instead, desaturated so they read as credentials. */
.chero__brands-set img {
  height: 42px;
  width: auto;
  max-width: 116px;
  object-fit: contain;
  padding: 7px 14px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.94);
  filter: saturate(0.3) contrast(1.04);
  opacity: 0.82;
  transition: opacity 0.35s var(--ease, ease), filter 0.35s var(--ease, ease);
}

.chero__brands-set img:hover { opacity: 1; filter: none; }

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 1199.98px) {
  .chero__picks { width: min(18rem, 100%); }
  .chero__picks { --row-h: 78px; }
}

@media (max-width: 991.98px) {
  .chero__inner { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 2rem; }
  .chero__picks { width: 100%; min-width: 0; --rows: 3; }

  /* The rail wraps to two rows here, so centre it rather than leaving the
     figures stranded against the left edge. */
  .chero__rail-inner { justify-content: center; padding-inline-end: 0; }
  .chero__figures { justify-content: center; width: 100%; flex-wrap: wrap; }

  /* The marquee still has to clear the floating WhatsApp button. Padding
     will not do it — overflow clips to the padding box, so logos would
     render into it — so margin shortens the track instead. */
  .chero__brands {
    max-width: 100%;
    margin-inline-start: clamp(5.5rem, 12vw, 7rem);
    margin-inline-end: clamp(5.5rem, 12vw, 7rem);
  }
}

@media (max-width: 767.98px) {
  .chero { min-height: auto; }
  .chero__inner { padding-top: calc(var(--s) * 11); padding-bottom: calc(var(--s) * 4); }
  .chero__scrim {
    background: linear-gradient(to bottom, rgba(10,16,24,.72) 0%, rgba(10,16,24,.5) 42%, rgba(10,16,24,.92) 100%);
  }
  .chero__search { flex-direction: column; border-radius: 22px; padding: 6px; max-width: none; }
  .chero__field { border-radius: 16px; }
  .chero__field + .chero__field { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14); }
  .chero__go { width: 100%; height: 44px; margin-top: 4px; }
  .chero__figures { gap: 1.3rem; }

  /* Keep the whole hero to roughly one and a half screens on a phone,
     so the page below it is reachable without a long scroll. */
  .chero__picks { --rows: 2; --row-h: 74px; }
  .chero__inner { padding-bottom: calc(var(--s) * 2); }
  .chero__lead { margin-bottom: calc(var(--s) * 2.2); }
  .chero__actions { gap: 0.9rem; }
  .chero__rail-inner { padding-top: 0.85rem; padding-bottom: 0.85rem; }
  .chero__brands-set img { height: 34px; max-width: 94px; padding: 6px 11px; }
}

/* Short viewports: landscape phones and tablets. Trim the vertical budget
   so the rail stays on screen instead of being pushed below the fold. */
@media (max-height: 700px) and (min-width: 768px) {
  .chero { min-height: 0; }
  .chero__inner { padding-top: calc(var(--s) * 7); padding-bottom: calc(var(--s) * 2); }
  .chero__picks { --rows: 2; }
  .chero__lead { margin-bottom: calc(var(--s) * 2); }
  .chero__search { margin-bottom: calc(var(--s) * 1.6); }
}

@media (max-height: 560px) {
  .chero__picks { --rows: 2; }
  .chero__brand { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
  .chero__title { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
}

@media (prefers-reduced-motion: reduce) {
  .chero__still, .chero__still img { animation: none; }
  .chero__still[style*="--i:1"] { opacity: 0; }
  .chero__still[style*="--i:0"] { opacity: 1; }
  .chero__track, .chero__brands-track { animation: none; }
  .chero__brands-set[aria-hidden="true"] { display: none; }
  .chero__loop { height: auto; -webkit-mask-image: none; mask-image: none; }
  .chero__set[aria-hidden="true"] { display: none; }
  .chero__pick, .chero__pick-media img, .chero__pick-go, .chero__btn-dot, .chero__go { transition: none; }
}

/* The enquiry panel can carry two badges — type and status — so the second
   is tinted to read as a state rather than a second category. */
.emodal__badge--status {
  background: rgba(106, 151, 204, 0.22);
  color: #fff;
  margin-inline-start: 6px;
}
