/* =========================================================
   Alplas Landing Page, section styles
   Dark, cinematic, two-colour (#2B3896 + #FFFFFF)
   ========================================================= */

:root {
  --tone-a: #07070C;
  --tone-b: #0B0D14;
  --hair: rgba(255, 255, 255, 0.06);
  --body-dim: rgba(255, 255, 255, 0.65);
}

/* page sits above the fixed grain but below qbar/nav */
.section {
  position: relative;
  width: 100%;
  padding: 130px 8vw;
  overflow: hidden;
  border-top: 1px solid var(--hair);
}
.section--a { background: var(--tone-a); }
.section--b { background: var(--tone-b); }

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   PROCESS SECTIONS
   ========================================================= */
.proc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  min-height: 72vh;
  max-width: 1500px;
  margin: 0 auto;
}
.proc__text { position: relative; z-index: 2; max-width: 560px; }
.proc--right .proc__text { order: 2; }
.proc--right .proc__visual { order: 1; }

/* giant ghost numeral */
.proc__numeral {
  position: absolute;
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(130px, 18vw, 300px);
  line-height: 0.8;
  color: #fff;
  opacity: 0.06;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
}
.proc--left .proc__numeral  { top: -2vw; left: -1vw; }
.proc--right .proc__numeral { top: -2vw; right: -1vw; }
/* keep the readable text above the ghost numeral so it never hurts legibility */
.proc__label, .proc__headline, .proc__body, .proc__cta { position: relative; z-index: 1; }
@media (min-width: 1500px) {
  /* keep numerals tucked to the section edge so they never slide under body copy */
  .proc--left .proc__numeral  { top: -54px; left: -10px; }
  .proc--right .proc__numeral { top: -54px; right: -10px; }
}

.proc__label {
  font: 600 12.5px/1 'Work Sans', sans-serif;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #5b6ad6;
  margin-bottom: 26px;
  display: inline-flex; align-items: center; gap: 14px;
}
.proc__label::before {
  content: ""; width: 30px; height: 2px; background: var(--indigo);
}
.proc__headline {
  font: 700 clamp(40px, 4.4vw, 68px)/1.02 'Work Sans', sans-serif;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 34px;
  text-wrap: balance;
}
.proc__body { display: flex; flex-direction: column; gap: 20px; max-width: 500px; }
.proc__body p {
  font: 300 17px/1.65 'Open Sans', sans-serif;
  color: var(--body-dim);
}
.proc__body strong { font-weight: 600; color: rgba(255,255,255,.9); }

/* per-stage call to action */
.proc__cta {
  margin-top: 36px;
  display: inline-flex; align-items: center; gap: 11px;
  padding: 14px 26px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 7px;
  background: transparent;
  font: 600 14px/1 'Work Sans', sans-serif;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  width: fit-content;
  transition: background .22s, border-color .22s, gap .22s;
}
.proc__cta .arrow {
  width: 16px; height: 16px; display: inline-block;
  transition: transform .22s;
}
.proc__cta:hover {
  background: var(--indigo);
  border-color: var(--indigo);
  gap: 14px;
}
.proc__cta:hover .arrow { transform: translateX(3px); }

/* visual frame */
.proc__visual { position: relative; z-index: 1; }
.proc__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.85);
  background: #0d0f16;
}
.proc__frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.proc__frame--amber img { filter: saturate(1.05) contrast(1.05); }
/* caption chip */
.proc__chip {
  position: absolute; left: 18px; bottom: 18px; z-index: 3;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 15px;
  background: rgba(7,7,12,.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  font: 500 12px/1 'Work Sans', sans-serif;
  letter-spacing: 0.04em;
  color: #fff;
}
.proc__chip .dotmark { width: 7px; height: 7px; border-radius: 50%; background: var(--indigo); }

/* amber wash for tooling section */
.proc__frame--amber::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 30% 60%, rgba(255,150,60,.28), transparent 70%);
  mix-blend-mode: screen; pointer-events: none;
}
.section--amber {
  background:
    radial-gradient(ellipse 50% 60% at 78% 50%, rgba(120, 60, 20, .22), transparent 65%),
    var(--tone-b);
}

/* vertical connecting line between process sections */
.proc__thread {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.12) 18%, rgba(255,255,255,.12) 82%, transparent);
  z-index: 0; pointer-events: none;
}

/* =========================================================
   CAPABILITIES STRIP
   ========================================================= */
.caps { max-width: 1400px; margin: 0 auto; text-align: center; }
.caps__row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border: 1px solid var(--hair);
  border-radius: 12px;
  overflow: hidden;
}
.cap {
  padding: 40px 22px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  border-right: 1px solid var(--hair);
  transition: background .3s;
}
.cap:last-child { border-right: 0; }
.cap:hover { background: rgba(255,255,255,.02); }
.cap__icon { width: 34px; height: 34px; color: #fff; opacity: .92; }
.cap__icon svg { width: 100%; height: 100%; display: block; }
.cap__label {
  font: 500 14px/1.3 'Work Sans', sans-serif;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,.88);
}
.caps__note {
  margin-top: 34px;
  font: 300 15px/1.6 'Open Sans', sans-serif;
  color: rgba(255,255,255,.5);
}
.caps__note strong { color: rgba(255,255,255,.75); font-weight: 600; }

/* =========================================================
   ABOUT / HERITAGE
   ========================================================= */
.about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 90px;
  align-items: center;
  max-width: 1400px; margin: 0 auto;
  min-height: 52vh;
}
.about__headline {
  font: 700 clamp(36px, 4vw, 60px)/1.04 'Work Sans', sans-serif;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 30px;
  text-wrap: balance;
}
.about__body { display: flex; flex-direction: column; gap: 18px; max-width: 540px; }
.about__body p {
  font: 300 17px/1.65 'Open Sans', sans-serif;
  color: var(--body-dim);
}
.about__body strong { font-weight: 600; color: rgba(255,255,255,.9); }

.stats { display: flex; flex-direction: column; gap: 0; }
.stat {
  padding: 30px 0;
  border-top: 1px solid var(--hair);
  display: flex; flex-direction: column; gap: 8px;
}
.stat:last-child { border-bottom: 1px solid var(--hair); }
.stat__num {
  font: 700 clamp(40px, 4vw, 58px)/1 'Work Sans', sans-serif;
  letter-spacing: -0.02em;
  color: #fff;
}
.stat__num span { color: var(--indigo); }
.stat__label {
  font: 500 13px/1 'Work Sans', sans-serif;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testi { max-width: 1400px; margin: 0 auto; }
.testi__head { margin-bottom: 56px; max-width: 620px; }
.testi__eyebrow {
  font: 600 12.5px/1 'Work Sans', sans-serif;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: #5b6ad6; margin-bottom: 20px;
  display: inline-flex; align-items: center; gap: 14px;
}
.testi__eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--indigo); }
.testi__title {
  font: 700 clamp(32px, 3.4vw, 50px)/1.05 'Work Sans', sans-serif;
  letter-spacing: -0.02em; color: #fff;
}
.testi__grid {
  display: grid;
  /* two testimonials for now; capped width keeps the quote measure readable
     and the pair sits under the left-aligned heading */
  grid-template-columns: repeat(2, 1fr);
  max-width: 1060px;
  gap: 24px;
}
.tcard {
  position: relative;
  padding: 40px 34px 34px;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(43,56,150,.22) 0%, rgba(43,56,150,.06) 38%, rgba(255,255,255,.015) 70%);
  border: 1px solid rgba(91,106,214,.16);
  border-radius: 16px;
  display: flex; flex-direction: column; gap: 26px;
  overflow: hidden;
  transition: border-color .3s, transform .3s;
}
.tcard::before {
  /* soft top-edge sheen */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120,135,235,.5), transparent);
}
.tcard:hover {
  border-color: rgba(91,106,214,.4);
  transform: translateY(-4px);
}
.tcard__mark {
  font: 700 60px/0.6 'Work Sans', sans-serif;
  color: var(--indigo); opacity: .55; height: 26px;
}
.tcard__quote {
  font: italic 300 17px/1.6 'Open Sans', sans-serif;
  color: rgba(255,255,255,.82);
  flex: 1;
}
.tcard__who { display: flex; flex-direction: column; gap: 4px; }
.tcard__name { font: 600 14px/1 'Work Sans', sans-serif; color: #fff; }
.tcard__co { font: 400 13px/1 'Open Sans', sans-serif; color: rgba(255,255,255,.5); }
.placeholder-tag {
  display: inline-block;
  font: 500 10px/1 'Work Sans', sans-serif;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #5b6ad6;
  border: 1px dashed rgba(91,106,214,.5);
  padding: 5px 8px; border-radius: 4px; margin-bottom: 14px;
}

/* =========================================================
   GALLERY (bento) + LIGHTBOX
   ========================================================= */
.gallery { max-width: 1500px; margin: 0 auto; }
.gallery__head { max-width: 640px; margin-bottom: 48px; }
.gallery__eyebrow {
  font: 600 12.5px/1 'Work Sans', sans-serif;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: #5b6ad6; margin-bottom: 20px;
  display: inline-flex; align-items: center; gap: 14px;
}
.gallery__eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--indigo); }
.gallery__title {
  font: 700 clamp(32px, 3.4vw, 50px)/1.05 'Work Sans', sans-serif;
  letter-spacing: -0.02em; color: #fff;
}

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 215px;
  gap: 16px;
}
.bento__item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--hair);
  background: #0d0f16;
}
.bento__item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.bento__item:hover img { transform: scale(1.06); }
.bento__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5,6,12,.55) 100%);
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.bento__item:hover::after { opacity: 1; }
.bento__zoom {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(7,7,12,.55); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  opacity: 0; transform: scale(.85); transition: opacity .3s, transform .3s;
}
.bento__item:hover .bento__zoom { opacity: 1; transform: scale(1); }
.bento__zoom svg { width: 16px; height: 16px; }
.bento__cap {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  font: 500 13px/1 'Work Sans', sans-serif; color: #fff;
  letter-spacing: 0.02em;
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.bento__item:hover .bento__cap { opacity: 1; transform: none; }
.bento__item--big  { grid-column: span 2; grid-row: span 2; }
.bento__item--wide { grid-column: span 2; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(4, 5, 10, .93);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox__stage { position: relative; max-width: 88vw; max-height: 86vh; }
.lightbox__img {
  display: block; max-width: 88vw; max-height: 82vh;
  border-radius: 12px; border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,.9);
}
.lightbox__cap {
  text-align: center; margin-top: 16px;
  font: 400 14px/1 'Open Sans', sans-serif; color: rgba(255,255,255,.6);
  letter-spacing: 0.04em;
}
.lightbox__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lightbox__btn:hover { background: var(--indigo); border-color: var(--indigo); }
.lightbox__btn svg { width: 20px; height: 20px; }
.lightbox__prev { left: -76px; }
.lightbox__next { right: -76px; }
.lightbox__close {
  position: absolute; top: -54px; right: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lightbox__close:hover { background: var(--indigo); border-color: var(--indigo); }
.lightbox__close svg { width: 18px; height: 18px; }

/* =========================================================
   LOGO CAROUSEL
   ========================================================= */
/* static, centred row of client logos (wraps on smaller screens) */
.logos {
  position: relative;
  width: 95%; max-width: 1500px;
  margin: 70px auto 0;
}
.logos__track {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap;
  gap: 20px 40px;
}
/* real client logos sit on soft white chips so every mark stays legible on
   the dark ground */
.logo-item {
  flex: 0 0 auto;
  height: 58px;
  padding: 12px 26px;
  display: flex; align-items: center;
  background: rgba(255,255,255,.92);
  border-radius: 9px;
  opacity: .85;
  transition: opacity .3s;
}
.logo-item:hover { opacity: 1; }
.logo-item img { display: block; max-height: 30px; max-width: 128px; width: auto; height: auto; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 70px;
  max-width: 1400px; margin: 0 auto;
}
.contact__head { margin-bottom: 44px; }
.contact__title {
  font: 700 clamp(38px, 4.2vw, 62px)/1.03 'Work Sans', sans-serif;
  letter-spacing: -0.025em; color: #fff; margin-bottom: 22px;
  text-wrap: balance;
}
.contact__sub {
  font: 300 18px/1.6 'Open Sans', sans-serif;
  color: var(--body-dim); max-width: 520px;
}

.form { display: flex; flex-direction: column; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field label {
  font: 500 12px/1 'Work Sans', sans-serif;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.field input,
.field textarea {
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 7px;
  padding: 14px 16px;
  font: 300 15px/1.4 'Open Sans', sans-serif;
  color: #fff;
  transition: border-color .2s, background .2s;
  width: 100%;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(255,255,255,.32); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--indigo);
  background: rgba(43,56,150,.06);
}
.field textarea { resize: vertical; min-height: 120px; }

/* need-options tick chips */
.needs { display: flex; flex-wrap: wrap; gap: 10px; }
.need {
  position: relative;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 16px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 7px;
  font: 500 13px/1 'Work Sans', sans-serif;
  color: rgba(255,255,255,.78);
  cursor: pointer;
  user-select: none;
  transition: border-color .2s, background .2s, color .2s;
}
.need input { position: absolute; opacity: 0; pointer-events: none; }
.need .tick {
  width: 15px; height: 15px; border-radius: 4px;
  border: 1px solid rgba(255,255,255,.3);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
}
.need .tick svg { width: 10px; height: 10px; opacity: 0; transition: opacity .15s; }
.need input:checked ~ .tick { background: var(--indigo); border-color: var(--indigo); }
.need input:checked ~ .tick svg { opacity: 1; }
.need:has(input:checked) { border-color: var(--indigo); color: #fff; background: rgba(43,56,150,.1); }

/* dropzone */
.dropzone {
  border: 1.5px dashed rgba(255,255,255,.2);
  border-radius: 9px;
  padding: 30px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--indigo); background: rgba(43,56,150,.06); }
.dropzone__icon { width: 30px; height: 30px; color: rgba(255,255,255,.6); }
.dropzone__title { font: 500 14px/1 'Work Sans', sans-serif; color: rgba(255,255,255,.85); }
.dropzone__hint { font: 300 12.5px/1.4 'Open Sans', sans-serif; color: rgba(255,255,255,.45); }
.dropzone__files { font: 400 12.5px/1.4 'Open Sans', sans-serif; color: #5b6ad6; }

.form__submit {
  align-self: flex-start;
  margin-top: 6px;
  background: var(--indigo); color: #fff;
  border: 0; border-radius: 7px;
  padding: 16px 34px;
  font: 600 14.5px/1 'Work Sans', sans-serif;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background .2s;
}
.form__submit:hover { background: #3648b5; }
.form__submit:disabled { opacity: .55; cursor: default; }

/* honeypot field: parked far off-screen, invisible to people */
.hp-field {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}

/* submit feedback line */
.form__status {
  display: none;
  font: 400 14.5px/1.5 'Open Sans', sans-serif;
  margin-top: 2px;
}
.form__status.on { display: block; }
.form__status--ok { color: #8ecf9f; }
.form__status--err { color: #e0917a; }

/* contact details block */
.contact__aside { display: flex; flex-direction: column; gap: 30px; }
.cblock { display: flex; flex-direction: column; gap: 10px; padding-bottom: 28px; border-bottom: 1px solid var(--hair); }
.cblock:last-child { border-bottom: 0; }
.cblock__label {
  font: 500 12px/1 'Work Sans', sans-serif;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.cblock__value {
  font: 300 19px/1.45 'Open Sans', sans-serif;
  color: #fff;
}
.cblock__value a { color: #fff; text-decoration: none; }
.cblock__value a:hover { color: #5b6ad6; }
.cblock__value--phone { font-weight: 600; font-family: 'Work Sans', sans-serif; font-size: 24px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative;
  background: #05050A;
  padding: 56px 8vw 110px;
  border-top: 2px solid var(--indigo);
}
.footer__grid {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
  max-width: 1500px; margin: 0 auto 28px;
}
.footer__brand { display: flex; align-items: center; gap: 20px; }
.footer__logo {
  font: 700 24px/1 'Work Sans', sans-serif;
  letter-spacing: -0.02em; color: #fff;
  display: inline-flex; align-items: baseline;
}
.footer__logo sup { font-size: 9px; margin-left: 2px; font-weight: 400; opacity: .85; position: relative; top: -8px; }
.footer__mib { height: 16px; opacity: .9; padding-left: 20px; border-left: 1px solid rgba(255,255,255,.18); }
.footer__nav { display: flex; gap: 32px; }
.footer__nav a {
  font: 500 13.5px/1 'Work Sans', sans-serif;
  color: rgba(255,255,255,.75); text-decoration: none;
  letter-spacing: 0.04em; transition: color .2s;
}
.footer__nav a:hover { color: #fff; }
.footer__legal {
  max-width: 1500px; margin: 0 auto;
  padding-top: 26px; border-top: 1px solid var(--hair);
  font: 300 12.5px/1.5 'Open Sans', sans-serif;
  color: rgba(255,255,255,.4);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .proc, .about, .contact { grid-template-columns: 1fr; gap: 48px; }
  .proc--right .proc__text, .proc--right .proc__visual { order: 0; }
  .proc__thread { display: none; }
  .caps__row { grid-template-columns: repeat(3, 1fr); }
  .cap:nth-child(3n) { border-right: 0; }
  .testi__grid { grid-template-columns: 1fr; }
  .stats { margin-top: 10px; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .bento__item--big { grid-column: span 2; grid-row: span 1; }
  .lightbox__prev { left: 10px; }
  .lightbox__next { right: 10px; }
  .lightbox__close { top: 12px; right: 12px; }
}
@media (max-width: 640px) {
  .section { padding: 90px 24px; }
  .form__row { grid-template-columns: 1fr; }
  .caps__row { grid-template-columns: repeat(2, 1fr); }
  .cap:nth-child(3n) { border-right: 1px solid var(--hair); }
  .cap:nth-child(2n) { border-right: 0; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 12px; }
  .lightbox__btn { width: 42px; height: 42px; }
}

:root {
    --indigo: #2B3896;
    --indigo-deep: #1a2370;
    --white: #ffffff;
    --ink: #05060a;
    /* EDITMODE-controlled */
    --headline-size: 88px;
    --gradient-darkness: 0.92;
    --card-scale: 1;
    --card-gap: 54px;
    --card-drop: 56px;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html, body { background: #07070C; color: var(--white); font-family: 'Open Sans', sans-serif; }
  body { min-height: 100vh; overflow-x: hidden; }
  /* page-wide film grain overlay */
  body::after {
    content: ""; position: fixed; inset: 0; z-index: 900; pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.6' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/></svg>");
    mix-blend-mode: overlay; opacity: .5;
  }

  .hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 720px;
    overflow: hidden;
    isolation: isolate;
  }

  /* --- Cinematic factory-lit background (placeholder composition) --- */
  .bg { position: absolute; inset: 0; z-index: 0; background: #05070e url("../img/hero-factory.jpg") center center / cover no-repeat; }
  .bg > * { display: none; }
  .bg::after {
    /* subtle vignette + grain preserved over real photo */
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse 85% 75% at 60% 50%, transparent 40%, rgba(0,0,0,.55) 100%);
    pointer-events: none;
  }
  .bg .grid {
    position: absolute; inset: 0;
    background-image:
      repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 140px),
      repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 140px);
    mask-image: radial-gradient(ellipse at 72% 40%, rgba(0,0,0,1) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,0) 80%);
  }
  .bg .beams {
    position: absolute; inset: 0;
    background:
      /* amber machine glow right-center */
      radial-gradient(ellipse 42% 34% at 70% 58%, rgba(255, 158, 70, .55) 0%, rgba(255, 120, 30, .28) 30%, rgba(255, 90, 20, 0) 65%),
      /* secondary cool rim light */
      radial-gradient(ellipse 55% 40% at 88% 25%, rgba(90, 150, 230, .22) 0%, rgba(90, 150, 230, 0) 60%),
      /* warm fill on floor */
      radial-gradient(ellipse 60% 30% at 60% 92%, rgba(255, 130, 50, .18) 0%, rgba(0,0,0,0) 70%);
    mix-blend-mode: screen;
  }
  .bg .machine {
    /* abstract industrial silhouette, placeholder for the factory photo */
    position: absolute; inset: 0;
    background:
      /* dark machine bulk lower-right */
      linear-gradient(180deg, transparent 55%, rgba(0,0,0,.55) 75%, rgba(0,0,0,.85) 100%),
      /* vertical machine frames */
      linear-gradient(90deg, transparent 48%, rgba(0,0,0,.25) 50%, transparent 52%),
      linear-gradient(90deg, transparent 78%, rgba(0,0,0,.3) 80%, transparent 82%);
  }
  .bg .chamber {
    position: absolute;
    left: 52%; top: 28%; width: 26%; height: 48%;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 2px;
    background:
      radial-gradient(ellipse at 50% 55%, rgba(255, 160, 70, .75) 0%, rgba(255, 100, 30, .45) 35%, rgba(60,20,0,.7) 75%),
      linear-gradient(180deg, rgba(20,20,30,.5), rgba(0,0,0,.8));
    box-shadow: 0 0 120px 20px rgba(255, 130, 50, .25), inset 0 0 80px rgba(0,0,0,.8);
  }
  .bg .grain {
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.28'/></svg>");
    mix-blend-mode: overlay; opacity: .5; pointer-events: none;
  }
  .bg .vignette {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 70% at 65% 50%, transparent 45%, rgba(0,0,0,.55) 100%);
    pointer-events: none;
  }
  /* Graduated left-side overlay: near-black on left, transparent right */
  .overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(
      90deg,
      rgba(5,7,14, var(--gradient-darkness)) 0%,
      rgba(5,7,14, calc(var(--gradient-darkness) * 0.95)) 20%,
      rgba(5,7,14, calc(var(--gradient-darkness) * 0.7)) 42%,
      rgba(5,7,14, calc(var(--gradient-darkness) * 0.35)) 60%,
      rgba(5,7,14, 0.1) 85%,
      rgba(5,7,14, 0) 100%
    );
  }
  /* subtle indigo bloom on far left to carry the brand color */
  .brand-wash {
    position: absolute; inset: 0; z-index: 1;
    background: radial-gradient(ellipse 30% 45% at -5% 25%, rgba(43,56,150,.55) 0%, rgba(43,56,150,0) 60%);
    pointer-events: none;
  }

  /* --- Navigation --- */
  nav.top {
    position: fixed; z-index: 800;
    top: 0; left: 0; right: 0;
    display: flex; align-items: center; justify-content: space-between;
    padding: 24px 56px 24px 8vw;
    transition: background .3s, padding .3s, border-color .3s;
    border-bottom: 1px solid transparent;
  }
  nav.top.scrolled {
    background: rgba(7, 7, 12, .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding-top: 16px; padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .brand { display: flex; align-items: center; gap: 18px; }
  .logo {
    font-family: 'Work Sans', sans-serif;
    font-weight: 700;
    font-size: 28px;
    letter-spacing: -0.02em;
    color: var(--white);
    display: inline-flex; align-items: baseline;
  }
  .logo sup { font-size: 10px; margin-left: 2px; font-weight: 400; opacity: .85; top: -10px; position: relative; }
  .uk {
    display: inline-flex; align-items: center; gap: 0;
    padding-left: 18px;
    border-left: 1px solid rgba(255,255,255,.18);
    white-space: nowrap;
  }
  .uk .mib {
    height: 18px; width: auto; display: block; flex-shrink: 0;
    opacity: .95;
  }

  .links { display: flex; align-items: center; gap: 36px; }
  .nav-right { display: flex; align-items: center; gap: 28px; }
  .links a {
    font: 500 13.5px/1 'Work Sans', sans-serif;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.04em;
    opacity: .88;
    transition: opacity .2s;
  }
  .links a:hover { opacity: 1; }
  .btn {
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 13.5px;
    letter-spacing: 0.04em;
    padding: 13px 22px;
    border-radius: 4px;
    border: 0;
    cursor: pointer;
    transition: transform .2s, background .2s, border-color .2s, color .2s;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
  }
  .btn-primary { background: var(--indigo); color: var(--white); }
  .btn-primary:hover { background: #3648b5; }
  .btn-ghost {
    background: transparent; color: var(--white);
    border: 1px solid rgba(255,255,255,.45);
  }
  .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }

  /* --- Layout grid --- */
  .hero-inner {
    position: absolute; inset: 0; z-index: 5;
    display: grid;
    grid-template-columns: minmax(560px, 52%) 1fr;
    align-items: center;
    padding: 120px 56px 110px 8vw;
  }

  /* --- Left column --- */
  .left { max-width: 680px; padding-right: 24px; position: relative; z-index: 8; }
  .eyebrow {
    font: 500 12px/1 'Work Sans', sans-serif;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255,255,255,.6);
    margin-bottom: 28px;
    display: inline-flex; align-items: center; gap: 14px;
  }
  .eyebrow::before {
    content: ""; width: 32px; height: 1px; background: rgba(255,255,255,.4);
  }
  h1.headline {
    font-family: 'Work Sans', sans-serif;
    font-weight: 700;
    font-size: var(--headline-size);
    line-height: 0.98;
    letter-spacing: -0.025em;
    color: var(--white);
    margin-bottom: 28px;
    text-wrap: pretty;
    white-space: normal;
  }
  h1.headline .line { display: block; }
  h1 .dot { color: var(--indigo); }
  .sub {
    font: 300 18px/1.55 'Open Sans', sans-serif;
    color: rgba(255,255,255,.68);
    max-width: 440px;
    margin-bottom: 40px;
  }
  .ctas { display: flex; gap: 14px; align-items: center; }

  /* --- Right column: staircase cards --- */
  .hero-inner > .right {
    position: relative;
    height: 100%;
    min-height: 540px;
  }
  .cards {
    position: absolute;
    right: 24px;
    bottom: 98px;
    transform: scale(var(--card-scale));
    transform-origin: bottom right;
    width: 820px;
    height: 320px;
  }
  .card {
    position: absolute;
    width: 220px;
    height: 270px;
    background: #fff;
    border-radius: 10px;
    box-shadow:
      0 30px 60px -20px rgba(0,0,0,.7),
      0 15px 30px -10px rgba(0,0,0,.5),
      0 0 0 1px rgba(255,255,255,.06);
    overflow: hidden;
    transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s, z-index 0s .4s;
    cursor: pointer;
  }
  .card .art {
    position: relative;
    width: 100%;
    height: calc(100% - 52px);
    overflow: hidden;
    background: #f2f2f2;
  }
  .card .art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  /* Concept card: zoom in on the sketch artwork, cropping the paper border */
  .art-concept img {
    transform: scale(1.45);
    transform-origin: center 42%;
  }
  .card .meta {
    position: absolute;
    left: 16px; right: 16px; bottom: 12px;
    display: flex; align-items: center; justify-content: space-between;
    color: #0c1330;
  }
  .card .step-num {
    font: 500 10px/1 'Work Sans', sans-serif;
    letter-spacing: 0.2em;
    color: var(--indigo);
  }
  .card .step-name {
    font: 500 13px/1 'Work Sans', sans-serif;
    color: #0c1330;
  }
  .card .step-sub {
    display: block;
    font: 300 11px/1.3 'Open Sans', sans-serif;
    color: rgba(12,19,48,.55);
    margin-top: 3px;
  }
  .card-label {
    position: absolute;
    left: 0; right: 0;
    bottom: -26px;
    text-align: center;
    font: italic 400 13px/1 'Open Sans', sans-serif;
    color: rgba(255,255,255,.75);
    letter-spacing: 0.02em;
  }

  /* Staircase positions, computed with JS-free variables */
  .card-wrap { position: absolute; width: 220px; height: 270px; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
  .card-wrap[data-i="0"] { left: 0;   top: 0; }
  .card-wrap[data-i="1"] { left: calc((240px - 60px) * 1 + var(--card-gap) * 0); top: var(--card-drop); }
  .card-wrap[data-i="2"] { left: calc((240px - 60px) * 2 + var(--card-gap) * 0); top: calc(var(--card-drop) * 2); }
  .card-wrap[data-i="3"] { left: calc((240px - 60px) * 3 + var(--card-gap) * 0); top: calc(var(--card-drop) * 3); }

  .card-wrap:hover { transform: translateY(-12px); z-index: 20; }
  .card-wrap:hover .card {
    box-shadow:
      0 44px 90px -20px rgba(0,0,0,.85),
      0 0 0 1px rgba(91,106,214,.5),
      0 0 40px -6px rgba(43,56,150,.55);
  }

  /* connecting curve behind cards */
  .connector {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
  }
  .connector path {
    stroke: rgba(255,255,255,.22);
    stroke-width: 1;
    fill: none;
    stroke-dasharray: 4 6;
  }

  /* --- Card artwork (abstract product through stages) --- */

  /* Shared product silhouette is a rounded container seen in 3/4 perspective.
     We use a rounded rectangle with a top lip to keep shape recognizable. */

  /* Card 1: Concept, pencil sketch on cream paper */
  .art-concept {
    background:
      repeating-linear-gradient(0deg, rgba(180,160,120,.03) 0 28px, transparent 28px 29px),
      linear-gradient(180deg, #faf4e6 0%, #f1e9d3 100%);
  }
  .art-concept::before {
    /* paper edge / fold */
    content: ""; position: absolute; inset: 0;
    background:
      radial-gradient(ellipse at 15% 0%, rgba(0,0,0,.04), transparent 40%),
      radial-gradient(ellipse at 100% 100%, rgba(0,0,0,.06), transparent 50%);
  }
  .sketch-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

  /* Card 2: Engineering, CAD UI */
  .art-cad {
    background: #e7ecf2;
    display: flex; flex-direction: column;
  }
  .cad-ribbon {
    height: 22px;
    background: linear-gradient(180deg, #f4f6fa, #dfe5ee);
    border-bottom: 1px solid #c8d0db;
    display: flex; align-items: center; padding: 0 6px; gap: 4px;
  }
  .cad-ribbon .dot { width: 5px; height: 5px; border-radius: 50%; background: #b8c1cf; }
  .cad-ribbon .tab { font: 500 7px/1 'Work Sans', sans-serif; color: #5a6375; padding: 2px 4px; }
  .cad-ribbon .tab.active { background: #fff; color: var(--indigo); border-radius: 2px; }
  .cad-body { flex: 1; display: flex; min-height: 0; }
  .cad-tree {
    width: 58px; background: #eef1f6; border-right: 1px solid #d2d9e3;
    padding: 6px 4px; font: 400 6.5px/1.5 'Open Sans', monospace;
    color: #6a7385;
  }
  .cad-tree .node { display: block; padding-left: 10px; position: relative; }
  .cad-tree .node::before { content: "▸"; position: absolute; left: 2px; font-size: 6px; }
  .cad-tree .node.open::before { content: "▾"; }
  .cad-view { flex: 1; position: relative; background: radial-gradient(ellipse at 50% 45%, #c9d3df 0%, #8f9bae 120%); overflow: hidden; }
  .cad-triad {
    position: absolute; left: 6px; bottom: 6px; width: 22px; height: 22px;
  }
  .cad-coords {
    position: absolute; right: 6px; top: 6px;
    font: 400 6px/1.2 'Open Sans', monospace; color: rgba(0,0,0,.5);
    text-align: right;
  }

  /* Card 3: Tooling, steel mould close up */
  .art-tool {
    background:
      radial-gradient(ellipse at 50% 45%, #3a3226 0%, #1a140c 70%, #0a0805 100%);
    position: relative;
  }
  .art-tool::before {
    /* amber side light */
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse 50% 35% at 15% 55%, rgba(255, 150, 60, .4), transparent 70%);
  }
  .art-tool .machining {
    position: absolute; inset: 0;
    background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0 1px, transparent 1px 3px);
  }

  /* Card 4: Production, clear moulded product */
  .art-product {
    background:
      linear-gradient(180deg, #ffffff 0%, #eef1f6 70%, #dde2ea 100%);
    position: relative;
  }
  .art-product::after {
    /* soft shadow under product */
    content: ""; position: absolute;
    left: 22%; right: 22%; bottom: 18%;
    height: 12px;
    background: radial-gradient(ellipse, rgba(0,0,0,.3), transparent 70%);
    filter: blur(3px);
  }

  /* --- Sticky qualifying bar (persists across page) --- */
  .qbar {
    position: fixed; left: 50%; bottom: 18px;
    transform: translateX(-50%);
    z-index: 700;
    width: 65%; max-width: 880px;
    height: 48px;
    background: rgba(8, 10, 18, .82);
    backdrop-filter: blur(12px) saturate(1.1);
    -webkit-backdrop-filter: blur(12px) saturate(1.1);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 8px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 20px;
    box-shadow: 0 14px 40px -16px rgba(0,0,0,.85);
  }
  .qitem {
    /* three equal columns, each label centred within its own third */
    flex: 1 1 0;
    justify-content: center;
    font: 500 13px/1 'Work Sans', sans-serif;
    color: rgba(255,255,255,.92);
    display: flex; align-items: center; gap: 12px;
    white-space: nowrap;
  }
  .qitem + .qitem { position: relative; }
  .qitem + .qitem::before {
    content: "";
    position: absolute; left: -10px; top: 50%;
    width: 1px; height: 18px;
    background: rgba(255,255,255,.18);
    transform: translateY(-50%);
  }
  .qitem .ico { width: 14px; height: 14px; opacity: .85; }
  /* air between the long middle label and its dividers */
  .qitem.center { justify-content: center; padding: 0 28px; }
  .qitem.right { font-weight: 300; font-style: italic; color: rgba(255,255,255,.6); font-family: 'Open Sans', sans-serif; }
  /* between tablet and desktop the 65% bar is too narrow for three equal
     columns (the long labels set a floor), which pushed the middle item
     off-centre - let the bar use the full width there (the 880px cap still
     applies), and step the type down just before the wrap layout takes over */
  @media (max-width: 1240px) and (min-width: 781px) {
    .qbar { width: calc(100% - 48px); }
  }
  @media (max-width: 850px) and (min-width: 781px) {
    .qitem { font-size: 12px; }
    .qitem.center { padding: 0 12px; }
  }
  /* below this the three labels cannot share one row without crowding, so
     the bar wraps into centred rows instead */
  @media (max-width: 780px) {
    .qbar {
      width: calc(100% - 24px);
      max-width: none;
      padding: 8px 14px;
      height: auto;
      min-height: 46px;
      flex-wrap: wrap;
      gap: 5px 14px;
      justify-content: center;
    }
    .qitem { flex: 0 1 auto; font-size: 10.5px; gap: 0; }
    .qitem.center { padding: 0; }
    .qitem + .qitem::before { display: none; }
  }

  /* --- Tweaks panel --- */
  .tweaks {
    position: fixed;
    right: 20px; bottom: 68px;
    width: 280px;
    background: rgba(10,12,22,.92);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    padding: 16px 18px;
    z-index: 100;
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    display: none;
  }
  .tweaks.on { display: block; }
  .tweaks h4 { font: 600 11px/1 'Work Sans'; letter-spacing: 0.18em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
  .tweak-row { margin-bottom: 12px; }
  .tweak-row label { font: 400 11px/1 'Open Sans'; color: rgba(255,255,255,.7); display: flex; justify-content: space-between; margin-bottom: 6px; }
  .tweak-row input[type=range] { width: 100%; accent-color: var(--indigo); }
  .tweak-row .val { font-family: 'Work Sans'; color: #fff; }

  /* --- Hamburger toggle (hidden on desktop) --- */
  .nav-toggle {
    display: none;
    flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px;
    background: transparent; border: 0; cursor: pointer;
    padding: 10px;
  }
  .nav-toggle span {
    display: block; height: 2px; width: 100%; background: #fff; border-radius: 2px;
    transition: transform .3s, opacity .2s;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ============ TABLET / MOBILE NAV (<= 860px) ============ */
  @media (max-width: 860px) {
    nav.top { padding: 16px 24px; }
    .nav-right { gap: 14px; }
    .nav-toggle { display: flex; }
    .links {
      position: absolute;
      top: 100%; right: 16px;
      flex-direction: column;
      align-items: stretch;
      gap: 4px;
      min-width: 200px;
      padding: 12px;
      background: rgba(9, 11, 20, .97);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 10px;
      box-shadow: 0 24px 50px -16px rgba(0,0,0,.7);
      opacity: 0; visibility: hidden; transform: translateY(-8px);
      transition: opacity .22s, transform .22s, visibility .22s;
    }
    .links.open { opacity: 1; visibility: visible; transform: none; }
    .links a { padding: 12px 14px; border-radius: 6px; opacity: .9; }
    .links a:hover { background: rgba(255,255,255,.05); }
  }
  @media (max-width: 480px) {
    .nav-call { padding: 11px 16px; font-size: 12.5px; }
  }

  /* ============ MOBILE HERO (<= 700px) ============ */
  @media (max-width: 700px) {
    .hero { height: auto; min-height: 100svh; }
    .hero-inner {
      position: static;
      display: flex; flex-direction: column;
      justify-content: center;
      gap: 40px;
      padding: 116px 24px 56px;
      min-height: 100svh;
    }
    .left { max-width: 100%; padding-right: 0; }
    h1.headline { font-size: clamp(46px, 15vw, 76px); }
    .sub { max-width: 100%; font-size: 16px; }
    .ctas { flex-wrap: wrap; }

    .hero-inner > .right { position: static; height: auto; min-height: 0; }
    .connector { display: none; }
    .cards {
      position: static;
      transform: none;
      width: 94%; max-width: 440px;
      height: auto;
      margin: 0 auto;
      display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    }
    .card-wrap {
      position: static !important;
      left: auto !important; top: auto !important;
      width: 100%; height: auto;
    }
    .card-wrap:hover { transform: translateY(-6px); }
    .card {
      position: relative;
      width: 100%; height: auto;
      padding-bottom: 50px;
    }
    .card .art { height: auto; aspect-ratio: 5 / 4; }
    .card-label { display: none; }

    /* (sticky bar styles for small screens live in the 740px block above) */
  }

  @media (max-width: 420px) {
    .qitem { font-size: 9.5px; }
    .brand .uk { display: none; }
  }

/* =========================================================
   CASE STUDY (Rega Research)
   ========================================================= */
.section--case {
  background:
    radial-gradient(ellipse 55% 65% at 18% 38%, rgba(43, 56, 150, .14), transparent 65%),
    var(--tone-a);
}
.case {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 80px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}
.case__eyebrow {
  font: 600 12.5px/1 'Work Sans', sans-serif;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: #5b6ad6; margin-bottom: 20px;
  display: inline-flex; align-items: center; gap: 14px;
}
.case__eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--indigo); }
.case__headline {
  font: 700 clamp(32px, 3.4vw, 50px)/1.05 'Work Sans', sans-serif;
  letter-spacing: -0.02em; color: #fff;
  margin-bottom: 30px;
  text-wrap: balance;
}
.case__body { display: flex; flex-direction: column; gap: 20px; max-width: 540px; }
.case__body p {
  font: 300 17px/1.65 'Open Sans', sans-serif;
  color: var(--body-dim);
}
.case__body strong { font-weight: 600; color: rgba(255,255,255,.9); }

/* compact stat row, echoes the About section stats */
.case__stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 46px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--hair);
}
.cstat { display: flex; flex-direction: column; gap: 9px; }
.cstat__num {
  font: 700 clamp(26px, 2.4vw, 36px)/1 'Work Sans', sans-serif;
  letter-spacing: -0.02em;
  color: #fff;
}
.cstat__num span { color: var(--indigo); }
.cstat__label {
  font: 500 12px/1 'Work Sans', sans-serif;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.case__text .proc__cta { margin-top: 38px; }

/* visuals: one hero frame + strip of three captioned thumbs */
.case__visuals { display: flex; flex-direction: column; gap: 16px; }
.case__main.proc__frame { aspect-ratio: 16 / 10; }
.case__strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.case__thumb {
  position: relative;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: #0d0f16;
  aspect-ratio: 4 / 3;
}
/* case study images open in the gallery lightbox */
.case__main, .case__thumb { cursor: pointer; }
.case__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.case__thumb:hover img { transform: scale(1.05); }
.case__thumb figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 12px 10px;
  background: linear-gradient(180deg, transparent, rgba(5, 6, 12, .8));
  font: 500 11.5px/1.3 'Work Sans', sans-serif;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,.92);
}

@media (max-width: 1024px) {
  .case { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 640px) {
  .case__stats { gap: 28px; }
  .case__strip { gap: 12px; }
  .case__thumb figcaption { font-size: 10.5px; padding: 16px 10px 8px; }
}
