/*
Theme Name: Clarity Founders
Theme URI: https://clarityfounders.co
Author: Clarity Founders
Description: Bespoke theme for Clarity Founders: Odoo ERP, outsourced accounting, virtual CFO and IFRS services for businesses worldwide, led by a Fellow Chartered Accountant. Black, sky blue and white. Creates the pages and menu on activation; all page content stays editable in the block editor.
Version: 4.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: clarity-founders
*/

/* Self-hosted fonts (SIL Open Font License): Young Serif for headings, IBM Plex Sans for text. */
@font-face { font-family: "Young Serif"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("assets/fonts/young-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap; src: url("assets/fonts/ibm-plex-sans-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: italic; font-weight: 100 700; font-display: swap; src: url("assets/fonts/ibm-plex-sans-latin-wght-italic.woff2") format("woff2"); }

:root {
  --cf-ink: #0A0A0A;
  --cf-ink-2: #131518;
  --cf-ink-line: #2A2E33;
  --cf-sky: #349FDF;
  --cf-sky-text: #1F8AD0;
  --cf-sky-ink: #12629A;
  --cf-sky-soft: #E9F4FC;
  --cf-white: #FFFFFF;
  --cf-paper: #F4F7FA;
  --cf-line: #E1E6EB;
  --cf-muted: #56616D;
  --cf-on-dark: #B4BDC7;
  --cf-display: "Young Serif", Georgia, "Times New Roman", serif;
  --cf-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --cf-wrap: 1180px;
  --cf-gutter: clamp(20px, 5vw, 40px);
  --cf-radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--cf-white);
  color: var(--cf-ink);
  font-family: var(--cf-body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--cf-sky-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--cf-ink); }
:focus-visible { outline: 3px solid var(--cf-sky); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 {
  font-family: var(--cf-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.35rem; line-height: 1.2; }
p { margin: 0 0 1.1em; }
h1 em, h2 em { font-style: normal; color: var(--cf-sky-text); }
.cf-dark h1 em, .cf-dark h2 em { color: var(--cf-sky); }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.cf-skip:focus {
  position: fixed; left: 16px; top: 16px; z-index: 1000; width: auto; height: auto;
  clip: auto; clip-path: none; background: var(--cf-ink); color: var(--cf-white);
  padding: 10px 16px; border-radius: 8px;
}

/* ---------- Layout primitives ---------- */
.cf-wrap { width: 100%; max-width: calc(var(--cf-wrap) + 2 * var(--cf-gutter)); margin-inline: auto; padding-inline: var(--cf-gutter); }
.cf-section { padding-block: clamp(64px, 9vw, 128px); }
.cf-section-tight { padding-block: clamp(40px, 6vw, 72px); }
.cf-paper { background: var(--cf-paper); }
.cf-dark { background: var(--cf-ink); color: var(--cf-white); }
.cf-dark p { color: var(--cf-on-dark); }
.cf-dark a { color: var(--cf-white); }
.cf-eyebrow, p.cf-eyebrow {
  font-family: var(--cf-body);
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cf-sky-ink); margin: 0 0 1.25rem;
  display: flex; align-items: center; gap: 12px;
}
.cf-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--cf-sky); flex: none; }
.cf-dark .cf-eyebrow, .cf-dark p.cf-eyebrow { color: var(--cf-sky); }
.cf-lede, p.cf-lede { font-size: clamp(1.2rem, 1.9vw, 1.5rem); line-height: 1.4; color: var(--cf-muted); max-width: 30em; }
.cf-dark .cf-lede { color: var(--cf-on-dark); }
.cf-head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 64px); }
.cf-head > :last-child { margin-bottom: 0; }
.cf-center { text-align: center; margin-inline: auto; }
.cf-center .cf-eyebrow { justify-content: center; }
.cf-center .cf-eyebrow::before { display: none; }

/* ---------- Buttons ---------- */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.wp-block-button .wp-block-button__link, .cf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--cf-body); font-size: 1.05rem; font-weight: 600; line-height: 1.2;
  padding: 17px 28px; border-radius: 999px; border: 1.5px solid var(--cf-ink);
  background: var(--cf-ink); color: var(--cf-white);
  text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.wp-block-button .wp-block-button__link:hover, .cf-btn:hover { background: var(--cf-sky); border-color: var(--cf-sky); color: var(--cf-ink); transform: translateY(-1px); }
.wp-block-button.cf-btn-sky .wp-block-button__link, .cf-btn.cf-btn-sky { background: var(--cf-sky); border-color: var(--cf-sky); color: var(--cf-ink); }
.wp-block-button.cf-btn-sky .wp-block-button__link:hover, .cf-btn.cf-btn-sky:hover { background: var(--cf-ink); border-color: var(--cf-ink); color: var(--cf-white); }
.cf-dark .wp-block-button.cf-btn-sky .wp-block-button__link:hover, .cf-dark .cf-btn.cf-btn-sky:hover { background: var(--cf-white); border-color: var(--cf-white); color: var(--cf-ink); }
.wp-block-button.cf-btn-ghost .wp-block-button__link { background: transparent; color: var(--cf-ink); border-color: #B9C2CC; }
.wp-block-button.cf-btn-ghost .wp-block-button__link:hover { background: var(--cf-ink); border-color: var(--cf-ink); color: var(--cf-white); }
.cf-arrow .wp-block-button__link::after, .cf-btn.cf-arrow::after { content: "\2192"; transition: transform .18s ease; }
.cf-arrow .wp-block-button__link:hover::after, .cf-btn.cf-arrow:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.cf-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--cf-line); }
.admin-bar .cf-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .cf-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .cf-header { top: 0; } }
.cf-header-inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.cf-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--cf-ink); text-decoration: none; flex: none; }
.cf-logo:hover { color: var(--cf-ink); }
.cf-logo svg { width: 46px; height: 23px; flex: none; }
.cf-logo-word { font-family: var(--cf-body); font-weight: 700; font-size: 0.98rem; letter-spacing: 0.2em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.cf-logo-word span { color: var(--cf-sky-text); }
.cf-logo img { max-height: 44px; width: auto; display: block; }
.cf-nav { margin-left: auto; }
.cf-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.cf-nav a { display: block; padding: 10px 14px; color: var(--cf-ink); text-decoration: none; font-weight: 500; font-size: 1rem; border-radius: 999px; transition: background-color .15s ease; }
.cf-nav a:hover { background: var(--cf-paper); }
.cf-nav .current-menu-item > a, .cf-nav .current_page_item > a { background: var(--cf-sky-soft); color: var(--cf-sky-ink); }
.cf-nav li { position: relative; }
.cf-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.cf-nav .sub-menu { display: block; position: absolute; left: 0; top: 100%; min-width: 290px; padding: 10px; background: var(--cf-white); border: 1px solid var(--cf-line); border-radius: 16px; box-shadow: 0 24px 48px -24px rgba(10, 10, 10, .35); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s ease, transform .15s ease, visibility .15s; }
.cf-nav li:hover > .sub-menu, .cf-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.cf-nav .sub-menu a { border-radius: 10px; padding: 10px 14px; white-space: nowrap; }
.cf-header-cta { display: flex; align-items: center; flex: none; }
.cf-header .cf-btn { padding: 12px 20px; font-size: 0.98rem; }
.cf-burger { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--cf-line); border-radius: 12px; background: var(--cf-white); color: var(--cf-ink); cursor: pointer; align-items: center; justify-content: center; }
.cf-burger span, .cf-burger span::before, .cf-burger span::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, background-color .2s ease; }
.cf-burger span { position: relative; }
.cf-burger span::before, .cf-burger span::after { content: ""; position: absolute; left: 0; }
.cf-burger span::before { top: -6px; }
.cf-burger span::after { top: 6px; }
.cf-burger[aria-expanded="true"] span { background: transparent; }
.cf-burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.cf-burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 980px) {
  .cf-burger { display: inline-flex; }
  .cf-header { background: var(--cf-white); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .cf-header-inner { flex-wrap: wrap; gap: 0 16px; min-height: 0; padding-top: 15px; align-content: flex-start; }
  .cf-header-inner > .cf-logo, .cf-header-inner > .cf-burger { margin-bottom: 15px; }
  .cf-nav, .cf-header-cta { display: none; width: 100%; margin: 0; }
  .cf-header.is-open .cf-nav, .cf-header.is-open .cf-header-cta { display: block; }
  .cf-nav ul { flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--cf-line); padding-block: 8px; }
  .cf-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; border: 0; border-top: 0; border-radius: 0; box-shadow: none; padding: 0 0 6px 14px; }
  .cf-nav .sub-menu a { font-size: 1.02rem; font-weight: 500; padding: 9px 12px; white-space: normal; color: var(--cf-muted); }
  .cf-nav .menu-item-has-children > a::after { display: none; }
  .cf-nav a { padding: 13px 12px; font-size: 1.15rem; font-weight: 600; }
  .cf-header-cta { padding: 8px 0 24px; }
  .cf-header-cta .cf-btn { width: 100%; padding: 16px 20px; }
}

/* ---------- Pictures ---------- */
.wp-block-image.cf-art, figure.cf-art { margin: 0; }
.cf-art img { display: block; width: 100%; height: auto; border-radius: 28px; box-shadow: 0 40px 70px -40px rgba(10, 34, 49, .55); }

/* ---------- Hero ---------- */
.cf-hero { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 88px) clamp(56px, 8vw, 112px); background: radial-gradient(900px 520px at 88% 0%, #DCEFFB 0%, rgba(220, 239, 251, 0) 70%), var(--cf-white); }
.cf-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.cf-hero h1 { font-size: clamp(2.8rem, 6.6vw, 5.1rem); line-height: 1; letter-spacing: -0.01em; margin-bottom: 0.4em; }
.cf-hero .cf-lede { margin-bottom: 2rem; max-width: 22em; }
@media (max-width: 900px) { .cf-hero-grid { grid-template-columns: 1fr; } }

/* ---------- Page hero (service pages) and page head ---------- */
.cf-pagehero { background: var(--cf-paper); padding-block: clamp(40px, 6vw, 88px); }
.cf-pagehero .cf-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.cf-pagehero h1 { margin-bottom: 0.4em; }
.cf-pagehero .cf-lede { margin-bottom: 2rem; }
.cf-pagehead { background: var(--cf-paper); padding-block: clamp(48px, 7vw, 96px); }
.cf-pagehead h1 { max-width: 14em; }
.cf-pagehead .cf-lede { margin-bottom: 0; }
.cf-pagehead .cf-meta { margin: 1rem 0 0; font-size: 1rem; color: var(--cf-muted); }
@media (max-width: 900px) { .cf-pagehero .cf-hero-grid { grid-template-columns: 1fr; } }

/* ---------- Grids ---------- */
.cf-grid { display: grid; gap: 20px; }
.cf-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cf-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cf-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1040px) { .cf-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .cf-grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .cf-grid-4, .cf-grid-2 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.cf-card { position: relative; display: flex; flex-direction: column; background: var(--cf-white); border: 1px solid var(--cf-line); border-radius: var(--cf-radius); padding: 28px; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.cf-card > :last-child { margin-bottom: 0; }
.cf-card h3 { margin-bottom: 8px; }
.cf-card p { color: var(--cf-muted); font-size: 1.05rem; line-height: 1.5; }
.cf-card h3 a { color: inherit; text-decoration: none; }
.cf-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.cf-card:has(h3 a):hover { border-color: var(--cf-ink); transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(10, 10, 10, .4); }

/* Service card with picture */
.cf-svc { padding: 0; overflow: hidden; }
.cf-svc > * { margin-inline: 28px; }
.cf-svc > .cf-art { margin: 0 0 26px; }
.cf-svc .cf-art img { border-radius: 0; box-shadow: none; aspect-ratio: 720 / 500; object-fit: cover; }
.cf-svc h3 { font-size: 1.45rem; }
.cf-svc > :last-child { margin-bottom: 28px; }
p.cf-more { margin-top: auto; padding-top: 12px; font-weight: 600; color: var(--cf-ink); font-size: 1.05rem; }
p.cf-more::after { content: " \2192"; color: var(--cf-sky-text); transition: margin-left .18s ease; }
.cf-card:hover p.cf-more::after { margin-left: 4px; }
p.cf-more a { color: inherit; text-decoration: none; }

ul.cf-checks { list-style: none; margin: 4px 0 18px; padding: 0; display: grid; gap: 10px; font-size: 1.05rem; line-height: 1.35; }
ul.cf-checks li { position: relative; padding-left: 32px; }
ul.cf-checks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--cf-sky-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312629A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9'/%3E%3C/svg%3E") center / 16px no-repeat; }

/* ---------- Facts band ---------- */
.cf-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.cf-fact { padding: 8px clamp(16px, 2.4vw, 32px); border-left: 1px solid var(--cf-ink-line); }
.cf-fact:first-child { border-left: 0; padding-left: 0; }
.cf-fact p { margin: 0; }
p.cf-fact-num { font-family: var(--cf-display); font-weight: 400; font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.1; letter-spacing: 0; color: var(--cf-white); margin-bottom: 8px; }
.cf-fact:first-child p.cf-fact-num { color: var(--cf-sky); }
p.cf-fact-label { font-size: 1rem; line-height: 1.35; color: var(--cf-on-dark); }
@media (max-width: 860px) {
  .cf-facts { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .cf-fact:nth-child(odd) { border-left: 0; padding-left: 0; }
}

/* ---------- Icon tiles ---------- */
.cf-tiles { gap: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px); }
.cf-tile > :last-child { margin-bottom: 0; }
.cf-tile::before { content: ""; display: block; width: 56px; height: 56px; border-radius: 16px; margin-bottom: 18px; background-color: var(--cf-sky-soft); background-position: center; background-size: 28px; background-repeat: no-repeat; }
.cf-tile h3 { margin-bottom: 6px; font-size: 1.3rem; }
.cf-tile p { color: var(--cf-muted); font-size: 1.05rem; line-height: 1.45; }
.cf-ico-map::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312629A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4 3 6.5v13L9 17l6 2.5 6-2.5v-13L15 6.5 9 4ZM9 4v13M15 6.5v13'/%3E%3C/svg%3E"); }
.cf-ico-grid::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312629A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h6v6H4zM14 4h6v6h-6zM4 14h6v6H4zM14 14h6v6h-6z'/%3E%3C/svg%3E"); }
.cf-ico-book::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312629A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h11a3 3 0 0 1 3 3v13H8a3 3 0 0 1-3-3V4ZM5 17a3 3 0 0 1 3-3h11M9 8h6'/%3E%3C/svg%3E"); }
.cf-ico-swap::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312629A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h14m0 0-4-4m4 4-4 4M20 16H6m0 0 4-4m-4 4 4 4'/%3E%3C/svg%3E"); }
.cf-ico-users::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312629A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7ZM2.5 20c.5-4 3-6 6.5-6s6 2 6.5 6M16 4.5a3.5 3.5 0 0 1 0 6.5M18 14.5c2 .800 3.200 2.600 3.5 5.5'/%3E%3C/svg%3E"); }
.cf-ico-flag::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312629A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 21V4M5 4h12l-2.5 4.5L17 13H5'/%3E%3C/svg%3E"); }
.cf-ico-list::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312629A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h12M8 12h12M8 18h12M4 6h.01M4 12h.01M4 18h.01'/%3E%3C/svg%3E"); }
.cf-ico-check::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312629A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18ZM8 12.5l2.800 2.800L16 9.5'/%3E%3C/svg%3E"); }
.cf-ico-up::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312629A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7m0 0H9m8 0v8'/%3E%3C/svg%3E"); }
.cf-ico-down::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312629A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 7 7 17m0 0h8m-8 0V9'/%3E%3C/svg%3E"); }
.cf-ico-calendar::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312629A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16v14H4zM4 10h16M8 3v4M16 3v4M9 15l2 2 4-4'/%3E%3C/svg%3E"); }
.cf-ico-shield::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312629A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4.5 6v6c0 4.5 3 7.5 7.5 9 4.5-1.5 7.5-4.5 7.5-9V6L12 3ZM9 12l2.200 2.200L15.5 10'/%3E%3C/svg%3E"); }
.cf-ico-chart::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312629A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20V4M4 20h16M8 16v-4M12 16V8M16 16v-6'/%3E%3C/svg%3E"); }
.cf-ico-wave::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312629A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 15c3 0 3-6 6-6s3 6 6 6 3-6 6-6M3 20h18'/%3E%3C/svg%3E"); }
.cf-ico-target::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312629A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18ZM12 16a4 4 0 1 0 0-8 4 4 0 0 0 0 8ZM12 12h.01'/%3E%3C/svg%3E"); }
.cf-ico-screen::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312629A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h18v12H3zM12 16v4M8 20h8M7 12l3-3 3 2 4-4'/%3E%3C/svg%3E"); }
.cf-ico-chat::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312629A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4V5ZM8 9.5h8M8 12.5h5'/%3E%3C/svg%3E"); }
.cf-ico-trend::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312629A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7l6 6 4-4 8 8m0 0v-6m0 6h-6'/%3E%3C/svg%3E"); }
.cf-ico-briefcase::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312629A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h18v12H3zM9 8V5h6v3M3 13h18'/%3E%3C/svg%3E"); }
.cf-ico-search::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312629A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 18a7 7 0 1 0 0-14 7 7 0 0 0 0 14ZM20 20l-4-4'/%3E%3C/svg%3E"); }
.cf-ico-layers::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312629A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 3 8l9 5 9-5-9-5ZM3 12.5l9 5 9-5M3 17l9 5 9-5'/%3E%3C/svg%3E"); }
.cf-ico-tag::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312629A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12V4h8l10 10-8 8L3 12ZM7.5 8h.01'/%3E%3C/svg%3E"); }
.cf-ico-user::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312629A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8ZM4 21c.800-4.5 4-7 8-7s7.200 2.5 8 7'/%3E%3C/svg%3E"); }
.cf-ico-clip::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312629A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4h8v3H8zM6 5.5H5v15h14v-15h-1M9 12h6M9 16h4'/%3E%3C/svg%3E"); }

/* ---------- Steps ---------- */
.cf-steps { gap: clamp(20px, 3vw, 40px); }
.cf-step { border-top: 2px solid var(--cf-ink); padding-top: 22px; }
.cf-step > :last-child { margin-bottom: 0; }
p.cf-num { font-family: var(--cf-display); font-weight: 400; font-variant-numeric: tabular-nums; margin: 0; }
.cf-step p.cf-num { font-size: clamp(2.6rem, 5vw, 3.75rem); line-height: 1; letter-spacing: 0; color: var(--cf-sky-text); margin-bottom: 18px; }
.cf-step h3 { font-size: 1.5rem; margin-bottom: 6px; }
.cf-step p { color: var(--cf-muted); }

/* ---------- Split ---------- */
.cf-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.cf-split > .wp-block-group > :last-child { margin-bottom: 0; }
.cf-split .cf-lede { margin-bottom: 1.6rem; }
@media (max-width: 900px) { .cf-split { grid-template-columns: 1fr; } }

/* ---------- Best-for banner ---------- */
.cf-bestfor { background: var(--cf-sky-soft); border-radius: 28px; padding: clamp(28px, 5vw, 56px); }
.cf-bestfor > :last-child { margin-bottom: 0; }
p.cf-bestfor-text { font-family: var(--cf-display); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.2; letter-spacing: 0; max-width: 24em; margin: 0; }

/* ---------- Tag list ---------- */
ul.cf-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
ul.cf-tags li { padding: 10px 18px; border: 1px solid var(--cf-line); border-radius: 999px; background: var(--cf-white); font-size: 1rem; line-height: 1.3; font-weight: 500; }
ul.cf-rows { list-style: none; margin: 0; padding: 0; }
ul.cf-rows li { display: flex; align-items: baseline; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--cf-line); font-family: var(--cf-display); font-weight: 400; font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; }
ul.cf-rows li:last-child { border-bottom: 0; }
ul.cf-rows li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cf-sky); flex: none; transform: translateY(-3px); }

/* ---------- CTA band ---------- */
.cf-cta { padding-block: clamp(40px, 6vw, 80px); }
.cf-cta-box { background: var(--cf-ink); color: var(--cf-white); border-radius: 32px; padding: clamp(36px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 28px clamp(32px, 6vw, 80px); align-items: center; position: relative; overflow: hidden; }
.cf-cta-box::before { content: ""; position: absolute; right: -6%; top: -60%; width: min(720px, 70%); aspect-ratio: 2 / 1; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 32' fill='none'%3E%3Cpath d='M32 16C26 5 5 3 5 16s21 11 27 0Z' stroke='%23FFFFFF' stroke-opacity='.1' stroke-width='.4'/%3E%3Cpath d='M32 16c6-11 27-13 27 0S38 27 32 16Z' stroke='%23349FDF' stroke-opacity='.55' stroke-width='.4'/%3E%3C/svg%3E") center / contain no-repeat; }
.cf-cta h2 { margin: 0; max-width: 13em; position: relative; }
.cf-cta .wp-block-buttons, .cf-cta .cf-btn { position: relative; }
.cf-cta .wp-block-button .wp-block-button__link, .cf-cta .cf-btn { background: var(--cf-sky); border-color: var(--cf-sky); color: var(--cf-ink); }
.cf-cta .wp-block-button .wp-block-button__link:hover, .cf-cta .cf-btn:hover { background: var(--cf-white); border-color: var(--cf-white); color: var(--cf-ink); }
.cf-cta .wp-block-button.cf-btn-ghost .wp-block-button__link { background: transparent; color: var(--cf-white); border-color: rgba(255, 255, 255, .4); }
.cf-cta .wp-block-button.cf-btn-ghost .wp-block-button__link:hover { background: var(--cf-white); border-color: var(--cf-white); color: var(--cf-ink); }
@media (max-width: 900px) { .cf-cta-box { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.cf-contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .cf-contact-grid { grid-template-columns: 1fr; } }
.cf-contact-grid h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 1em; }
.cf-details { display: grid; gap: 0; }
.cf-detail { padding: 18px 0; border-top: 1px solid var(--cf-line); }
.cf-detail:last-child { border-bottom: 1px solid var(--cf-line); }
.cf-detail p { margin: 0; }
p.cf-detail-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cf-muted); margin-bottom: 4px; }
p.cf-detail-value { font-family: var(--cf-display); font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; overflow-wrap: anywhere; }
p.cf-detail-value a { color: var(--cf-ink); text-decoration-color: var(--cf-sky); text-decoration-thickness: 2px; }
p.cf-detail-value a:hover { color: var(--cf-sky-ink); }

.cf-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; scroll-margin-top: 110px; }
.cf-field { display: flex; flex-direction: column; gap: 7px; }
.cf-field-full { grid-column: 1 / -1; }
.cf-field label { font-size: 0.95rem; font-weight: 600; }
.cf-field label span { color: var(--cf-sky-ink); }
.cf-form input[type="text"], .cf-form input[type="email"], .cf-form input[type="tel"], .cf-form textarea {
  width: 100%; font: inherit; color: var(--cf-ink); background: var(--cf-white);
  border: 1.5px solid #C5CDD6; border-radius: 12px; padding: 14px 16px; transition: border-color .15s ease, box-shadow .15s ease;
}
.cf-form textarea { min-height: 150px; resize: vertical; }
.cf-form input:focus, .cf-form textarea:focus { outline: none; border-color: var(--cf-ink); box-shadow: 0 0 0 4px rgba(52, 159, 223, .28); }
.cf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.cf-form-note { grid-column: 1 / -1; font-size: 0.9rem; color: var(--cf-muted); margin: 0; }
.cf-notice { grid-column: 1 / -1; padding: 16px 18px; border-radius: 12px; font-weight: 500; margin: 0 0 4px; }
.cf-notice-ok { background: var(--cf-sky-soft); border: 1px solid var(--cf-sky); }
.cf-notice-err { background: #FDECEC; border: 1px solid #D9534F; }
@media (max-width: 620px) { .cf-form { grid-template-columns: 1fr; } }

/* ---------- Subscribe ---------- */
.cf-subscribe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(32px, 6vw, 80px); align-items: center; }
.cf-subscribe h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0; }
.cf-subscribe-form { display: flex; gap: 10px; flex-wrap: wrap; }
.cf-subscribe-form input[type="email"] { flex: 1 1 220px; font: inherit; padding: 15px 20px; border-radius: 999px; border: 1.5px solid var(--cf-ink-line); background: var(--cf-ink-2); color: var(--cf-white); }
.cf-subscribe-form input[type="email"]::placeholder { color: #8A94A0; }
.cf-subscribe-form input[type="email"]:focus { outline: none; border-color: var(--cf-sky); box-shadow: 0 0 0 4px rgba(52, 159, 223, .28); }
.cf-subscribe-form .cf-notice { flex: 1 1 100%; color: var(--cf-ink); }
.cf-subscribe-small { flex: 1 1 100%; font-size: 0.9rem; margin: 4px 0 0; color: var(--cf-on-dark); }
@media (max-width: 900px) { .cf-subscribe { grid-template-columns: 1fr; } }

/* ---------- Posts ---------- */
.cf-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .cf-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cf-posts { grid-template-columns: 1fr; } }
.cf-post-date { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cf-sky-ink); margin: 0 0 clamp(20px, 3vw, 36px); }
.cf-empty { border: 1px dashed #B9C2CC; border-radius: var(--cf-radius); padding: clamp(24px, 4vw, 40px); background: var(--cf-paper); }
.cf-empty p { margin: 0; max-width: 40em; }
.cf-pagination { margin-top: 40px; display: flex; gap: 8px; flex-wrap: wrap; }
.cf-pagination .page-numbers { display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid var(--cf-line); border-radius: 999px; text-decoration: none; color: var(--cf-ink); font-weight: 600; }
.cf-pagination .page-numbers.current, .cf-pagination a.page-numbers:hover { background: var(--cf-ink); border-color: var(--cf-ink); color: var(--cf-white); }

/* ---------- Prose (articles and plain pages) ---------- */
.cf-prose { max-width: 44rem; }
.cf-prose > * { margin-top: 0; margin-bottom: 1.25em; }
.cf-prose h2 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); margin-top: 1.8em; margin-bottom: .55em; }
.cf-prose h3 { font-size: 1.4rem; margin-top: 1.6em; margin-bottom: .5em; }
.cf-prose ul, .cf-prose ol { padding-left: 1.3em; }
.cf-prose li { margin-bottom: .45em; }
.cf-prose li::marker { color: var(--cf-sky-ink); font-weight: 600; }
.cf-prose blockquote { margin-inline: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--cf-sky); font-family: var(--cf-display); font-size: 1.35rem; line-height: 1.4; }
.cf-prose img { border-radius: var(--cf-radius); }
.cf-prose table { width: 100%; border-collapse: collapse; font-size: 1rem; font-variant-numeric: tabular-nums; }
.cf-prose th, .cf-prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--cf-line); }
.cf-prose th { font-weight: 600; border-bottom: 2px solid var(--cf-ink); }
.cf-prose .wp-block-table { overflow-x: auto; }
.cf-back { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; text-decoration: none; margin-top: 24px; }
.cf-back::before { content: "\2190"; }

/* ---------- Footer ---------- */
.cf-footer { background: var(--cf-ink); color: var(--cf-on-dark); padding-block: clamp(56px, 7vw, 88px) 28px; font-size: 1rem; }
.cf-footer a { color: var(--cf-on-dark); text-decoration: none; }
.cf-footer a:hover { color: var(--cf-white); }
.cf-footer .cf-logo, .cf-footer .cf-logo:hover { color: var(--cf-white); }
.cf-footer .cf-logo-word span { color: var(--cf-sky); }
.cf-footer-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px clamp(24px, 4vw, 56px); padding-bottom: clamp(40px, 5vw, 64px); }
.cf-footer-brand .cf-logo { margin-bottom: 22px; }
.cf-footer-tag { font-family: var(--cf-display); font-weight: 400; font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.15; letter-spacing: -0.02em; color: var(--cf-white); margin: 0 0 14px; max-width: 13em; }
.cf-footer-brand p { max-width: 26em; }
.cf-footer h2 { font-family: var(--cf-body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cf-white); margin: 6px 0 16px; }
.cf-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.cf-footer-bottom { border-top: 1px solid var(--cf-ink-line); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 0.9rem; }
.cf-footer-bottom p { margin: 0; }
@media (max-width: 960px) { .cf-footer-top { grid-template-columns: 1fr 1fr; } .cf-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .cf-footer-top { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.cf-svc > ul.cf-checks { margin-inline: 28px; }
@media (max-width: 900px) {
  .cf-tiles { gap: 26px; }
  .cf-tile { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 18px; align-content: start; }
  .cf-tile::before { grid-row: 1 / span 2; margin: 0; }
  .cf-tile h3 { align-self: end; margin-bottom: 2px; }
}

.cf-steps + .wp-block-buttons { margin-top: clamp(28px, 4vw, 48px); }

/* Four-up service cards */
.cf-grid-4 > .cf-svc > *, .cf-grid-4 > .cf-svc > ul.cf-checks { margin-inline: 22px; }
.cf-grid-4 > .cf-svc > .cf-art { margin: 0 0 22px; }
.cf-grid-4 > .cf-svc h3 { font-size: 1.3rem; }
.cf-grid-4 > .cf-svc p, .cf-grid-4 > .cf-svc ul.cf-checks { font-size: 1rem; }

/* ---------- FAQ ---------- */
.cf-split-top { align-items: start; }
.cf-faqs { display: grid; gap: 12px; }
details.cf-faq { background: var(--cf-white); border: 1px solid var(--cf-line); border-radius: 16px; }
details.cf-faq summary { position: relative; cursor: pointer; list-style: none; padding: 20px 60px 20px 24px; font-weight: 600; font-size: 1.1rem; line-height: 1.35; border-radius: 16px; }
details.cf-faq summary::-webkit-details-marker { display: none; }
details.cf-faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; line-height: 1; color: var(--cf-sky-text); }
details.cf-faq[open] summary::after { content: "\2013"; }
details.cf-faq > p { margin: 0; padding: 0 24px 22px; color: var(--cf-muted); max-width: 44em; }

/* Reserve picture space before images load */
.cf-art img { aspect-ratio: 720 / 500; }
.cf-hero .cf-art img { aspect-ratio: 800 / 680; }
.cf-art img[src$="mark.svg"] { aspect-ratio: 720 / 560; }

/* Track-record cards under the founder block */
.cf-proof { margin-top: clamp(32px, 5vw, 56px); }
.cf-proof .cf-eyebrow { margin-bottom: 14px; font-size: 0.75rem; }
.cf-form-note a { color: var(--cf-sky-ink); }
.cf-subscribe-small a { color: var(--cf-white); }

/* =====================================================================
   v4: motion and interaction
   ===================================================================== */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .32s; }
::selection { background: var(--cf-sky); color: var(--cf-ink); }

/* Reading progress */
.cf-progress { position: fixed; left: 0; top: 0; z-index: 200; height: 3px; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: var(--cf-sky); pointer-events: none; }
.admin-bar .cf-progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .cf-progress { top: 46px; } }
.cf-header { transition: box-shadow .25s ease; }
.cf-header.is-scrolled { box-shadow: 0 10px 30px -22px rgba(10, 10, 10, .45); }

/* Scroll reveal: only when the script is running and motion is welcome */
.cf-js .cf-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--cf-delay, 0ms); will-change: opacity, transform; }
.cf-js .cf-reveal.is-in { opacity: 1; transform: none; }

/* Hero entrance */
@keyframes cf-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes cf-pop { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes cf-underline { from { background-size: 0 .1em; } to { background-size: 100% .1em; } }
.cf-js .cf-hero .cf-eyebrow, .cf-js .cf-pagehero .cf-eyebrow, .cf-js .cf-pagehead .cf-eyebrow { animation: cf-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.cf-js .cf-hero h1, .cf-js .cf-pagehero h1, .cf-js .cf-pagehead h1 { animation: cf-rise .8s cubic-bezier(.2, .7, .2, 1) .08s both; }
.cf-js .cf-hero .cf-lede, .cf-js .cf-pagehero .cf-lede, .cf-js .cf-pagehead .cf-lede { animation: cf-rise .8s cubic-bezier(.2, .7, .2, 1) .18s both; }
.cf-js .cf-hero .wp-block-buttons, .cf-js .cf-pagehero .wp-block-buttons { animation: cf-rise .8s cubic-bezier(.2, .7, .2, 1) .28s both; }
.cf-js .cf-hero .cf-art, .cf-js .cf-pagehero .cf-art { animation: cf-pop 1s cubic-bezier(.2, .7, .2, 1) .15s both; }
.cf-hero h1 em, .cf-pagehero h1 em, .cf-pagehead h1 em { background: linear-gradient(var(--cf-sky), var(--cf-sky)) 0 94% / 100% .1em no-repeat; background-size: 100% .1em; padding-bottom: .02em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.cf-js .cf-hero h1 em, .cf-js .cf-pagehero h1 em, .cf-js .cf-pagehead h1 em { animation: cf-underline .9s cubic-bezier(.6, .1, .2, 1) .75s both; }
.cf-hero h1 em, .cf-pagehero h1 em, .cf-pagehead h1 em { background-image: linear-gradient(rgba(52, 159, 223, .28), rgba(52, 159, 223, .28)); }

/* Picture tilt on hover */
.cf-hero .cf-art img, .cf-pagehero .cf-art img, .cf-split .cf-art img { transition: transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .6s ease; }
.cf-hero .cf-art:hover img, .cf-pagehero .cf-art:hover img, .cf-split .cf-art:hover img { transform: translateY(-6px) scale(1.012); box-shadow: 0 54px 90px -44px rgba(10, 34, 49, .65); }

/* Button fill sweep */
.wp-block-button .wp-block-button__link, .cf-btn { position: relative; overflow: hidden; isolation: isolate; }

/* ---------- Services marquee ---------- */
@keyframes cf-marquee { to { transform: translateX(-50%); } }
.cf-marquee { background: var(--cf-ink); color: var(--cf-white); overflow: hidden; padding-block: 22px; border-block: 1px solid var(--cf-ink-line); }
.cf-marquee-track { display: flex; width: max-content; animation: cf-marquee 48s linear infinite; }
.cf-marquee:hover .cf-marquee-track, .cf-marquee:focus-within .cf-marquee-track { animation-play-state: paused; }
.cf-marquee ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; flex: none; }
.cf-marquee li { display: flex; align-items: center; font-family: var(--cf-display); font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1; white-space: nowrap; }
.cf-marquee li::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--cf-sky); margin-inline: clamp(20px, 3vw, 40px); }
.cf-marquee a { color: var(--cf-white); text-decoration: none; transition: color .15s ease; }
.cf-marquee a:hover { color: var(--cf-sky); }

/* ---------- Services index with live preview ---------- */
.cf-index-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.cf-index { border-bottom: 1px solid var(--cf-line); }
.cf-index-row { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) 132px; gap: 4px 20px; align-items: center; padding-block: 22px; border-top: 1px solid var(--cf-line); transition: padding-left .35s cubic-bezier(.2, .7, .2, 1), background-color .25s ease; }
.cf-index-row > * { margin: 0; }
.cf-index-row > p.cf-num { grid-row: 1 / span 2; align-self: start; padding-top: .45em; font-family: var(--cf-body); font-weight: 600; font-size: .9rem; letter-spacing: .08em; color: var(--cf-sky-ink); }
.cf-index-row > h3 { grid-column: 2; font-size: clamp(1.45rem, 2.6vw, 2.1rem); line-height: 1.12; transition: color .25s ease; }
.cf-index-row > h3 a { color: inherit; text-decoration: none; }
.cf-index-row > h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.cf-index-row > p:not(.cf-num) { grid-column: 2; color: var(--cf-muted); font-size: 1.05rem; }
.cf-index-row > .cf-art { grid-column: 3; grid-row: 1 / span 2; }
.cf-index-row > .cf-art img { border-radius: 14px; box-shadow: none; }
.cf-index-row::after { content: "\2192"; position: absolute; right: 150px; top: 50%; transform: translate(-10px, -50%); opacity: 0; font-size: 1.6rem; color: var(--cf-sky-text); transition: opacity .25s ease, transform .35s cubic-bezier(.2, .7, .2, 1); pointer-events: none; }
.cf-index-row:hover, .cf-index-row:focus-within { padding-left: 14px; }
.cf-index-row:hover > h3, .cf-index-row:focus-within > h3 { color: var(--cf-sky-text); }
.cf-index-row:hover::after, .cf-index-row:focus-within::after { opacity: 1; transform: translate(0, -50%); }
.cf-index-preview { display: none; }
@media (min-width: 1000px) {
  .cf-js .cf-index-layout { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
  .cf-js .cf-index-row { grid-template-columns: 56px minmax(0, 1fr); padding-right: 56px; }
  .cf-js .cf-index-row > .cf-art { display: none; }
  .cf-js .cf-index-row::after { right: 8px; }
  .cf-js .cf-index-row.is-active { padding-left: 14px; }
  .cf-js .cf-index-row.is-active > h3 { color: var(--cf-sky-text); }
  .cf-js .cf-index-row.is-active::after { opacity: 1; transform: translate(0, -50%); }
  .cf-js .cf-index-preview { display: block; position: sticky; top: 112px; aspect-ratio: 720 / 500; border-radius: 28px; overflow: hidden; background: var(--cf-ink); box-shadow: 0 40px 70px -40px rgba(10, 34, 49, .55); }
  .cf-index-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); transition: opacity .5s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
  .cf-index-preview img.is-active { opacity: 1; transform: none; }
}
@media (max-width: 620px) {
  .cf-index-row { grid-template-columns: 40px minmax(0, 1fr); }
  .cf-index-row > .cf-art { display: none; }
  .cf-index-row::after { right: 4px; opacity: 1; transform: translate(0, -50%); }
  .cf-index-row { padding-right: 36px; }
}

/* ---------- CTA glow follows the pointer ---------- */
.cf-cta-box { --cf-mx: 80%; --cf-my: 0%; }
.cf-cta-box::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--cf-mx) var(--cf-my), rgba(52, 159, 223, .28), rgba(52, 159, 223, 0) 70%); transition: opacity .3s ease; }
.cf-cta-box > * { position: relative; z-index: 1; }

/* ---------- ECL calculator ---------- */
.cf-calc { border: 1px solid var(--cf-line); border-radius: 24px; background: var(--cf-white); padding: clamp(18px, 3vw, 32px); box-shadow: 0 30px 60px -44px rgba(10, 34, 49, .45); }
.cf-calc-scroll { position: relative; overflow-x: auto; }
.cf-calc table { width: 100%; min-width: 520px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.cf-calc th { text-align: left; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cf-muted); padding: 0 8px 12px; }
.cf-calc td { padding: 6px 8px; border-top: 1px solid var(--cf-line); vertical-align: middle; }
.cf-calc th:nth-child(n+2), .cf-calc td:nth-child(n+2) { text-align: right; }
.cf-calc input { width: 100%; font: inherit; font-variant-numeric: tabular-nums; color: var(--cf-ink); background: var(--cf-paper); border: 1.5px solid transparent; border-radius: 10px; padding: 10px 12px; }
.cf-calc td:nth-child(n+2) input { text-align: right; }
.cf-calc input:focus { outline: none; border-color: var(--cf-ink); background: var(--cf-white); box-shadow: 0 0 0 4px rgba(52, 159, 223, .28); }
.cf-calc output { display: block; font-weight: 600; padding-right: 4px; }
.cf-calc-remove { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--cf-muted); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.cf-calc-remove:hover { background: var(--cf-paper); color: var(--cf-ink); }
.cf-calc tfoot td { border-top: 2px solid var(--cf-ink); padding-top: 16px; font-weight: 600; }
.cf-calc-total { font-family: var(--cf-display); font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--cf-sky-text); }
.cf-calc-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.cf-calc-actions .cf-btn { padding: 11px 18px; font-size: .95rem; }
.cf-calc-actions .cf-btn-plain { background: transparent; color: var(--cf-ink); border-color: #B9C2CC; }
.cf-calc-actions .cf-btn-plain:hover { background: var(--cf-ink); color: var(--cf-white); border-color: var(--cf-ink); }
.cf-calc-rate { margin-left: auto; color: var(--cf-muted); font-size: .98rem; }
.cf-calc-note { margin: 14px 0 0; font-size: .9rem; color: var(--cf-muted); }

/* ---------- Footer wordmark ---------- */
.cf-footer-big { font-family: var(--cf-display); font-size: clamp(2.6rem, 9.5vw, 8.5rem); line-height: .95; letter-spacing: -.01em; color: var(--cf-white); margin: 0 0 clamp(40px, 6vw, 72px); }
.cf-footer-big em { font-style: normal; color: var(--cf-sky); }

@media (prefers-reduced-motion: reduce) {
  .cf-marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .cf-marquee ul[aria-hidden="true"] { display: none; }
  .cf-marquee ul { flex-wrap: wrap; row-gap: 14px; padding-inline: var(--cf-gutter); }
  .cf-js .cf-hero *, .cf-js .cf-pagehero *, .cf-js .cf-pagehead * { animation: none !important; }
}

@media (max-width: 620px) {
  .cf-calc table { min-width: 0; display: block; }
  .cf-calc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cf-calc tbody, .cf-calc tfoot { display: block; }
  .cf-calc tr { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .8fr) minmax(0, 1fr) 32px; gap: 8px; align-items: center; padding: 12px 0; border-top: 1px solid var(--cf-line); }
  .cf-calc td { display: block; padding: 0; border: 0; }
  .cf-calc tbody td:first-child { grid-column: 1 / -1; }
  .cf-calc input { padding: 9px 10px; font-size: 1rem; }
  .cf-calc tfoot tr { border-top: 2px solid var(--cf-ink); }
  .cf-calc tfoot td { border: 0; padding: 0; }
  .cf-calc tfoot td:first-child { grid-column: 1 / -1; }
  .cf-calc tfoot td:nth-child(3) { display: none; }
  .cf-calc tfoot td:nth-child(4) { grid-column: 2 / 4; }
  .cf-calc-rate { margin-left: 0; flex: 1 1 100%; }
  .cf-calc-remove { width: 32px; height: 32px; }
}
