/* Styles for the case-study / blog pages under /work/. Plain CSS, no build step.
   Same look as the main site: Inter, tight bold headings, amber eyebrow labels,
   soft grey cards with large rounded media, dark call-to-action blocks. */
@font-face { font-family: "font1"; src: url("/fonts/Curvilingus.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "font2"; src: url("/fonts/Inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root{
  --ink: #111111;
  --text: #3A3D47;
  --muted: #5A5E6B;
  --line: #E6E6EA;
  --soft: #F5F5F6;
  --amber: #111111;
  --accent: #111111;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body{
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "font2", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, video{ max-width: 100%; height: auto; }
a{ color: var(--ink); font-weight: 600; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover{ color: var(--amber); }
a:focus-visible, .btn:focus-visible{ outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Top bar */
.top{
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
}
.topIn{
  max-width: 1240px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
/* Same display font and size as the logo on the home page */
.brand{ font-family: "font1", serif; font-size: 30px; font-weight: 400; line-height: 1; text-decoration: none; color: var(--ink); white-space: nowrap; }
.topNav{ display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; white-space: nowrap; }
.topNav a{ text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 600; padding: 8px 14px; border-radius: 999px; transition: background .2s ease, color .2s ease; }
.topNav a:hover{ background: var(--soft); color: var(--ink); }
.topNav a[aria-current="page"]{ background: var(--ink); color: #fff; }
.topNav a.btn{ margin-left: 6px; padding: 9px 18px; font-size: 15px; color: #fff; }
.topNav a.btn:hover{ background: #2B2B2E; color: #fff; }

.btn{
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; font-weight: 700; font-size: 15px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid #D9D9DE; color: var(--ink); background: #fff;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover{ transform: translateY(-2px); background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary{ background: #111111; border-color: #111111; color: #fff; box-shadow: 0 10px 22px rgba(17, 17, 17, .3); }
.btn.primary:hover{ background: #2B2B2E; color: #fff; }

/* Layout */
.wrap{ max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.narrow{ max-width: 760px; margin: 0 auto; }

.crumbs{ margin: 28px 0 0; font-size: 13px; color: var(--muted); }
.crumbs ol{ list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before{ content: "/"; margin-right: 6px; color: #b6bcc6; }
.crumbs a{ font-weight: 500; color: var(--muted); text-decoration: none; }
.crumbs a:hover{ color: var(--ink); }

/* Eyebrow label: amber dash + small caps, as on the main site */
.kind, .cardKind, .panel h2{
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--amber); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.kind::before{ content: ""; width: 26px; height: 2px; background: var(--accent); }
.kind{ margin: 34px 0 0; }

h1{
  margin: 16px 0 0; max-width: 1000px;
  color: var(--ink);
  font-size: clamp(34px, 5.6vw, 72px);
  font-weight: 700; line-height: 1.04; letter-spacing: -.045em;
}

.byline{ margin: 24px 0 34px; display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--muted); }
.byline img{ width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.byline a{ color: var(--ink); text-decoration: none; }

.hero{ margin: 0; }
.hero video, .hero img{
  display: block; width: 100%; height: auto;
  border-radius: 24px; background: #F5F5F6;
}
.hero figcaption{ margin-top: 10px; font-size: 14px; color: var(--muted); }

.tags{ display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0 0; padding: 0; list-style: none; }
.tags li{
  padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--text); font-size: 14px; font-weight: 500; line-height: 1.3;
}

.cols{ display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; margin-top: 56px; align-items: start; }
.side{ position: sticky; top: 92px; display: grid; gap: 16px; }
.panel{ border: 1px solid var(--line); border-radius: 22px; padding: 24px; background: var(--soft); }
.panel h2{ margin: 0 0 16px; font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.panel dl{ margin: 0; display: grid; gap: 0; font-size: 15px; line-height: 1.45; }
.panel dl > div{ padding: 12px 0; border-top: 1px solid var(--line); }
.panel dl > div:first-child{ padding-top: 0; border-top: 0; }
.panel dt{ color: var(--muted); font-size: 13px; }
.panel dd{ margin: 2px 0 0; color: var(--ink); font-weight: 600; }
.panel ul{ list-style: none; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 15px; }
.panel.hire{ background: var(--ink); border-color: var(--ink); color: rgba(255,255,255,.76); }
.panel.hire h2{ color: #FFFFFF; }
.panel.hire p{ margin: 0 0 18px; font-size: 15px; line-height: 1.55; }
.panel.hire .btn{ display: flex; border-color: rgba(255,255,255,.5); }
.panel.hire .btn.primary{ background: var(--accent); border-color: var(--accent); color: var(--ink); box-shadow: none; }
.panel.hire .btn.primary:hover{ background: #EDEDEF; }
.panel.hire .btn + .btn{ margin-top: 10px; background: transparent; color: #fff; }
.panel.hire .btn + .btn:hover{ background: #fff; color: var(--ink); }

/* Article text */
.post{ max-width: 760px; }
.post h2{ margin: 56px 0 14px; color: var(--ink); font-size: clamp(25px, 3.2vw, 34px); line-height: 1.15; font-weight: 700; letter-spacing: -.03em; scroll-margin-top: 92px; }
.post h3{ margin: 32px 0 8px; color: var(--ink); font-size: 21px; line-height: 1.3; font-weight: 700; letter-spacing: -.02em; }
.post p{ margin: 0 0 18px; }
.post p.lead{ font-size: 22px; line-height: 1.55; color: var(--ink); letter-spacing: -.01em; }
.post ul, .post ol{ margin: 0 0 18px; padding-left: 22px; }
.post li{ margin-bottom: 8px; }
.post li::marker{ color: var(--accent); }
.post > :first-child{ margin-top: 0; }

.gallery{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 26px 0 30px; }
.post figure{ margin: 0; }
.post figure.wide{ margin: 28px 0 30px; }
.post figure img{ display: block; width: 100%; border-radius: 16px; background: var(--soft); }
.post figcaption{ margin-top: 8px; font-size: 14px; color: var(--muted); }

.toc{ border: 1px solid var(--line); background: var(--soft); border-radius: 20px; padding: 20px 24px; margin: 0 0 8px; }
.toc ol{ margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; font-size: 16px; }
.toc a{ font-weight: 500; text-decoration: none; }
.toc a:hover{ text-decoration: underline; }

.tableWrap{ overflow-x: auto; margin: 24px 0 10px; border: 1px solid var(--line); border-radius: 16px; }
table{ border-collapse: collapse; width: 100%; min-width: 560px; font-size: 16px; line-height: 1.45; }
th, td{ text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th{ background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
tr:last-child td{ border-bottom: 0; }
td:first-child{ color: var(--ink); font-weight: 600; white-space: nowrap; }

/* Call to action */
.cta{
  margin: 56px 0 0; padding: 40px;
  border-radius: 26px; background: var(--ink); color: rgba(255,255,255,.76);
}
.cta h2{ margin: 0 0 10px; color: #fff; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.1; font-weight: 700; letter-spacing: -.035em; }
.cta p{ margin: 0 0 22px; max-width: 620px; font-size: 17px; line-height: 1.55; }
.cta .btns{ display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn{ border-color: rgba(255,255,255,.5); }
.cta .btn:not(.primary){ background: transparent; color: #fff; }
.cta .btn:not(.primary):hover{ background: #fff; color: var(--ink); }
.cta .btn.primary{ background: var(--accent); border-color: var(--accent); color: var(--ink); box-shadow: none; }
.cta .btn.primary:hover{ background: #EDEDEF; color: var(--ink); }
.cta ul{ list-style: none; margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid rgba(255,255,255,.16); display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; }
.cta ul a{ color: #fff; font-weight: 500; }

.about{ display: flex; gap: 18px; align-items: flex-start; margin: 36px 0 0; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--soft); }
.about img{ width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.about p{ margin: 0; font-size: 16px; line-height: 1.6; }
.about strong{ color: var(--ink); }

/* Post cards (index page and "more work") */
.more{ margin: 110px 0 0; }
.more > h2{ margin: 0 0 30px; color: var(--ink); font-size: clamp(30px, 4vw, 48px); font-weight: 700; line-height: 1.05; letter-spacing: -.04em; }
.cards{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; list-style: none; margin: 0; padding: 0; }
.cards > li{ display: flex; }
.card{
  display: flex; flex-direction: column; flex: 1;
  color: inherit; text-decoration: none; font-weight: 400;
}
.card:hover{ color: inherit; }
.card img{
  display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: 22px; background: #F5F5F6;
  transition: transform .9s cubic-bezier(.22, 1, .36, 1), box-shadow .4s ease;
}
.card:hover img{ transform: scale(1.02); box-shadow: 0 24px 44px rgba(17, 17, 17, .18); }
.cardBody{ padding: 20px 4px 0; display: flex; flex-direction: column; flex: 1; }
.cardKind{ font-size: 12px; letter-spacing: .12em; }
.card h2, .card h3{ margin: 8px 0 8px; color: var(--ink); font-size: 24px; line-height: 1.15; font-weight: 700; letter-spacing: -.03em; }
.card p{ margin: 0 0 16px; font-size: 16px; line-height: 1.55; }
.cardGo{ margin-top: auto; color: var(--ink); font-weight: 600; font-size: 15px; }
.cardGo::after{ content: ""; }
.card:hover .cardGo{ color: var(--amber); }

/* Index page */
.indexHead{ padding: 34px 0 48px; max-width: 980px; }
.indexHead h1{ font-size: clamp(38px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -.045em; }
.indexHead p{ margin: 24px 0 0; max-width: 640px; color: var(--muted); font-size: 19px; line-height: 1.6; }
.services{ margin: 110px 0 0; }
.services h2{ margin: 0 0 8px; color: var(--ink); font-size: clamp(30px, 4vw, 48px); font-weight: 700; line-height: 1.05; letter-spacing: -.04em; }
.services ul{ margin: 28px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.services li{ border: 1px solid var(--line); border-radius: 22px; padding: 24px; background: var(--soft); font-size: 16px; line-height: 1.55; }
.services li strong{ display: block; margin-bottom: 6px; color: var(--ink); font-size: 20px; font-weight: 700; letter-spacing: -.02em; }

.foot{ margin-top: 110px; border-top: 1px solid var(--line); }
.footIn{ max-width: 1240px; margin: 0 auto; padding: 28px 24px 44px; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; font-size: 15px; color: var(--muted); }
.footIn nav{ display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footIn a{ font-weight: 500; color: var(--muted); text-decoration: none; }
.footIn a:hover{ color: var(--ink); }

@media (max-width: 980px){
  .cols{ grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .side{ position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); order: 2; }
  .cards{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  body{ font-size: 17px; }
  .wrap, .topIn, .footIn{ padding-left: 16px; padding-right: 16px; }
  .brand{ font-size: 20px; }
  .topNav a{ padding: 7px 9px; font-size: 14px; }
  .topNav a.btn{ padding: 8px 14px; font-size: 14px; min-height: 0; margin-left: 2px; }
  .topNav{ gap: 2px; }
  .topNav a.hideSm{ display: none; }
  .hero video, .hero img{ border-radius: 16px; }
  .card img{ border-radius: 16px; }
  .post p.lead{ font-size: 19px; }
  .side, .cards, .services ul{ grid-template-columns: minmax(0, 1fr); }
  .cards{ gap: 36px; }
  .gallery{ grid-template-columns: minmax(0, 1fr); }
  .toc ol{ columns: 1; }
  .cta{ padding: 28px 20px; border-radius: 22px; }
  .cta .btn{ flex: 1 1 100%; }
  .about{ flex-direction: column; }
  .more, .services{ margin-top: 80px; }
  .foot{ margin-top: 80px; }
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .btn, .card img{ transition: none; }
}

/* Palette roles: cobalt call-to-action blocks with citron buttons */
.topNav a[aria-current="page"]{ background: #F5F5F6; color: #111111; }
.cta, .panel.hire{ background: #111111; border-color: #111111; color: rgba(255,255,255,.88); }
.cta .btn.primary, .panel.hire .btn.primary{ background: #FFFFFF; border-color: #FFFFFF; color: #111111; }
.cta .btn.primary:hover, .panel.hire .btn.primary:hover{ background: #EDEDEF; color: #111111; }
.panel.hire h2{ color: #FFFFFF; }
.post li::marker{ color: #111111; }
::selection{ background: #FFFFFF; color: #111111; }

/* Black + white theme: accent only on the label dash, links on hover and selection */
.kind::before{ background: #F2542D; }
a:hover{ color: #F2542D; }
.card:hover .cardGo{ color: #F2542D; }
.btn:hover, .btn.primary:hover{ color: #fff; }
.cta .btn.primary:hover, .panel.hire .btn.primary:hover{ color: #111111; }
.panel.hire h2{ color: rgba(255,255,255,.6); }
::selection{ background: #F2542D; color: #fff; }

/* ---------- Service pages, site footer and small shared pieces ---------- */
.btns{ display: flex; flex-wrap: wrap; gap: 12px; }
.svcHead{ max-width: 1000px; }
.svcHead .lead{ margin: 24px 0 0; max-width: 760px; font-size: 21px; line-height: 1.6; color: var(--text); }
.svcHead .btns{ margin-top: 30px; }
.svcFacts{ margin: 44px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; max-width: none; }
.svcFacts dt{ color: var(--muted); font-size: 13px; }
.svcFacts dd{ margin: 4px 0 0; color: var(--ink); font-weight: 700; font-size: 17px; line-height: 1.35; letter-spacing: -.01em; }

.block{ margin: 96px 0 0; }
.block > h2, .split h2{ margin: 0 0 26px; color: var(--ink); font-size: clamp(28px, 3.6vw, 42px); line-height: 1.08; font-weight: 700; letter-spacing: -.04em; }
.block p{ margin: 0 0 14px; max-width: 760px; }
.grid3{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile{ border: 1px solid var(--line); border-radius: 22px; padding: 24px; background: var(--soft); }
.tile h3{ margin: 0 0 8px; color: var(--ink); font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }
.tile p{ margin: 0; font-size: 16px; line-height: 1.55; }
.split{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
.ticks{ list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li{ position: relative; padding-left: 30px; }
.ticks li::before{ content: "\2713"; position: absolute; left: 0; top: 0; color: var(--ink); font-weight: 700; }
.split .tags{ margin: 0; }
.note{ margin: 16px 0 0; font-size: 15px; color: var(--muted); }
.stats{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat{ border-radius: 22px; padding: 26px; background: var(--ink); color: rgba(255,255,255,.76); }
.stat strong{ display: block; color: #fff; font-size: 48px; font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.stat span{ display: block; margin-top: 10px; font-size: 15px; line-height: 1.45; }
.steps{ list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.steps li{ counter-increment: step; border-top: 2px solid var(--ink); padding-top: 16px; }
.steps li::before{ content: "0" counter(step); display: block; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.steps h3{ margin: 6px 0 6px; color: var(--ink); font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.steps p{ margin: 0; font-size: 16px; line-height: 1.55; }
.price{ color: var(--ink); font-size: 34px; font-weight: 700; letter-spacing: -.035em; line-height: 1.1; margin: 0 0 12px; }
.faq{ max-width: 760px; }
.faq h3{ margin: 30px 0 8px; color: var(--ink); font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: -.02em; }
.faq h3:first-of-type{ margin-top: 0; }
.quotes{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.quote{ margin: 0; border: 1px solid var(--line); border-radius: 22px; padding: 26px; background: var(--soft); }
.quote blockquote{ margin: 0; color: var(--ink); font-size: 19px; line-height: 1.5; letter-spacing: -.01em; }
.quote blockquote p{ margin: 0 0 14px; }
.quote figcaption{ font-size: 15px; color: var(--muted); }

.cards.two{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cards.svc{ gap: 16px; }
.svcCard{ border: 1px solid var(--line); border-radius: 22px; background: var(--soft); transition: background .2s ease, border-color .2s ease; }
.svcCard:hover{ background: #fff; border-color: var(--ink); }
.svcCard .cardBody{ padding: 26px; }
.svcCard h2, .svcCard h3{ font-size: 26px; }
.panel ul.plain{ margin: 0; padding: 0; border: 0; }
.plainPage{ padding-top: 48px; }
.plainPage h1{ margin-bottom: 30px; font-size: clamp(34px, 5vw, 56px); }
.narrowLeft{ max-width: 760px; margin-top: 56px; }
.wrap > .cta{ margin-top: 96px; }
td a{ font-weight: 600; }

.foot{ background: var(--soft); }
.footIn{ display: block; padding: 48px 24px 32px; }
.footCols{ display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footCols strong{ display: block; margin-bottom: 12px; color: var(--ink); font-size: 14px; font-weight: 700; }
.footCols p{ margin: 0 0 8px; line-height: 1.55; max-width: 320px; }
.footCols nav{ display: flex; flex-direction: column; flex-wrap: nowrap; gap: 8px; }
.footBase{ margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 14px; }

@media (max-width: 980px){
  .grid3, .steps{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svcFacts{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split{ gap: 56px; grid-template-columns: minmax(0, 1fr); }
  .footCols{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .grid3, .steps, .stats, .quotes, .cards.two{ grid-template-columns: minmax(0, 1fr); }
  .svcHead .lead{ font-size: 19px; }
  .svcHead .btn{ flex: 1 1 100%; }
  .block, .wrap > .cta{ margin-top: 64px; }
  .stat strong{ font-size: 40px; }
  .block table{ min-width: 0; }
  .block td:first-child{ white-space: normal; }
  .footIn{ padding: 36px 16px 28px; }
}
@media (max-width: 480px){
  .brand{ font-size: 17px; }
  .topIn{ gap: 8px; }
  .topNav a{ padding: 6px 8px; font-size: 13.5px; }
  .topNav a.btn{ padding: 7px 12px; font-size: 13.5px; }
}

/* ---------- Floating bottom navigation (same bar as the main site) ---------- */
@font-face { font-family: "font3"; src: url("/fonts/Jura.woff2") format("woff2"); font-weight: 300 700; font-display: swap; } /* used by the bottom bar */
/* The top bar keeps the name and the Hire me button; page links live in the bottom bar. */
.topNav a:not(.btn){ display: none; }
.foot{ padding-bottom: 110px; }

/* ---------- Services index: numbered cards that turn dark on hover ---------- */
.indexHead h1 em, h1 em{ font-style: normal; color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; letter-spacing: 0; }
.cards.svc{ counter-reset: svc; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svcCard{ position: relative; counter-increment: svc; min-height: 280px; background: var(--soft); transition: background .35s ease, border-color .35s ease, transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease; }
.svcCard::before{ content: "0" counter(svc); position: absolute; left: 26px; top: 24px; font-size: 14px; font-weight: 600; opacity: .5; }
.svcCard::after{
  content: "\2197"; position: absolute; right: 22px; top: 18px; width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 17px;
  transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}
.svcCard .cardBody{ padding: 84px 26px 26px; }
.svcCard .cardKind{ display: none; }
.svcCard h2, .svcCard h3{ font-size: 25px; }
.svcCard:hover{ background: var(--ink); border-color: var(--ink); color: rgba(255,255,255,.78); transform: translateY(-6px); box-shadow: 0 24px 44px rgba(17, 17, 17, .24); }
.svcCard:hover h2, .svcCard:hover h3, .svcCard:hover .cardGo{ color: #fff; }
.svcCard:hover::after{ transform: rotate(45deg); }
.tile{ transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.tile:hover{ border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(17, 17, 17, .08); }

@media (max-width: 980px){
  .cards.svc{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .cards.svc{ grid-template-columns: minmax(0, 1fr); }
  .svcCard{ min-height: 0; }
          h1 em{ -webkit-text-stroke-width: 1.6px; }
}
@media (max-width: 380px){
    }

.cards{ counter-reset: svc; }
.cards > li{ counter-increment: svc; }
.svcCard{ counter-increment: none; }
.indexHead p.kind{ margin: 0; font-size: 13px; color: var(--ink); }
.indexHead p.kind + h1{ margin-top: 16px; }
@media (min-width: 981px){
  .cards.two:has(.svcCard){ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Bottom bar: same measurements as the main site's bar (src/Style/navbar.css). */
/* The white pill sits on the hovered item, otherwise on the current page. */
@media (max-width: 650px){
      }
@media (max-width: 480px){
  }
@media (max-width: 380px){
    }
@media (max-width: 650px){
  }

.more.first{ margin-top: 0; }

/* ---------- Card-to-page transition ----------
   When a post card is clicked, its picture grows into the article's main image
   (and shrinks back on the way out). Browsers without support just load the page. */
@view-transition{ navigation: auto; }
::view-transition-group(*){ animation-duration: .5s; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
::view-transition-old(root), ::view-transition-new(root){ animation-duration: .3s; }
@media (prefers-reduced-motion: reduce){
  @view-transition{ navigation: none; }
}

/* ---------- Scroll-in animation (public/site-reveal.js) ---------- */
.js [data-reveal]{ opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .7s cubic-bezier(.22, 1, .36, 1); transition-delay: calc(var(--d, 0) * 70ms); }
.js [data-reveal].isSeen{ opacity: 1; transform: none; }
/* Line drawings sketch themselves once their card is seen */
.wire{ display: block; width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wire .soft{ stroke: #B4B4BC; }
.wire .hot{ stroke: #F2542D; }
.js .wire > *{ stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s ease-in-out; transition-delay: calc(var(--d, 0) * 70ms + .25s); }
.js .wire > .soft{ transition-delay: calc(var(--d, 0) * 70ms + .6s); }
.js .wire > .hot{ transition-delay: calc(var(--d, 0) * 70ms + .95s); }
.js .isSeen .wire > *{ stroke-dashoffset: 0; }

/* ---------- Service cards with a wireframe drawing ---------- */
.cards.svc{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards.svc > li:first-child{ grid-column: span 2; }
.svcCard{ min-height: 0; padding: 10px; }
.svcArt{
  position: relative; height: 168px; padding: 30px 0 22px; border-radius: 14px; background: #fff;
  background-image: radial-gradient(circle, #D8D8DE 1.1px, transparent 1.2px); background-size: 16px 16px; background-position: 8px 8px;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
.svcCard:hover .svcArt{ transform: scale(.985); }
.svcCard:hover .wire{ animation: wireNudge .6s ease; }
@keyframes wireNudge{ 50%{ transform: translateY(-5px); } }
.svcCard::before{ left: 24px; top: 22px; z-index: 1; color: var(--ink); }
.svcCard::after{ right: 20px; top: 18px; z-index: 1; width: 38px; height: 38px; background: var(--soft); }
.svcCard:hover::before{ color: var(--ink); }
.svcCard .cardBody{ padding: 20px 14px 14px; }
.svcCard h2, .svcCard h3{ font-size: 22px; }
.svcCard p{ font-size: 15px; }

/* ---------- "Which service do you need?" finder ---------- */
.block > p.kind{ margin: 0 0 14px; font-size: 13px; color: var(--ink); max-width: none; }
.finder{ list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.finder li{ border-bottom: 1px solid var(--line); }
.finder a{
  position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 46px; align-items: center; gap: 18px;
  padding: 22px 18px; color: var(--ink); text-decoration: none; overflow: hidden; transition: color .35s ease, padding .35s ease;
}
/* a black panel wipes in from the left on hover */
.finder a::before{ content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
.finder a > *{ position: relative; }
.finder a:hover, .finder a:focus-visible{ color: #fff; padding-left: 28px; }
.finder a:hover::before, .finder a:focus-visible::before{ transform: scaleX(1); }
.finderNo{ font-size: 13px; font-weight: 600; opacity: .5; font-variant-numeric: tabular-nums; }
.finderNeed{ font-size: clamp(18px, 2.1vw, 26px); font-weight: 600; line-height: 1.25; letter-spacing: -.025em; }
.finderSvc{ padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--soft); color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .35s ease, border-color .35s ease; }
.finder a:hover .finderSvc{ background: #fff; border-color: #fff; }
.finderGo{ display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); font-size: 18px; transition: transform .4s cubic-bezier(.22, 1, .36, 1), background .35s ease, border-color .35s ease, color .35s ease; }
.finder a:hover .finderGo{ background: #F2542D; border-color: #F2542D; color: #fff; transform: translateX(4px) rotate(-45deg); }

@media (max-width: 1100px){
  .cards.svc{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .cards.svc{ grid-template-columns: minmax(0, 1fr); }
  .cards.svc > li:first-child{ grid-column: auto; }
  .svcArt{ height: 150px; }
  .finder a{ grid-template-columns: minmax(0, 1fr) 40px; gap: 6px 12px; padding: 18px 10px; }
  .finder a:hover{ padding-left: 16px; }
  .finderNo{ display: none; }
  .finderSvc{ grid-column: 1; justify-self: start; font-size: 13px; padding: 6px 12px; }
  .finderGo{ grid-column: 2; grid-row: 1 / span 2; width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce){
  .js [data-reveal]{ opacity: 1; transform: none; transition: none; }
  .js .wire > *{ stroke-dashoffset: 0; transition: none; }
}

/* Service cards: three per row; a card left alone on the last row stretches across,
   with its drawing beside the text. */
.cards.svc > li:first-child{ grid-column: auto; }
@media (min-width: 981px){
  .cards.svc, .cards.two:has(.svcCard){ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards > li:has(.svcCard):last-child:nth-child(3n + 1){ grid-column: 1 / -1; }
  .cards > li:has(.svcCard):last-child:nth-child(3n + 1) .svcCard{ flex-direction: row; align-items: stretch; }
  .cards > li:has(.svcCard):last-child:nth-child(3n + 1) .svcArt{ flex: 0 0 38%; height: auto; min-height: 190px; }
  .cards > li:has(.svcCard):last-child:nth-child(3n + 1) .cardBody{ justify-content: center; padding: 24px 32px; }
  .cards > li:has(.svcCard):last-child:nth-child(3n + 1) h2,
  .cards > li:has(.svcCard):last-child:nth-child(3n + 1) h3{ font-size: 30px; }
  .cards > li:has(.svcCard):last-child:nth-child(3n + 1) p{ font-size: 17px; max-width: 520px; }
  .cards > li:has(.svcCard):last-child:nth-child(3n + 1) .cardGo{ margin-top: 8px; }
}
@media (max-width: 980px) and (min-width: 641px){
  .cards.svc, .cards.two:has(.svcCard){ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards > li:has(.svcCard):last-child:nth-child(odd){ grid-column: 1 / -1; }
}
.svcArt{ display: flex; align-items: center; justify-content: center; }
.svcArt .wire{ width: auto; height: 100%; max-height: 120px; aspect-ratio: 140 / 92; }
