/* ===================================================================
   Case study layer — builds on styles.css
   =================================================================== */

.case-nav-back {
  position: fixed; z-index: 61; top: 18px; left: var(--gutter);
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 600; color: var(--ink-soft);
  background: rgba(236,228,226,0.7); backdrop-filter: blur(10px);
  padding: 9px 16px 9px 13px; border-radius: 999px; border: 1px solid var(--hair); white-space: nowrap;
  transition: transform .25s var(--ease), background .25s;
}
.case-nav-back:hover { transform: translateX(-3px); background: rgba(236,228,226,0.95); }
.case-nav-back .arr { transition: transform .3s var(--ease); }
.case-nav-back:hover .arr { transform: translateX(-3px); }

/* ---- HERO ---- */
.case-hero { position: relative; overflow: hidden; padding-top: clamp(120px, 16vh, 200px); padding-bottom: clamp(40px, 6vw, 80px); }
.case-hero .aura { width: 80vw; height: 64vh; right: -16vw; top: -8%; left: auto; opacity: var(--aura-strength, .8); }
.case-eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--lime-deep); margin: 0 0 22px; display: inline-flex; align-items: center; gap: 12px;
}
.case-title { font-size: clamp(34px, 5.6vw, 76px); line-height: 1.0; max-width: 17ch; position: relative; z-index: 3; }
.case-dek { font-size: clamp(18px, 1.9vw, 23px); color: var(--ink-soft); max-width: 32ch; margin-top: 24px; line-height: 1.4; position: relative; z-index: 3; }
.case-dek em { font-family: var(--ital); font-style: italic; }

.case-meta { display: flex; flex-wrap: wrap; gap: 14px 56px; margin-top: 52px; position: relative; z-index: 3; padding-top: 28px; border-top: 1px solid var(--hair); }
.case-meta .m .lab { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.case-meta .m .val { font-size: 16px; color: var(--ink); font-weight: 500; }

/* ---- key visual ---- */
.case-figure { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--paper-edge); background: var(--paper); }
.case-figure img { width: 100%; display: block; }
.case-figure figcaption, .cap { font-size: 14px; color: var(--muted); margin-top: 22px; }
.bleed { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---- generic content ---- */
.case-section { padding-block: clamp(56px, 8vw, 110px); }
.case-section.tight { padding-block: clamp(36px, 5vw, 64px); }
.two-col { display: grid; grid-template-columns: 0.42fr 0.58fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.two-col h2 { font-size: clamp(30px, 4vw, 52px); position: sticky; top: 100px; }
.rich { font-size: 19px; color: var(--body); }
.rich p { margin-bottom: 1.2em; }
.rich p:last-child { margin-bottom: 0; }
.rich strong { color: var(--ink); font-weight: 600; }
.rich em { font-family: var(--ital); font-style: italic; font-size: 1.04em; }

@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; gap: 24px; }
  .two-col h2 { position: static; }
}

/* ---- pull quote ---- */
.pull { font-family: var(--serif); font-size: clamp(26px, 4vw, 48px); line-height: 1.18; color: var(--ink); max-width: 18ch; }
.pull .hl { background: linear-gradient(transparent 62%, var(--lime) 62%); padding: 0 .04em; }

/* ---- process steps ---- */
.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 56px); align-items: start;
  padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--hair);
}
.step:last-child { border-bottom: 1px solid var(--hair); }
.step__n {
  font-family: var(--serif); font-size: clamp(40px, 6vw, 84px); line-height: .8;
  color: transparent; -webkit-text-stroke: 1.4px var(--ink-soft); position: relative;
}
.step__b h3 { font-size: clamp(22px, 2.6vw, 32px); margin-bottom: 12px; }
.step__b p { color: var(--body); font-size: 18px; max-width: 60ch; }
.step__tag { font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime-deep); margin-bottom: 14px; }

/* ---- highlight cards ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(16px, 2vw, 24px); }
.hcard { background: var(--paper); border: 1px solid var(--paper-edge); border-radius: 20px; padding: clamp(24px, 3vw, 34px); }
.hcard .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--rose-tint); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--ink-soft); font-size: 20px; }
.hcard .ic svg { width: 22px; height: 22px; }
.hcard h3 { font-size: 22px; margin-bottom: 10px; }
.hcard p { font-size: 16px; color: var(--body); margin: 0; }

/* ---- metric row ---- */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: clamp(20px,3vw,40px); }
.metric .num { font-family: var(--serif); font-size: clamp(44px, 6vw, 80px); color: var(--ink); line-height: .9; }
.metric .num .u { font-size: .5em; color: var(--lime-deep); }
.metric .lab { font-size: 16px; color: var(--body); margin-top: 14px; max-width: 24ch; }

/* ---- gallery ---- */
.gal { display: grid; gap: clamp(16px, 2vw, 24px); }
.gal-2 { grid-template-columns: 1fr 1fr; }
.gal-3 { grid-template-columns: repeat(3, 1fr); }
.gal figure { margin: 0; }
@media (max-width: 760px) { .gal-2, .gal-3 { grid-template-columns: 1fr; } }

/* ---- device: phone frame ---- */
.phone {
  border-radius: 34px; background: #0c0c10; padding: 9px; box-shadow: 0 40px 80px -40px rgba(43,37,53,0.5);
  width: 100%; max-width: 300px; margin-inline: auto;
}
.phone img { border-radius: 26px; width: 100%; display: block; }
.phones { display: flex; gap: clamp(16px,3vw,40px); justify-content: center; flex-wrap: wrap; align-items: flex-start; }

/* ---- browser frame ---- */
.browser { border-radius: 16px; overflow: hidden; border: 1px solid var(--paper-edge); background: #fff; box-shadow: 0 30px 70px -40px rgba(43,37,53,0.45); }
.browser__bar { background: var(--navy); padding: 12px 16px; display: flex; align-items: center; gap: 7px; }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.35); display: inline-block; }

/* ---- swatches (brand case) ---- */
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: 14px; }
.sw { border-radius: 16px; overflow: hidden; border: 1px solid var(--paper-edge); }
.sw .chip { height: 120px; display: block; border: none; border-radius: 0; }
.sw .meta { padding: 12px 14px; background: var(--paper); }
.sw .meta b { display: block; color: var(--ink); font-size: 14px; }
.sw .meta span { font-size: 12.5px; color: var(--muted); }

/* ---- next case ---- */
.next-case { position: relative; overflow: hidden; background: var(--ink); color: var(--rose-tint); border-radius: 28px; padding: clamp(36px,5vw,64px); display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.next-case .aura { opacity: .45; right: -10%; top: -30%; width: 50vw; height: 120%; }
.next-case .lab { position: relative; z-index: 2; font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 12px; }
.next-case h2 { position: relative; z-index: 2; color: #fff; font-size: clamp(28px,4vw,52px); max-width: 16ch; }
.next-case .btn { position: relative; z-index: 2; background: var(--rose); color: var(--ink); border-color: var(--rose); }
.next-case .btn:hover { background: #fff; border-color: #fff; }

.note { font-size: 13.5px; color: var(--muted); font-style: italic; padding: 14px 18px; border-left: 2px solid var(--lime); background: rgba(255,255,255,0.35); border-radius: 0 12px 12px 0; }
