/* ══════════════════════════════════════════════════════════
   Skylux VIP Transfer — case study.
   Colours and type follow the Skylux brand:
   anthracite, cream, gold; Cormorant Garamond headings,
   Manrope body.
   ══════════════════════════════════════════════════════════ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #141311;
  --bg-2: #191815;
  --surface: #1f1d1a;
  --line: rgba(243, 239, 230, 0.1);
  --line-strong: rgba(243, 239, 230, 0.18);
  --text: #f3efe6;
  --muted: rgba(243, 239, 230, 0.7);
  --faint: rgba(243, 239, 230, 0.52);
  --gold: #d4b26a;
  --gold-strong: #e2c587;
  --gold-soft: rgba(212, 178, 106, 0.12);
  --gold-line: rgba(212, 178, 106, 0.38);
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 16px;
  --wrap: 1180px;
  --gutter: 24px;
  --section-bg: var(--bg);
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 200;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--bg);
}

/* ── Navbar ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 19, 17, 0.84);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  height: 64px;
}

.nav-back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-back:hover {
  color: var(--text);
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.wordmark b {
  margin-right: -0.2em;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.2em;
}

.wordmark small {
  margin-top: 4px;
  margin-right: -0.42em;
  color: var(--gold);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.42em;
}

.lang {
  justify-self: end;
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.lang a {
  padding: 5px 12px;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.lang a[aria-current="page"] {
  background: var(--gold);
  color: var(--bg);
}

.lang a:not([aria-current="page"]):hover {
  background: var(--gold-soft);
  color: var(--text);
}

/* ── Shared type ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-head h2 {
  margin-top: 18px;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1.1;
}

.section-head p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ── Buttons ── */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.btn-gold {
  background: var(--gold);
  color: var(--bg);
}

.btn-gold:hover {
  background: var(--gold-strong);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--gold-line);
  background: var(--gold-soft);
}

/* ── Device frames ── */
.browser {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 40px 90px -24px rgba(0, 0, 0, 0.7);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #22201c;
}

.browser-bar i {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(243, 239, 230, 0.16);
}

.browser-bar span {
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 300px;
  height: 20px;
  margin-left: 10px;
  padding: 0 10px;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(243, 239, 230, 0.07);
  color: var(--faint);
  font-size: 0.68rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.browser img {
  width: 100%;
}

.phone {
  padding: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  background: #2a2722;
  box-shadow: 0 30px 70px -16px rgba(0, 0, 0, 0.75);
}

.phone img {
  width: 100%;
  border-radius: 23px;
}

/* ── Hero ── */
.hero {
  padding: 80px 0 0;
  background:
    radial-gradient(60% 70% at 85% 0%, rgba(212, 178, 106, 0.16), transparent 60%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: 56px;
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  line-height: 1.08;
}

.lead {
  max-width: 34em;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-visual {
  position: relative;
  padding: 0 0 56px 44px;
}

.hero-visual .phone {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 29%;
  max-width: 188px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 80px 0 0;
  border-top: 1px solid var(--line);
}

.facts div {
  padding: 28px 24px 36px 0;
}

.facts div + div {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.facts dt {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.facts dd {
  margin: 8px 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ── Sections ── */
.section {
  padding: 104px 0;
  background: var(--section-bg);
}

.section.alt {
  --section-bg: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Challenge */
.pains {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.pain {
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.pain .num {
  color: var(--gold);
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
}

.pain h3 {
  margin-top: 18px;
  font-size: 1.3rem;
  line-height: 1.2;
}

.pain p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Solution */
.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
}

.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  margin-top: 22px;
  font-size: 1.75rem;
}

.card > p {
  margin: 8px 0 0;
  color: var(--muted);
}

.checks {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 30px;
  font-size: 0.95rem;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

/* Workflow */
.flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.flow::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-line), var(--line));
}

.flow li {
  position: relative;
  counter-increment: flow;
}

.flow li::before {
  content: counter(flow, decimal-leading-zero);
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  background: var(--section-bg);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
}

.flow h3 {
  margin-top: 20px;
  font-size: 1.35rem;
}

.flow p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Galleries */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px 28px;
}

.gallery .wide {
  grid-column: 1 / -1;
}

.shot {
  margin: 0;
}

.shot figcaption {
  max-width: 60em;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.zoom {
  display: block;
  border-radius: 14px;
  cursor: zoom-in;
  text-decoration: none;
}

.zoom .browser,
.zoom .phone {
  transition: transform 0.3s, border-color 0.3s;
}

.zoom:hover .browser,
.zoom:hover .phone {
  border-color: var(--gold-line);
  transform: translateY(-3px);
}

/* Grid thumbnails share one shape; the lightbox shows the whole image. */
.gallery > .shot:not(.wide) .browser img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 220px));
  justify-content: center;
  gap: 32px;
  padding: 48px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(212, 178, 106, 0.12), transparent 70%),
    var(--surface);
}

/* My role */
.delivery {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  align-items: start;
  gap: 56px;
}

.delivery .section-head {
  position: sticky;
  top: 112px;
  margin-bottom: 0;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step-num {
  color: var(--gold);
  font-family: var(--display);
  font-size: 2.6rem;
  line-height: 1;
}

.step h3 {
  font-size: 1.6rem;
  line-height: 1.2;
}

.step p {
  margin: 10px 0 0;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 500;
}

/* Numbers */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--line);
}

.stat {
  padding: 36px 32px;
  background: var(--section-bg);
}

.stat b {
  display: block;
  color: var(--gold);
  font-family: var(--display);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Closing call to action */
.cta {
  padding: 96px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(212, 178, 106, 0.18), transparent 60%),
    var(--surface);
  text-align: center;
}

.cta .eyebrow {
  justify-content: center;
}

.cta h2 {
  margin-top: 18px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.cta p:not(.eyebrow) {
  max-width: 36em;
  margin: 16px auto 0;
  color: var(--muted);
}

.cta .actions {
  justify-content: center;
}

/* Footer */
.footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--text);
}

/* ── Lightbox (case.js) ── */
.lightbox {
  max-width: min(1400px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--text);
}

.lightbox::backdrop {
  background: rgba(10, 9, 8, 0.92);
}

.lightbox img {
  width: auto;
  max-width: 100%;
  max-height: calc(100dvh - 150px);
  margin: 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}

.lightbox p {
  max-width: 60em;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.lb-btn {
  position: fixed;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(31, 29, 26, 0.92);
  color: var(--text);
  font: inherit;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.lb-btn:hover {
  border-color: var(--gold-line);
}

.lb-close {
  top: 16px;
  right: 16px;
}

.lb-prev,
.lb-next {
  top: 50%;
  transform: translateY(-50%);
}

.lb-prev {
  left: 16px;
}

.lb-next {
  right: 16px;
}

/* ── Responsive ── */
@media (max-width: 1080px) {
  .hero-grid,
  .delivery {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 760px;
  }

  .delivery .section-head {
    position: static;
  }

  .pains {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pain:last-child {
    grid-column: 1 / -1;
  }

  .flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 40px;
  }

  .flow::before {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 16px;
  }

  .nav-inner {
    grid-template-columns: 1fr auto;
  }

  .nav .wordmark {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-visual {
    padding: 0 0 40px 28px;
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 56px;
  }

  .facts div,
  .facts div + div {
    padding: 20px 12px 22px 0;
    border-left: 0;
  }

  .facts div:nth-child(even) {
    padding-left: 16px;
    border-left: 1px solid var(--line);
  }

  .facts div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .section {
    padding: 72px 0;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .pains,
  .duo,
  .flow,
  .gallery {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 24px;
  }

  .phones {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 24px 12px;
  }

  .phone {
    padding: 4px;
    border-radius: 20px;
  }

  .phone img {
    border-radius: 16px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat {
    padding: 24px 18px;
  }

  .step {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
  }

  .step-num {
    font-size: 2rem;
  }

  .cta {
    padding: 64px 20px;
  }

  .lb-prev,
  .lb-next {
    top: auto;
    bottom: 16px;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
