:root {
  --bg: #f7f2e9;
  --card: #fffdf8;
  --ink: #1d2829;
  --coral: #f07054;
  --muted: #6f7672;
  --line: #e6ddcf;
  --round: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--round);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }
[hidden] { display: none !important; }

main {
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 48px) 96px;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; margin: 16px 0 8px; }
.lede { font-size: clamp(1.15rem, 2.2vw, 1.5rem); max-width: 820px; margin: 0 0 28px; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.15; font-weight: 800; margin: 0 0 4px; }
.sub { color: var(--muted); font-size: 1.05rem; margin: 0 0 20px; }
.group { margin-top: clamp(48px, 6vw, 80px); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
  cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 16px; }
.card {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 24px;
  padding: 16px 22px 16px 16px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.card:hover, .card:focus-visible { transform: translateY(-3px); border-color: var(--coral); box-shadow: 0 12px 28px -18px rgba(29, 40, 41, 0.45); }
.card b { display: block; font-size: 1.25rem; }
.card span { color: var(--muted); font-size: 1rem; }
.card .go { margin-left: auto; color: var(--coral); font-size: 1.3rem; flex: none; }
.thumb, .ptile {
  flex: none;
  width: 88px;
  height: 88px;
  border-radius: 20px;
  object-fit: cover;
  background: var(--line);
}
.mono {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--coral) !important;
  font-weight: 800;
  font-size: 2.3rem !important;
}
.tag {
  display: inline-block;
  font-size: 0.72rem !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--coral) !important;
  margin-left: 8px;
  vertical-align: middle;
}
.cta { margin-top: 48px; text-align: center; font-size: 1.1rem; }
.cta a { color: var(--coral); font-weight: 700; text-decoration: none; }

.project { max-width: 960px; }
.back { color: var(--muted); text-decoration: none; font-weight: 700; }
.back:hover { color: var(--coral); }
.phead { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.phead h1 { margin: 0; }
.ptile { width: 104px; height: 104px; border-radius: 26px; }
.ptile.mono { font-size: 2.8rem !important; }
.meta { color: var(--muted); margin: 4px 0 0; font-weight: 700; }
.project .lede { margin-top: 20px; }
.facts { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
}
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--ink); margin-bottom: 24px; }
.video iframe, .play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play { padding: 0; cursor: pointer; background: var(--ink); }
.play img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.85; }
.play span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--card);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  padding-left: 4px;
}
.body { max-width: 760px; }
.body p { font-size: 1.2rem; margin: 0 0 16px; }
.stack { color: var(--muted); }
.stack b { color: var(--ink); margin-right: 6px; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.btn {
  text-decoration: none;
  font-weight: 700;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  padding: 10px 18px;
}
.btn:hover, .btn:focus-visible { background: var(--coral); }
.next {
  display: block;
  margin-top: 48px;
  text-decoration: none;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 24px;
  padding: 18px 20px;
}
.next:hover, .next:focus-visible { border-color: var(--coral); }
.next span { display: block; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }
.next b { font-size: 1.2rem; }

/* Service pages (/apps/, /websites/) */
.includes { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.inc { background: var(--card); border: 2px solid var(--line); border-radius: 24px; padding: clamp(22px, 2.6vw, 30px); }
.inc i { display: block; width: 36px; height: 6px; border-radius: 3px; background: var(--coral); margin-bottom: 16px; }
.inc b { display: block; font-size: 1.25rem; margin-bottom: 6px; }
.inc span { color: var(--muted); font-size: 1.05rem; }
.steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--ink); padding-top: 14px; }
.steps li::before { content: counter(step); display: block; color: var(--coral); font-weight: 800; font-size: 1.6rem; line-height: 1; margin-bottom: 8px; }
.steps b { display: block; font-size: 1.2rem; }
.steps span { color: var(--muted); }
.service .cards { margin-top: 16px; }
@media (max-width: 900px) { .includes { grid-template-columns: 1fr 1fr; } .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .includes, .steps { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { .card { transition: none; } }
