/* Editorial skin: warm paper background, serif type, a thin top bar, light and dark modes.
   Loaded last on every page, so it overrides each page's own styles. Remove the link to go back to the old look.
   Protected case studies (body.is-protected) keep their own type and colours; only the top bar and footer follow the theme,
   and they always stay light. Type sizes follow the scale of justinwelsh.me. */

/* ---- Palette and fonts (public pages only) ---- */
body:not(.is-protected) {
  --font: 'Lora', Georgia, 'Times New Roman', serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --dark: #2f2e2e;      --gray: #5e5c5c;      --light-gray: #d4cfd0;  --bg-soft: #efebec;
  --text: #2f2e2e;      --muted: #5e5c5c;     --border: #d4cfd0;      --bg-card: #efebec;   --border-btn: #bcb8b9;
  --ink: #2f2e2e;       --ink-muted: #5e5c5c; --white: #f7f5f5;
  --strong: #171717;    --surface: #fdfcfc;   --on-accent: #f7f5f5;   --accent-bg: #171717;
  --shadow-nav: none;
  background: #f7f5f5;
  color: #2f2e2e;
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
}
html { background: #f7f5f5; }
body.home:not(.is-protected) { background: #f7f5f5; }

/* ---- Headings ---- */
body:not(.is-protected) :is(h1, h2) {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 400; letter-spacing: -0.016em; color: var(--strong);
}
body:not(.is-protected) :is(h3, h4) {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 500; letter-spacing: -0.012em; color: var(--strong);
}
body:not(.is-protected) :where([class$="-title"], [class*="-title "], .hero-name, .cs-card-title, .svc-card-title) {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  letter-spacing: -0.014em;
}
/* UI mock-ups inside case studies stay in the product's own font and colours */
.wf-root, .wf-root * { font-family: 'Inter', sans-serif !important; letter-spacing: normal; }
.wf-root { color: #1a1a1a; }

/* ---- Type scale (from justinwelsh.me): H1 43, H3 24, lead 18, card text 15.5, small 14, CTA 15, nav 17, footer 13 ---- */
.hero-name { font-size: 43px; line-height: 1.14; font-weight: 400; margin-bottom: 4px; }
.hero-role { font-family: 'Playfair Display', Georgia, serif; font-size: 24px; font-weight: 400; line-height: 1.25; color: var(--gray); }
.hero-desc { font-size: 18px; line-height: 1.5; color: var(--dark); }
.hero-tags { font-size: 14px; line-height: 1.6; color: var(--gray); }
.cs-section-title { font-size: 34px; font-weight: 400; line-height: 1.15; }
.cs-section-sub { font-size: 18px; font-weight: 400; line-height: 1.5; color: var(--dark); }
.cs-card-title { font-size: 24px; font-weight: 500; line-height: 1.2; color: var(--strong); }
.cs-card-desc { font-size: 15.5px; line-height: 1.5; color: var(--gray); }
.svc-card-title, .svc-title { font-size: 24px; font-weight: 500; line-height: 1.2; color: var(--strong); }
.svc-card-desc, .svc-desc, .svc-desc.small { font-size: 15.5px; line-height: 1.5; color: var(--gray); }
.blog-card-title, .bcard-title { font-size: 22px; font-weight: 500; line-height: 1.25; color: var(--strong); }
.blog-card-excerpt, .bcard-desc, .bcard-excerpt { font-size: 15.5px; line-height: 1.5; }
.page-title, .about-section h1, .contacts-title { font-size: 43px !important; font-weight: 400 !important; line-height: 1.14; }
.page-sub, .contacts-text { font-size: 18px !important; font-weight: 400 !important; line-height: 1.5; color: var(--gray); }
.about-section h2 { font-size: 30px; font-weight: 400; }
.about-section p { font-size: 18px; line-height: 1.6; color: var(--dark); }
.tools-title, .cta-title { font-size: 30px; font-weight: 400; }
.tools-sub { font-size: 18px; font-weight: 400; }
.nav-links a { font-family: 'Playfair Display', Georgia, serif; font-size: 17px; font-weight: 400; }
.footer-links a, .footer-copy { font-size: 13px; font-weight: 400; color: var(--gray); }
.section-label { font-family: 'Lora', Georgia, serif; font-size: 14px; font-weight: 500; padding: 10px 20px; background: transparent; border-color: var(--light-gray); color: var(--strong); }
.section-label img { display: none; }
.btn-dark, .cta-btn, .modal-cta, .modal-submit { font-family: 'Lora', Georgia, serif; font-size: 15px; font-weight: 500; padding: 13px 26px; background: var(--accent-bg); color: var(--on-accent); }
.btn-dark:hover { opacity: 0.88; }

/* ---- Cards: one colour everywhere ---- */
body:not(.is-protected) .cs-card, body:not(.is-protected) .svc-card, body:not(.is-protected) .card { background: var(--bg-soft); }

/* ---- Thin top bar ---- */
.nav {
  top: 0; left: 0; right: 0; width: 100%;
  transform: none;
  justify-content: flex-start;
  padding: 14px max(20px, calc((100% - 1187px) / 2 + 40px));
  background: rgba(247, 245, 245, 0.94);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 0; border-bottom: 1px solid #d4cfd0;
  border-radius: 0; box-shadow: none;
}
body.is-protected .nav { background: rgba(255, 255, 255, 0.94); border-bottom-color: #ebebeb; }
.nav > a:first-child { display: flex; align-items: center; gap: 12px; }
.nav > a:first-child::after {
  content: "Olga Kalinina";
  font-family: 'Playfair Display', Georgia, serif; font-size: 21px; font-weight: 500; letter-spacing: -0.01em; color: #111;
}
.nav-links { gap: 28px; margin-left: auto; }
.nav-links a:hover { font-weight: 400; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nav-links a.active { font-weight: 400; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
/* Contact Me: a secondary button at the end of the top menu */
body:not(.is-protected) .nav-links a.nav-cta { font-family: 'Lora', Georgia, serif; font-size: 15px; font-weight: 500; line-height: 1.2; padding: 9px 20px; text-decoration: none; white-space: nowrap; }
body:not(.is-protected) .nav-links a.nav-cta:hover, body:not(.is-protected) .nav-links a.nav-cta.active { text-decoration: none; font-weight: 500; }
/* same look as the other secondary buttons: the mesh gradient is the 1.5px stroke, no extra border (those rules only cover buttons inside main) */
html:root body:not(.is-protected) .nav-links a.nav-cta { background-image: none !important; animation: none !important; }
html:root body:not(.is-protected) .nav-links a.nav-cta::before { display: none !important; }
html:root body .nav-links a.nav-cta.mb-stroke.mb-stroke { background: transparent !important; border-color: transparent !important; box-shadow: none !important; color: var(--dark) !important; }
html:root body .nav-links a.nav-cta.mb-stroke.mb-inv { color: #f4f5f7 !important; }
html:root body .nav-links a.nav-cta.mb-stroke:hover { background: rgba(0,0,0,.05) !important; }
html:root body .nav-links a.nav-cta.mb-stroke.mb-inv:hover { background: rgba(255,255,255,.1) !important; }
.page-content { padding-top: 96px; }

/* ---- Light / dark switch ---- */
.theme-toggle {
  flex: 0 0 auto; width: 36px; height: 36px; margin-left: 20px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: #ede8ea; color: #111; cursor: pointer;
  transition: background .2s, transform .2s;
}
.theme-toggle:hover { transform: scale(1.06); }
.theme-toggle:focus-visible { outline: 2px solid #111; outline-offset: 3px; }
.theme-toggle svg { width: 17px; height: 17px; }

/* Circle-spread theme change (View Transitions): the browser's default cross-fade is switched off */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }

/* ---- Mobile menu ---- */
.mobile-menu { background: #f7f5f5; backdrop-filter: none; -webkit-backdrop-filter: none; border: 1px solid #d4cfd0; box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
body.is-protected .mobile-menu { background: #fff; border-color: #ebebeb; }
.mobile-menu-links a { font-family: 'Playfair Display', Georgia, serif; font-weight: 400; border-bottom-color: #d4cfd0; }
.mobile-menu-links a.active { font-weight: 400; }
.mobile-menu-close { background: transparent; border-color: #bcb8b9; }

/* ---- Footer ---- */
.footer-socials { gap: 20px; }
.footer-socials a { width: auto; height: auto; border-radius: 0; overflow: visible; font-family: 'Lora', Georgia, serif; font-size: 13px; font-weight: 400; color: var(--gray); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.footer-socials a:hover { opacity: 1; color: var(--dark); }
body.is-protected .footer-socials a { color: #707379; }
.footer { background: transparent; border-top: 1px solid #d4cfd0; margin-top: 40px; }
body.is-protected .footer { border-top-color: #ebebeb; }
.footer-links a { font-family: 'Lora', Georgia, serif; }

@media (max-width: 768px) {
  .nav { padding: 10px 20px; }
  .nav > a:first-child::after { font-size: 18px; }
  .theme-toggle { margin-left: auto; margin-right: 6px; }
  .page-content { padding-top: 84px; }
  .hero-name { font-size: 34px; }
  .page-title, .about-section h1, .contacts-title { font-size: 34px !important; }
  .cs-section-title { font-size: 28px; }
}

/* ============ DARK MODE (public pages only; protected pages always stay light) ============ */
html[data-theme="dark"] { background: #171717; color-scheme: dark; }
html[data-theme="dark"] body:not(.is-protected) {
  --dark: #ede8ea;      --gray: #a5a1a2;      --light-gray: #464545;  --bg-soft: #2f2e2e;
  --text: #ede8ea;      --muted: #a5a1a2;     --border: #464545;      --bg-card: #2f2e2e;   --border-btn: #5e5c5c;
  --ink: #ede8ea;       --ink-muted: #a5a1a2; --white: #171717;
  --strong: #f7f5f5;    --surface: #2f2e2e;   --on-accent: #171717;   --accent-bg: #ede8ea;
  background: #171717; color: #ede8ea;
}
html[data-theme="dark"] body.home:not(.is-protected) { background: #171717; }
html[data-theme="dark"] body:not(.is-protected) .nav { background: rgba(23, 23, 23, 0.92); border-bottom-color: #2f2e2e; }
html[data-theme="dark"] body:not(.is-protected) .nav > a:first-child::after { color: #f7f5f5; }
html[data-theme="dark"] body:not(.is-protected) .nav-hamburger span { background: #ede8ea; }
html[data-theme="dark"] body:not(.is-protected) .theme-toggle { background: #2f2e2e; color: #f7f5f5; }
html[data-theme="dark"] body:not(.is-protected) .mobile-menu { background: #2f2e2e; border-color: #464545; }
html[data-theme="dark"] body:not(.is-protected) .mobile-menu-backdrop { background: rgba(0,0,0,0.5); }
html[data-theme="dark"] body:not(.is-protected) .footer { border-top-color: #2f2e2e; }
html[data-theme="dark"] body:not(.is-protected) :is(.cs-lock-btn, .cs-lock, .carousel-btn, .filter-pill, .table-scroll, .blog-card, .form-field input, .form-field textarea, .svc-btn, .modal, .modal-cancel, .cs-access-btn, .modal-field input, .badge, .tool-pill, .btn-outline, .btn-pill, .deck-btn, .mobile-menu-close, .section-label) {
  background: var(--surface); color: var(--dark); border-color: var(--light-gray);
}
html[data-theme="dark"] body:not(.is-protected) :is(.blog-tab) { color: var(--gray); }
html[data-theme="dark"] body:not(.is-protected) .blog-tab.active { background: #ede8ea; color: #171717; }
html[data-theme="dark"] body:not(.is-protected) .section-label { background: transparent; }
html[data-theme="dark"] body:not(.is-protected) .client-logos img { filter: grayscale(1) invert(1); opacity: 0.55; }
html[data-theme="dark"] body:not(.is-protected) .footer-socials img { filter: grayscale(1) invert(1); opacity: 0.5; }
html[data-theme="dark"] body:not(.is-protected) .carousel-progress span { background: #5e5c5c; }
html[data-theme="dark"] body:not(.is-protected) .carousel-progress span.active { background: #ede8ea; }
html[data-theme="dark"] body:not(.is-protected) .svc-card img.svc-icon, html[data-theme="dark"] body:not(.is-protected) .svc-card-icon, html[data-theme="dark"] body:not(.is-protected) .svc-icon, html[data-theme="dark"] body:not(.is-protected) .modal-icon { filter: invert(1); }
html[data-theme="dark"] body:not(.is-protected) .svc-btn svg { color: #ede8ea; }
html[data-theme="dark"] body:not(.is-protected) .cs-card-img-contained img, html[data-theme="dark"] body:not(.is-protected) .cs-card-img img { border-color: #464545; }
html[data-theme="dark"] body:not(.is-protected) .modal-overlay { background: rgba(0,0,0,0.6); }

/* ---- Filled pen-nib cursor everywhere (tip at the top-left). Dark near-black in light mode, gold in dark mode.
   Text fields keep the normal text cursor so typing stays precise. ---- */
@media (hover: hover) and (pointer: fine) {
  html, html *:not(input):not(textarea):not(select):not([contenteditable="true"]) {
    cursor: url('/images/cursor-pen.png') 2 1, auto !important;
    cursor: image-set(url('/images/cursor-pen.png') 1x, url('/images/cursor-pen@2x.png') 2x) 2 1, auto !important;
  }
  html[data-theme="dark"] body:not(.is-protected), html[data-theme="dark"] body:not(.is-protected) *:not(input):not(textarea):not(select):not([contenteditable="true"]) {
    cursor: url('/images/cursor-pen-gold.png') 2 1, auto !important;
    cursor: image-set(url('/images/cursor-pen-gold.png') 1x, url('/images/cursor-pen-gold@2x.png') 2x) 2 1, auto !important;
  }
}

/* ---- Pen cursor flips to its opposite colour over dark (or, in dark mode, light) surfaces so it never disappears.
   On the two service cards the whole card is the button's click layer, so there the cursor follows the CARD colour, not the button's. ---- */
@media (hover: hover) and (pointer: fine) {
  html:not([data-theme="dark"]) body main :is(.cs-section, .cs-section *, .btn-dark, .btn-dark *, .help-card--cro, .help-card--cro *, .pd-dark, .pd-dark *, .pd-ico, .pd-ico *, .pd-hero-tile, .pd-hero-tile *, .help-icon-tile, .help-icon-tile *, .tm-avatar, .faq-tab-check, .faq-tab-check *):not(input):not(textarea):not(select) {
    cursor: url('/images/cursor-pen-light.png') 2 1, auto !important;
    cursor: image-set(url('/images/cursor-pen-light.png') 1x, url('/images/cursor-pen-light@2x.png') 2x) 2 1, auto !important;
  }
  html:not([data-theme="dark"]) body main :is(.cs-section .arc-card, .cs-section .arc-card *, .pd-dark .btn-dark, .pd-dark .btn-dark *, .help-card--product .btn-dark, .help-card--product .btn-dark *):not(input):not(textarea):not(select) {
    cursor: url('/images/cursor-pen.png') 2 1, auto !important;
    cursor: image-set(url('/images/cursor-pen.png') 1x, url('/images/cursor-pen@2x.png') 2x) 2 1, auto !important;
  }
  html[data-theme="dark"] body:not(.is-protected) main :is(.btn-dark, .btn-dark *, .pd-chips.tools li, .pd-chips.tools li *, .faq-tab-check, .faq-tab-check *):not(input):not(textarea):not(select) {
    cursor: url('/images/cursor-pen.png') 2 1, auto !important;
    cursor: image-set(url('/images/cursor-pen.png') 1x, url('/images/cursor-pen@2x.png') 2x) 2 1, auto !important;
  }
  html[data-theme="dark"] body:not(.is-protected) main .help-section :is(.help-card .btn-dark, .help-card .btn-dark *):not(input):not(textarea):not(select) {
    cursor: url('/images/cursor-pen-gold.png') 2 1, auto !important;
    cursor: image-set(url('/images/cursor-pen-gold.png') 1x, url('/images/cursor-pen-gold@2x.png') 2x) 2 1, auto !important;
  }
}

/* ---- Services dropdown in the top bar ---- */
.nav-dd { position: relative; display: flex; align-items: center; }
.nav-dd-btn { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; font-family: 'Playfair Display', Georgia, serif; font-size: 17px; font-weight: 400; }
.nav-dd-btn svg { transition: transform .25s ease; }
.nav-dd-btn:hover, .nav-dd.is-current .nav-dd-btn, .nav-dd.open .nav-dd-btn { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nav-dd.open .nav-dd-btn svg { transform: rotate(180deg); }
.nav-dd-btn:focus-visible, .nav-dd-item:focus-visible { outline: 2px solid var(--dark); outline-offset: 4px; border-radius: 6px; }
.nav-dd-menu { position: absolute; top: calc(100% + 22px); right: -18px; width: 380px; max-width: calc(100vw - 32px); box-sizing: border-box; white-space: normal; padding: 8px; display: flex; flex-direction: column; gap: 2px; background: #fdfcfc; border: 1px solid #d4cfd0; border-radius: 18px; box-shadow: 0 22px 44px -18px rgba(60,45,15,0.28); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .22s ease, transform .22s ease, visibility 0s .22s; z-index: 130; }
.nav-dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px; }
.nav-dd.open .nav-dd-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .22s ease, transform .22s ease, visibility 0s; }
@media (hover: hover) and (pointer: fine) { .nav-dd:hover .nav-dd-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .22s ease, transform .22s ease, visibility 0s; } .nav-dd:hover .nav-dd-btn svg { transform: rotate(180deg); } }
.nav-links .nav-dd-item { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; white-space: normal; min-width: 0; text-align: left; border-radius: 12px; text-decoration: none; transition: background .2s ease; }
.nav-links .nav-dd-item:hover, .nav-links .nav-dd-item:focus-visible { background: rgba(47,46,46,0.06); text-decoration: none; font-weight: 400; }
.nav-links .nav-dd-item strong { font-family: 'Playfair Display', Georgia, serif; font-size: 18px; font-weight: 500; color: #111; }
.nav-links .nav-dd-item span { white-space: normal; overflow-wrap: break-word; font-family: 'Lora', Georgia, serif; font-size: 14px; line-height: 1.45; color: #5e5c5c; }
.nav-links .nav-dd-item[aria-current="page"] { background: rgba(47,46,46,0.05); }
.nav-links .nav-dd-item[aria-current="page"] strong::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 10px; border-radius: 50%; background: currentColor; vertical-align: middle; }
html[data-theme="dark"] .nav-dd-menu { background: #2f2e2e; border-color: #464545; box-shadow: 0 22px 44px -18px rgba(0,0,0,0.6); }
html[data-theme="dark"] .nav-links .nav-dd-item:hover, html[data-theme="dark"] .nav-links .nav-dd-item:focus-visible, html[data-theme="dark"] .nav-links .nav-dd-item[aria-current="page"] { background: rgba(255,255,255,0.07); }
html[data-theme="dark"] .nav-links .nav-dd-item strong { color: #ede8ea; }
html[data-theme="dark"] .nav-links .nav-dd-item span { color: #a5a1a2; }
@media (prefers-reduced-motion: reduce) { .nav-dd-menu, .nav-dd-btn svg { transition: none !important; } }
.mobile-menu-label { padding: 16px 0 4px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray); }
.mobile-menu-links a.mobile-sub { padding-left: 14px; font-size: 18px; }

/* ---- Scroll reveal (js/reveal.js adds .rv, then .in when the section is in view) ---- */
.rv { opacity: 0; transform: translateY(28px); }
.rv.in { animation: rv-in .85s cubic-bezier(.2,.7,.2,1) var(--rd, 0ms) both; }
@keyframes rv-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rv, .rv.in { opacity: 1; transform: none; animation: none; } }

/* =====================================================================
   UI SYSTEM: one set of type, tag, button, radius and spacing rules for every public page.
   Same role = same settings. Change a value here and it changes everywhere.
   Protected NDA case studies (body.is-protected) keep their own look.
   ===================================================================== */
:root {
  --r-xl: 32px;   /* hero and closing panels, contact panel, service cards, hero photo */
  --r-lg: 24px;   /* cards and panels */
  --r-md: 16px;   /* icon tiles, inputs, menus, small cards */
  --r-sm: 12px;   /* menu items, inner images */
  --card-pad: 32px;
}
@media (max-width: 860px) { :root { --r-xl: 24px; } }

/* ---- Headings ---- */
body:not(.is-protected) main h1:not(:where(.pg-section, .wf-title-bar) *), body:not(.is-protected) main h2:not(:where(.pg-section, .wf-title-bar) *), body:not(.is-protected) main h3:not(:where(.pg-section, .wf-title-bar) *) { font-family: 'Playfair Display', Georgia, 'Times New Roman', serif; letter-spacing: 0; }
/* H1 page / article title */
body:not(.is-protected) main h1:not(:where(.pg-section, .wf-title-bar) *) { font-size: 40px !important; font-weight: 400 !important; line-height: 1.15 !important; }
/* H1 hero (Home, Product Design, CRO Audit) */
body:not(.is-protected) main .hero > .hero-text > .hero-title, body:not(.is-protected) main .pd-hero h1 { font-size: 56px !important; line-height: 1.08 !important; }
/* H2 article heading (about, privacy, blog posts, case studies) */
body:not(.is-protected) main h2:not(:where(.pg-section, .wf-title-bar) *) { font-size: 28px !important; font-weight: 400 !important; line-height: 1.2 !important; }
/* H2 section title (landing pages) */
body:not(.is-protected) main h2.help-title, body:not(.is-protected) main h2.cs-section-title, body:not(.is-protected) main .pd h2, body:not(.is-protected) main .ab h2, body:not(.is-protected) main .ab-cta h2, body:not(.is-protected) main .work-on-intro h2, body:not(.is-protected) main .contact-copy h2 { font-size: 36px !important; line-height: 1.15 !important; }
/* H3 sub-heading inside articles */
body:not(.is-protected) main h3:not(:where(.pg-section, .wf-title-bar) *) { font-size: 20px; font-weight: 500; line-height: 1.25; }
/* H3 card, step and list titles */
body:not(.is-protected) main .pd-card h3, body:not(.is-protected) main .ab-card h3, body:not(.is-protected) main .ab-col h3, body:not(.is-protected) main .pd-steps h3, body:not(.is-protected) main .hw-steps h3, body:not(.is-protected) main .pd-work h3, body:not(.is-protected) main .pd-cmp-col h3, body:not(.is-protected) main .arc-title, body:not(.is-protected) main h3.post-title, body:not(.is-protected) main h2.bcard-title, body:not(.is-protected) main .cs-card-title, body:not(.is-protected) main .work-on-list strong, body:not(.is-protected) main .pd-incl strong { font-family: 'Playfair Display', Georgia, serif; font-size: 24px !important; font-weight: 500 !important; line-height: 1.25 !important; }
/* feature title (the two service cards) */
body:not(.is-protected) main .help-name { font-size: 40px !important; font-weight: 500; line-height: 1.1; }
@media (max-width: 960px) { body:not(.is-protected) main .hero > .hero-text > .hero-title, body:not(.is-protected) main .pd-hero h1 { font-size: 44px !important; } }
@media (max-width: 860px) { body:not(.is-protected) main h2.help-title, body:not(.is-protected) main h2.cs-section-title, body:not(.is-protected) main .pd h2, body:not(.is-protected) main .ab h2, body:not(.is-protected) main .ab-cta h2, body:not(.is-protected) main .work-on-intro h2, body:not(.is-protected) main .contact-copy h2 { font-size: 30px !important; } body:not(.is-protected) main .help-name { font-size: 34px !important; } }
@media (max-width: 640px) { body:not(.is-protected) main h1:not(:where(.pg-section, .wf-title-bar) *) { font-size: 32px !important; } body:not(.is-protected) main .hero > .hero-text > .hero-title, body:not(.is-protected) main .pd-hero h1 { font-size: 36px !important; } body:not(.is-protected) main h2:not(:where(.pg-section, .wf-title-bar) *) { font-size: 24px !important; } body:not(.is-protected) main h2.help-title, body:not(.is-protected) main h2.cs-section-title, body:not(.is-protected) main .pd h2, body:not(.is-protected) main .ab h2, body:not(.is-protected) main .ab-cta h2, body:not(.is-protected) main .work-on-intro h2, body:not(.is-protected) main .contact-copy h2 { font-size: 28px !important; } body:not(.is-protected) main h3:not(:where(.pg-section, .wf-title-bar) *) { font-size: 18px; } body:not(.is-protected) main .pd-card h3, body:not(.is-protected) main .ab-card h3, body:not(.is-protected) main .ab-col h3, body:not(.is-protected) main .pd-steps h3, body:not(.is-protected) main .hw-steps h3, body:not(.is-protected) main .pd-work h3, body:not(.is-protected) main .pd-cmp-col h3, body:not(.is-protected) main .arc-title, body:not(.is-protected) main h3.post-title, body:not(.is-protected) main h2.bcard-title, body:not(.is-protected) main .cs-card-title, body:not(.is-protected) main .work-on-list strong, body:not(.is-protected) main .pd-incl strong { font-size: 22px !important; } }

/* ---- Eyebrow labels (small uppercase lines above titles, counters, tags above articles) ---- */
body:not(.is-protected) main .hero-eyebrow, body:not(.is-protected) main .pd-eyebrow, body:not(.is-protected) main .work-on-eyebrow, body:not(.is-protected) main .pd-cmp-label, body:not(.is-protected) main .pd-cmp-cap, body:not(.is-protected) main .pd-tag, body:not(.is-protected) main .post .post-tag, body:not(.is-protected) main .bcard .btag, body:not(.is-protected) main .arc-count, body:not(.is-protected) main .arc-tag {
  font-family: 'Lora', Georgia, serif; font-size: 12.5px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; }
/* label pill (carousel project type) */
body:not(.is-protected) main .arc-tag { padding: 6px 14px; border-width: 1px; }

/* ---- Chips: filter tabs, info chips, form choices ---- */
body:not(.is-protected) main .blog-tab, body:not(.is-protected) main .cs-tab, body:not(.is-protected) main .pd-chips li, body:not(.is-protected) main .bf-chips span { font-family: 'Lora', Georgia, serif; font-size: 15px; font-weight: 500; line-height: 1.3; padding: 9px 20px; border-width: 1.5px; border-style: solid; border-radius: 9999px; }
body:not(.is-protected) main .blog-tab, body:not(.is-protected) main .cs-tab { border-color: var(--light-gray); }
body:not(.is-protected) main .blog-tab.active, body:not(.is-protected) main .cs-tab.active { border-color: var(--dark); }

/* ---- Buttons ---- */
body:not(.is-protected) .btn-dark, body:not(.is-protected) .btn-outline-dark { font-family: 'Lora', Georgia, serif; font-size: 15px; font-weight: 500; line-height: 1.2; padding: 13px 26px; border: 1.5px solid transparent; border-radius: 9999px; box-sizing: border-box; }
body:not(.is-protected) .btn-outline-dark { border-color: var(--dark); }

/* ---- Body text ---- */
body:not(.is-protected) main .hero-desc, body:not(.is-protected) main .pd-lead { font-size: 19px; line-height: 1.65; }
body:not(.is-protected) main .sec-sub, body:not(.is-protected) main .pd-sub, body:not(.is-protected) main .cs-section-sub, body:not(.is-protected) main .blog-head-sub { font-size: 18px !important; line-height: 1.6; }
body:not(.is-protected) main .pd-card p, body:not(.is-protected) main .ab-card p, body:not(.is-protected) main .hw-steps p, body:not(.is-protected) main .work-on-list .d, body:not(.is-protected) main .pd-incl .d, body:not(.is-protected) main .pd-steps p, body:not(.is-protected) main .arc-desc, body:not(.is-protected) main .post-excerpt, body:not(.is-protected) main .bcard-excerpt, body:not(.is-protected) main .cs-card-desc, body:not(.is-protected) main .pd-work p, body:not(.is-protected) main .help-more p, body:not(.is-protected) main .pd-cmp-col > p:not(.pd-cmp-label) { font-size: 16px; line-height: 1.6; }
@media (max-width: 640px) { body:not(.is-protected) main .sec-sub, body:not(.is-protected) main .pd-sub, body:not(.is-protected) main .cs-section-sub, body:not(.is-protected) main .blog-head-sub { font-size: 17px !important; } }

/* ---- Corner radius ---- */
body:not(.is-protected) main .pd-hero, body:not(.is-protected) main .pd-cta, body:not(.is-protected) main .ab-cta, body:not(.is-protected) main .ab-hero, body:not(.is-protected) main .contact-block, body:not(.is-protected) main .hero-photo, body:not(.is-protected) main .help-card { border-radius: var(--r-xl); }
body:not(.is-protected) main .help-card { clip-path: inset(0 round var(--r-xl)); }
body:not(.is-protected) main .pd-card, body:not(.is-protected) main .ab-card, body:not(.is-protected) main .ab-quote, body:not(.is-protected) main .tm-card, body:not(.is-protected) main .cs-card, body:not(.is-protected) main .work-on, body:not(.is-protected) main .pd-cmp-col, body:not(.is-protected) main .arc-card, body:not(.is-protected) main .pd-work .pic { border-radius: var(--r-lg); }
body:not(.is-protected) main .help-icon-tile, body:not(.is-protected) main .pd-ico, body:not(.is-protected) main .pd-hero-tile, body:not(.is-protected) main .faq-tab, body:not(.is-protected) main .brief-form input[type=text], body:not(.is-protected) main .brief-form input[type=email], body:not(.is-protected) main .brief-form textarea, body:not(.is-protected) main .form-field input, body:not(.is-protected) main .form-field textarea { border-radius: var(--r-md); }
body:not(.is-protected) .nav-dd-menu { border-radius: var(--r-md); }
body:not(.is-protected) .nav-dd-item { border-radius: var(--r-sm); }

/* ---- Card padding ---- */
body:not(.is-protected) main .pd-card, body:not(.is-protected) main .ab-card, body:not(.is-protected) main .ab-quote, body:not(.is-protected) main .tm-card, body:not(.is-protected) main .pd-cmp-col { padding: var(--card-pad); }

/* ---- Hover and click: text keeps its colour and turns bold (never blue) ---- */
.mobile-menu-links a:hover, .mobile-menu-links a:active, .mobile-menu-links a.active:hover { font-weight: 600; }
.footer-links a:hover, .footer-links a:active { color: var(--gray); font-weight: 600; }


/* ---- Footer: message, Services / Learn / Company columns, legal row ---- */
.footer .footer-inner { max-width: 1187px; align-items: stretch; gap: 0; padding-top: 48px; padding-bottom: 8px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) repeat(4, auto); gap: 40px 56px; align-items: start; }
.footer-legals { display: flex; gap: 28px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 360px; }
.footer .footer-name { font-family: 'Playfair Display', Georgia, serif; font-size: 22px; line-height: 1.2; color: var(--strong, var(--dark)); }
.footer .footer-msg { margin: 0; font-size: 15px; line-height: 1.55; color: var(--gray); }
.footer-social { display: flex; gap: 12px; margin-top: 2px; }
.footer-social a { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--strong, var(--dark)); color: var(--strong, var(--dark)); transition: background .2s ease, opacity .2s ease; }
.footer-social a:hover, .footer-social a:focus-visible { background: var(--bg-soft); }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer .footer-col .footer-h { margin: 0 0 4px; font-family: 'Playfair Display', Georgia, serif !important; font-size: 17px !important; font-weight: 500 !important; line-height: 1.3 !important; color: var(--strong, var(--dark)); }
.footer .footer-col a, .footer .footer-legal { display: inline-block; padding: 3px 0; font-family: 'Lora', Georgia, serif; font-size: 15px; font-weight: 400; line-height: 1.4; color: var(--dark); text-decoration: none; }
.footer .footer-col a:hover, .footer .footer-legal:hover { color: var(--gray); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1.5px solid var(--line); }
.footer .footer-copy { margin: 0; font-size: 14px; font-weight: 400; color: var(--gray); text-align: left; }
.footer .footer-legal { font-size: 14px; }
@media (max-width: 1080px) { .footer-top { gap: 40px 40px; } }
@media (max-width: 860px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; max-width: none; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 20px; } .footer-bottom { flex-direction: column; align-items: flex-start; gap: 4px; } }

.footer .footer-name { display: inline-flex; align-items: center; gap: 12px; }
.footer-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.ar-i { display: inline-block; flex: none; vertical-align: -3px; margin-left: 6px; }
.btn-dark .ar-i, .help-card .ar-i, .post-more .ar-i, .bcard-more .ar-i { margin-left: 0; vertical-align: middle; }

/* ---- Text link button: arrow icon, underline spans text and icon, hover moves the arrow ---- */
a.link-btn { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 4px; font-family: 'Lora', Georgia, serif; font-size: 16px; line-height: 1.4; font-weight: 400; color: var(--dark); text-decoration: none; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; transition: background-size .25s ease, opacity .2s ease; }
a.link-btn svg { flex: none; transition: transform .25s ease; }
a.link-btn:hover, a.link-btn:focus-visible { background-size: 100% 2px; opacity: .72; }
a.link-btn:hover svg, a.link-btn:focus-visible svg { transform: translateX(4px); }
a.link-btn:focus-visible { outline: 2px solid var(--dark); outline-offset: 4px; border-radius: 4px; }
.pd-link:hover { text-decoration-thickness: 2px; }
@media (prefers-reduced-motion: reduce) { a.link-btn, a.link-btn svg { transition: none; } }

/* ---- CTAs: silver-and-black mesh gradient (js/mesh-buttons.js adds .mb, a canvas layer and .mb-inv).
   Light page: dark filled button with white text, outline with a silver-black stroke.
   Dark theme and dark areas: inverted (light filled button with dark text, light stroke). No colour gradients, no stroke on filled buttons. ---- */
html:root body:not(.is-protected) main :is(.btn-dark, .btn-outline-dark, .btn-outline) { background-image: none !important; animation: none !important; }
/* buttons keep the scroll-reveal animation (the rule above only removes the old hover animation) */
html:root body:not(.is-protected) main :is(.btn-dark, .btn-outline-dark, .btn-outline).rv.in { animation: rv-in .85s cubic-bezier(.2,.7,.2,1) var(--rd, 0ms) both !important; }
html:root body:not(.is-protected) main :is(.btn-outline-dark, .btn-outline)::before { display: none !important; }
html:root body .help-card::after { background: currentColor !important; animation: none !important; }
.mb { position: relative; isolation: isolate; }
.mb .mb-fill { position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; }
.mb .mb-fill canvas { display: block; position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; }
/* filled */
html:root body main .btn-dark.mb-solid.mb-solid { background: #0b0c0e !important; color: #ffffff !important; border-color: transparent !important; box-shadow: none !important; }
html:root body main .btn-dark.mb-solid.mb-solid * { color: inherit !important; }
html:root body main .btn-dark.mb-solid.mb-inv { background: #eceef2 !important; color: #111113 !important; }
.mb-solid .mb-fill { overflow: hidden; }
.btn-dark.mb-solid:hover { box-shadow: 0 8px 20px rgba(0,0,0,.2) !important; }
/* outline: the gradient shows only as the 1.5px stroke */
html:root body main :is(.btn-outline-dark, .btn-outline).mb-stroke.mb-stroke { background: transparent !important; border-color: transparent !important; box-shadow: none !important; color: var(--dark) !important; }
html:root body main :is(.btn-outline-dark, .btn-outline).mb-stroke.mb-inv { color: #f4f5f7 !important; }
.mb-stroke .mb-fill { padding: 1.5px; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
html:root body main :is(.btn-outline-dark, .btn-outline).mb-stroke:hover { background: rgba(0,0,0,.05) !important; }
html:root body main :is(.btn-outline-dark, .btn-outline).mb-stroke.mb-inv:hover { background: rgba(255,255,255,.1) !important; }
/* service cards: the button is the containing block for its fill, so the whole-card click area is stretched past it (the card clips it) */
html:root body main .help-card .btn-dark.mb.mb.mb { position: relative; }
html:root body main .help-card .btn-dark.mb.mb.mb::after { inset: -900px; }
.btn-dark.mb-solid .mb-fill, .btn-outline-dark.mb-stroke .mb-fill, .btn-outline.mb-stroke .mb-fill { transition: filter .25s ease; }
.btn-dark.mb-solid:hover .mb-fill { filter: brightness(1.25); }
.btn-dark.mb-solid.mb-inv:hover .mb-fill { filter: brightness(.92); }

/* ---- Text selection: soft egg-yellow, see-through ---- */
::selection { background: rgba(251,100,182, 0.5); color: inherit; }
::-moz-selection { background: rgba(251,100,182, 0.5); color: inherit; }
html[data-theme="dark"] ::selection { background: rgba(251,100,182, 0.38); }
html[data-theme="dark"] ::-moz-selection { background: rgba(251,100,182, 0.38); }

/* ---- Cookie / analytics consent card ---- */
.ck { position: fixed; left: 20px; bottom: 20px; z-index: 90; width: min(380px, calc(100vw - 40px)); padding: 20px 22px; border-radius: 20px; background: var(--white, #fff); color: var(--dark); box-shadow: 0 18px 50px rgba(0,0,0,.18), inset 0 0 0 1px var(--light-gray); font-family: 'Lora', Georgia, serif; }
.ck-t { margin: 0 0 6px; font-family: 'Playfair Display', Georgia, serif; font-size: 18px; line-height: 1.25; color: var(--strong, var(--dark)); }
.ck-p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--gray); }
.ck-p a { color: var(--dark); text-decoration: underline; text-underline-offset: 3px; }
.ck-b { display: flex; gap: 10px; margin-top: 16px; }
.ck-b button { flex: 1; min-height: 44px; padding: 0 18px; border-radius: 9999px; font: 500 15px 'Lora', Georgia, serif; cursor: pointer; border: 1.5px solid var(--dark); }
.ck-no { background: transparent; color: var(--dark); }
.ck-yes { background: transparent; color: var(--dark); }
.ck-b button:hover { background: var(--bg-soft); }
.ck-b button:focus-visible { outline: 2px solid var(--dark); outline-offset: 2px; }
html[data-theme="dark"] .ck { background: #2f2e2e; box-shadow: 0 18px 50px rgba(0,0,0,.5), inset 0 0 0 1px #464545; }
html[data-theme="dark"] .ck-b button { border-color: #ede8ea; }
html[data-theme="dark"] .ck-yes { background: #ede8ea; color: #171717; }
button.footer-legal { background: none; border: 0; cursor: pointer; }
@media (max-width: 560px) { .ck { left: 12px; right: 12px; bottom: 12px; width: auto; } }

/* Keyboard access: a visible focus ring everywhere, and a skip link that appears when tabbed to */
a:focus-visible, button:focus-visible, summary:focus-visible, [role="button"]:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--dark); outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -64px; z-index: 10000; padding: 12px 18px; border-radius: 9999px; background: var(--dark); color: var(--white, #fff); font: 500 15px 'Lora', Georgia, serif; text-decoration: none; transition: top .15s; }
.skip-link:focus { top: 12px; outline: 2px solid var(--white, #fff); outline-offset: 2px; }

/* Case studies: contents list and contact line in a right-hand column (js/cs-side.js). Wide screens only. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.cs-side { display: none; }
@media (min-width: 1240px) {
  .cs-layout { display: grid; grid-template-columns: minmax(0, 1fr) 216px; gap: 48px; align-items: start; }
  .cs-layout > :first-child { min-width: 0; margin-left: 0; margin-right: 0; }
  .cs-side { display: block; position: sticky; top: 130px; align-self: start; padding-top: 80px; }
  .cs-side-title { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); margin: 0 0 16px; line-height: 1.4; }
  .cs-side ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; border-left: 1.5px solid var(--line); }
  .cs-side li { margin: 0; padding: 0; }
  .cs-side ul a { display: block; padding: 8px 0 8px 16px; margin-left: -1.5px; border-left: 3px solid transparent; font-size: 15px; line-height: 1.4; color: var(--gray); text-decoration: none; transition: color .15s, border-color .15s; }
  .cs-side ul a:hover { color: var(--dark); }
  .cs-side ul a.is-active { color: var(--dark); border-left-color: var(--dark); font-weight: 500; }
  .cs-side-cta { margin-top: 28px; padding-top: 24px; border-top: 1.5px solid var(--line); }
  .cs-side-cta:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
  .cs-side-cta p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--gray); }
  .cs-side-cta a { color: var(--dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; white-space: nowrap; }
  .cs-side-cta a:hover { opacity: .72; }
}

/* ── Line icons: files in /images/icons, coloured by the text colour ── */
.ic{display:inline-block;width:24px;height:24px;flex-shrink:0;color:var(--dark);background-color:currentColor;-webkit-mask:var(--ic) center/contain no-repeat;mask:var(--ic) center/contain no-repeat;}
.cs-callout-dark .ic{color:#fff;}
.ic-data{--ic:url(/images/icons/data.svg);}
.ic-bulb{--ic:url(/images/icons/lightbulb.svg);}
.ic-dark-pattern{--ic:url(/images/icons/dark-pattern.svg);}
.ic-brain{--ic:url(/images/icons/brain.svg);}
.ic-site-map{--ic:url(/images/icons/site-map.svg);}
.ic-rocket{--ic:url(/images/icons/rocket.svg);}
.ic-announcement{--ic:url(/images/icons/announcement.svg);}
.ic-bell{--ic:url(/images/icons/bell.svg);}
.ic-coins{--ic:url(/images/icons/coins.svg);}
.ic-location{--ic:url(/images/icons/location.svg);}
.ic-message{--ic:url(/images/icons/message.svg);}
.ic-star{--ic:url(/images/icons/star.svg);}
.ic-thumbs-up{--ic:url(/images/icons/thumbs-up.svg);}

/* Related reading: cards at the end of articles and case studies */
.ax-eyebrow { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); margin: 0 0 10px; }
.ax-related-wrap { margin-top: 56px; }
.ax-related-wrap > .ax-eyebrow { margin-bottom: 0; }
.cp-related { display: block; margin: 20px 0 0; padding: 26px 30px; background: var(--bg-soft); border-radius: var(--r-lg, 24px); text-decoration: none !important; color: inherit; transition: transform .25s ease; }
.cp-related:hover { transform: translateY(-3px); }
.cp-related strong { display: block; font-family: 'Playfair Display', Georgia, serif; font-weight: 500; font-size: 24px; line-height: 1.25; margin-bottom: 8px; color: var(--strong); }
.cp-related p:not(.ax-eyebrow) { margin: 0 0 12px; font-size: 16px; line-height: 1.6; color: var(--gray); }
.cp-related > span { font-size: 15px; color: var(--strong); }
@media (prefers-reduced-motion: reduce) { .cp-related { transition: none; } .cp-related:hover { transform: none; } }

/* Buttons with an icon: the same 8px between the text and the icon everywhere */
html body :is(.btn-dark, .btn-outline-dark, .cs-access-btn, .cr-contact-submit, .nav-cta), html body a.link-btn { gap: 8px !important; }
html body .cp-related > span { display: inline-flex; align-items: center; gap: 8px; }
html body .cp-related > span .ar-i { margin-left: 0; vertical-align: middle; }

/* Footer: the service names are links and column titles; the pages under them follow */
.footer .footer-col a.footer-h { padding: 0; display: inline-block; text-decoration: none; }
.footer .footer-col a.footer-h:hover { color: var(--gray); text-decoration: underline; text-underline-offset: 4px; }

/* Footer profile links (Behance · Medium · Upwork) */
.footer-profiles { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 0; font-size: 15px; color: var(--gray); }
.footer .footer-profiles a { padding: 3px 0; color: inherit; text-decoration: none; }
.footer .footer-profiles a:hover { text-decoration: underline; text-underline-offset: 4px; }
