:root{
  --purple:#5B2A86;
  --purple-deep:#43205F;
  --bg:#FBF9FB;
  --ink:#221C29;
  --soft:#F1ECF6;
  --soft-2:#E2D8EC;
  --muted:#6F6678;
  --line:#E5E0EB;
  --shadow:0 8px 30px rgba(67,32,95,.09);
  --shadow-sm:0 4px 16px rgba(67,32,95,.07);
  --display:'Fraunces', Georgia, serif;
  --body:'Hanken Grotesk', system-ui, sans-serif;
  --r-lg:22px;--r-md:16px;--r-sm:11px;
}

*{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;}
body{
  margin:0;background:var(--bg);color:var(--ink);
  font-family:var(--body);font-size:18px;line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
.wrap{max-width:840px;margin:0 auto;padding:0 30px;}

/* hero */
.hero{padding:88px 0 60px;}
.hero h1{
  font-family:var(--display);font-weight:600;
  font-size:clamp(46px,9vw,82px);line-height:1.02;
  letter-spacing:-.015em;margin:0;color:var(--ink);
}
.hero .line{
  font-weight:500;font-size:clamp(19px,2.4vw,23px);
  color:#4C4555;margin:20px 0 0;max-width:42ch;
}

/* section + label */
.section{padding:30px 0 56px;}
.label{
  display:flex;align-items:center;gap:10px;
  font-weight:700;font-size:12px;letter-spacing:.15em;
  text-transform:uppercase;color:var(--purple);margin:0 0 26px;
}
.label::before{
  content:"";width:9px;height:9px;border-radius:3px;
  background:var(--purple);display:inline-block;
}

/* project */
.project + .project{margin-top:66px;}
.proj-title{
  font-family:var(--display);font-weight:600;font-size:clamp(28px,4vw,34px);
  letter-spacing:-.01em;margin:0 0 12px;color:var(--ink);
}
.proj-sub{margin:0 0 28px;color:var(--muted);max-width:54ch;font-size:18px;}

/* screenshot: crops to a clean landscape */
.shot{
  display:block;width:100%;aspect-ratio:16/10;object-fit:cover;
  border-radius:var(--r-lg);border:1px solid var(--line);
  background:var(--soft);box-shadow:var(--shadow);
  transition:transform .2s ease, box-shadow .2s ease;
}
.shot.placeholder{
  display:flex;align-items:center;justify-content:center;text-align:center;
  font-weight:500;font-size:13.5px;color:var(--muted);padding:14px;
  letter-spacing:.01em;
}
a.figure{display:block;text-decoration:none;}
a.figure:hover .shot{transform:translateY(-3px);box-shadow:var(--shadow);}
.caption{margin:14px 2px 0;color:var(--muted);font-size:14.5px;}

/* documents: natural shape, no cropping, no distortion */
.doc{
  display:block;width:100%;height:auto;
  border-radius:var(--r-md);border:1px solid var(--line);
  background:var(--soft);box-shadow:var(--shadow-sm);
}
.doc.placeholder{
  aspect-ratio:16/10;display:flex;align-items:center;justify-content:center;
  text-align:center;font-weight:500;font-size:13.5px;color:var(--muted);padding:14px;
}

/* before / after: side by side, top-aligned, each at its own size */
.pair{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  align-items:stretch;   /* both columns take the full row height */
}

/* the AFTER box: fills the column, matches the row height, image sits inside */
.pair .doc{
  height:100%;
  object-fit:contain;     /* whole image, scaled to fit, no stretching */
  object-position:center;
  padding:14px;           /* breathing room inside the box */
}

/* social grid: equal squares */
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;}
.grid3 .shot{aspect-ratio:1/1;border-radius:var(--r-md);box-shadow:var(--shadow-sm);}

/* print sub-block */
.print{margin-top:46px;}
.print-title{
  font-weight:700;font-size:13px;letter-spacing:.12em;text-transform:uppercase;
  color:var(--muted);margin:0 0 18px;
}

/* buttons */
.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px;}
.btn{
  display:inline-flex;align-items:center;gap:9px;
  font-family:var(--body);font-weight:600;font-size:15px;
  padding:13px 24px;border-radius:999px;text-decoration:none;
  cursor:pointer;border:1.5px solid transparent;
  transition:transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn-fill{background:var(--purple);color:#fff;}
.btn-fill:hover{background:var(--purple-deep);transform:translateY(-1px);box-shadow:var(--shadow-sm);}
.btn-ghost{background:transparent;color:var(--purple);border-color:var(--soft-2);}
.btn-ghost:hover{background:var(--soft);transform:translateY(-1px);}
.btn .arr{font-family:var(--display);font-size:17px;line-height:0;}

/* contact */
.card{
  background:var(--soft);border-radius:var(--r-lg);
  padding:38px 36px;box-shadow:var(--shadow-sm);
}
.card h2{
  font-family:var(--display);font-weight:600;font-size:28px;
  margin:0 0 20px;color:var(--ink);
}
.cline{margin:0 0 10px;font-size:16.5px;color:var(--ink);}
.ck{
  color:var(--muted);font-weight:700;font-size:12px;letter-spacing:.1em;
  text-transform:uppercase;margin-right:12px;
}

/* footer */
footer{padding:40px 0 60px;color:var(--muted);font-size:14px;}

a:focus-visible,.btn:focus-visible{outline:2.5px solid var(--purple);outline-offset:3px;}

/* responsive */
@media (max-width:680px){
  body{font-size:17px;}
  .hero{padding:64px 0 44px;}
  .grid3{gap:10px;}
  .pair{grid-template-columns:1fr;}
  .card{padding:30px 24px;}
}

/* motion */
@media (prefers-reduced-motion: no-preference){
  .hero h1,.hero .line{opacity:0;transform:translateY(14px);animation:rise .65s cubic-bezier(.2,.7,.2,1) forwards;}
  .hero h1{animation-delay:.05s;}
  .hero .line{animation-delay:.2s;}
  @keyframes rise{to{opacity:1;transform:none;}}
}
