:root {
  --bg: #f5f4ef;
  --ink: #141414;
  --muted: rgba(20, 20, 20, 0.42);
  --line: rgba(20, 20, 20, 0.10);
  --sage: #dfe9df;
  --sage-hover: #cfdccc;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
}

a { color: inherit; }

/* Sidebar -- keep dark Keep look but reskin */
.sidebar {
  background: #141414;
}
.sidebar__inner {
  padding: 56px 44px;
}

/* Logo -- circular PD monogram */
.sidebar .logo {
  font-family: var(--serif);
  font-size: 0;
  text-shadow: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  margin: 0;
  padding: 0;
}
.sidebar .logo a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 1px;
  text-decoration: none;
  text-shadow: none !important;
}
.sidebar .logo:hover {
  color: inherit;
  text-shadow: none !important;
}

/* Sidebar identity block */
.sidebar__name {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin: 36px 0 16px 0;
  color: #fff;
}
.sidebar__bio {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
  margin: 0 0 32px 0;
}

/* Sidebar nav menu (About / My work / Services) */
.sidebar__nav {
  margin: 0 0 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.sidebar__nav ul { padding: 0; margin: 0; list-style: none; }
.sidebar__nav li { padding: 0; margin: 0; }
.sidebar__nav li + li { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.sidebar__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
  text-decoration: none;
  transition: color 0.15s ease, padding-left 0.15s ease;
}
.sidebar__nav a::after {
  content: "\2192";
  opacity: 0.4;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.sidebar__nav a:hover {
  color: var(--sage);
  padding-left: 4px;
}
.sidebar__nav a:hover::after {
  opacity: 1;
  transform: translateX(2px);
}

/* Smooth-scroll + offset for anchor jumps */
html { scroll-behavior: smooth; }
:target { scroll-margin-top: 24px; }

/* ===== Accessibility ===== */

/* Visible focus rings for keyboard users (UX rule #28) */
.sidebar__nav a:focus-visible,
.sidebar__contact:focus-visible,
.lightbox__cta:focus-visible,
.lightbox__close:focus-visible,
.lightbox__nav:focus-visible,
.post--photo .photo:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
  border-radius: 999px;
}
.post--photo .photo:focus-visible {
  border-radius: 0;
  outline-offset: -2px;
  outline-color: #fff;
}

/* Bump sidebar footer text contrast (was 0.4, now 0.6) */
.sidebar__footer { color: rgba(255, 255, 255, 0.55); }
.sidebar__footer a { color: rgba(255, 255, 255, 0.85); }

/* Respect prefers-reduced-motion (UX rule #9). Keep static transforms
   (e.g. CAD zoom crop), only neutralise hover-triggered movement. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .post--cad .photo:hover .photo__img { transform: scale(1.45) !important; }
  .sidebar__contact:hover,
  .lightbox__cta:hover,
  .sidebar__nav a:hover { transform: none !important; }
}

.sidebar__cta-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.sidebar__cta-list li { padding: 0; margin: 0; }

.sidebar__contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  background: var(--sage);
  color: var(--ink) !important;
  padding: 0 20px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.12s ease;
  align-self: flex-start;
}
.sidebar__contact:hover {
  background: var(--sage-hover);
  color: var(--ink) !important;
  transform: translateX(2px);
}
.sidebar__contact:active {
  transform: translateX(2px) scale(0.98);
}
.sidebar__contact svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sidebar__footer {
  margin-top: auto;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.sidebar__footer a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.sidebar__footer a:hover { color: var(--sage); }

/* Page background -- override Keep's white-ish */
.page { background: var(--bg); }

/* Photo cards keep white bg from Keep, with subtle border */
.post {
  background: #fff;
}
.post--photo {
  background: #fff;
}

/* Hover overlay tint -- replace coral */
.photo__overlay {
  background: rgba(20, 20, 20, 0.45) !important;
}
.photo:hover .photo__overlay {
  opacity: 1;
}

/* Info cards (use .post.post--info) */
.post--info .post__inner {
  padding: 32px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.post--info .info-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 16px 0;
}
.post--info ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.3px;
}
.post--info ul li { padding: 4px 0; }
.post--info h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.4px;
  margin: 0 0 14px 0;
  color: inherit;
  text-transform: none;
}
.post--info p {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 12px 0;
}
.post--info--dark p { color: rgba(255, 255, 255, 0.78); }

/* Hero card -- bigger headline, lede subheading */
.post--info--hero {
  background: var(--ink);
  color: #fff;
}
.post--info--hero .post__inner {
  padding: 44px 44px 40px;
  min-height: 0;
  display: block;
}
.post--info--hero .info-eyebrow {
  color: var(--sage);
  margin-bottom: 18px;
}
.post--info--hero .hero-headline {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.6px;
  color: #fff;
  margin: 0 0 18px 0;
}
.post--info--hero .hero-sub {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  max-width: 60ch;
}
@media (max-width: 1023px) {
  .post--info--hero .hero-headline { font-size: 28px; }
}

/* Pain-point cards -- short rhetorical questions */
.post--pain .post__inner {
  padding: 28px 30px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.post--pain h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.4px;
  margin: 0;
}
.post--pain--dark { background: var(--ink); color: #fff; }
.post--pain--dark .info-eyebrow { color: rgba(255, 255, 255, 0.45); }
.post--pain--dark h3 { color: #fff; }

.post--pain--sage { background: var(--sage); color: var(--ink); }
.post--pain--sage .info-eyebrow { color: rgba(20, 20, 20, 0.5); }
.post--pain--sage h3 { color: var(--ink); }

.post--pain--cream {
  background: #faf8f1;
  color: var(--ink);
  border: 1px solid var(--line);
}
.post--pain--cream .info-eyebrow { color: rgba(20, 20, 20, 0.45); }
.post--pain--cream h3 { color: var(--ink); }

/* Service block cards -- the 4 consolidated services */
.post--service .post__inner {
  padding: 30px 30px 32px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}
.post--service .info-eyebrow {
  margin-bottom: 14px;
}
.post--service h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.4px;
  margin: 0 0 14px 0;
}
.post--service p {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.post--service--dark { background: var(--ink); color: #fff; }
.post--service--dark .info-eyebrow { color: rgba(255, 255, 255, 0.45); }
.post--service--dark h3 { color: #fff; }
.post--service--dark p { color: rgba(255, 255, 255, 0.72); }

.post--service--sage { background: var(--sage); color: var(--ink); }
.post--service--sage .info-eyebrow { color: rgba(20, 20, 20, 0.5); }
.post--service--sage p { color: rgba(20, 20, 20, 0.78); }

.post--service--cream {
  background: #faf8f1;
  color: var(--ink);
  border: 1px solid var(--line);
}
.post--service--cream .info-eyebrow { color: rgba(20, 20, 20, 0.45); }
.post--service--cream p { color: rgba(20, 20, 20, 0.78); }

/* Who-this-is-for card -- bullet list of audience */
.post--info--who {
  background: var(--ink);
  color: #fff;
}
.post--info--who .post__inner {
  padding: 36px 40px;
  min-height: 0;
  display: block;
}
.post--info--who h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.4px;
  color: #fff;
  margin: 0 0 22px 0;
}
.post--info--who .info-eyebrow {
  color: var(--sage);
}
.who-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}
.who-list li {
  position: relative;
  padding-left: 22px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}
.who-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--sage);
  font-weight: 700;
}
@media (max-width: 1023px) {
  .who-list { grid-template-columns: 1fr; }
}

/* CTA card -- 3-button layout */
.post--info--cta .cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  background: rgba(20, 20, 20, 0.06);
  color: var(--ink) !important;
  border: 1px solid rgba(20, 20, 20, 0.12);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.12s ease, border-color 0.15s ease;
}
.cta-btn:hover {
  background: rgba(20, 20, 20, 0.1);
  border-color: rgba(20, 20, 20, 0.22);
  transform: translateY(-1px);
}
.cta-btn:active { transform: translateY(0) scale(0.98); }
.cta-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.cta-btn--primary {
  background: var(--ink);
  color: #fff !important;
  border-color: var(--ink);
}
.cta-btn--primary:hover { background: #2a2a2a; border-color: #2a2a2a; }

/* Photo captions -- gradient overlay on the image (dpow.co.uk pattern).
   Caption sits absolutely at the bottom of the photo with a soft
   bottom-to-top gradient instead of a separate dark strip. */
.post--photo .post__inner {
  position: relative;
}
.photo-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 40px 16px 14px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.55) 32%,
    rgba(0, 0, 0, 0.18) 64%,
    rgba(0, 0, 0, 0) 100%
  );
  color: #fff;
  font-family: var(--sans);
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
  z-index: 5;
}
.photo-caption__tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.2;
}
.photo-caption__name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.2px;
  color: #fff;
  line-height: 1.25;
}

/* On hover the photo overlay fades in; lift caption above it */
.photo:hover ~ .photo-caption,
.post--photo:hover .photo-caption {
  z-index: 11;
}

.post--info--dark {
  background: var(--ink);
  color: #fff;
}
.post--info--dark .info-eyebrow { color: rgba(255, 255, 255, 0.4); }

.post--info--cta {
  background: var(--sage);
  color: var(--ink);
}
.post--info--cta .info-eyebrow { color: rgba(20, 20, 20, 0.45); }
.post--info--cta h2 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin: 0 0 16px 0;
}
.post--info--cta p {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 24px 0;
  color: rgba(20, 20, 20, 0.78);
}
.post--info--cta .cta-link {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  align-self: flex-start;
}

/* Mobile header logo -- override coral */
#header .logo {
  font-family: var(--serif) !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: -0.3px !important;
  text-shadow: none !important;
}

/* ============================================================
   Tumblr-style mixed grid: shape variants, CAD zoom, pill cards
   ============================================================ */

/* Tighter column count at typical laptop widths */
@media (min-width: 1100px) {
  .post { width: 25%; }
}
@media (min-width: 1710px) {
  .post { width: 20%; }
}
@media screen and (min-width: 1980px) {
  .post { width: 16.6666%; }
}

/* Grid-sizer -- masonry reads columnWidth from this so wide posts can't skew it */
.grid-sizer {
  width: 33.3333%;
  height: 0;
  padding: 0;
  margin: 0;
  pointer-events: none;
}
@media (min-width: 1100px) { .grid-sizer { width: 25%; } }
@media (min-width: 1710px) { .grid-sizer { width: 20%; } }
@media screen and (min-width: 1980px) { .grid-sizer { width: 16.6666%; } }
@media (max-width: 1023px) { .grid-sizer { width: 50%; } }
@media (max-width: 539px) { .grid-sizer { width: 100%; } }

/* Wide cards span 2 columns */
.post--wide { width: 66.6666% !important; }
@media (min-width: 1100px) { .post--wide { width: 50% !important; } }
@media (min-width: 1710px) { .post--wide { width: 40% !important; } }
@media screen and (min-width: 1980px) {
  .post--wide { width: 33.3333% !important; }
}
@media (max-width: 1023px) {
  .post--wide { width: 100% !important; }
}

/* Photo container -- force aspect ratios with object-fit cover */
.post--photo .photo { overflow: hidden; }

.post--photo--tall      .photo { aspect-ratio: 3 / 4; }
.post--photo--portrait  .photo { aspect-ratio: 4 / 5; }
.post--photo--square    .photo { aspect-ratio: 1 / 1; }
.post--photo--landscape .photo { aspect-ratio: 16 / 10; }
.post--photo--wide-bleed .photo { aspect-ratio: 21 / 9; }

.post--photo--tall      .photo__img,
.post--photo--portrait  .photo__img,
.post--photo--square    .photo__img,
.post--photo--landscape .photo__img,
.post--photo--wide-bleed .photo__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* CAD drawings -- zoomed crop so detailing reads at thumbnail size */
.post--cad { background: #1c1c1c; }
.post--cad .photo {
  overflow: hidden;
  background: #1c1c1c;
}
.post--cad .photo__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.45);
  transform-origin: center;
  transition: transform 0.7s ease;
  display: block;
}
.post--cad .photo:hover .photo__img { transform: scale(1.7); }

.post--cad--portrait  .photo { aspect-ratio: 3 / 4; }
.post--cad--tall      .photo { aspect-ratio: 4 / 5; }
.post--cad--square    .photo { aspect-ratio: 1 / 1; }
.post--cad--landscape .photo { aspect-ratio: 16 / 10; }
.post--cad--strip     .photo { aspect-ratio: 21 / 9; }

/* "View detail" hint on CAD hover */
.post--cad .photo::after {
  content: "View detail";
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(245, 244, 239, 0.94);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10;
  pointer-events: none;
}
.post--cad .photo:hover::after { opacity: 1; transform: translateY(0); }

/* Pill cards -- small service tags scattered through the grid */
.post--pill .post__inner {
  padding: 0;
  min-height: 0;
}
.pill-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 32px;
  min-height: 130px;
  height: 100%;
}
.pill-card__eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 12px 0;
  opacity: 0.55;
}
.pill-card__title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.4px;
  margin: 0;
}

.post--pill--dark { background: var(--ink); color: #fff; }
.post--pill--dark .pill-card__eyebrow { color: rgba(255,255,255,0.5); opacity: 1; }

.post--pill--sage { background: var(--sage); color: var(--ink); }
.post--pill--sage .pill-card__eyebrow { color: rgba(20,20,20,0.5); opacity: 1; }

.post--pill--cream {
  background: #faf8f1;
  color: var(--ink);
  border: 1px solid var(--line);
}
.post--pill--cream .pill-card__eyebrow { color: rgba(20,20,20,0.45); opacity: 1; }

/* Make photo cards feel clickable */
.post--photo .photo { cursor: zoom-in; }

/* ============================================================
   Lightbox modal -- near-fullscreen, blurred backdrop, prev/next
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(20, 20, 20, 0.55);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  backdrop-filter: blur(24px) saturate(120%);
  padding: 28px 24px 24px;
  box-sizing: border-box;
}
.lightbox[data-open="true"] { display: flex; }

.lightbox__stage {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
}
.lightbox__img {
  max-width: min(92vw, 1600px);
  max-width: min(92dvw, 1600px);
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  background: #1c1c1c;
}
.lightbox__bottom {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  width: 100%;
}
.lightbox__caption {
  margin: 0;
  padding: 6px 14px;
  background: rgba(20, 20, 20, 0.45);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  max-width: 80vw;
  max-width: 80dvw;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lightbox__caption:empty { display: none; }
.lightbox__cta-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.lightbox__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  background: var(--sage);
  color: var(--ink) !important;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.12s ease;
}
.lightbox__cta:hover {
  background: var(--sage-hover);
  transform: translateY(-1px);
}
.lightbox__cta:active {
  transform: translateY(0) scale(0.98);
}
.lightbox__cta svg { width: 16px; height: 16px; flex-shrink: 0; }
.lightbox__close,
.lightbox__nav {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-family: var(--sans);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
  z-index: 1002;
}
.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.20);
}
.lightbox__close {
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  padding: 0;
}
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  padding: 0;
}
.lightbox__close svg,
.lightbox__nav svg { display: block; }
.lightbox__nav:hover {
  transform: translateY(-50%) scale(1.05);
}
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }
.lightbox__nav[hidden] { display: none; }

@media (max-width: 539px) {
  .lightbox__nav { width: 44px; height: 44px; font-size: 18px; }
  .lightbox__nav--prev { left: 12px; }
  .lightbox__nav--next { right: 12px; }
  .lightbox__close { top: 12px; right: 12px; }
  .lightbox { padding: 12px; }
}

body.lightbox-open { overflow: hidden; }

/* ============================================================
   Services modal -- triggered from sidebar Services link
   ============================================================ */
.services-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20, 20, 20, 0.55);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  backdrop-filter: blur(24px) saturate(120%);
  padding: 28px 24px;
  box-sizing: border-box;
  overflow-y: auto;
}
.services-modal[data-open="true"] { display: flex; }

.services-modal__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  z-index: 1002;
}
.services-modal__close:hover { background: rgba(255, 255, 255, 0.20); }
.services-modal__close svg { display: block; }

.services-modal__panel {
  width: 100%;
  max-width: 1100px;
  background: var(--bg);
  color: var(--ink);
  border-radius: 6px;
  padding: 56px 56px 40px;
  margin: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.services-modal__eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.45);
  margin: 0 0 14px 0;
}
.services-modal__title {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.6px;
  margin: 0 0 16px 0;
}
.services-modal__lede {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: rgba(20, 20, 20, 0.78);
  max-width: 60ch;
  margin: 0 0 36px 0;
}
.services-modal__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.services-modal__grid section h3 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.45);
  margin: 0 0 14px 0;
}
.services-modal__grid section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}
.services-modal__grid section li {
  padding: 4px 0;
  border-bottom: 1px solid rgba(20, 20, 20, 0.05);
}
.services-modal__grid section li:last-child { border-bottom: 0; }
.services-modal__cta-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .services-modal__panel { padding: 40px 28px 28px; }
  .services-modal__title { font-size: 30px; }
  .services-modal__grid { grid-template-columns: 1fr; gap: 28px; }
}

body.services-modal-open { overflow: hidden; }

/* ============================================================
   Sidebar Fixed-Price card -- primary CTA above contact pills
   ============================================================ */
.price-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  align-items: center;
  gap: 4px 12px;
  width: 100%;
  margin: 0 0 18px 0;
  padding: 18px 20px;
  background: var(--sage);
  color: var(--ink);
  border: 0;
  border-radius: 0;
  font-family: var(--sans);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}
.price-card:hover {
  background: var(--sage-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.price-card:active { transform: translateY(0) scale(0.99); }
.price-card:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.price-card__badge {
  grid-column: 1 / 2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.55);
}
.price-card__title {
  grid-column: 1 / 2;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.5px;
  color: var(--ink);
}
.price-card__meta {
  grid-column: 1 / 2;
  font-size: 12px;
  font-weight: 500;
  color: rgba(20, 20, 20, 0.6);
}
.price-card__arrow {
  grid-column: 2 / 3;
  grid-row: 1 / 4;
  align-self: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  transition: transform 0.15s ease;
}
.price-card:hover .price-card__arrow { transform: translateX(3px); }

/* ============================================================
   Price modal -- mirrors dpow.co.uk OaaS section
   ============================================================ */
.price-modal__panel {
  background: var(--ink);
  color: #fff;
  padding: 56px 56px 40px;
}
.price-modal__badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--sage);
  background: rgba(223, 233, 223, 0.08);
  padding: 7px 12px;
  border-radius: 999px;
  margin: 0 0 22px 0;
}
.price-modal .services-modal__title {
  color: #fff;
  font-size: 44px;
  margin-bottom: 18px;
}
.price-modal .services-modal__lede {
  color: rgba(255, 255, 255, 0.72);
  max-width: 60ch;
  margin: 0 0 32px 0;
}
.price-modal__price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.price-modal__price {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.6px;
  color: #fff;
}
.price-modal__price-meta {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.price-modal__note {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
  margin: 12px 0 28px 0;
  max-width: 60ch;
}
.price-modal__cta-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  margin: 0 0 32px 0;
}
.price-modal__features-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 16px 0;
}
.price-modal__features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 28px;
}
.price-modal__features li {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  padding-left: 22px;
  position: relative;
}
.price-modal__features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--sage);
  font-weight: 700;
}
.price-modal__features li strong {
  color: #fff;
  font-weight: 600;
}
.price-modal__slot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  width: fit-content;
}
.price-modal__slot-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 0 rgba(223, 233, 223, 0.7);
  animation: price-slot-pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes price-slot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(223, 233, 223, 0.5); }
  70%  { box-shadow: 0 0 0 12px rgba(223, 233, 223, 0); }
  100% { box-shadow: 0 0 0 0 rgba(223, 233, 223, 0); }
}

@media (max-width: 900px) {
  .price-modal__panel { padding: 40px 28px 28px; }
  .price-modal .services-modal__title { font-size: 32px; }
  .price-modal__price { font-size: 32px; }
  .price-modal__features { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .price-modal__slot-dot { animation: none; }
}

/* ============================================================
   Work modal -- chronological project list opened from My work
   ============================================================ */
.work-modal__panel {
  background: var(--ink);
  color: #fff;
  padding: 56px 56px 40px;
}
.work-modal .services-modal__title {
  color: #fff;
  font-size: 40px;
}
.work-modal .services-modal__eyebrow {
  color: var(--sage);
}
.work-modal .services-modal__lede {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 32px;
}

.work-rows {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.work-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  align-items: baseline;
}
.work-row:hover { background: rgba(255, 255, 255, 0.02); }
.work-row__year {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}
.work-row__main { min-width: 0; }
.work-row__title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 4px;
}
.work-row__title strong {
  font-weight: 600;
  color: #fff;
}
.work-row__credits {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.5);
}

.work-modal__cta-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 28px;
  margin-top: 0;
}

@media (max-width: 700px) {
  .work-modal__panel { padding: 40px 24px 28px; }
  .work-modal .services-modal__title { font-size: 28px; }
  .work-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 0;
  }
  .work-row__year { margin-bottom: 2px; }
}

/* ============================================================
   About modal -- portrait + bio + stats, opened from sidebar About
   ============================================================ */
.about-modal__panel {
  background: var(--bg);
  color: var(--ink);
  padding: 0;
  max-width: 1100px;
  overflow: hidden;
}
.about-modal__grid {
  display: grid;
  grid-template-columns: minmax(280px, 42%) 1fr;
  align-items: stretch;
}
.about-modal__portrait {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #1c1c1c;
  min-height: 100%;
}
.about-modal__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-modal__portrait-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 44px 22px 20px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.5) 38%,
    rgba(0, 0, 0, 0) 100%
  );
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--sans);
}
.about-modal__role {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.2;
}
.about-modal__name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: #fff;
  line-height: 1.2;
}
.about-modal__body {
  padding: 48px 48px 40px;
}
.about-modal .services-modal__eyebrow {
  color: rgba(20, 20, 20, 0.45);
  margin-bottom: 14px;
}
.about-modal .services-modal__title {
  color: var(--ink);
  font-size: 36px;
  margin-bottom: 24px;
}
.about-modal__copy p {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(20, 20, 20, 0.78);
  margin: 0 0 14px 0;
}
.about-modal__copy p:last-child { margin-bottom: 0; }

.about-modal__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-modal__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
}
.about-modal__stat:last-child { border-right: 0; }
.about-modal__stat-number {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.4px;
  color: var(--ink);
  line-height: 1;
}
.about-modal__stat-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.5);
}
.about-modal__cta-bar {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

@media (max-width: 900px) {
  .about-modal__grid { grid-template-columns: 1fr; }
  .about-modal__portrait { aspect-ratio: 4 / 5; max-height: 360px; }
  .about-modal__body { padding: 36px 28px 28px; }
  .about-modal .services-modal__title { font-size: 26px; }
  .about-modal__stats { grid-template-columns: repeat(2, 1fr); }
  .about-modal__stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .about-modal__stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .about-modal__stat:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ============================================================
   MOBILE LAYOUT (<= 719px) -- ADDITIVE ONLY. Desktop and tablet
   (>= 720px) are never touched: the Keep sidebar already hides
   at <= 719px, and all rules below are scoped to phones.
   Pattern: Pinterest-style 2-column image grid, fixed hamburger
   top bar (About / My work / Services / Fixed Price), and a fixed
   bottom contact bar (WhatsApp / Book / Email).
   ============================================================ */
@media screen and (max-width: 719px) {

  /* ---- Fixed top bar (reuses Keep's #header, which only shows here) ---- */
  #header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 10px 56px;            /* leave room for the burger on the left */
    background: var(--bg);
    box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(20, 20, 20, 0.05);
  }
  #header .logo {
    margin: 0;
    font-size: 18px !important;
  }
  #header .logo a { color: var(--ink); text-decoration: none; }

  /* Hamburger */
  .m-burger {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 42px; height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .m-burger__bars { position: relative; display: block; width: 22px; height: 16px; }
  .m-burger__bars span {
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
  }
  .m-burger__bars span:nth-child(1) { top: 0; }
  .m-burger__bars span:nth-child(2) { top: 7px; }
  .m-burger__bars span:nth-child(3) { top: 14px; }
  .m-burger[aria-expanded="true"] .m-burger__bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
  .m-burger[aria-expanded="true"] .m-burger__bars span:nth-child(2) { opacity: 0; }
  .m-burger[aria-expanded="true"] .m-burger__bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

  /* ---- Slide-down nav panel ---- */
  .m-nav {
    display: block;
    position: fixed;
    top: 54px; left: 0; right: 0;
    z-index: 899;
    background: var(--ink);
    padding: 10px 16px 18px;
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.28s ease, opacity 0.22s ease, visibility 0s linear 0.28s;
  }
  .m-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.28s ease, opacity 0.22s ease;
  }
  .m-nav__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 2px;
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    text-align: left;
    cursor: pointer;
  }
  .m-nav__item--cta {
    margin-top: 12px;
    border-bottom: 0;
    background: var(--sage);
    color: var(--ink);
    border-radius: 10px;
    padding: 16px 18px;
    font-family: var(--serif);
    font-size: 20px;
  }
  .m-nav__arrow { font-weight: 600; }

  .m-nav__scrim {
    position: fixed;
    inset: 54px 0 0 0;
    z-index: 898;
    background: rgba(20, 20, 20, 0.42);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }

  /* ---- Offset the grid so the fixed bars never cover content ---- */
  .page__inner {
    padding-top: 66px !important;
    padding-bottom: calc(74px + env(safe-area-inset-bottom)) !important;
  }

  /* ============================================================
     Pinterest-style grid: EVERY tile is 2 columns (images and the
     text/pain/service/pill/cta cards alike) so the grid packs with
     no blank gaps. Only the hero spans full width - it is the first
     tile, so a full-width row there leaves no hole.
     ============================================================ */
  .grid-sizer { width: 50%; }
  /* .page__inner prefix raises specificity above the desktop .post--wide rule */
  .page__inner .post { width: 50% !important; }
  .page__inner .post--info--hero { width: 100% !important; }

  /* Tight gutters between all tiles */
  .post__inner { padding: 6px; }

  /* Text tiles: compact padding + smaller type so they read in a half-width tile */
  .post--pain .post__inner,
  .post--service .post__inner,
  .post--pill .post__inner,
  .post--info--cta .post__inner,
  .post--info--who .post__inner { padding: 18px 16px; min-height: 0; }
  .pill-card { padding: 18px 16px; min-height: 0; }

  .post--pain h3 { font-size: 18px; line-height: 1.2; }
  .post--service h3 { font-size: 18px; margin-bottom: 10px; }
  .post--service p { font-size: 13px; }
  .post--pill .pill-card__title { font-size: 19px; }
  .post--info--cta h2,
  .post--info--who h2 { font-size: 19px; }
  .post--info--cta p { font-size: 13px; margin-bottom: 16px; }
  .who-list { grid-template-columns: 1fr; gap: 6px; }
  .who-list li { font-size: 13px; }
  .cta-btn { font-size: 12px; padding: 0 12px; min-height: 40px; }

  /* Hero stays a full-width banner at the top */
  .post--info--hero .post__inner { padding: 30px 22px 26px; }
  .post--info--hero .hero-headline { font-size: 26px; }

  /* ---- Fixed bottom contact bar ---- */
  .m-actionbar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 900;
    gap: 6px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: var(--bg);
    box-shadow: 0 -1px 0 var(--line), 0 -8px 22px rgba(20, 20, 20, 0.07);
  }
  .m-actionbar__btn {
    flex: 1 1 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 52px;
    border-radius: 12px;
    background: var(--sage);
    color: var(--ink) !important;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  .m-actionbar__btn svg { width: 20px; height: 20px; }
  .m-actionbar__btn:active { background: var(--sage-hover); }

  /* When a modal or the lightbox is open, get the bars out of the way */
  body.lightbox-open #header,
  body.services-modal-open #header,
  body.lightbox-open .m-actionbar,
  body.services-modal-open .m-actionbar { display: none; }
}

/* Hide the mobile-only chrome on tablet + desktop (>= 720px) */
@media screen and (min-width: 720px) {
  .m-burger,
  .m-nav,
  .m-nav__scrim,
  .m-actionbar { display: none !important; }
}

/* ============================================================
   Timed contact nudge popup. Slides up bottom-right after a delay
   (JS-driven), shows once per visitor (localStorage), and is
   dismissible. Shown on >=720px only - phones use the bottom bar.
   ============================================================ */
.cta-pop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 950;
  width: 330px;
  max-width: calc(100vw - 32px);
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 52px rgba(20, 20, 20, 0.22);
  padding: 24px 24px 22px;
  opacity: 0;
  transform: translateY(18px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
}
.cta-pop.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.cta-pop__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.cta-pop__close:hover { background: rgba(20, 20, 20, 0.06); color: var(--ink); }
.cta-pop__close svg { display: block; }
.cta-pop__eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.5);
  margin: 0 0 8px;
}
.cta-pop__title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.3px;
  margin: 0 0 8px;
  padding-right: 20px;
}
.cta-pop__text {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(20, 20, 20, 0.7);
  margin: 0 0 18px;
}
.cta-pop__btns { display: flex; gap: 8px; }
.cta-pop__btn {
  flex: 1 1 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 54px;
  border-radius: 11px;
  background: var(--sage);
  color: var(--ink) !important;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.12s ease;
}
.cta-pop__btn:hover { background: var(--sage-hover); transform: translateY(-1px); }
.cta-pop__btn:active { transform: translateY(0) scale(0.98); }
.cta-pop__btn svg { width: 18px; height: 18px; }

/* On phones the popup is a bottom sheet, sitting just above the fixed
   action bar (which is ~70px tall + safe area) so the two never overlap. */
@media screen and (max-width: 719px) {
  .cta-pop {
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    bottom: calc(84px + env(safe-area-inset-bottom));
    padding: 18px 18px 16px;
  }
  /* Keep it out of the way while a modal or the lightbox is open */
  body.lightbox-open .cta-pop,
  body.services-modal-open .cta-pop { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-pop { transform: none; transition: opacity 0.2s ease, visibility 0s linear 0.2s; }
  .cta-pop.is-open { transform: none; transition: opacity 0.2s ease; }
}
