/* Case-study pages. Type and colour taken from the Framer homepage. */
@font-face{font-family:"Apfel Grotezk";src:url("/fc/assets/KwK0fH9Qx1gAi2nY6HV637MnF0.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Apfel Grotezk";src:url("/fc/assets/soAoqUg4XLlllNDBOZtgbSkDFLM.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Apfel Grotezk";src:url("/fc/assets/CY1vNcCnXB118TUYh6cYc1Qn0Q.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
:root{
  --bg:#e9edfb; --sheet:#fff; --ink:#040404; --ink-2:#333; --muted:rgba(4,4,4,.62);
  --rule:rgba(4,4,4,.12); --night:#17192e; --accent:#33ffa3;
  --pad:40px; --measure:680px; --wide:1040px;
  --font:"Apfel Grotezk",ui-sans-serif,system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-top:80px}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:19px;line-height:1.6;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-synthesis-weight:none;font-kerning:normal}
::selection{background:var(--accent);color:var(--ink)}
img,video{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration-thickness:1px;text-underline-offset:.18em;text-decoration-skip-ink:auto}
a:focus-visible{outline:2px solid var(--ink);outline-offset:3px;border-radius:2px}
.skip{position:absolute;left:-9999px;top:8px;background:var(--ink);color:#fff;padding:8px 12px;border-radius:8px;z-index:10}
.skip:focus{left:8px}

/* Header: mirrors the homepage nav */
.site-header{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;
  padding:12px var(--pad);background:var(--bg);font-size:20px;line-height:40px;letter-spacing:-.01em}
.brand{display:flex;align-items:center;gap:10px;text-decoration:underline}
.brand-mark{display:none;width:30px;height:30px}
.site-nav{display:flex;gap:28px}
.site-nav a{text-decoration:none}
.site-nav a:hover,.brand:hover{text-decoration-thickness:2px}
.site-nav a:hover{text-decoration:underline}

/* Sheet: same white card + 16px radius as the homepage project rows */
main{padding:24px 0 0}
.sheet{background:var(--sheet);border-radius:16px;margin:0 auto;max-width:1280px;padding:48px var(--pad) 96px}
.back{display:inline-flex;gap:.4em;font-size:17px;color:var(--muted);text-decoration:none;transition:color .15s ease}
.back:hover{color:var(--ink)}
.intro{max-width:var(--wide);margin:72px auto 64px}
.eyebrow{margin:0 0 20px;font-size:15px;line-height:1.2;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
h1{margin:0;font-weight:500;font-size:clamp(38px,5.2vw,68px);line-height:1.04;letter-spacing:-.025em;color:var(--ink);text-wrap:balance;max-width:16ch}
.standfirst{margin:28px 0 0;max-width:34em;font-size:clamp(20px,1.9vw,24px);line-height:1.4;color:var(--ink-2);text-wrap:pretty}
.meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:20px 32px;margin:48px 0 0;padding:24px 0 0;border-top:1px solid var(--rule)}
.meta div{min-width:0}
.meta dt{font-size:14px;line-height:1.3;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);margin:0 0 6px}
.meta dd{margin:0;font-size:17px;line-height:1.45;overflow-wrap:break-word}

/* Reading column, with media breaking out to the wide column */
.prose{max-width:var(--measure);margin:0 auto}
.prose>p{margin:0 0 1.15em;text-wrap:pretty}
.prose strong{font-weight:500}
.prose h2{margin:2.4em 0 .6em;font-weight:500;font-size:28px;line-height:1.2;letter-spacing:-.015em;color:var(--ink);text-wrap:balance}
.prose h2.lede{font-size:clamp(26px,2.6vw,32px);line-height:1.2;margin-top:1.6em}
.prose>:first-child{margin-top:0}
.prose a{text-decoration-color:rgba(4,4,4,.35);transition:text-decoration-color .15s ease}
.prose a:hover{text-decoration-color:currentColor}
.prose hr{border:0;height:1px;background:var(--rule);margin:3em 0}
.figure{margin:48px calc((var(--measure) - min(var(--wide),100vw - 2*var(--pad) - 48px))/2) 56px}
.figure img,.figure video{width:100%;border-radius:12px;background:#f1f2f6}
.figure--tall img,.figure--tall video{width:auto;max-height:82vh;margin:0 auto}
.figure figcaption{max-width:var(--measure);margin:14px auto 0;font-size:15px;line-height:1.45;color:var(--muted);text-wrap:pretty}
.prose>.figure+.figure{margin-top:-32px}
.cta{margin:80px 0 0;padding:40px 0 0;border-top:1px solid var(--rule)}
.cta p{margin:0;font-weight:500;font-size:clamp(24px,2.4vw,30px);line-height:1.3;letter-spacing:-.01em;text-wrap:balance}
.cta strong{font-weight:500}
.cta a{text-decoration-thickness:2px}

/* Next case study */
.next{padding:112px var(--pad) 128px;text-align:center;background:linear-gradient(var(--bg) 4%,#a3d1d6 100%)}
.next a{display:inline-flex;flex-direction:column;gap:10px;text-decoration:none}
.next-label{font-size:16px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.next-title{font-weight:500;font-size:clamp(32px,4.4vw,56px);line-height:1.05;letter-spacing:-.02em}
.next-title .u{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:.14em}
.next-title .arr{display:inline-block;transition:transform .2s cubic-bezier(.2,.8,.2,1)}
.next a:hover .next-title .arr{transform:translateX(6px)}

.site-footer{display:flex;justify-content:space-between;align-items:center;padding:24px 30px;background:var(--night);color:#fff;font-size:20px;line-height:29px}
.site-footer p{margin:0}

@media (max-width:809px){
  :root{--pad:20px}
  body{font-size:17px;line-height:1.6}
  .site-header{padding:10px var(--pad);font-size:16px}
  .brand-mark{display:block}
  .brand-name{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .site-nav{gap:18px}
  main{padding-top:8px}
  .sheet{border-radius:16px;padding:28px var(--pad) 64px}
  .intro{margin:40px auto 44px}
  .standfirst{margin-top:20px}
  .meta{grid-template-columns:1fr 1fr;margin-top:32px}
  .meta div:has(a){grid-column:1/-1}
  .figure{margin:36px calc(var(--pad) * -1 + 8px) 40px}
  .figure img,.figure video{border-radius:10px}
  .figure figcaption{padding:0 calc(var(--pad) - 8px);font-size:14px}
  .prose>.figure+.figure{margin-top:-24px}
  .prose h2{font-size:24px}
  .cta{margin-top:56px}
  .next{padding:72px var(--pad) 88px}
  .site-footer{padding:20px var(--pad);font-size:17px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
