/* Shared v2 styles for the service pages: header, dark page hero, closing banner, footer.
   Colour roles: sand = main, dark blue = dark sections, buttons and icons, Yellow Sapling = banners and highlights on dark, mid blue = accent text, brick = problem state only. */
:root {
  --ink: #26405A;
  --ink-3: #345171;
  --paper: #FFFFFF;
  --blush: #F4F0E2;
  --mint: #DFD6AE;
  --mint-deep: #CFC493;
  --terra: #B5654F;
  --terra-dark: #3A6A8C;
  --terra-light: #E9B4A4;
  --muted: #5A6470;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --line: rgba(38,64,90,0.12);
  --head: 'Jost', 'Century Gothic', 'Futura', system-ui, sans-serif;
}
html { scroll-behavior: smooth; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 500; font-size: 16px; text-decoration: none; border-radius: 999px; padding: 14px 26px; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-3); }
.btn-line { border-color: rgba(38,64,90,.3); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-mint { background: var(--mint); color: var(--ink); }
.btn-mint:hover { background: var(--paper); }
.btn-ghost { border-color: rgba(250,247,242,.35); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); }

/* Header (mint top banner) */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--mint); border-bottom: 1px solid var(--line); }
.site-header .nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--head); font-weight: 600; font-size: 19px; color: var(--ink); }
.brand-mark { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--ink); color: var(--mint); font-size: 15px; letter-spacing: .02em; transition: background .15s ease; }
.brand:hover .brand-mark { background: var(--ink-3); }
.brand-logo { display: block; flex: 0 0 40px; border-radius: 10px; transition: transform .15s ease; }
.brand:hover .brand-logo { transform: translateY(-1px); }
.nav-links { display: flex; align-items: center; gap: 30px; font-family: var(--head); font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--ink); }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--terra-dark); }
.nav-links a.btn { padding: 10px 20px; font-size: 15px; color: var(--paper); }
/* Services dropdown */
.nav-drop { position: relative; }
.nav-drop-btn { display: inline-flex; align-items: center; gap: 5px; }
.nav-drop-btn svg { transition: transform .2s ease; }
.nav-drop:hover .nav-drop-btn svg, .nav-drop:focus-within .nav-drop-btn svg { transform: rotate(180deg); }
.nav-drop-menu { position: absolute; top: 100%; left: -18px; padding-top: 14px; min-width: 290px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s ease, transform .15s ease, visibility .15s; z-index: 60; }
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { opacity: 1; visibility: visible; transform: none; }
.nav-drop-menu::before { content: ''; position: absolute; inset: 14px 0 0; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px rgba(38,64,90,.14); z-index: -1; }
.nav-drop-menu a { display: block; margin: 6px; padding: 10px 14px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.nav-drop-menu a:hover, .nav-drop-menu a[aria-current="page"] { background: var(--mint); color: var(--ink); }
.nav-drop-menu b { display: block; font-weight: 600; font-size: 15px; }
.nav-drop-menu small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 1px; }
.nav-drop-menu a.all { margin-top: 2px; padding-top: 12px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--terra-dark); }
@media (max-width: 760px) {
  .nav-drop-btn svg { display: none; }
  .nav-drop-menu { position: static; opacity: 1; visibility: visible; transform: none; padding-top: 6px; min-width: 0; }
  .nav-drop-menu::before { display: none; }
  .nav-drop-menu a { margin: 0; padding: 6px 0 6px 14px; border-left: 2px solid var(--line); border-radius: 0; }
  .nav-drop-menu a:hover, .nav-drop-menu a[aria-current="page"] { background: none; border-left-color: var(--terra-dark); }
  .nav-drop-menu small, .nav-drop-menu a.all { display: none; }
}
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* Dark page hero */
.page-hero { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); }
.page-hero .wrap { position: relative; z-index: 2; padding-top: 72px; padding-bottom: 80px; }
.page-hero .copy { max-width: 700px; }
.crumb { font-family: var(--head); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(250,247,242,.55); }
.crumb a { color: var(--mint); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.pain { margin-top: 28px; display: flex; align-items: center; gap: 12px; font-family: var(--head); }
.pain .pulse { flex: 0 0 9px; height: 9px; border-radius: 50%; background: var(--terra); box-shadow: 0 0 0 0 rgba(181,101,79,.6); animation: pulse 1.8s ease-out infinite; }
.pain .label { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(250,247,242,.6); }
.pain-line { margin-top: 10px; font-family: var(--head); font-size: clamp(19px, 2vw, 23px); font-weight: 500; color: var(--terra-light); }
@keyframes pulse { to { box-shadow: 0 0 0 12px rgba(181,101,79,0); } }
.page-hero h1 { margin-top: 18px; font-family: var(--head); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; font-size: clamp(34px, 4.6vw, 54px); }
.page-hero .sub { margin-top: 22px; font-size: 19px; line-height: 1.65; color: rgba(250,247,242,.8); max-width: 640px; }
.page-hero .ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Faded notifications on the right of the page hero */
.hero-toasts { position: absolute; right: 4%; top: 50%; width: 400px; transform: translateY(-50%) rotate(-3deg); display: grid; gap: 12px; opacity: .55; pointer-events: none; }
.toast { background: #283E54; border: 1px solid rgba(250,247,242,.07); border-radius: 14px; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; animation: toastIn .6s cubic-bezier(.2,.8,.2,1) both; }
.toast:nth-child(2) { animation-delay: .8s; margin-left: 28px; }
.toast:nth-child(3) { animation-delay: 1.6s; }
.toast .av { flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--mint); color: var(--ink); display: grid; place-items: center; font-family: var(--head); font-size: 12px; font-weight: 600; }
.toast.urgent .av { background: var(--terra); color: var(--paper); }
.toast b { display: block; font-family: var(--head); font-size: 13px; font-weight: 600; color: var(--paper); }
.toast span { font-size: 14px; line-height: 1.4; color: rgba(250,247,242,.72); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) scale(.97); } to { opacity: 1; transform: none; } }
.page-hero::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(38,64,90,.96) 0%, rgba(38,64,90,.9) 50%, rgba(38,64,90,.25) 100%); }

/* Closing banner (mint bottom banner) */
.cta-banner { background: var(--mint); color: var(--ink); }
.cta-banner .wrap { padding-top: 88px; padding-bottom: 88px; display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; }
.cta-banner h2 { font-family: var(--head); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; font-size: clamp(28px, 3.4vw, 40px); }
.cta-banner p { margin-top: 14px; font-size: 18px; line-height: 1.65; color: var(--ink); max-width: 620px; }
.cta-banner .btns { display: flex; flex-direction: column; gap: 12px; }

/* Footer (mint bottom banner) */
.site-footer { background: var(--mint); color: var(--ink); font-family: var(--head); font-size: 14px; }
.site-footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(38,64,90,.18); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--terra-dark); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }

/* AI case study (dark section) */
.cs { background: var(--ink); color: var(--paper); }
.cs .wrap { padding-top: 96px; padding-bottom: 96px; }
.cs-eyebrow { font-family: var(--head); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mint); }
.cs-title { margin-top: 14px; font-family: var(--head); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; font-size: clamp(30px, 4vw, 46px); max-width: 860px; }
.cs-lede { margin-top: 20px; font-size: 19px; line-height: 1.65; color: rgba(250,247,242,.8); max-width: 780px; }
.cs-lede strong { color: var(--paper); }
.cs-results { margin-top: 40px; display: grid; grid-template-columns: 2fr repeat(5, 1fr); gap: 12px; }
.cs-results > div { background: #2C4560; border-radius: 16px; padding: 18px; font-family: var(--head); }
.cs-results strong { display: block; font-size: 24px; font-weight: 600; color: var(--mint); line-height: 1.1; }
.cs-results span { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.35; color: rgba(250,247,242,.7); }
.cs-split .k { margin: 0 0 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(250,247,242,.55); }
.cs-bars { display: grid; gap: 8px; }
.cs-bars > div { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 10px; }
.cs-bars em { font-style: normal; font-size: 13px; color: rgba(250,247,242,.7); }
.cs-bars .bar { display: flex; height: 30px; border-radius: 8px; overflow: hidden; margin: 0; }
.cs-bars i { display: flex; align-items: center; padding: 0 10px; font-style: normal; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.cs-bars .f { background: var(--terra); color: var(--paper); }
.cs-bars .t { background: var(--mint); color: var(--ink); }
.cs-diagram { margin-top: 28px; background: #1D3045; border-radius: 24px; padding: 28px; }
.cs-hint { font-family: var(--head); font-size: 14px; color: rgba(250,247,242,.55); }
.cs-flow { margin-top: 16px; display: flex; align-items: stretch; gap: 10px; }
.cs-flow .arrow { align-self: center; color: var(--mint); font-size: 20px; }
.cs-flow-2 { margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(250,247,242,.15); }
.agent { flex: 1; text-align: left; background: #2C4560; color: var(--paper); border: 2px solid transparent; border-radius: 16px; padding: 14px; cursor: pointer; font-family: var(--head); font-size: 15px; font-weight: 600; line-height: 1.25; transition: background .15s ease, border-color .15s ease; }
.agent:hover { background: #3D5876; }
.agent .ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 15px; margin-bottom: 10px; }
.agent small { display: block; margin-top: 3px; font-size: 13px; font-weight: 400; color: rgba(250,247,242,.6); }
.agent.human { background: var(--mint); color: var(--ink); }
.agent.human small { color: var(--muted); }
.agent.human .ic { background: var(--ink); color: var(--mint); }
.agent[aria-selected="true"] { border-color: var(--mint); }
.agent.human[aria-selected="true"] { border-color: var(--paper); }
.cs-detail { margin-top: 18px; background: #2C4560; border-radius: 16px; padding: 20px 22px; min-height: 120px; }
.cs-detail h4 { font-family: var(--head); font-size: 18px; font-weight: 600; color: var(--mint); }
.cs-detail p { margin-top: 8px; font-size: 16.5px; line-height: 1.6; color: rgba(250,247,242,.85); }
.cs-detail p.c { font-size: 14.5px; color: rgba(250,247,242,.6); }
.cs-detail p.c b { color: var(--paper); font-weight: 600; }
.cs-sources { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--head); font-size: 13px; color: rgba(250,247,242,.55); }
.cs-sources b { font-weight: 500; color: var(--paper); border: 1px solid rgba(250,247,242,.2); border-radius: 999px; padding: 4px 12px; }
.cs-pair { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cs-pair > div { background: #2C4560; border-radius: 20px; padding: 26px; }
.cs-pair h3 { font-family: var(--head); font-size: 20px; font-weight: 600; }
.cs-pair ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.cs-pair li { display: flex; gap: 10px; font-size: 16px; line-height: 1.5; color: rgba(250,247,242,.85); }
.cs-pair li::before { content: ''; flex: 0 0 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--mint); }
.cs-note { margin-top: 22px; font-size: 15px; color: rgba(250,247,242,.55); }
@media (max-width: 1100px) {
  .cs-results { grid-template-columns: repeat(3, 1fr); }
  .cs-split { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .cs-flow { flex-wrap: wrap; }
  .cs-flow .arrow { display: none; }
  .agent { flex: 1 1 calc(50% - 10px); }
  .cs-pair { grid-template-columns: 1fr; }
  .cs-results { grid-template-columns: 1fr 1fr; }
}

/* Body sections */
.bg-blush { background: var(--blush); }
article.bg-paper { background: var(--paper); }

@media (max-width: 1100px) { .hero-toasts { display: none; } .page-hero::after { background: none; } }
@media (max-width: 980px) {
  .cta-banner .wrap { grid-template-columns: 1fr; }
  .cta-banner .btns { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav-links { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--mint); flex-direction: column; align-items: flex-start; gap: 18px; padding: 20px 24px 28px; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .page-hero .wrap { padding-top: 48px; padding-bottom: 56px; }
  .cta-banner .wrap { padding-top: 64px; padding-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .toast, .pain .pulse { animation: none; }
}

/* Service page content blocks */
.prose .intro { font-size: 1.2rem; color: var(--ink); }
.prose ul.dots { padding: 0; list-style: none; }
.prose ul.dots li { position: relative; padding-left: 22px; }
.prose ul.dots li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--terra-dark); }
.method-list { list-style: none; counter-reset: m; padding: 0; margin: 18px 0 10px; }
.method-list li { counter-increment: m; position: relative; padding-left: 54px; margin-bottom: 20px; line-height: 1.6; }
.method-list li::before { content: counter(m); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-family: var(--head); font-weight: 600; font-size: 15px; }
.method-list li strong { display: block; color: var(--ink); font-family: var(--head); font-weight: 600; }
.svc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 10px; }
.svc-cards > div { background: var(--blush); border-radius: 16px; padding: 18px; }
.svc-cards > div.key { background: var(--ink); }
.svc-cards b { display: block; font-family: var(--head); font-size: 16px; font-weight: 600; color: var(--ink); }
.svc-cards span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.svc-cards > div.key b { color: var(--paper); }
.svc-cards > div.key span { color: rgba(250,247,242,.8); }
.phases { display: grid; gap: 10px; margin: 18px 0 14px; }
.phase { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; background: var(--blush); border-radius: 14px; padding: 16px 18px; }
.phase .when { font-family: var(--head); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--terra-dark); padding-top: 3px; }
.phase b { display: block; font-family: var(--head); font-weight: 600; color: var(--ink); }
.prose .phase p { margin: 4px 0 0; font-size: 16px; line-height: 1.55; }
.callout { margin: 40px 0; background: var(--ink); color: var(--paper); border-radius: 22px; padding: 28px 30px; }
.callout .who { font-family: var(--head); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); }
.callout .big { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); margin-top: 10px; line-height: 1.1; color: var(--paper); }
.callout .big-sub { font-family: var(--head); font-size: 15px; color: rgba(250,247,242,.7); margin-top: 4px; }
.prose .callout p { color: rgba(250,247,242,.85); margin: 14px 0 0; }
.callout a { display: inline-block; margin-top: 16px; color: var(--mint); font-family: var(--head); font-weight: 600; text-decoration: none; }
.callout a:hover { text-decoration: underline; }
.project { background: var(--blush); border-radius: 18px; padding: 22px 24px; margin: 14px 0; }
.project .tag { font-family: var(--head); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-dark); }
.prose .project h4 { font-family: var(--serif); font-size: 23px; font-weight: 500; margin: 6px 0 8px; color: var(--ink); }
.prose .project p { margin: 0 0 .6rem; font-size: 16.5px; }
.prose .project .deliv { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.project .deliv b { color: var(--ink); font-family: var(--head); font-weight: 600; }
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
.fit > div { background: var(--blush); border-radius: 16px; padding: 18px 20px; }
.fit h4 { font-family: var(--head); font-size: 15px; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.prose .fit ul { margin: 0; }
.prose .fit li { font-size: 15.5px; }
@media (max-width: 760px) {
  .svc-cards, .fit { grid-template-columns: 1fr; }
  .phase { grid-template-columns: 1fr; gap: 4px; }
  .callout { padding: 24px 22px; }
}

/* Sticky "Book a call" bar, phones only */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; justify-content: center; align-items: center; padding: 14px 18px; border-radius: 999px; background: var(--ink); color: #FFFFFF; font-family: var(--head); font-weight: 600; font-size: 16px; text-decoration: none; box-shadow: 0 10px 30px rgba(38,64,90,.35); transform: translateY(160%); transition: transform .25s ease; }
  .sticky-cta.show { transform: none; }
}
/* Very wide screens */
@media (min-width: 1700px) {
  .wrap { max-width: 1360px; }
  .page-hero .copy { max-width: 780px; }
  .page-hero h1 { font-size: 62px; }
  .page-hero .sub { font-size: 21px; max-width: 700px; }
  .container-tight { max-width: 54rem; }
  .hero-toasts { right: 8%; width: 440px; }
}
@media (min-width: 2200px) { .wrap { max-width: 1480px; } }

/* Serif display headings */
.page-hero h1, .cs-title, .cta-banner h2, main h2, .prose h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }