/* Brandiful – site styles
   One stylesheet for the whole site. Colours and sizes live in the variables below. */

:root {
  --navy: #030870;
  --ink: #00032d;
  --ink-deep: #000322;
  --blue: #0048fe;
  --cyan: #00ffe6;
  --sky: #009fe3;
  --edge-a: #00e5ff;
  --edge-b: #ff00ff;
  --white: #fff;
  --max: 1220px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --text-scale: 1;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: calc(16px * var(--text-scale)); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.875;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
/* Type scale – matched to the original site */
h1, h2, h3 { margin: 0 0 .5em; }
h2 { font-size: 3rem; line-height: 3.625rem; font-weight: 500; }
h2.strong { font-weight: 600; }
h3 { font-size: 1.75rem; line-height: 2.1875rem; font-weight: 400; }
h3.strong { font-weight: 600; }
@media (max-width: 690px) { h2 { font-size: 2.1rem; line-height: 2.5375rem; } }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(40px, 6vw, 72px) 0; }
.center { text-align: center; }
.lead, .subtitle { font-size: 1.25rem; line-height: 1.875rem; }
.lead { max-width: 760px; margin: 0 auto 1.5em; }
.lead strong { font-weight: 600; }
.gradient-text {
  background: linear-gradient(to right, var(--cyan), var(--sky));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 10px; top: 10px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-block; font-weight: 700; font-size: .875rem; line-height: 1.25rem;
  padding: 15px 22px; border-radius: 200px; text-decoration: none; text-transform: capitalize;
  transition: transform .2s, background-color .2s, border-color .2s; cursor: pointer; border: 0;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-outline { color: #fff; border: 2px solid rgba(255,255,255,.75); padding: 13px 22px; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; font-size: 1rem; padding: 16px 23px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; height: 80px; box-shadow: 0 1px 0 rgba(3,8,112,.06); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 100%; padding: 0 28px; }
.logo img { width: 142px; height: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; gap: 6px; }
.nav > ul > li { position: relative; }
.nav > ul > li > a, .nav > ul > li > button {
  display: flex; align-items: center; gap: 6px; height: 80px; padding: 0 20px;
  font: 500 1rem var(--font); color: var(--navy); text-decoration: none; background: none; border: 0; cursor: pointer;
}
.nav a[aria-current="page"] span { border-bottom: 2px solid var(--navy); padding-bottom: 2px; }
.nav .caret { width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.submenu {
  position: absolute; top: 72px; left: 0; min-width: 240px; padding: 20px !important;
  background: var(--ink-deep); border-radius: 20px; box-shadow: 0 6px 28px rgba(0,0,0,.08);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.submenu a { display: block; padding: 6px; color: #fff; font-size: .875rem; font-weight: 500; text-decoration: none; border-radius: 6px; }
.submenu a:hover, .submenu a:focus { background: rgba(255,255,255,.1); }
.has-sub:hover .submenu, .has-sub:focus-within .submenu, .has-sub.open .submenu { opacity: 1; visibility: visible; transform: none; }
.menu-toggle { display: none; position: relative; z-index: 70; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px 8px; }
.menu-toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; transition: background-color .3s; }
.menu-toggle[aria-expanded="true"] span { background: #fff; }

/* Mobile: navy panel slides in from the right, like the original site */
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 65;
    width: min(340px, 87vw); padding: 80px 54px 54px;
    background: var(--navy); color: #fff;
    display: flex; flex-direction: column; justify-content: center; overflow-y: auto;
    transform: translateX(100%); visibility: hidden;
    transition: transform .45s cubic-bezier(.2,.8,.2,1), visibility 0s linear .45s;
  }
  .nav.open { transform: none; visibility: visible; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav > ul > li > a, .nav > ul > li > button {
    color: #fff; height: auto; padding: 4px 0; width: 100%; justify-content: space-between;
    font-size: 1.5rem; font-weight: 400; line-height: 1.6;
  }
  .nav a[aria-current="page"] span { border: 0; padding: 0; }
  .nav .caret { width: 8px; height: 8px; border-width: 1.5px; margin-right: 4px; transition: transform .25s; }
  .has-sub.open .caret { transform: rotate(225deg) translate(-2px, -2px); }
  .submenu {
    position: static; display: none; min-width: 0; opacity: 1; visibility: visible; transform: none;
    background: transparent; box-shadow: none; border-radius: 0; padding: 4px 0 10px 20px !important;
  }
  .submenu a { font-size: 1rem; font-weight: 400; padding: 2px 0; line-height: 1.7; }
  .submenu a:hover, .submenu a:focus { background: none; text-decoration: underline; }
  .has-sub.open .submenu { display: block; }
  .has-sub:hover .submenu { opacity: 1; }
  html.menu-open { overflow: hidden; }
  html.menu-open .a11y-panel { display: none; }
}

/* Hero slider */
.hero { position: relative; height: 585px; overflow: hidden; background: var(--ink); color: #fff; }
.hero .slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease; display: flex; align-items: center; }
.hero .slide.is-active { opacity: 1; z-index: 1; }
.hero .slide-text { margin-left: 50%; width: min(610px, 44%); text-align: center; }
.hero h1 { font-size: 3.75rem; line-height: 4.25rem; font-weight: 700; margin: 0; }
.hero .slide-text .slide-title { font-size: 4rem; line-height: 4.4rem; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.hero .slide-text p { font-size: 1.375rem; line-height: 1.875rem; margin: 0 0 1.2em; }
.hero .slide-text .kicker { font-size: 1rem; font-weight: 600; line-height: 3.625rem; margin: 0; }
@media (max-width: 690px) {
  .hero h1, .hero .slide-text .slide-title { font-size: 2.25rem; line-height: 2.55rem; letter-spacing: 0; }
  .hero .slide-text .kicker { line-height: 2.5375rem; }
}
.hero .curve { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(18px, 4.2vw, 60px); z-index: 3; }
.hero .dots { position: absolute; left: 50%; bottom: calc(clamp(18px, 4.2vw, 60px) + 4px); transform: translateX(-50%); z-index: 4; display: flex; gap: 4px; }
/* Dots: small white dot, with a ring that fills around the active one as a countdown */
.hero .dots button { position: relative; width: 36px; height: 36px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.hero .dots button::before { content: ""; position: absolute; left: 14px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.hero .dots svg { position: absolute; left: 4px; top: 4px; width: 28px; height: 28px; transform: rotate(-90deg); pointer-events: none; }
.hero .dots circle { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 176; stroke-dashoffset: 176; }
@media (max-width: 800px) {
  .hero { height: 560px; }
  .hero .slide-text { margin: 0 auto; width: auto; padding: 0 var(--gutter); }
  .hero .slide::before { content: ""; position: absolute; inset: 0; background: rgba(0,3,45,.45); }
  .hero .slide-text { position: relative; }
}

/* Audit banner */
.banner { position: relative; border-radius: 16px; overflow: hidden; min-height: 290px; display: flex; align-items: center; justify-content: flex-end; background-size: cover; background-position: center left; margin-top: 30px; }
.banner .panel { margin: 24px; width: min(488px, 100%); padding: 28px; border-radius: 12px; background: rgba(0,3,45,.55); backdrop-filter: blur(4px); color: #fff; text-align: center; }
.banner .panel p { margin-bottom: 1.2em; font-weight: 600; }
@media (max-width: 700px) { .banner { justify-content: center; } }

/* Gradient-edged cards */
.cards { display: grid; gap: 22px; margin-top: 40px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  border: 2px solid transparent; border-radius: 14px; padding: 28px 22px; text-align: center;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--edge-a), var(--edge-b)) border-box;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(3,8,112,.1); }
.card img { width: 100px; height: 100px; object-fit: contain; margin: 0 auto 18px; }
.card h3 a { text-decoration: underline; text-underline-offset: 4px; }
.card p { font-size: 1rem; line-height: 1.875rem; margin: 0; }
@media (max-width: 1000px) and (min-width: 761px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
.mobile-only, .swipe-dots { display: none; }

/* Phones: card rows become swipeable, one card at a time, with dots (as on the original site) */
@media (max-width: 760px) {
  .mobile-only { display: block; }
  .services-intro { font-size: 1.25rem; line-height: 1.875rem; font-weight: 600; margin: 10px 0 0; }
  .cards.swipe {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter));
    padding: 6px var(--gutter) 10px; scroll-padding: 0 var(--gutter);
  }
  .cards.swipe::-webkit-scrollbar { display: none; }
  .cards.swipe > .card { flex: 0 0 100%; scroll-snap-align: center; }
  .cards.swipe > .card:hover { transform: none; box-shadow: none; }
  .swipe-dots { display: flex; justify-content: center; gap: 2px; margin-top: 4px; }
  /* 24px tap area around each 8px dot (WCAG target size) */
  .swipe-dots button { position: relative; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
  .swipe-dots button::before { content: ""; position: absolute; left: 8px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: rgba(3,8,112,.25); }
  .swipe-dots button[aria-current="true"]::before { background: var(--navy); }
}

/* Accordion */
.accordion { max-width: 1200px; margin: 50px auto 0; border-bottom: 1px solid rgba(3,8,112,.15); }
.accordion > button {
  width: 100%; display: flex; align-items: center; justify-content: center; position: relative;
  padding: 30px 60px; background: none; border: 0; cursor: pointer; color: var(--navy);
  font: 400 1.75rem/2.1875rem var(--font);
}
.accordion .plus { position: absolute; right: 8px; width: 30px; height: 30px; border: 1.5px solid currentColor; border-radius: 50%; }
.accordion .plus::before, .accordion .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%,-50%); transition: .2s; }
.accordion .plus::after { transform: translate(-50%,-50%) rotate(90deg); }
.accordion [aria-expanded="true"] .plus::after { transform: translate(-50%,-50%) rotate(0); }
.accordion .panel-body { padding: 0 0 30px; }
.accordion .panel-body[hidden] { display: none; }

/* Horizontal carousels */
.carousel { position: relative; }
.carousel .track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px; }
.carousel .track::-webkit-scrollbar { display: none; }
.carousel .track > * { flex: 0 0 auto; scroll-snap-align: start; }
.carousel .arrows { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
.carousel .arrows button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--navy); background: #fff; color: var(--navy); cursor: pointer; font-size: 1.2rem; }
.carousel .arrows button:hover { background: var(--navy); color: #fff; }
.approach .track > img { width: min(300px, 75vw); aspect-ratio: 720/1040; object-fit: cover; border-radius: 10px; box-shadow: 0 4px 18px rgba(3,8,112,.08); }
.approach .track { justify-content: safe center; }
/* Client stories ticker: drifts slowly left on a loop, pauses on hover, can be dragged */
.ticker { overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.ticker.dragging { cursor: grabbing; }
.ticker .reel { display: flex; gap: 10px; width: max-content; will-change: transform; }
.ticker .reel img { width: calc((100vw - 40px) / 5); max-width: none; aspect-ratio: 720/1040; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
@media (max-width: 1300px) { .ticker .reel img { width: calc((100vw - 30px) / 4); } }
@media (max-width: 1000px) { .ticker .reel img { width: calc((100vw - 20px) / 3); } }
@media (max-width: 690px) { .ticker .reel img { width: 66vw; } }
.ticker-controls { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 14px; }
.ticker-controls .pdf-link { margin: 0; }
.ticker-pause { background: none; border: 1.5px solid var(--navy); color: var(--navy); border-radius: 200px; padding: 4px 14px; font: 600 .85rem var(--font); cursor: pointer; }
.pdf-link { display: block; text-align: center; margin-top: 14px; }

/* Work grid */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.work-grid a { display: block; overflow: hidden; border-radius: 4px; }
.work-grid img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .5s ease; }
.work-grid a:hover img, .work-grid a:focus img { transform: scale(1.05); }
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; gap: 16px; } }

/* Meet the maker */
.maker { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 26px; align-items: center; }
.maker h2 { margin-bottom: .4em; }
.maker .services { columns: 2; column-gap: 20px; list-style: none; padding: 0; margin: 0 0 24px; }
.maker .services li { break-inside: avoid; }
.maker .services li::before { content: "→ "; }
.maker .services a { font-weight: 600; }
@media (max-width: 860px) { .maker { grid-template-columns: minmax(0, 1fr); } .maker img { max-width: 420px; width: 100%; margin: 0 auto; } }
@media (max-width: 860px) { .maker .services { columns: 1; } }
.rating { display: inline-block; text-decoration: none; font-size: .875rem; line-height: 1.6; }
.rating strong, .rating .based { display: block; }
.rating img { width: 144px; height: auto; margin-top: 6px; }
.stars { display: inline-flex; gap: 2px; vertical-align: -2px; }
.stars svg { width: 15px; height: 15px; fill: #f6bb06; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Contact form */
.form-section { background-size: cover; background-position: center; }
.form { max-width: 820px; margin: 0 auto; }
.form .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form input[type=text], .form input[type=email], .form textarea {
  width: 100%; padding: 16px; border: 1px solid transparent; border-radius: 0; background: #fff;
  font: 1rem var(--font); color: #000;
}
.form input:focus, .form textarea:focus { border-color: var(--blue); outline: none; }
.form .check { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 14px 0 0; font-weight: 700; font-size: 1rem; }
.form .check input { width: 24px; height: 24px; margin: 0; accent-color: var(--navy); flex: none; }
.form .note { margin: 0 0 18px; font-size: 1rem; }
.form .hp { position: absolute; left: -9999px; }
.form-status { margin-top: 14px; font-weight: 600; min-height: 1.5em; }
.form-status.error { color: #b00020; }
@media (max-width: 600px) { .form .grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--ink); color: #fff; font-size: 1rem; line-height: 1.875rem; }
.site-footer .cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; padding-top: 60px; padding-bottom: 40px; }
.site-footer img { width: 112px; margin-bottom: 18px; }
.site-footer h3 { margin-bottom: .7em; }
.site-footer .links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; list-style: none; padding: 0; margin: 0; }
.site-footer .legal { font-size: .85rem; line-height: 1.275rem; padding-bottom: 30px; }
.site-footer .copy { background: #000; font-size: .85rem; line-height: 1.275rem; padding: 18px 0; }
.site-footer button.linklike { background: none; border: 0; color: inherit; font: inherit; text-decoration: underline; padding: 0; cursor: pointer; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr; gap: 24px; } }

/* Accessibility tools */
.a11y-panel { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: min(320px, calc(100vw - 36px)); background: #fff; color: var(--navy); border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,.2); padding: 20px; }
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.a11y-close { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--navy); background: #fff; color: var(--navy); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.a11y-panel h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: .6em; }
.a11y-panel .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #eef; font-size: .95rem; }
.a11y-panel .row button { min-width: 44px; height: 36px; border-radius: 18px; border: 1.5px solid var(--navy); background: #fff; color: var(--navy); font: 700 .9rem var(--font); cursor: pointer; padding: 0 12px; }
.a11y-panel .row button[aria-pressed="true"] { background: var(--navy); color: #fff; }

/* Accessibility modes */
html.a11y-readable body, html.a11y-readable button, html.a11y-readable input { font-family: Verdana, Arial, sans-serif !important; letter-spacing: .02em; }
html.a11y-links a { text-decoration: underline !important; }
html.a11y-contrast body { background: #000; color: #fff; }
html.a11y-contrast .site-header, html.a11y-contrast .card { background: #000 !important; color: #fff; }
html.a11y-contrast a, html.a11y-contrast .nav a, html.a11y-contrast .nav button, html.a11y-contrast h2, html.a11y-contrast h3 { color: #ff0 !important; }
html.a11y-contrast .gradient-text { color: #ff0; -webkit-text-fill-color: #ff0; background: none; }
html.a11y-contrast .menu-toggle span { background: #fff; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { transition: none !important; animation: none !important; }

/* =====================================================================
   Inner pages – building blocks used by every page except the homepage
   ===================================================================== */
.nav button.current { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
h4 { font-size: 1.25rem; line-height: 2.125rem; font-weight: 600; margin: 0 0 .5em; }
h5 { font-size: 1.1rem; line-height: 1.8rem; font-weight: 600; margin: 0 0 .5em; }
h6 { font-size: 1rem; line-height: 1.6rem; font-weight: 600; margin: 0 0 .5em; }
h2.as-h1 { font-size: 3.75rem; line-height: 4.25rem; font-weight: 700; }
@media (max-width: 690px) { h4 { font-size: 1.125rem; line-height: 1.9125rem; } h2.as-h1 { font-size: 2.25rem; line-height: 2.55rem; } }
main > .row:first-child:not(.has-bg-image) { padding-top: 40px; }
.text > :last-child { margin-bottom: 0; }
.text ul, .text ol { padding-left: 1.3em; margin: 0 0 1em; }
.text a { text-underline-offset: 3px; }
.text table { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.5; margin: 0 0 1.5em; display: block; overflow-x: auto; }
.text td, .text th { border: 1px solid #d6d8ea; padding: 8px 10px; text-align: left; vertical-align: top; }

/* Rows and columns (12-column grid) */
.row { position: relative; }
.row > .wrap, .row.fullbleed > .cols { position: relative; z-index: 2; }
.cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2%; row-gap: 0; }
.row.inner .cols { column-gap: 2%; }
.col { grid-column: span 12; min-width: 0; position: relative; }
.col.span-1 { grid-column: span 1; } .col.span-2 { grid-column: span 2; } .col.span-3 { grid-column: span 3; }
.col.span-4 { grid-column: span 4; } .col.span-5 { grid-column: span 5; } .col.span-6 { grid-column: span 6; }
.col.span-7 { grid-column: span 7; } .col.span-8 { grid-column: span 8; } .col.span-9 { grid-column: span 9; }
.col.span-10 { grid-column: span 10; } .col.span-11 { grid-column: span 11; }
.col.offset-1 { grid-column-start: 2; } .col.offset-2 { grid-column-start: 3; } .col.offset-3 { grid-column-start: 4; }
.col.center { text-align: center; }
.col.padded { padding: var(--pad); }
.col.boxed, .col.filled { margin-bottom: 0; }
.row.equal .cols { align-items: stretch; }
.row.v-middle .cols { align-items: center; }
.row.v-bottom .cols { align-items: end; }
.col.has-bg-image { background-size: cover; background-position: center; }
@media (max-width: 999px) and (min-width: 691px) {
  .row:not(.inner) > .wrap > .cols > .col.span-2:empty, .row:not(.inner) > .wrap > .cols > .col.span-1:empty { display: none; }
}
@media (max-width: 690px) {
  .cols { display: block; }
  .col { margin-bottom: 0; }
  .col:empty { display: none; }
  .col.padded { padding: max(var(--pad), 20px); }
  .row.reverse-phone .cols { display: flex; flex-direction: column-reverse; }
}

/* Rows with photo or colour backgrounds */
.row.has-bg-image { background-size: cover; background-position: center; background-repeat: no-repeat; }
.row.has-overlay::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--overlay, transparent); background-image: var(--overlay-image, none); opacity: var(--overlay-opacity, .5); pointer-events: none; }
.row.on-dark { color: #fff; }
.row.on-dark a:not(.btn) { color: #fff; }
.row.has-shape-bottom { padding-bottom: 50px; }
.shape { position: absolute; left: 0; width: 100%; z-index: 3; display: block; pointer-events: none; }
.shape-bottom { bottom: -1px; }
.shape-top { top: -1px; transform: rotate(180deg); }
.shape-top[data-flip], .shape-bottom[data-flip] { transform: scaleX(-1); }
@media (max-width: 690px) { .shape { max-height: 24px; } .row.has-shape-bottom { padding-bottom: 24px; } }

/* Page header banner (first row with a photo) */
main > .row.has-bg-image:first-child { min-height: 200px; display: flex; align-items: center; }
main > .row.has-bg-image:first-child > .wrap { padding-top: 40px; padding-bottom: 40px; }
main > .row.has-bg-image:first-child h1 { font-size: 3.75rem; line-height: 4.25rem; margin: 0; }
main > .row.has-bg-image:first-child p { font-size: 1.25rem; line-height: 1.875rem; }
@media (max-width: 690px) { main > .row.has-bg-image:first-child h1 { font-size: 2.25rem; line-height: 2.55rem; } }
h1 { font-size: 3.75rem; line-height: 4.25rem; font-weight: 700; }
@media (max-width: 690px) { h1 { font-size: 2.25rem; line-height: 2.55rem; } }

/* Images, spacers and lines */
.image { margin: 0 0 20px; }
.image.align-center { margin-left: auto; margin-right: auto; }
.image.align-right { margin-left: auto; }
.image img { width: 100%; height: auto; }
.image .r-15, .image .r-10, .image .r-20, .image .r-5 { border-radius: 15px; }
.image .r-5 { border-radius: 5px; } .image .r-10 { border-radius: 10px; } .image .r-20 { border-radius: 20px; }
.image .shadow { box-shadow: 0 20px 40px rgba(0,0,0,.15); }
.spacer { width: 100%; }
hr.line { border: 0; border-top: 1px solid rgba(3,8,112,.15); }
hr.short { border: 0; border-top: 2px solid rgba(3,8,112,.15); width: 30px; margin-left: 0; }

/* Buttons used inside pages */
.btn-wrap { margin: 0 0 1em; }
.btn-lg { font-size: 1rem; padding: 16px 26px; }
.btn-outline-navy { color: var(--navy); border: 2px solid var(--navy); padding: 13px 22px; }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.row.on-dark .btn-navy { background: #fff; color: var(--navy); }

/* FAQs (open/close questions) */
.faqs { margin: 0 0 1em; text-align: left; }
.faq { border-bottom: 1px solid rgba(3,8,112,.15); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq-q { font-size: 1.75rem; line-height: 2.1875rem; font-weight: 400; color: rgba(0,0,0,.65); }
.row.on-dark .faq-q { color: #fff; }
.faq .plus { flex: none; position: relative; width: 30px; height: 30px; border: 1.5px solid currentColor; border-radius: 50%; color: rgba(0,0,0,.45); }
.faq .plus::before, .faq .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%,-50%); transition: .2s; }
.faq .plus::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq[open] .plus::after { transform: translate(-50%,-50%) rotate(0); }
.faq-a { padding: 0 0 20px; }
.faqs.minimal .faq-q, .faqs.default .faq-q { font-size: 1.75rem; }
@media (max-width: 690px) { .faq-q, .faqs.minimal .faq-q, .faqs.default .faq-q { font-size: 1.25rem; line-height: 1.5rem; } }

/* Gradient-edged highlight cards (swipe on phones) */
.pills { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 16px; margin: 0 0 1em; padding: 6px; }
.pill { border: 2px solid transparent; border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; text-align: center;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--edge-a), var(--edge-b)) border-box; }
.pill h4, .pill p { margin: 0; }
.pill a { text-underline-offset: 3px; }
@media (max-width: 999px) and (min-width: 761px) { .pills { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .pills.swipe { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 10px; }
  .pills.swipe::-webkit-scrollbar { display: none; }
  .pills.swipe > .pill { flex: 0 0 100%; scroll-snap-align: center; }
}

/* Testimonial quotes */
.quote { margin: 0 0 1.5em; }
.quote blockquote { margin: 0 0 12px; font-size: 1.25rem; line-height: 1.9rem; font-weight: 500; }
.quote blockquote p::before { content: "“"; } .quote blockquote p::after { content: "”"; }
.quote figcaption strong { display: block; }
.quote figcaption span { font-size: .875rem; opacity: .8; }

/* Icons and numbered steps */
.icon { margin-bottom: 10px; }
.icon svg { width: 40px; height: 40px; }
.col.center .icon { display: flex; justify-content: center; }
.steps { list-style: none; padding: 0; margin: 0 0 1.5em; }
.steps li { display: flex; gap: 20px; margin-bottom: 28px; }
.steps .num { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--navy); border: 1px solid rgba(3,8,112,.2); font-size: 1.1rem; }
.steps h4 { font-size: 1.1rem; line-height: 1.6rem; font-weight: 500; margin: 8px 0 4px; }
.steps p { margin: 0; opacity: .7; font-size: .95rem; }

/* Image galleries with a lightbox */
.gallery { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 14px; margin: 0 0 1.5em; }
.gallery a { display: block; overflow: hidden; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 3/2; object-fit: cover; transition: transform .5s; }
.gallery a:hover img, .gallery a:focus img { transform: scale(1.04); }
@media (max-width: 690px) { .gallery { grid-template-columns: 1fr; } }
.lightbox-dialog { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox-dialog::backdrop { background: rgba(0,3,45,.92); }
.lightbox-dialog figure { margin: 0; width: 100%; height: 100%; display: grid; place-items: center; padding: 60px 70px; }
.lightbox-dialog img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; height: auto; }
.lightbox-dialog button { position: fixed; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.lightbox-dialog button:hover, .lightbox-dialog button:focus-visible { background: rgba(255,255,255,.25); }
.lightbox-dialog .lb-close { top: 16px; right: 16px; }
.lightbox-dialog .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-dialog .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 690px) { .lightbox-dialog figure { padding: 70px 10px; } .lightbox-dialog .lb-prev, .lightbox-dialog .lb-next { top: auto; bottom: 12px; transform: none; } }

/* Work page: filter buttons and project grid */
.work-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 0 0 30px; }
.work-filters button { background: none; border: 0; padding: 6px 2px; font: 400 .875rem var(--font); color: #6b6b6b; cursor: pointer; }
.work-filters button[aria-pressed="true"], .work-filters button:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 6px; }
.work-grid-all { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.work-card { position: relative; display: block; overflow: hidden; text-decoration: none; }
.work-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; transition: transform .5s; }
.work-card .work-title { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; color: #fff; font-size: 1.5rem; background: rgba(0,3,45,.6); opacity: 0; transition: opacity .3s; }
.work-card:hover img, .work-card:focus img { transform: scale(1.05); }
.work-card:hover .work-title, .work-card:focus .work-title { opacity: 1; }
.work-card[hidden] { display: none; }
@media (max-width: 999px) { .work-grid-all { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .work-grid-all { grid-template-columns: 1fr; } .work-card .work-title { position: static; opacity: 1; background: none; color: var(--navy); font-size: 1.1rem; padding: 8px 0 0; } }

/* Thinking (blog list) */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; text-align: left; }
.post-card { display: flex; flex-direction: column; }
.post-card .post-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.post-card .post-body { padding: 18px 20px 26px; }
.post-card h3 { font-size: 1.15rem; line-height: 1.6rem; margin-bottom: 6px; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { text-decoration: underline; }
.post-card p { font-size: .875rem; line-height: 1.6rem; margin: 0 0 8px; }
.post-card .post-meta, .post-card .post-date { opacity: .7; font-size: .8rem; }
@media (max-width: 999px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

/* Blog post */
.post-hero { min-height: 420px; display: flex; align-items: center; text-align: center; background-size: cover; background-position: center; }
.post-hero .wrap { position: relative; z-index: 2; max-width: 900px; }
.post-hero h1 { margin: 0 0 .3em; }
.post-hero .post-date { font-size: .9rem; opacity: .9; }
.post-content { padding: 40px 0 20px; }
.post-content > .row > .wrap, .wrap.narrow { max-width: calc(820px + 2 * var(--gutter)); }
.post-content h2 { font-size: 2rem; line-height: 2.6rem; }
.post-content h3 { font-size: 1.25rem; line-height: 1.8rem; font-weight: 600; margin-top: 1.4em; }
.tag-list { list-style: none; display: flex; gap: 10px; flex-wrap: wrap; padding: 0; margin: 0 0 50px; }
.tag-list li { border: 1px solid rgba(3,8,112,.25); border-radius: 200px; padding: 2px 14px; font-size: .8rem; }

/* Portfolio project navigation */
.project-nav { background: #f4f4f6; margin-top: 30px; }
.project-nav .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 24px; padding-bottom: 24px; }
.project-nav a { text-decoration: none; font-weight: 500; }
.project-nav a:hover { text-decoration: underline; }
.project-nav .all { margin: 0 auto; }

/* Google reviews (testimonials page) */
.reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; text-align: left; margin: 0 0 1.5em; }
.review { margin: 0; padding: 22px; border-radius: 14px; background: #fff; box-shadow: 0 4px 22px rgba(3,8,112,.08); display: flex; flex-direction: column; }
.review blockquote { margin: 10px 0 14px; flex: 1; font-size: .95rem; line-height: 1.7; }
.review figcaption strong { display: block; }
.review figcaption span { font-size: .8rem; opacity: .7; }
@media (max-width: 999px) { .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .reviews-grid { grid-template-columns: 1fr; } }

/* Forms inside pages */
.col .form, .row .form { max-width: 820px; }
.col.center .form, .row .center .form { margin-left: auto; margin-right: auto; }
.form .stack { display: grid; gap: 12px; }
.form textarea { width: 100%; padding: 16px; border: 1px solid #d6d8ea; border-radius: 0; background: #fff; font: 1rem var(--font); color: #000; resize: vertical; margin-top: 12px; }
.form-work-experience input[type=text], .form-work-experience input[type=email] { border: 0; border-bottom: 1px solid #d6d8ea; }
.form .file { display: block; margin: 16px 0 6px; font-weight: 600; }
.form .file input { display: block; margin-top: 6px; font: .9rem var(--font); }
.form .download { display: inline-block; margin-top: 8px; }

/* Custom design classes carried over from the original site */
.row.align-center .col { text-align: center; }
.row.align-right .col { text-align: right; }
.col.left { text-align: left !important; }
.gradient-cols > .wrap > .cols > .col, .gradient-cols > .cols > .col, .col.gradient-col {
  border: 2px solid transparent; border-radius: 15px;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--edge-a), var(--edge-b)) border-box; }
.gradient-cols > .wrap > .cols > .col:not(.padded), .gradient-cols > .cols > .col:not(.padded) { padding: 20px; }
.pill { border-radius: 15px; padding: 20px; }
.col.glass { position: relative; color: #fff; border-radius: 20px;
  backdrop-filter: blur(12px) saturate(120%); -webkit-backdrop-filter: blur(12px) saturate(120%);
  background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.03)); }
.col.glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 3px; pointer-events: none; opacity: .9;
  background: linear-gradient(135deg, rgba(0,255,255,.55), rgba(255,0,255,.55), rgba(255,255,255,.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.col.glass h1, .col.glass h2, .col.glass h3 { text-shadow: 0 1px 1px rgba(0,0,0,.1); }
.hero-secondary h2 { font-size: clamp(2.8rem, 5vw, 4rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin-bottom: 1rem; }
.hero-secondary h3 { font-size: 1.25rem; font-weight: 500; color: #fff; }
/* Full-width sections that sit inside a column (e.g. the shared contact form block) */
.row.breakout { width: 100vw; margin-left: calc(50% - 50vw); }
html, body { overflow-x: clip; }
.col.on-dark { color: #fff; }
.col.on-dark a:not(.btn) { color: #fff; }
.quote-bold blockquote { font-size: 1.75rem; line-height: 2.2rem; font-weight: 400; }
.quote-bold blockquote p::before { content: "”"; display: block; font-size: 3rem; line-height: 1; font-weight: 700; }
.quote-bold blockquote p::after { content: none; }
@media (max-width: 690px) { .quote-bold blockquote { font-size: 1.35rem; line-height: 1.9rem; } }
.post-hero { color: #fff; min-height: min(80vh, 760px); }
.faq.compact summary { justify-content: center; padding: 8px 0; }
.faq.compact .faq-q { font-size: 1.1rem; line-height: 1.6rem; }
.faq.compact .plus { width: 22px; height: 22px; }
.faq.compact .plus::before, .faq.compact .plus::after { width: 9px; }
.faq.compact .faq-a { text-align: left; }
.row.inner.on-dark { color: #fff; }
.reviews-grid { display: block; columns: 3; column-gap: 22px; }
.reviews-grid .review { break-inside: avoid; margin: 0 0 22px; }
@media (max-width: 999px) { .reviews-grid { columns: 2; } }
@media (max-width: 600px) { .reviews-grid { columns: 1; } }
.text li { margin-bottom: 2px; line-height: 1.7; }
.text li > p { margin: 0; }
.project-hero { min-height: min(80vh, 760px); background-size: cover; background-position: center; }
@media (max-width: 690px) { .project-hero { min-height: 56vw; } }
.work-grid-all.related { margin-bottom: 1.5em; }
.row.gradient-cols { margin-bottom: 24px; }
.gradient-cols > .wrap > .cols > .col:not(.padded), .gradient-cols > .cols > .col:not(.padded) { padding: 28px; }
@media (max-width: 690px) { .gradient-cols > .wrap > .cols > .col { margin-bottom: 16px; } }
/* Headings re-numbered for screen readers keep their original look */
.h2 { font-size: 3rem; line-height: 3.625rem; font-weight: 500; }
.h3 { font-size: 1.75rem; line-height: 2.1875rem; font-weight: 400; }
.h4 { font-size: 1.25rem; line-height: 2.125rem; font-weight: 600; }
.h5 { font-size: 1.1rem; line-height: 1.8rem; font-weight: 600; }
.h6 { font-size: 1rem; line-height: 1.6rem; font-weight: 600; }
@media (max-width: 690px) { .h2 { font-size: 2.1rem; line-height: 2.5375rem; } .h4 { font-size: 1.125rem; line-height: 1.9125rem; } }
.post-content .h4, .post-content .h3 { font-size: 1.25rem; line-height: 1.8rem; font-weight: 600; }
.site-footer h2.h3 { margin-bottom: .7em; }
.work-filters button { padding: 8px 6px; min-height: 36px; }
.form .file input { min-height: 44px; }
