/* ============================================================
   case.css — shared layout for the case-study pages
   Same warmth, palette, and voice as the home page.
   ============================================================ */

/* ---- case hero ---- */
.case-hero { padding: clamp(40px,6vw,72px) 0 clamp(40px,5vw,60px); }
.case-back {
  font-family: var(--sans); font-weight: 600; font-size: 0.9rem;
  color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: 0.5em;
  margin-bottom: clamp(28px,4vw,48px); white-space: nowrap;
}
.case-back:hover { color: var(--terra-ink); }
.case-back svg { transition: transform .2s ease; }
.case-back:hover svg { transform: translateX(-3px); }

.case-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px,5vw,64px); align-items: center; }
.case-title { font-family: var(--display); font-size: clamp(2.8rem, 6vw, 4.6rem); line-height: 0.98; letter-spacing: -0.02em; margin: 0.6rem 0 0; }
.case-sub { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-2); margin: 1rem 0 0; display: flex; align-items: center; gap: 0.7em; flex-wrap: wrap; }
.case-sub .dotsep { width: 5px; height: 5px; border-radius: 50%; background: var(--terra); }
.case-outcome { font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.45; color: var(--ink); margin: 1.6rem 0 0; max-width: 30ch; }
.case-hero-photo { position: relative; }
.case-hero-photo .photo-frame { aspect-ratio: 4/5; border-radius: 22px; }

/* ---- glance strip ---- */
.glance {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.glance > div { background: var(--paper); padding: clamp(20px,2.4vw,30px) clamp(16px,2vw,26px); }
.glance dt { font-family: var(--sans); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--terra-ink); margin: 0 0 0.5rem; }
.glance dd { font-family: var(--serif); font-size: 1.08rem; color: var(--ink); margin: 0; line-height: 1.3; }

/* ---- beats (storytelling column) ---- */
.beat { padding: clamp(48px,6vw,86px) 0; }
.beat + .beat { border-top: 1px solid var(--line); }
.beat-grid { display: grid; grid-template-columns: 0.34fr 0.66fr; gap: clamp(28px,5vw,64px); align-items: start; }
.beat-side { position: sticky; top: 100px; }
.beat-num { font-family: var(--display); font-size: 2.4rem; color: var(--terra); line-height: 1; display: block; }
.beat-label { font-family: var(--sans); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); margin-top: 0.7rem; }
.beat-body { max-width: 60ch; }
.beat-body h2 { font-family: var(--display); font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.04; letter-spacing: -0.01em; margin: 0 0 1.2rem; }
.beat-body p { font-size: 1.12rem; line-height: 1.6; color: var(--ink); margin: 0 0 1.1em; }
.beat-body p.muted { color: var(--ink-2); }
.beat-body strong { font-weight: 500; color: var(--terra-ink); }

/* problem cost callout */
.cost {
  margin: 1.6rem 0 0; padding: 1.3rem 1.5rem; border-left: 3px solid var(--terra);
  background: var(--paper-2); border-radius: 0 14px 14px 0;
}
.cost .note { font-size: 1.5rem; line-height: 1.05; }

/* what I did — checklist */
.did-list { list-style: none; margin: 1.4rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.did-list li { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 1.08rem; line-height: 1.45; }

/* expected outcome (concept framing) */
.expect { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px,3vw,40px); box-shadow: var(--shadow-sm); }
.expect-row { display: flex; flex-wrap: wrap; gap: 28px 44px; margin-bottom: 1.4rem; }
.expect-row > div { display: flex; flex-direction: column; }
.expect-n { font-family: var(--display); font-size: clamp(2rem,3.4vw,2.8rem); color: var(--terra); line-height: 1; }
.expect-l { font-family: var(--sans); font-size: 0.85rem; color: var(--ink-2); margin-top: 0.5rem; max-width: 20ch; }
.expect .tag { margin-bottom: 1.1rem; }
.recommend { font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.5; color: var(--ink); margin: 0; }

/* ---- what it looks like ---- */
.looks { background: var(--paper-2); padding: clamp(56px,7vw,100px) 0; }
.looks-head { max-width: 46ch; margin-bottom: clamp(36px,5vw,54px); }
.looks-grid { display: grid; grid-template-columns: 1.55fr 0.45fr; gap: clamp(28px,4vw,52px); align-items: end; }
.ba-stack { display: grid; gap: 22px; }
.ba-shot { position: relative; }
.ba-shot .ba-label { position: absolute; top: 14px; left: 14px; z-index: 2; }

/* phone frame */
.phone {
  width: 100%; max-width: 280px; margin: 0 auto;
  aspect-ratio: 9 / 19; background: #1a140f; border-radius: 38px;
  padding: 10px; box-shadow: var(--shadow-lg); position: relative;
}
.phone::before { content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 64px; height: 5px; background: rgba(255,255,255,0.25); border-radius: 3px; z-index: 3; }
.phone image-slot, .phone .phone-screen { width: 100%; height: 100%; border-radius: 30px; overflow: hidden; }
.phone-cap { text-align: center; margin-top: 1.1rem; }

/* ---- next + final cta ---- */
.case-cta { padding: clamp(56px,7vw,100px) 0; }
.case-cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,5vw,64px); align-items: center; }
.next-case {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  padding: clamp(24px,3vw,36px); background: rgba(243,232,215,0.05); transition: transform .2s ease, background .2s ease;
}
.next-case:hover { transform: translateY(-4px); background: rgba(243,232,215,0.1); }
.next-case .nc-label { font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #E9A07C; }
.next-case .nc-title { font-family: var(--display); font-size: clamp(1.5rem,2.6vw,2rem); color: var(--on-dark); margin: 0.6rem 0 0.3rem; }

@media (max-width: 1000px) {
  .case-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .case-hero-photo { max-width: 420px; }
  .beat-grid { grid-template-columns: 1fr; gap: 18px; }
  .beat-side { position: static; display: flex; align-items: baseline; gap: 1rem; }
  .beat-num { font-size: 1.8rem; }
  .beat-label { margin-top: 0; }
  .looks-grid { grid-template-columns: 1fr; }
  .case-cta-inner { grid-template-columns: 1fr; }
  .glance { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .glance { grid-template-columns: 1fr 1fr; }
  .case-sub { font-size: 0.85rem; }
}
