/* Shared styles for the proof-of-work pages (work/<project>/index.html).
   Same tokens and type as index.html, which keeps its own inline CSS. */
:root {
  --bg: #f7f6f3; --surface: #ffffff; --border: #e4e1db;
  --text: #0e0e0d; --muted: #72706a; --muted-light: #a09d97;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

/* nav (same as the home page, always frosted here) */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(247, 246, 243, 0.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { max-width: 1120px; margin: 0 auto; padding: 0 32px; height: 58px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 9px; line-height: 1; }
.logo-name { font-size: 16px; font-weight: 600; letter-spacing: -0.4px; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { font-size: 13.5px; color: var(--muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { font-size: 13px; font-weight: 500; padding: 8px 18px; background: var(--text); color: var(--bg); border-radius: 7px; }

/* header */
.case-head { padding: 128px 0 56px; }
.back { font-size: 13.5px; color: var(--muted); display: inline-block; margin-bottom: 36px; }
.back:hover { color: var(--text); }
.tag {
  display: inline-block; font-size: 10.5px; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--muted); background: var(--surface); border: 1px solid var(--border); padding: 3px 9px; border-radius: 4px; margin-bottom: 22px;
}
h1 { font-size: clamp(40px, 5.4vw, 72px); font-weight: 700; line-height: 1.05; letter-spacing: -2.5px; margin-bottom: 24px; }
h1 em { font-style: normal; color: var(--muted-light); }
.lede { font-size: 19px; color: var(--muted); max-width: 640px; line-height: 1.6; }
.head-actions { display: flex; align-items: center; gap: 24px; margin-top: 36px; flex-wrap: wrap; }
.btn { font-size: 14px; font-weight: 500; padding: 11px 22px; background: var(--text); color: var(--bg); border-radius: 7px; white-space: nowrap; }
.link { font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--border); }
.link:hover { color: var(--text); }

/* facts strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: 56px; }
.facts div { padding: 22px 24px 22px 0; }
.facts div + div { padding-left: 24px; border-left: 1px solid var(--border); }
.facts dt { font-size: 11.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 6px; }
.facts dd { font-size: 15px; font-weight: 500; }

/* screenshots: a plain browser frame around a real capture */
.shot { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); }
.shot::before {
  content: ''; display: block; height: 34px; border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at 20px 17px, #e4e1db 5px, transparent 6px),
              radial-gradient(circle at 38px 17px, #e4e1db 5px, transparent 6px),
              radial-gradient(circle at 56px 17px, #e4e1db 5px, transparent 6px), #f0efec;
}
.shot img { width: 100%; height: auto; }
figure figcaption { font-size: 13.5px; color: var(--muted); margin-top: 12px; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

/* sections */
section { padding: 88px 0; border-top: 1px solid var(--border); }
.section-label {
  display: flex; align-items: center; gap: 16px; font-size: 11.5px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted-light); margin-bottom: 48px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
h2 { font-size: clamp(30px, 3.8vw, 48px); font-weight: 700; letter-spacing: -1.5px; line-height: 1.08; margin-bottom: 24px; }
.prose { font-size: 18px; color: var(--muted); max-width: 680px; line-height: 1.65; }
.prose + .prose { margin-top: 16px; }

/* numbered rows (same shape as the service rows on the home page) */
.rows { margin-top: 24px; border-top: 1px solid var(--border); }
.row { display: grid; grid-template-columns: 52px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.row-num { font-size: 12px; font-weight: 500; color: var(--muted-light); letter-spacing: 0.06em; padding-top: 6px; }
.row h3 { font-size: clamp(18px, 2vw, 24px); font-weight: 600; letter-spacing: -0.5px; line-height: 1.2; margin-bottom: 8px; }
.row p { font-size: 15px; color: var(--muted); max-width: 640px; }

/* stack chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chips li { list-style: none; font-size: 13.5px; padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }

/* closing call to action + footer (dark, as on the home page) */
.cta { background: var(--text); color: var(--bg); border-top: 0; }
.cta h2 { font-size: clamp(36px, 5.5vw, 68px); letter-spacing: -2.5px; line-height: 1.02; }
.cta h2 em { font-style: normal; color: rgba(247,246,243,0.35); }
.cta p { font-size: 15px; color: rgba(247,246,243,0.5); max-width: 420px; margin-bottom: 32px; }
.cta .btn { background: var(--bg); color: var(--text); display: inline-block; }
.cta .link { color: rgba(247,246,243,0.6); border-bottom-color: rgba(247,246,243,0.2); margin-left: 24px; }
footer { background: var(--text); padding: 24px 32px; border-top: 1px solid rgba(247,246,243,0.08); }
.footer-inner { max-width: 1120px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-logo { font-size: 14px; font-weight: 700; color: rgba(247,246,243,0.6); letter-spacing: -0.3px; }
.footer-copy { font-size: 12.5px; color: rgba(247,246,243,0.25); }

@media (max-width: 768px) {
  .container, .nav-inner { padding: 0 20px; }
  .nav-links { display: none; }
  .case-head { padding: 104px 0 40px; }
  h1 { letter-spacing: -1.5px; }
  .lede { font-size: 17px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div, .facts div + div { padding: 16px 12px 16px 0; border-left: 0; }
  .shots { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .section-label { margin-bottom: 36px; }
  .prose { font-size: 16px; }
  .row { grid-template-columns: 36px 1fr; gap: 12px; padding: 22px 0; }
  .cta .link { display: inline-block; margin: 20px 0 0; }
  footer { padding: 20px; }
  .footer-inner { flex-direction: column; gap: 6px; }
}
