/* ============================================================
   Master CMS — nem structural family (nemCMS)
   Started from the Contour family and reworked for nemCMS: no
   contour-line motif, coral buttons with dark text, uppercase
   eyebrows, a split hero with the image beside the headline, and
   calm sage sections. See the nem overrides at the end of the file.
   ------------------------------------------------------------
   Original Contour notes follow.
   Built on the Studio layouts (header, footer, blog, posts, case
   studies), with its own look: a deep "ink" header and hero with
   map-style contour lines, Sora headings, soft rounded cards, pill
   buttons and calm light sections. Loaded after theme-studio.css
   when the active theme's family is "contour".

   Every colour comes from the active theme, so the four Contour
   themes (and any new one) restyle the whole site:
     --color-dark       ink: header, hero, footer, dark cards, text
     --color-primary    buttons, links, highlights, the big service card
     --color-accent     primary on hover
     --color-highlight  small accents on dark backgrounds (chips, ring)
     --color-background light section background
     --color-line       borders, image placeholders
   ============================================================ */

.theme-nem {
  --nm-ink: var(--color-dark);
  --nm-soft: color-mix(in srgb, var(--color-primary) 8%, #fff);
  --nm-muted: color-mix(in srgb, var(--color-dark) 78%, #fff);
  --nm-on-dark: color-mix(in srgb, #fff 80%, var(--color-dark));
  --nm-line-dark: color-mix(in srgb, #fff 16%, var(--color-dark));
  --nm-wrap: 1280px;
  --nm-gutter: max(1.25rem, calc((100% - var(--nm-wrap)) / 2));
  --studio-surface: var(--color-background);
  --studio-muted: var(--nm-muted);
  --nm-contours: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 760' preserveAspectRatio='xMidYMid slice'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.3'%3E%3Cellipse cx='1080' cy='380' rx='90' ry='60'/%3E%3Cellipse cx='1080' cy='380' rx='170' ry='115'/%3E%3Cellipse cx='1090' cy='385' rx='260' ry='175'/%3E%3Cellipse cx='1100' cy='390' rx='360' ry='245'/%3E%3Cellipse cx='1110' cy='395' rx='470' ry='320'/%3E%3Cellipse cx='1120' cy='400' rx='590' ry='400'/%3E%3Cellipse cx='1130' cy='405' rx='720' ry='490'/%3E%3Cellipse cx='1140' cy='410' rx='860' ry='585'/%3E%3C/g%3E%3C/svg%3E");
}

.theme-nem body { font-family: var(--font-body); font-size: 17px; line-height: 1.65; color: var(--nm-ink); background: #fff; }
.theme-nem h1, .theme-nem h2, .theme-nem h3, .theme-nem h4 { font-family: var(--font-heading); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; color: inherit; }
.theme-nem h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); letter-spacing: -.045em; }
.theme-nem h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
.theme-nem h3 { font-size: 1.3rem; letter-spacing: -.02em; }
.theme-nem a { color: var(--color-primary); }
.theme-nem ::selection { background: var(--color-primary); color: #fff; }

/* *Accent* words: the highlight colour with a hand-drawn underline (no tilted block) */
.theme-nem .accent-word {
  font-style: normal; color: var(--color-highlight); background: none; transform: none; padding: 0;
  background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat;
  background-size: 100% .09em; background-position: 0 92%;
}
.theme-nem .block-banner-bold .accent-word, .theme-nem .contact-split h1 .accent-word { color: var(--color-highlight); background-color: transparent; }
.theme-nem .block:not(.block-banner-bold):not(.block-steps):not(.contact-split) .accent-word,


/* ---- Buttons: pills ---- */
.theme-nem .btn { border-radius: 999px; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; text-transform: none; padding: .95rem 1.6rem; transition: transform .2s var(--motion-easing), background .2s, color .2s; }
.theme-nem .btn:hover { transform: var(--hover-btn); }
.theme-nem .btn-primary { background: var(--color-primary); color: #fff; border: 0; }
.theme-nem .btn-primary:hover { background: var(--color-accent); color: #fff; }
.theme-nem .btn-secondary { background: transparent; color: var(--nm-ink); border: 1.5px solid var(--nm-ink); }
.theme-nem .btn-secondary:hover { background: var(--nm-ink); color: #fff; }
.theme-nem .btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.85); }
.theme-nem .btn-ghost:hover { background: #fff; color: var(--nm-ink); }

/* ---- Header ---- */
.theme-nem .site-header { background: var(--nm-ink); border-bottom: 1px solid var(--nm-line-dark); padding-top: .9rem; padding-bottom: .9rem; gap: 1.5rem; }
.theme-nem .site-header .logo svg { height: 38px; width: auto; display: block; }
.theme-nem .main-nav a { color: #fff; font-weight: 500; font-size: .97rem; }
.theme-nem .main-nav a:hover, .theme-nem .main-nav a:focus-visible { color: var(--color-highlight); }
.theme-nem .mega-menu { border-radius: 18px; background: #fff; box-shadow: 0 24px 50px -20px rgba(0,0,0,.35); }
.theme-nem .mega-menu-item, .theme-nem .main-nav .mega-menu a { color: var(--nm-ink); border-radius: 10px; }
.theme-nem .mega-menu-item:hover, .theme-nem .main-nav .mega-menu a:hover { background: var(--nm-soft); color: var(--color-primary); }
.theme-nem .header-phone { color: var(--nm-on-dark); text-decoration: none; font-weight: 500; white-space: nowrap; margin-left: auto; }
.theme-nem .header-phone:hover { color: #fff; }
.theme-nem .site-header > .header-cta { background: var(--color-highlight); color: var(--nm-ink); border-radius: 999px; padding: .7rem 1.3rem; }
.theme-nem .site-header > .header-cta:hover { background: #fff; color: var(--nm-ink); }
@media (max-width: 1100px) { .theme-nem .header-phone { display: none; } }

/* ---- Sections ---- */
.theme-nem .block { padding-left: var(--nm-gutter); padding-right: var(--nm-gutter); }
.theme-nem .eyebrow, .theme-nem .bold-eyebrow, .theme-nem .eyebrow-on-banner {
  display: inline-block; font-family: var(--font-body); font-size: .85rem; font-weight: 700; letter-spacing: .02em; text-transform: none;
  color: var(--color-primary); background: var(--nm-soft); padding: .4rem .85rem; border-radius: 999px;
}

/* ---- Hero (Banner, "Bold" layout): ink with contour lines ---- */
.theme-nem .block-banner.block-banner-bold { position: relative; overflow: hidden; background: var(--nm-ink); color: #fff; padding-top: clamp(4.5rem, 9vw, 7.5rem); padding-bottom: clamp(4.5rem, 9vw, 7.5rem); border-radius: 0; }
.theme-nem .block-banner-bold::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--color-highlight); opacity: .3;
  -webkit-mask: var(--nm-contours) right center / cover no-repeat; mask: var(--nm-contours) right center / cover no-repeat;
}
.theme-nem .block-banner-bold .bold-orb { display: none; }
.theme-nem .block-banner-bold .bold-inner { position: relative; max-width: 900px; }
.theme-nem .block-banner-bold .bold-eyebrow { background: color-mix(in srgb, var(--color-highlight) 16%, transparent); color: var(--color-highlight); border: 1px solid color-mix(in srgb, var(--color-highlight) 35%, transparent); }
.theme-nem .block-banner-bold h1 { color: #fff; font-size: clamp(2.6rem, 6.2vw, 5rem); margin: 1.4rem 0 0; max-width: 16ch; }
.theme-nem .block-banner-bold .bold-foot { display: block; }
.theme-nem .block-banner-bold .bold-sub { color: var(--nm-on-dark); font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.55; max-width: 620px; margin: 1.5rem 0 0; }
.theme-nem .block-banner-bold .banner-ctas { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.theme-nem .block-banner-bold .btn-primary { background: var(--color-primary); }
.theme-nem .block-banner-bold.bold-compact { padding-top: clamp(3.2rem, 6vw, 4.8rem); padding-bottom: clamp(3.2rem, 6vw, 4.8rem); }
.theme-nem .block-banner-bold.bold-compact h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); max-width: 22ch; }
.theme-nem .block-banner-bold .bold-media { position: relative; margin-top: 3rem; border-radius: 28px; overflow: hidden; }
.theme-nem .page-title-banner { background: var(--nm-ink); color: #fff; }
.theme-nem .page-title-banner h1 { color: #fff; }

/* Ticker → a quiet row of town chips under the hero */
.theme-nem .block.block-ticker { padding-top: 0; padding-bottom: 0; }
.theme-nem .block-ticker .ticker-band { background: var(--nm-ink); color: var(--nm-on-dark); border-top: 1px solid var(--nm-line-dark); transform: none; padding: .9rem 0; }
.theme-nem .block-ticker.ticker-light .ticker-band { background: var(--nm-ink); }
.theme-nem .block-ticker .ticker-item { border: 1px solid var(--nm-line-dark); border-radius: 999px; padding: .35rem .9rem; font-size: .92rem; font-weight: 500; font-family: var(--font-body); letter-spacing: 0; text-transform: none; }
.theme-nem .block-ticker .ticker-sep { opacity: 0; width: .4rem; }

/* ---- Text ---- */
.theme-nem .block-text { display: block; max-width: calc(820px + 2 * var(--nm-gutter)); margin: 0 auto; padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.theme-nem .block-text + .block-text { padding-top: 0; }
.theme-nem .block-text h2 { margin: 0 0 1rem; position: static; max-width: none; }
.theme-nem .block-text > * { max-width: none; }
.theme-nem .block-text h3 { margin: 2rem 0 .75rem; }
.theme-nem .block-text p, .theme-nem .block-text li { color: var(--nm-muted); font-size: 1.08rem; line-height: 1.75; }
.theme-nem .ct-checklist { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .7rem; }
.theme-nem .ct-checklist li { background: var(--color-background); border-radius: 14px; padding: .85rem 1rem .85rem 2.8rem; position: relative; color: var(--nm-ink); font-weight: 500; font-size: 1rem; }
.theme-nem .ct-checklist li::before { content: ""; position: absolute; left: 1rem; top: 50%; width: 1.1rem; height: 1.1rem; margin-top: -.55rem; border-radius: 50%; background: var(--color-primary); -webkit-mask: radial-gradient(circle, #000 0 32%, transparent 34% 52%, #000 54%); mask: radial-gradient(circle, #000 0 32%, transparent 34% 52%, #000 54%); }
.theme-nem .ct-table-wrap { overflow-x: auto; margin-top: 1.8rem; border: 1px solid var(--color-line); border-radius: 20px; }
.theme-nem .ct-compare { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 1rem; }
.theme-nem .ct-compare th { background: var(--color-background); text-align: center; padding: 1rem; font-family: var(--font-heading); font-size: 1rem; }
.theme-nem .ct-compare th:first-child, .theme-nem .ct-compare td:first-child { text-align: left; padding-left: 1.4rem; }
.theme-nem .ct-compare td { border-top: 1px solid var(--color-line); padding: .85rem 1rem; text-align: center; color: var(--nm-ink); }
.theme-nem .ct-compare .ct-yes { color: var(--color-primary); font-weight: 700; }
.theme-nem .ct-compare .ct-no { color: var(--nm-muted); }

.theme-nem .ct-center { text-align: center; max-width: 720px; margin: 0 auto; }
.theme-nem .ct-center h2 { margin: .8rem 0 .6rem; }
.theme-nem .block-text:has(+ .block-pricing-table) { padding-bottom: 0; }
.theme-nem .block-pricing-table + .block-text { padding-top: 0; }

/* Single column for text sections (Studio sets a heading-beside-text grid) */
@media (min-width: 1000px) {
  .theme-nem .block-text:has(> h2:first-child) { display: block; }
  .theme-nem .block-text:has(> h2:first-child) > * { max-width: none; }
  .theme-nem .block-text:has(> h2:first-child) > h2:first-child { position: static; max-width: 24ch; margin: 0 0 1rem; font-size: clamp(1.9rem, 3vw, 2.6rem); }
}

/* ---- Image + text ---- */
.theme-nem .block-image-text { gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.theme-nem .block-image-text + .block-image-text { padding-top: 0; }
.theme-nem .block-image-text img { border-radius: 28px; background: var(--color-background); box-shadow: none; }
.theme-nem .block-image-text .block-copy h2 { margin: 0 0 1rem; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.theme-nem .block-image-text .block-copy p, .theme-nem .block-image-text .block-copy li { color: var(--nm-muted); line-height: 1.75; }

.theme-nem .block-image-text svg.theme-art { display: block; width: 100%; height: auto; border-radius: 28px; }
.theme-nem .ct-lead { font-size: 1.22rem !important; line-height: 1.7 !important; color: var(--nm-ink) !important; }

/* ---- Services list ---- */
.theme-nem .block-services-list { padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.theme-nem .section-head { margin-bottom: 2.4rem; }
.theme-nem .section-head h2 { max-width: 20ch; margin: .8rem 0 0; }
.theme-nem .section-link { color: var(--color-primary); font-weight: 700; text-decoration: none; }
.theme-nem .svc-layout-grid .svc-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.1rem; }
.theme-nem .svc-card { background: var(--nm-soft); color: var(--nm-ink); border-radius: 28px; padding: 2rem; display: flex; flex-direction: column; gap: .8rem; text-decoration: none; border: 0; box-shadow: none; transition: transform .25s var(--motion-easing); }
.theme-nem .svc-card:hover { transform: var(--hover-card); }
.theme-nem .svc-card-num { font-family: var(--font-heading); font-weight: 700; color: var(--color-primary); font-size: .95rem; }
.theme-nem .svc-card-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.45rem; letter-spacing: -.025em; line-height: 1.15; color: var(--nm-ink); }
.theme-nem .svc-card-text { color: var(--nm-muted); font-size: 1rem; line-height: 1.55; }
.theme-nem .svc-card-more { margin-top: auto; color: var(--color-primary); font-weight: 700; display: inline-flex; gap: .4rem; align-items: center; }
.theme-nem .svc-layout-grid .svc-card:first-child { background: var(--color-primary); color: #fff; grid-column: span 2; min-height: 250px; justify-content: flex-end; }
.theme-nem .svc-layout-grid .svc-card:first-child .svc-card-title { color: #fff; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.theme-nem .svc-layout-grid .svc-card:first-child .svc-card-text, .theme-nem .svc-layout-grid .svc-card:first-child .svc-card-num { color: color-mix(in srgb, #fff 85%, var(--color-primary)); }
.theme-nem .svc-layout-grid .svc-card:first-child .svc-card-more { color: #fff; }
@media (max-width: 640px) { .theme-nem .svc-layout-grid .svc-card:first-child { grid-column: auto; } }
.theme-nem .svc-layout-rows .svc-row { border-top: 1px solid var(--color-line); color: var(--nm-ink); text-decoration: none; padding: 1.3rem 0; }
.theme-nem .svc-row-num { color: var(--color-primary); font-family: var(--font-heading); font-weight: 700; }
.theme-nem .svc-row-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; }
.theme-nem .svc-row-sub { color: var(--nm-muted); }
.theme-nem .svc-row:hover .svc-row-title { color: var(--color-primary); }

/* ---- Stats ---- */
.theme-nem .block-stats-band { background: var(--color-background); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; padding-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.theme-nem .stat { background: #fff; border-radius: 22px; padding: 1.6rem 1.8rem; text-align: left; align-items: flex-start; }
.theme-nem .stat-badge { background: none; padding: 0; width: auto; height: auto; border-radius: 0; }
.theme-nem .stat-value { font-family: var(--font-heading); color: var(--color-primary); font-size: 2.4rem; font-weight: 700; letter-spacing: -.03em; }
.theme-nem .stat-label { color: var(--nm-muted); font-size: 1rem; }

/* ---- Pricing table ---- */
.theme-nem .block-pricing-table { gap: 1.1rem; padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); align-items: stretch; }
.theme-nem .pricing-col { background: #fff; border: 1.5px solid var(--color-line); border-radius: 28px; padding: 2rem; box-shadow: 0 24px 50px -34px rgba(0,0,0,.3); display: flex; flex-direction: column; text-align: left; }
.theme-nem .pricing-col:nth-child(2n) { background: var(--nm-ink); color: #fff; border-color: var(--nm-ink); }
.theme-nem .pricing-col h3 { font-size: 1.2rem; margin: 0; }
.theme-nem .pricing-col .price { font-family: var(--font-heading); font-size: 2.9rem; font-weight: 700; letter-spacing: -.035em; color: inherit; margin: .9rem 0 0; }
.theme-nem .pricing-col .price-one-off { color: var(--nm-muted); margin: .1rem 0 0; font-size: .95rem; }
.theme-nem .pricing-col:nth-child(2n) .price-one-off, .theme-nem .pricing-col:nth-child(2n) li { color: var(--nm-on-dark); }
.theme-nem .pricing-col ul { margin: 1.3rem 0 1.6rem; padding: 0; list-style: none; display: grid; gap: .55rem; }
.theme-nem .pricing-col li { color: var(--nm-muted); display: flex; gap: .55rem; align-items: flex-start; font-size: .98rem; }
.theme-nem .pricing-col li svg { color: var(--color-primary); flex: none; margin-top: .3rem; }
.theme-nem .pricing-col:nth-child(2n) li svg { color: var(--color-highlight); }
.theme-nem .pricing-col .btn { margin-top: auto; text-align: center; }
.theme-nem .pricing-col:nth-child(2n) .btn-primary { background: var(--color-highlight); color: var(--nm-ink); }

/* ---- Latest posts ---- */
.theme-nem .block-latest-posts { background: var(--color-background); padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.theme-nem .post-cards { gap: 1.4rem; }
.theme-nem .post-card { background: #fff; border-radius: 24px; overflow: hidden; text-decoration: none; color: var(--nm-ink); padding-bottom: 1.4rem; }
.theme-nem .post-card-media { border-radius: 0; }
.theme-nem .post-card-date, .theme-nem .post-card-title { padding: 0 1.4rem; }
.theme-nem .post-card-date { color: var(--nm-muted); font-size: .88rem; margin-top: 1.1rem; }
.theme-nem .post-card-title { font-family: var(--font-heading); font-weight: 600; font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.3; }
.theme-nem .post-card:hover .post-card-title { color: var(--color-primary); }

/* ---- Steps ---- */
.theme-nem .block-steps.steps-dark { background: var(--nm-ink); color: #fff; }
.theme-nem .block-steps .step-num { color: var(--color-highlight); font-family: var(--font-heading); }
.theme-nem .block-steps.steps-dark .step { border-top: 2px solid var(--color-highlight); }
.theme-nem .block-steps.steps-dark .step-text { color: var(--nm-on-dark); }

/* ---- Feature grid ---- */
.theme-nem .feature-item { background: var(--nm-soft); border-radius: 24px; border: 0; }
.theme-nem .feature-icon { color: var(--color-primary); background: #fff; border-radius: 14px; }

/* ---- Call to action band ---- */
.theme-nem .block-cta-scroller:not(.cta-photo-band) {
  position: relative; overflow: hidden; background: var(--color-primary); color: #fff; border-radius: 28px;
  margin: clamp(2.5rem, 5vw, 4rem) var(--nm-gutter); padding: clamp(2.2rem, 4vw, 3.4rem) clamp(1.6rem, 4vw, 3.2rem);
  display: flex; flex-wrap: wrap; gap: 1.6rem 2rem; align-items: center; justify-content: space-between;
}
.theme-nem .block-cta-scroller:not(.cta-photo-band)::before { content: ""; position: absolute; inset: 0; background: #fff; opacity: .14; -webkit-mask: var(--nm-contours) right center / cover no-repeat; mask: var(--nm-contours) right center / cover no-repeat; pointer-events: none; }
.theme-nem .block-cta-scroller h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0; max-width: 24ch; position: relative; }
.theme-nem .block-cta-scroller .cta-copy { position: relative; flex: 1 1 420px; }
.theme-nem .block-cta-scroller .cta-text { color: color-mix(in srgb, #fff 86%, var(--color-primary)); margin: .7rem 0 0; max-width: 60ch; }
.theme-nem .block-cta-scroller .btn.btn-primary { position: relative; background: #fff; color: var(--nm-ink); }
.theme-nem .block-cta-scroller .btn.btn-primary:hover { background: var(--nm-ink); color: #fff; }

/* ---- FAQs ---- */
.theme-nem .block-faqs { max-width: calc(900px + 2 * var(--nm-gutter)); margin: 0 auto; }
.theme-nem .block-faqs details.faq-item { border: 0; border-bottom: 1px solid var(--color-line); border-radius: 0; background: none; padding: 1.2rem 0; }
.theme-nem .block-faqs summary { font-family: var(--font-heading); font-weight: 600; font-size: 1.15rem; letter-spacing: -.015em; }
.theme-nem .faq-answer { color: var(--nm-muted); }

/* ---- Contact (split layout) ---- */
.theme-nem .block-contact-form.contact-split { background: var(--nm-ink); color: #fff; position: relative; overflow: hidden; }
.theme-nem .contact-split::before { content: ""; position: absolute; inset: 0; background: var(--color-highlight); opacity: .22; -webkit-mask: var(--nm-contours) left center / cover no-repeat; mask: var(--nm-contours) left center / cover no-repeat; pointer-events: none; }
.theme-nem .contact-split .bold-orb { display: none; }
.theme-nem .contact-split .cf-info, .theme-nem .contact-split .cf-form { position: relative; }
.theme-nem .contact-split h1 { color: #fff; }
.theme-nem .contact-split .accent-word { color: var(--color-highlight); }
.theme-nem .contact-split .cf-intro { color: var(--nm-on-dark); }
.theme-nem .contact-split .bold-eyebrow { background: color-mix(in srgb, var(--color-highlight) 16%, transparent); color: var(--color-highlight); }
.theme-nem .cf-card { border-radius: 18px; background: color-mix(in srgb, #fff 6%, var(--nm-ink)); border: 1px solid var(--nm-line-dark); color: #fff; }
.theme-nem .cf-card-icon { color: var(--color-highlight); }
.theme-nem .cf-card-label { color: var(--nm-on-dark); }
.theme-nem .contact-split .cf-form { background: #fff; color: var(--nm-ink); border-radius: 28px; }
.theme-nem .block-contact-form input:not([type=checkbox]):not([type=hidden]), .theme-nem .block-contact-form textarea, .theme-nem .block-contact-form select { border: 1.5px solid var(--color-line); border-radius: 12px; background: #fff; font: inherit; }
.theme-nem .block-contact-form input:focus, .theme-nem .block-contact-form textarea:focus { border-color: var(--color-primary); outline: 2px solid color-mix(in srgb, var(--color-primary) 25%, transparent); }
.theme-nem .cf-chip input:checked + span { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* ---- Footer ---- */
.theme-nem .site-footer-studio { background: var(--nm-ink); color: var(--nm-on-dark); }
.theme-nem .sf-cta { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; align-items: center; justify-content: space-between; padding: clamp(3rem, 6vw, 4.5rem) var(--nm-gutter); border-bottom: 1px solid var(--nm-line-dark); }
.theme-nem .sf-cta-heading { color: #fff; margin: 0; max-width: 28ch; font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.theme-nem .sf-cta-btn { background: var(--color-highlight); color: var(--nm-ink); font-size: 1.1rem; }
.theme-nem .sf-cta-btn:hover { background: #fff; color: var(--nm-ink); }
.theme-nem .sf-grid { padding-left: var(--nm-gutter); padding-right: var(--nm-gutter); }
.theme-nem .sf-logo svg { height: 34px; width: auto; }
.theme-nem .sf-heading { color: #fff; font-family: var(--font-body); font-weight: 700; text-transform: none; letter-spacing: 0; font-size: 1rem; }
.theme-nem .sf-col a, .theme-nem .sf-social a { color: var(--nm-on-dark); }
.theme-nem .sf-col a:hover, .theme-nem .sf-social a:hover { color: var(--color-highlight); }
.theme-nem .sf-tagline p { color: var(--nm-on-dark); }
.theme-nem .sf-bottom { border-top: 1px solid var(--nm-line-dark); color: var(--nm-on-dark); padding-left: var(--nm-gutter); padding-right: var(--nm-gutter); }
.theme-nem .sf-bottom a { color: var(--nm-on-dark); }

/* ---- Blog listing + posts (Studio layouts) ---- */
.theme-nem .bs-pill { border-radius: 999px; border-color: var(--color-line); color: var(--nm-ink); }
.theme-nem .bs-pill:hover { border-color: var(--color-primary); color: var(--color-primary); }
.theme-nem .bs-pill.is-active { background: var(--nm-ink); border-color: var(--nm-ink); color: #fff; }
.theme-nem .bs-featured, .theme-nem .bs-card, .theme-nem .bs-spotlight, .theme-nem .ps-rel-card { border-radius: 24px; }
.theme-nem .bs-featured-media, .theme-nem .bs-card-media, .theme-nem .ps-rel-media, .theme-nem .ps-image { border-radius: 24px; overflow: hidden; }
.theme-nem .bs-featured-title, .theme-nem .bs-card-title, .theme-nem .ps-rel-title { font-family: var(--font-heading); letter-spacing: -.025em; }
.theme-nem .bs-card:hover .bs-card-title, .theme-nem .ps-rel-card:hover .ps-rel-title { color: var(--color-primary); }
.theme-nem .bs-spotlight { background: var(--nm-ink); }
.theme-nem .bs-page.is-active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.theme-nem .ps-hero, .theme-nem .cs-hero { background: var(--nm-ink); color: #fff; position: relative; overflow: hidden; }
.theme-nem .ps-hero::before, .theme-nem .cs-hero::before { content: ""; position: absolute; inset: 0; background: var(--color-highlight); opacity: .22; -webkit-mask: var(--nm-contours) right center / cover no-repeat; mask: var(--nm-contours) right center / cover no-repeat; pointer-events: none; }
.theme-nem .ps-hero > *, .theme-nem .cs-hero > * { position: relative; }
.theme-nem .ps-hero h1, .theme-nem .ps-author { color: #fff; }
.theme-nem .ps-standfirst, .theme-nem .ps-when { color: var(--nm-on-dark); }
.theme-nem .ps-back { color: var(--color-highlight); }
.theme-nem .ps-progress span { background: var(--color-primary); }
.theme-nem .ps-chip { border-radius: 999px; }
.theme-nem .ps-body { font-size: 1.12rem; line-height: 1.8; }
.theme-nem .ps-body h2 { font-family: var(--font-heading); }
.theme-nem .ps-body a { color: var(--color-primary); }
.theme-nem .ps-body blockquote { background: var(--nm-soft); border-radius: 22px; border: 0; }
.theme-nem .ps-body img { border-radius: 18px; }
.theme-nem .ps-toc a:hover { color: var(--color-primary); }
.theme-nem .ps-cta { background: var(--nm-ink); border-radius: 28px; color: #fff; }
.theme-nem .ps-cta-btn { background: var(--color-highlight); color: var(--nm-ink); border-radius: 999px; }
.theme-nem .ps-related { background: var(--color-background); }

/* ---- Small screens ---- */
@media (max-width: 900px) {
  .theme-nem .main-nav { background: var(--nm-ink); }
  .theme-nem .block-banner-bold h1 { max-width: none; }
  .theme-nem .block-pricing-table { grid-template-columns: 1fr; }
}

/* ---- Breadcrumb (top of the first banner) ---- */
.theme-nem .page-breadcrumb { font-size: .92rem; color: var(--nm-on-dark); margin: 0 0 1.4rem; }
.theme-nem .page-breadcrumb a { color: var(--nm-on-dark); text-decoration: none; }
.theme-nem .page-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.theme-nem .page-breadcrumb [aria-current] { color: #fff; }
.theme-nem .block-banner-bold .page-breadcrumb + .bold-eyebrow { margin-top: 0; }

/* ---- Text with a card beside it (e.g. the package card on service pages) ---- */
.theme-nem .block-text.has-aside { max-width: calc(var(--nm-wrap) + 2 * var(--nm-gutter)); display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.theme-nem .block-text.has-aside .text-main > :first-child { margin-top: 0; }
.theme-nem .text-aside { position: sticky; top: 110px; background: var(--color-background); border-radius: 28px; padding: 1.8rem; display: flex; flex-direction: column; gap: .7rem; }
.theme-nem .text-aside-title { font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--color-primary); }
.theme-nem .text-aside-price { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; color: var(--nm-ink); }
.theme-nem .text-aside-note { margin: 0; color: var(--nm-muted); font-size: .98rem !important; line-height: 1.55 !important; }
.theme-nem .text-aside-ctas { display: flex; flex-direction: column; gap: .6rem; margin-top: .4rem; }
.theme-nem .text-aside-ctas .btn { text-align: center; }
@media (max-width: 900px) { .theme-nem .block-text.has-aside { grid-template-columns: 1fr; } .theme-nem .text-aside { position: static; } }

/* ---- Contact: map under the contact cards ---- */
.theme-nem .cf-map { margin-top: 1rem; border-radius: 18px; overflow: hidden; }
.theme-nem .cf-map .video-wrap { margin: 0; border-radius: 18px; }
.theme-nem .cf-map .cc-embed-placeholder { background: color-mix(in srgb, #fff 6%, var(--nm-ink)); color: var(--nm-on-dark); border-radius: 18px; padding: 1.5rem; }

.theme-nem .contact-split .bold-eyebrow { align-self: flex-start; width: fit-content; }

/* ---- Package cards: Buy now + Enquire ---- */
.theme-nem .pricing-col .btn { width: 100%; box-sizing: border-box; }
.theme-nem .pricing-col button.btn { font: inherit; font-weight: 700; cursor: pointer; }
.theme-nem .pricing-col:nth-child(2n) .pricing-cta2 { color: #fff; border-color: rgba(255,255,255,.85); }
.theme-nem .pricing-col:nth-child(2n) .pricing-cta2:hover { background: #fff; color: var(--nm-ink); }
.theme-nem .sub-checkout { font-family: var(--font-body); }
.theme-nem .sub-title { font-family: var(--font-heading); letter-spacing: -.03em; }

/* ---- Package cards, final layout (overrides the earlier pricing rules) ----
   Full width, equal-height cards, buttons lined up at the bottom, one border
   style on light and dark cards, and an optional "Save" badge. */
.theme-nem .block.block-pricing-table { max-width: none; margin: 0; box-sizing: border-box; padding-left: var(--nm-gutter); padding-right: var(--nm-gutter); gap: 1.25rem; align-items: stretch; }
.theme-nem .block-pricing-table .pricing-col { display: flex; flex-direction: column; height: 100%; box-sizing: border-box; margin: 0; padding: 2rem 1.75rem; border-radius: 28px; transform: none !important; transition: box-shadow .25s; }
.theme-nem .block-pricing-table .pricing-col:hover { transform: none; box-shadow: 0 30px 60px -34px rgba(0,0,0,.38); }
.theme-nem .block-pricing-table .pricing-col h3 { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; margin: 0; color: inherit; -webkit-font-smoothing: antialiased; }
.theme-nem .block-pricing-table .pricing-col .price { margin: 1rem 0 0; line-height: 1; font-size: 3rem; }
.theme-nem .block-pricing-table .pricing-col .price-one-off { margin: .5rem 0 0; font-size: .95rem; font-weight: 500; }
.theme-nem .block-pricing-table .pricing-badge { align-self: flex-start; margin: .9rem 0 0; background: var(--nm-soft); color: var(--color-primary); font-size: .82rem; font-weight: 700; padding: .35rem .8rem; border-radius: 999px; }
.theme-nem .block-pricing-table .pricing-col:nth-child(2n) .pricing-badge { background: var(--color-highlight); color: var(--nm-ink); }
.theme-nem .block-pricing-table .pricing-col ul { flex: 1 0 auto; margin: 1.4rem 0 1.6rem; padding: 0; gap: 0; }
.theme-nem .block-pricing-table .pricing-col li { padding: .6rem 0; border: 0; border-bottom: 1px solid var(--color-line); align-items: flex-start; font-size: .97rem; line-height: 1.45; }
.theme-nem .block-pricing-table .pricing-col:nth-child(2n) li { border-bottom-color: var(--nm-line-dark); color: var(--nm-on-dark); }
.theme-nem .block-pricing-table .pricing-col li svg { margin-top: .25rem; }
.theme-nem .block-pricing-table .pricing-col .btn { margin: 0; width: 100%; }
.theme-nem .block-pricing-table .pricing-col .pricing-cta2 { margin-top: .65rem; }
@media (max-width: 1100px) { .theme-nem .block.block-pricing-table[data-columns="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .theme-nem .block.block-pricing-table[data-columns="4"] { grid-template-columns: 1fr; } }


/* ============================================================
   nem overrides (nemCMS)
   --color-primary   coral: buttons, small marks, the dot
   --color-accent    coral on hover
   --color-dark      pine: header, hero, footer, dark sections, text
   --color-highlight peach: small text and accents on pine
   --color-background sage: light sections and cards
   ============================================================ */
.theme-nem {
  --nm-coral-text: color-mix(in srgb, var(--color-primary) 68%, #000);
  --nm-soft: var(--color-background);
}
.theme-nem a { color: var(--nm-coral-text); }

/* No contour lines anywhere */
.theme-nem .block-banner-bold::before,
.theme-nem .contact-split::before,
.theme-nem .ps-hero::before, .theme-nem .cs-hero::before,
.theme-nem .block-cta-scroller:not(.cta-photo-band)::before { display: none; content: none; }

/* Buttons: coral with dark text (white on coral is too faint to read) */
.theme-nem .btn-primary, .theme-nem .block-banner-bold .btn-primary { background: var(--color-primary); color: var(--color-dark); }
.theme-nem .btn-primary:hover { background: var(--color-accent); color: var(--color-dark); }
.theme-nem .site-header > .header-cta, .theme-nem .sf-cta-btn, .theme-nem .ps-cta-btn { background: var(--color-primary); color: var(--color-dark); }
.theme-nem .site-header > .header-cta:hover, .theme-nem .sf-cta-btn:hover, .theme-nem .ps-cta-btn:hover { background: #fff; color: var(--color-dark); }
.theme-nem .btn-ghost { border-color: color-mix(in srgb, #fff 45%, var(--color-dark)); }
.theme-nem ::selection { background: var(--color-primary); color: var(--color-dark); }

/* Header: logo a touch larger, phone shown */
.theme-nem .site-header .logo img, .theme-nem .site-header .logo svg { height: 40px; width: auto; display: block; }
.theme-nem .main-nav a:hover, .theme-nem .main-nav a:focus-visible, .theme-nem .main-nav a[aria-current] { color: var(--color-highlight); }
.theme-nem .header-phone { font-weight: 700; color: #fff; }

/* Eyebrows: small uppercase labels */
.theme-nem .eyebrow, .theme-nem .bold-eyebrow, .theme-nem .eyebrow-on-banner {
  background: none; padding: 0; border: 0; border-radius: 0;
  font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--nm-coral-text);
}
.theme-nem .block-banner-bold .bold-eyebrow, .theme-nem .contact-split .bold-eyebrow, .theme-nem .steps-dark .eyebrow {
  display: inline-flex; align-items: center; gap: .55rem; background: none; border: 1px solid color-mix(in srgb, #fff 22%, var(--color-dark));
  color: color-mix(in srgb, #fff 82%, var(--color-dark)); padding: .4rem .9rem; border-radius: 999px; letter-spacing: .02em; text-transform: none; font-size: .9rem; font-weight: 500;
}
.theme-nem .block-banner-bold .bold-eyebrow::before, .theme-nem .contact-split .bold-eyebrow::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--color-primary); }

/* Accent words: coral, no underline (large text only on pine) */
.theme-nem .accent-word { color: var(--nm-coral-text); background-image: none; }
.theme-nem .block-banner-bold .accent-word, .theme-nem .contact-split h1 .accent-word,
.theme-nem .block-steps.steps-dark .accent-word, .theme-nem .block-cta-scroller .accent-word { color: var(--color-primary); background: none; }

/* Hero: headline beside the image on wide screens */
.theme-nem .block-banner-bold h1 { max-width: 18ch; font-size: clamp(2.5rem, 5.2vw, 4.3rem); }
@media (min-width: 1000px) {
  .theme-nem .block-banner-bold.has-media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
  .theme-nem .block-banner-bold.has-media .bold-media { margin-top: 0; }
}
.theme-nem .block-banner-bold .bold-media { border-radius: 0; overflow: visible; }
.theme-nem .block-banner-bold .bold-media img { display: block; width: 100%; height: auto; }

/* Proof strip (Ticker) under the hero */
.theme-nem .block-ticker .ticker-band { background: var(--color-background); color: var(--color-dark); border-top: 0; }
.theme-nem .block-ticker.ticker-dark .ticker-band { background: var(--color-dark); color: color-mix(in srgb, #fff 82%, var(--color-dark)); border-top: 1px solid var(--nm-line-dark); }
.theme-nem .block-ticker .ticker-item { border-color: color-mix(in srgb, var(--color-dark) 14%, transparent); background: #fff; font-weight: 600; }
.theme-nem .block-ticker.ticker-dark .ticker-item { background: transparent; border-color: var(--nm-line-dark); }

/* Feature grid: calm cards, the first one pine */
.theme-nem .block-feature-grid { padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.theme-nem .feature-grid-heading h2 { max-width: 22ch; }
.theme-nem .feature-item { background: var(--color-background); color: var(--color-dark); border-radius: 22px; }
.theme-nem .feature-item h3 { font-size: 1.25rem; }
.theme-nem .feature-item p { color: var(--nm-muted); opacity: 1; }
.theme-nem .feature-icon { color: var(--color-dark); background: #fff; }
.theme-nem .feature-item:first-child { background: var(--color-dark); color: #fff; }
.theme-nem .feature-item:first-child p { color: color-mix(in srgb, #fff 82%, var(--color-dark)); }
.theme-nem .feature-item:first-child .feature-icon { background: color-mix(in srgb, #fff 12%, var(--color-dark)); color: var(--color-primary); }
.theme-nem .feature-readmore { color: var(--nm-coral-text); font-weight: 700; }
.theme-nem .feature-item:first-child .feature-readmore { color: var(--color-highlight); }
.theme-nem .block-feature-grid + .block-feature-grid { padding-top: 0; }

/* Services list (used for "Who it's for") */
.theme-nem .svc-card { background: var(--color-background); }
.theme-nem .svc-card-num, .theme-nem .svc-card-more, .theme-nem .svc-row-num { color: var(--nm-coral-text); }
.theme-nem .svc-layout-grid .svc-card:first-child { background: var(--color-dark); }
.theme-nem .svc-layout-grid .svc-card:first-child .svc-card-text, .theme-nem .svc-layout-grid .svc-card:first-child .svc-card-num { color: color-mix(in srgb, #fff 82%, var(--color-dark)); }
.theme-nem .svc-layout-grid .svc-card:first-child .svc-card-more { color: var(--color-highlight); }
.theme-nem .section-link { color: var(--nm-coral-text); }

/* Stats */
.theme-nem .stat-value { color: var(--color-dark); }

/* Steps: numbered process */
.theme-nem .block-steps .step-num { color: var(--nm-coral-text); }
.theme-nem .block-steps.steps-dark .step-num { color: var(--color-primary); }
.theme-nem .block-steps.steps-dark .step { border-top-color: var(--color-primary); }
.theme-nem .block-steps.steps-light { background: var(--color-background); }

/* Image + text: illustrations sit on their own sage panels */
.theme-nem .block-image-text img { background: none; }

/* Testimonial */
.theme-nem .block-testimonial .testimonial-card { background: var(--color-dark); color: #fff; border-radius: 28px; }
.theme-nem .block-testimonial blockquote { font-family: var(--font-heading); letter-spacing: -.02em; }
.theme-nem .block-testimonial cite span { color: color-mix(in srgb, #fff 80%, var(--color-dark)); }

/* Call to action band: pine with a coral button */
.theme-nem .block-cta-scroller:not(.cta-photo-band) { background: var(--color-dark); }
.theme-nem .block-cta-scroller .btn.btn-primary { background: var(--color-primary); color: var(--color-dark); }
.theme-nem .block-cta-scroller .btn.btn-primary:hover { background: #fff; color: var(--color-dark); }
.theme-nem .block-cta-scroller .cta-text { color: color-mix(in srgb, #fff 82%, var(--color-dark)); }

/* Latest posts / blog / case studies: screenshots show their top */
.theme-nem .ws-lead-media img, .theme-nem .ws-card-media img, .theme-nem .cs-image img, .theme-nem .proj-media img, .theme-nem .post-card-media img { object-position: top center; }
.theme-nem .ws-go { background: var(--color-primary); color: var(--color-dark); }
.theme-nem .ws-kicker { color: var(--color-highlight); }
.theme-nem .bs-page.is-active { color: var(--color-dark); }
.theme-nem .ps-back { color: var(--color-highlight); }

/* Contact */
.theme-nem .cf-card-icon { color: var(--color-primary); }
.theme-nem .cf-chip input:checked + span { color: var(--color-dark); }
.theme-nem .contact-split .cf-form { box-shadow: 0 30px 60px rgba(3,30,26,.35); }

/* Footer */
.theme-nem .site-footer-studio { background: color-mix(in srgb, var(--color-dark) 72%, #000); }
.theme-nem .sf-col a:hover, .theme-nem .sf-social a:hover { color: var(--color-highlight); }

/* FAQs */
.theme-nem .block-faqs summary { color: var(--color-dark); }

/* ---- nem: layout refinements ---- */
.theme-nem .block-banner-bold h1 { max-width: 20ch; }
.theme-nem .block-banner-bold .bold-media { background: none; box-shadow: none; }

/* Ticker (not scrolling): centred chips that wrap */
.theme-nem .block-ticker:not(.is-scrolling) .ticker-track { overflow: visible; }
.theme-nem .block-ticker:not(.is-scrolling) .ticker-set { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1rem; padding: 0 1.25rem; animation: none; width: auto; }
.theme-nem .block-ticker:not(.is-scrolling) .ticker-sep { display: none; }
.theme-nem .block-ticker .ticker-item:first-child { background: var(--color-dark); color: #fff; border-color: var(--color-dark); }

/* Feature grids: three across for 3 or 6 items, four across for 4 */
.theme-nem .feature-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
@media (min-width: 1100px) { .theme-nem .feature-grid:has(> .feature-item:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 700px) and (max-width: 1099px) { .theme-nem .feature-grid:has(> .feature-item:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Text on pine sections */
.theme-nem .steps-dark .section-link { color: var(--color-highlight); }
.theme-nem .steps-dark .section-intro { color: color-mix(in srgb, #fff 82%, var(--color-dark)); }

/* Projects list: equal screenshot frames, dark titles */
.theme-nem .proj-layout-grid .proj-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 2.4rem 1.5rem; }
.theme-nem .proj-card { color: var(--color-dark); text-decoration: none; display: flex; flex-direction: column; gap: 1rem; }
.theme-nem .proj-media { display: block; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; background: var(--color-background); border: 1px solid var(--color-line); }
.theme-nem .proj-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .6s var(--motion-easing); }
.theme-nem .proj-card:hover .proj-media img { transform: scale(1.03); }
.theme-nem .proj-body { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.theme-nem .proj-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem; letter-spacing: -.025em; color: var(--color-dark); }
.theme-nem .proj-tag { color: var(--nm-muted); font-size: .92rem; text-align: right; }
.theme-nem .proj-card:hover .proj-title { color: var(--nm-coral-text); }

/* Work listing and case study screenshots: same framing */
.theme-nem .ws-card-media { aspect-ratio: 16 / 10; border: 1px solid var(--color-line); }
.theme-nem .ws-card-title { color: var(--color-dark); }
.theme-nem .ws-card { color: var(--color-dark); }

/* Text blocks: eyebrow labels, two-column checklists, readable links */
.theme-nem .block-text p.eyebrow { display: block; color: var(--nm-coral-text); font-size: .8rem; line-height: 1.4; margin: 0 0 .7rem; }
.theme-nem .block-text a { color: var(--nm-coral-text); font-weight: 600; }
.theme-nem .block-text h2[id] { scroll-margin-top: 110px; }
@media (min-width: 640px) { .theme-nem .block-text .ct-checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.theme-nem .block-text .ct-checklist + p { margin-top: 1.4rem; }

/* Steps: five steps sit in one row on wide screens, three steps in three columns */
@media (min-width: 1200px) { .theme-nem .steps-list:has(> li:nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 800px) { .theme-nem .steps-list:has(> li:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Simple contact form block (e.g. the migration assessment): pine band, heading beside a white form card */
.theme-nem .block-contact-form:not(.contact-split) { background: var(--color-dark); color: #fff; padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.theme-nem .block-contact-form:not(.contact-split) > h2 { color: #fff; margin: 0; max-width: 16ch; }
.theme-nem .block-contact-form:not(.contact-split) > .cf-form { background: #fff; color: var(--color-dark); border-radius: 28px; padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: 0 30px 60px rgba(3,30,26,.35); }
@media (min-width: 900px) {
  .theme-nem .block-contact-form:not(.contact-split) { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); column-gap: clamp(2rem, 5vw, 5rem); align-items: start; }
  .theme-nem .block-contact-form:not(.contact-split) > h2 { grid-column: 1; grid-row: 1 / span 2; position: sticky; top: 120px; }
  .theme-nem .block-contact-form:not(.contact-split) > .form-status, .theme-nem .block-contact-form:not(.contact-split) > .cf-form { grid-column: 2; }
}

/* Work listing: featured card text on pine */
.theme-nem .ws-lead { color: #fff; }
.theme-nem .ws-lead-title { color: #fff; }
.theme-nem .ws-lead-excerpt { color: color-mix(in srgb, #fff 82%, var(--color-dark)); }
.theme-nem .ws-tag { color: color-mix(in srgb, #fff 82%, var(--color-dark)); border-color: var(--nm-line-dark); }
.theme-nem .ws-lead-media { background: color-mix(in srgb, #000 20%, var(--color-dark)); }
.theme-nem .ws-lead-media img { object-position: top center; }

/* Case study: links and labels on pine */
.theme-nem .cs-hero a, .theme-nem .cs-facts a, .theme-nem .ps-hero a { color: var(--color-highlight); }
.theme-nem .cs-facts dt { color: color-mix(in srgb, #fff 75%, var(--color-dark)); }
.theme-nem .cs-results { color: #fff; }
.theme-nem .cs-results .eyebrow, .theme-nem .cs-next-label { color: var(--color-highlight); }
.theme-nem .cs-results .cs-rich, .theme-nem .cs-results .cs-rich p { color: color-mix(in srgb, #fff 88%, var(--color-dark)); }
.theme-nem .cs-next { color: #fff; }
.theme-nem .cs-next-title { color: #fff; }
.theme-nem .cs-next-go { background: var(--color-primary); color: var(--color-dark); }
.theme-nem .cs-delivered li::before, .theme-nem .cs-delivered li svg { color: var(--color-primary); }

/* Article: contents box on pine */
.theme-nem .ps-toc a { color: color-mix(in srgb, #fff 88%, var(--color-dark)); }
.theme-nem .ps-toc a:hover { color: var(--color-highlight); }
.theme-nem .ps-body h2 { color: var(--color-dark); }

/* Contact page */
.theme-nem .contact-split h1 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); line-height: 1.05; }
.theme-nem .cf-card-icon { background: color-mix(in srgb, #fff 10%, var(--color-dark)); color: var(--color-primary); }

/* Ticker chips wrap on small screens */
.theme-nem .block-ticker:not(.is-scrolling) .ticker-set { flex-shrink: 1; min-width: 0; width: 100%; opacity: 1; box-sizing: border-box; }

/* ============================================================
   Update 02
   ============================================================ */

/* ---- Sector sections (Who it's for): full width, copy beside the checklist ---- */
.theme-nem .block-text:has(> .nm-sector) { max-width: none; margin: 0; padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.theme-nem .block-text:has(> .nm-sector) + .block-text:has(> .nm-sector) { padding-top: clamp(3.5rem, 7vw, 6rem); }
.theme-nem .block-text:has(> .nm-sector-alt) { background: var(--color-background); }
.theme-nem .nm-sector { max-width: var(--nm-wrap); margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 2rem clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
@media (min-width: 960px) { .theme-nem .nm-sector { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.theme-nem .nm-sector-copy h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin: 0 0 1.1rem; max-width: 20ch; }
.theme-nem .nm-sector-copy > p:not(.eyebrow) { font-size: 1.15rem; line-height: 1.7; margin: 0 0 1.6rem; max-width: 52ch; }
.theme-nem .nm-sector-copy .nm-sector-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin: 0; }
.theme-nem .block-text a.btn-primary, .theme-nem .block-text a.btn-primary:hover { color: var(--color-dark); text-decoration: none; }
.theme-nem .block-text a.btn-secondary { color: var(--color-dark); text-decoration: none; }
.theme-nem .block-text a.btn-secondary:hover { color: #fff; }
.theme-nem .nm-sector-help { background: var(--color-background); border-radius: 28px; padding: clamp(1.6rem, 3vw, 2.4rem); }
.theme-nem .block-text:has(> .nm-sector-alt) .nm-sector-help { background: #fff; }
.theme-nem .nm-sector-help h3 { margin: 0 0 1.1rem; font-size: 1.2rem; }
.theme-nem .nm-sector-help .ct-checklist { grid-template-columns: 1fr; margin: 0; }
.theme-nem .nm-sector-help .ct-checklist li { background: #fff; }
.theme-nem .block-text:has(> .nm-sector-alt) .nm-sector-help .ct-checklist li { background: var(--color-background); }
.theme-nem .nm-sector-help .nm-sector-note { margin: 1.2rem 0 0; font-size: .98rem; color: var(--nm-muted); }
/* the sector order alternates sides on wide screens */
@media (min-width: 960px) { .theme-nem .nm-sector-alt .nm-sector-copy { order: 2; } }

/* ---- Blog post: wider article with the summary and contents beside it ---- */
.theme-nem .ps-hero-inner { max-width: var(--nm-wrap); }
.theme-nem .ps-image { padding-left: var(--nm-gutter); padding-right: var(--nm-gutter); }
.theme-nem .ps-image img { max-height: 520px; }
@media (min-width: 1100px) {
  .theme-nem .ps-main { max-width: none; box-sizing: border-box; padding-left: var(--nm-gutter); padding-right: var(--nm-gutter); display: grid; grid-template-columns: minmax(0, 1fr) 360px; column-gap: clamp(2.5rem, 5vw, 5rem); row-gap: 2.5rem; align-items: start; }
  .theme-nem .ps-summary, .theme-nem .ps-summary.has-both { grid-column: 2; grid-row: 1 / span 4; position: sticky; top: 110px; display: flex; flex-direction: column; gap: 1rem; }
  .theme-nem .ps-body, .theme-nem .ps-after, .theme-nem .ps-authorbox { grid-column: 1; max-width: none; margin: 0; }
  .theme-nem .ps-authorbox { margin-top: -1rem; }
}
.theme-nem .ps-body { font-size: 1.15rem; }
.theme-nem .ps-inshort { background: var(--color-background); }
.theme-nem .ps-inshort li { color: var(--color-dark); }
.theme-nem .ps-related-inner { max-width: var(--nm-wrap); margin: 0 auto; padding-left: var(--nm-gutter); padding-right: var(--nm-gutter); }
.theme-nem .ps-avatar { background: var(--color-primary); color: var(--color-dark); }

/* ---- Legal pages (privacy policy): readable width, tidy headings ---- */
.theme-nem .block-text .nm-legal h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 2.4rem 0 .7rem; }
.theme-nem .block-text .nm-legal h2:first-child { margin-top: 0; }
.theme-nem .block-text .nm-legal table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: 1rem; }
.theme-nem .block-text .nm-legal th, .theme-nem .block-text .nm-legal td { text-align: left; vertical-align: top; padding: .7rem .8rem; border-bottom: 1px solid var(--color-line); color: var(--color-dark); }
.theme-nem .block-text .nm-legal th { background: var(--color-background); font-weight: 700; }
.theme-nem .block-text .nm-legal .nm-legal-wrap { overflow-x: auto; }

/* ---- Case studies: extra facts band and screenshots ---- */
.theme-nem .cs-story { gap: clamp(2rem, 5vw, 4rem); }
.theme-nem .cs-rich h3 { font-size: 1.2rem; margin: 1.6rem 0 .5rem; }
