@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap");

:root {
  --bg: #050505;
  --surface: #111017;
  --text: #fafafa;
  --muted: #a19dab;
  --purple: #8b5cf6;
  --purple-light: #c4b5fd;
  --border: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 10%, rgba(139, 92, 246, .22), transparent 28rem),
    radial-gradient(circle at 10% 45%, rgba(74, 40, 180, .15), transparent 30rem),
    var(--bg);
  font-family: "Outfit", sans-serif;
}
a { color: inherit; text-decoration: none; }
p { color: var(--muted); line-height: 1.7; }

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem max(5vw, 1.25rem);
  background: rgba(5, 5, 5, .78);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: .7rem; font-size: 1.35rem; font-weight: 700; }
.brand > span:last-child > span { color: var(--purple); }
.brand-mark {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border-radius: .55rem;
  background: var(--purple);
}
nav { display: flex; align-items: center; gap: 2rem; }
nav a:not(.button) { color: var(--muted); }
nav a:hover { color: white; }
.menu-button { display: none; }

.section { width: min(1180px, 90%); margin: auto; padding: 8rem 0; }
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: 10rem; }
.eyebrow { margin-bottom: 1.5rem; color: var(--purple-light); font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; line-height: 1; }
h1 { max-width: 1000px; font-size: clamp(4rem, 11vw, 9rem); letter-spacing: -.065em; }
h1 span, .contact h2 span { color: var(--purple-light); }
h2 { font-size: clamp(2.8rem, 6vw, 5rem); letter-spacing: -.045em; }
h3 { font-size: 1.6rem; }
.hero-copy { max-width: 680px; margin: 2rem 0 0; font-size: 1.15rem; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: 1rem 1.5rem;
  color: white;
  border: 1px solid var(--purple);
  border-radius: 999px;
  background: var(--purple);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.button:hover { background: #a78bfa; }
.button.ghost { border-color: var(--border); background: transparent; }
.button.small { padding: .7rem 1.15rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 650px; margin-top: 5rem; }
.stats div { display: flex; flex-direction: column; gap: .5rem; padding-left: 1.2rem; border-left: 1px solid var(--border); }
.stats strong { font-size: 2.3rem; }
.stats span { color: var(--muted); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.marquee { overflow: hidden; padding: 1.2rem 0; color: var(--purple-light); border-block: 1px solid var(--border); white-space: nowrap; }
.marquee div { min-width: max-content; animation: slide 22s linear infinite; font-weight: 600; letter-spacing: .12em; }
@keyframes slide { to { transform: translateX(-35%); } }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 4rem; margin-bottom: 3.5rem; }
.section-head > p { max-width: 430px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.cards article, form, .steps, .project {
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: rgba(17, 16, 23, .84);
}
.cards article { min-height: 270px; padding: 2rem; transition: transform .25s, border-color .25s; }
.cards article:hover { transform: translateY(-6px); border-color: rgba(139, 92, 246, .65); }
.cards p { margin-top: 1rem; }
.icon { display: inline-block; margin-bottom: 3.5rem; color: var(--purple-light); font-weight: 700; }
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 5rem; }
.steps { margin: 0; padding: 1.5rem 2rem; list-style: none; }
.steps li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.steps li:last-child { border: 0; }
.steps li > span { color: var(--purple-light); }
.steps p { margin: .6rem 0 0; }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.project { padding: 1rem; }
.project-art {
  display: grid;
  min-height: 360px;
  place-items: center;
  color: rgba(255,255,255,.75);
  border-radius: 1rem;
  background: linear-gradient(135deg, #322464, #111017 70%);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: .9;
  text-align: center;
}
.project-art.alternate { background: linear-gradient(135deg, #111017, #5b21b6); }
.project h3 { margin: 1.5rem .5rem 0; }
.project p { margin: .6rem .5rem; }
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 5rem; align-items: start; }
.contact > div > p { max-width: 480px; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 2rem; }
label { display: grid; gap: .55rem; color: var(--muted); font-size: .85rem; }
input, select, textarea {
  width: 100%;
  padding: .9rem 1rem;
  color: white;
  border: 1px solid var(--border);
  border-radius: .7rem;
  outline: none;
  background: #09080d;
  font: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--purple); }
textarea { resize: vertical; }
.full { grid-column: 1 / -1; }
.form-status { min-height: 1.5rem; margin: 0; }
.form-status.success { color: #4ade80; }
.form-status.error { color: #fb7185; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 2rem 5%; border-top: 1px solid var(--border); }

@media (max-width: 800px) {
  .menu-button { display: block; padding: .6rem .8rem; color: white; border: 1px solid var(--border); border-radius: .5rem; background: transparent; }
  nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; padding: 1.5rem; background: #08070b; }
  nav.open { display: flex; }
  .section { padding: 6rem 0; }
  .cards, .work-grid, .split, .contact { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; gap: 1rem; }
  .stats { gap: 1rem; }
  .stats strong { font-size: 1.8rem; }
  form { grid-template-columns: 1fr; }
  form > * { grid-column: 1; }
  footer { align-items: start; flex-direction: column; }
}

/* ---- Dynamic content additions ---- */
img { max-width: 100%; display: block; }
.brand-logo { height: 2.4rem; width: auto; }
.card { display: block; }
.card-image { width: 100%; height: 150px; object-fit: cover; border-radius: 1rem; margin-bottom: 1.5rem; }
.hero-grid.has-image { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; }
.hero-image { width: 100%; border-radius: 1.5rem; border: 1px solid var(--border); }
.head-side { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; max-width: 430px; }
.head-side p { margin: 0; }
a.project { display: block; transition: transform .25s, border-color .25s; }
a.project:hover { transform: translateY(-6px); border-color: rgba(139, 92, 246, .65); }
.project-cover { width: 100%; height: 360px; object-fit: cover; border-radius: 1rem; }
.project-art.feature { margin-top: 3rem; min-height: 420px; }

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.quote { margin: 0; padding: 2rem; display: flex; flex-direction: column; gap: 1.5rem; border: 1px solid var(--border); border-radius: 1.5rem; background: rgba(17, 16, 23, .84); }
.quote blockquote { margin: 0; font-size: 1.1rem; line-height: 1.6; flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: .9rem; }
.quote figcaption img, .avatar { width: 2.8rem; height: 2.8rem; border-radius: 50%; object-fit: cover; }
.avatar { display: grid; place-items: center; background: var(--purple); font-weight: 700; }
.quote figcaption > span { display: flex; flex-direction: column; }
.quote small { color: var(--muted); }
.rating span { color: rgba(255, 255, 255, .2); }
.rating span.on { color: #facc15; }

.faq details { border-bottom: 1px solid var(--border); padding: 1.4rem 0; }
.faq summary { cursor: pointer; list-style: none; font-size: 1.2rem; font-weight: 600; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--purple-light); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 1rem 0 0; }

.contact-info { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact-info li { display: flex; flex-direction: column; gap: .2rem; }
.contact-info span { color: var(--purple-light); font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.page-hero { padding-top: 10rem; padding-bottom: 4rem; }
.page-title { font-size: clamp(2.8rem, 7vw, 5.5rem); letter-spacing: -.05em; }
.lead { max-width: 720px; font-size: 1.2rem; margin-top: 1.5rem; }
.muted-small { font-size: .9rem; }
.back { display: inline-block; margin-bottom: 2rem; color: var(--muted); }
.back:hover { color: white; }
.feature-image { width: 100%; max-height: 560px; object-fit: cover; margin-top: 3rem; border-radius: 1.5rem; border: 1px solid var(--border); }
.section.narrow { width: min(780px, 90%); }
.section.tight-top { padding-top: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 3rem; margin: 2.5rem 0 0; }
.facts dt { color: var(--purple-light); font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; }
.facts dd { margin: .4rem 0 0; }
.facts a { text-decoration: underline; text-underline-offset: 3px; }

.prose { font-size: 1.1rem; line-height: 1.8; }
.prose h1, .prose h2, .prose h3 { margin: 2.5rem 0 1rem; line-height: 1.15; }
.prose h1 { font-size: 2.2rem; letter-spacing: -.03em; }
.prose h2 { font-size: 1.9rem; letter-spacing: -.03em; }
.prose a { color: var(--purple-light); text-decoration: underline; }
.prose blockquote { margin: 2rem 0; padding-left: 1.5rem; border-left: 3px solid var(--purple); color: var(--muted); }
.prose pre { overflow-x: auto; padding: 1rem; border-radius: .75rem; background: var(--surface); }
.prose img { border-radius: 1rem; margin: 2rem 0; }
.prose ul, .prose ol { color: var(--muted); padding-left: 1.4rem; }
.prose li { margin: .4rem 0; }

.tags { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; list-style: none; }
.tags li, .chips a { padding: .45rem 1rem; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.chips a:hover, .chips a.active { color: white; border-color: var(--purple); background: rgba(139, 92, 246, .15); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; border-radius: 1rem; border: 1px solid var(--border); }
.gallery figcaption { color: var(--muted); font-size: .9rem; margin-top: .5rem; }

.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.member { padding: 1.2rem; border: 1px solid var(--border); border-radius: 1.5rem; background: rgba(17, 16, 23, .84); }
.member img, .member-placeholder { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 1rem; margin-bottom: 1.2rem; }
.member-placeholder { display: grid; place-items: center; font-size: 4rem; font-weight: 700; background: linear-gradient(135deg, #322464, #111017 70%); }
.member .role { color: var(--purple-light); margin: .4rem 0 0; }
.member a { color: var(--purple-light); font-size: .9rem; }

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.post-card { display: flex; flex-direction: column; padding: 1rem; border: 1px solid var(--border); border-radius: 1.5rem; background: rgba(17, 16, 23, .84); transition: transform .25s, border-color .25s; }
.post-card:hover { transform: translateY(-6px); border-color: rgba(139, 92, 246, .65); }
.post-card img, .post-placeholder { width: 100%; height: 200px; object-fit: cover; border-radius: 1rem; margin-bottom: 1.2rem; }
.post-placeholder { display: grid; place-items: center; color: rgba(255, 255, 255, .7); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: linear-gradient(135deg, #322464, #111017 70%); }
.post-meta { color: var(--purple-light); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; padding: 0 .4rem; }
.post-card h3 { margin: .8rem .4rem 0; font-size: 1.35rem; line-height: 1.2; }
.post-card p { margin: .6rem .4rem 0; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 3rem; color: var(--muted); }

.cta { text-align: center; padding: 6rem 2rem; margin-bottom: 6rem; border: 1px solid var(--border); border-radius: 2rem; background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, .3), transparent 70%), var(--surface); }
.cta p { margin: 1.2rem auto 2rem; max-width: 520px; }
.error-page { min-height: 70vh; }

.site-footer { display: block; padding: 4rem 5% 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 { margin: 0 0 1rem; font-size: .75rem; color: var(--purple-light); letter-spacing: .15em; text-transform: uppercase; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; gap: .6rem; color: var(--muted); }
.footer-grid a:hover { color: white; }
.tagline { letter-spacing: .2em; font-size: .8rem; }
.copyright { margin: 3rem 0 0; padding-top: 2rem; border-top: 1px solid var(--border); font-size: .85rem; }

@media (max-width: 1000px) {
  .quotes, .posts { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .hero-grid.has-image, .quotes, .posts, .gallery { grid-template-columns: 1fr; }
  .page-hero { padding-top: 8rem; }
  .project-cover { height: 240px; }
  .project-art.feature { min-height: 260px; }
}
@media (max-width: 480px) {
  .team, .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
}

/* Blog draft preview banner (staff only) */
.preview-banner { position: fixed; left: 50%; bottom: 1.25rem; z-index: 20; transform: translateX(-50%); width: max-content; max-width: calc(100% - 2rem); padding: .8rem 1.2rem; color: #1c1405; border-radius: 999px; background: #facc15; box-shadow: 0 10px 30px rgba(0,0,0,.4); font-size: .9rem; }
.preview-banner a { margin-left: .6rem; font-weight: 700; text-decoration: underline; }

/* ---------- Project (case study) page ---------- */
.case-hero { padding-top: 9rem; padding-bottom: 2.5rem; }
.case-title { max-width: 980px; font-size: clamp(2.4rem, 5.2vw, 4.4rem); line-height: 1.02; letter-spacing: -.045em; }
.case-hero .lead { max-width: 760px; }
.case-meta {
  display: flex; flex-wrap: wrap; align-items: stretch;
  margin: 2.5rem 0 0; border: 1px solid var(--border); border-radius: 1.25rem;
  background: rgba(17, 16, 23, .7);
}
.case-meta > div { flex: 1 1 160px; padding: 1.1rem 1.4rem; border-right: 1px solid var(--border); }
.case-meta > div:last-child { border-right: 0; }
.case-meta dt { color: var(--purple-light); font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.case-meta dd { margin: .45rem 0 0; font-weight: 500; }
.case-meta dd a { text-decoration: underline; text-decoration-color: rgba(196, 181, 253, .5); text-underline-offset: 3px; }
.case-meta dd a:hover { color: var(--purple-light); }
.case-meta .case-meta-cta { display: flex; align-items: center; justify-content: flex-end; flex: 0 1 auto; }

.case-cover-wrap { padding-top: 0; padding-bottom: 3rem; }
.case-cover {
  position: relative; display: block; width: 100%; padding: 0; overflow: hidden; cursor: zoom-in;
  border: 1px solid var(--border); border-radius: 1.25rem; background: #0d0c12;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(139, 92, 246, .08);
  transition: transform .3s, border-color .3s;
}
.case-cover:hover { transform: translateY(-4px); border-color: rgba(139, 92, 246, .55); }
.case-cover:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
.case-cover img { width: 100%; height: auto; }
.browser-bar { display: flex; gap: .4rem; padding: .75rem 1rem; background: #17151f; border-bottom: 1px solid var(--border); }
.browser-bar i { width: .65rem; height: .65rem; border-radius: 50%; background: #3b3748; }
.browser-bar i:first-child { background: #f87171; } .browser-bar i:nth-child(2) { background: #fbbf24; } .browser-bar i:nth-child(3) { background: #4ade80; }
.zoom-hint {
  position: absolute; right: 1rem; bottom: 1rem; padding: .45rem .9rem; border-radius: 999px;
  background: rgba(5, 5, 5, .75); color: #fff; font-size: .8rem; backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s;
}
.case-cover:hover .zoom-hint, .case-cover:focus-visible .zoom-hint { opacity: 1; transform: none; }

.case-body-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 4rem; align-items: start; padding-top: 1rem; }
.case-body { max-width: 760px; }
.case-body > :first-child { margin-top: 0; }
.case-body img { cursor: zoom-in; }
.case-side { position: sticky; top: 6rem; display: flex; flex-direction: column; gap: 1rem; }
.side-card { padding: 1.5rem; border: 1px solid var(--border); border-radius: 1.25rem; background: rgba(17, 16, 23, .84); }
.side-card .eyebrow { margin-bottom: 1rem; }
.side-card p { margin: 0 0 1.2rem; }
.side-card .tags { margin: 0; }

.case-gallery-wrap { padding-top: 2rem; }
.case-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.case-gallery figure { margin: 0; }
.case-gallery button { display: block; width: 100%; padding: 0; overflow: hidden; cursor: zoom-in; border: 1px solid var(--border); border-radius: 1rem; background: #0d0c12; }
.case-gallery button:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.case-gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .4s; }
.case-gallery button:hover img { transform: scale(1.04); }
.case-gallery figcaption { display: flex; align-items: center; gap: .65rem; margin-top: .85rem; color: var(--text); font-size: 1rem; font-weight: 600; letter-spacing: -.01em; transition: color .25s; }
.case-gallery .cap-num { display: inline-grid; place-items: center; min-width: 2rem; height: 1.6rem; padding: 0 .45rem; border-radius: 999px; background: rgba(139, 92, 246, .18); border: 1px solid rgba(139, 92, 246, .45); color: var(--purple-light); font-size: .72rem; font-weight: 700; letter-spacing: .08em; }
.case-gallery figure:hover figcaption, .case-gallery figure:focus-within figcaption { color: var(--purple-light); }
.case-gallery figure:hover button, .case-gallery figure:focus-within button { border-color: rgba(139, 92, 246, .6); }

/* Lightbox */
body.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 4.5rem 5rem 3.5rem;
  background: rgba(3, 3, 6, .94); backdrop-filter: blur(6px);
  animation: lb-in .2s ease-out;
}
.lightbox[hidden] { display: none; }
@keyframes lb-in { from { opacity: 0; } }
.lb-figure { display: flex; flex-direction: column; align-items: center; gap: .9rem; max-width: 100%; max-height: 100%; margin: 0; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 10rem); width: auto; height: auto; border-radius: .75rem; box-shadow: 0 30px 90px rgba(0, 0, 0, .6); }
.lb-figure figcaption {
  padding: .45rem 1.1rem; border: 1px solid rgba(139, 92, 246, .45); border-radius: 999px;
  background: rgba(139, 92, 246, .2); color: #fff; font-size: 1.05rem; font-weight: 600; text-align: center;
}
.lb-figure figcaption:empty { display: none; }
.lb-close, .lb-nav {
  position: absolute; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 50%;
  background: rgba(17, 16, 23, .85); color: #fff; cursor: pointer; font: inherit;
  transition: background .2s, border-color .2s;
}
.lb-close:hover, .lb-nav:hover { background: var(--purple); border-color: var(--purple); }
.lb-close:focus-visible, .lb-nav:focus-visible { outline: 3px solid var(--purple-light); outline-offset: 2px; }
.lb-close { top: 1.25rem; right: 1.25rem; width: 2.75rem; height: 2.75rem; font-size: 1.1rem; }
.lb-nav { top: 50%; width: 3.25rem; height: 3.25rem; margin-top: -1.6rem; font-size: 2rem; line-height: 1; }
.lb-nav[hidden] { display: none; }
.lb-prev { left: 1.25rem; } .lb-next { right: 1.25rem; }
.lb-count { position: absolute; top: 1.6rem; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: .85rem; letter-spacing: .1em; }

@media (max-width: 900px) {
  .case-body-grid { grid-template-columns: 1fr; gap: 2rem; }
  .case-side { position: static; }
}
@media (max-width: 640px) {
  .case-hero { padding-top: 7.5rem; }
  .case-meta > div { flex-basis: 50%; border-right: 0; border-bottom: 1px solid var(--border); }
  .case-meta .case-meta-cta { flex-basis: 100%; justify-content: flex-start; border-bottom: 0; }
  .case-gallery { grid-template-columns: 1fr; }
  .lightbox { padding: 4rem .75rem 4.5rem; }
  .lb-nav { top: auto; bottom: 1rem; margin-top: 0; width: 2.75rem; height: 2.75rem; }
  .lb-prev { left: calc(50% - 3.5rem); } .lb-next { right: calc(50% - 3.5rem); }
}

/* Safety net: very long words/URLs in rich text never widen the page */
.prose { overflow-wrap: break-word; }
.prose img { max-width: 100%; height: auto; }

/* Work grid: 3 cards per row (2 on tablets, 1 on phones) */
.work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.work-grid .project-cover { height: auto; aspect-ratio: 16 / 10; }
.work-grid .project-art { min-height: 0; aspect-ratio: 16 / 10; font-size: clamp(1.4rem, 2.4vw, 2.2rem); }
.work-grid .project h3 { margin-top: 1.1rem; font-size: 1.3rem; line-height: 1.2; }
.work-grid .project p { font-size: .95rem; }
@media (max-width: 1000px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .work-grid { grid-template-columns: 1fr; } }
