/* ==========================================================================
   Design tokens
   One file, every site. Change a value here and all 9 sites follow.
   ========================================================================== */

:root {
  /* --- Brand -------------------------------------------------------- */
  --blue:        #0857b3;   /* ss-blue, primary */
  --blue-bright: #0a6fe0;   /* ss-blue-bright, hover and highlight */
  --blue-dark:   #06407f;   /* pressed state, derived */
  --tint:        #e9f1fd;   /* ss-tint, light blue wash */
  --terra:       #c25a33;   /* ss-terra, warm accent */
  --terra-tint:  #fcefe9;   /* ss-terra-tint */
  --gradient:    linear-gradient(90deg, var(--blue), var(--blue-bright));
  --gradient-45: linear-gradient(135deg, var(--blue), var(--blue-bright));

  /* --- Neutrals ------------------------------------------------------ */
  --ink:      #0f1723;      /* ss-ink, headings */
  --ink-soft: #22304a;      /* ss-ink-2 */
  --body:     #22304a;      /* body text */
  --muted:    #4d5769;      /* ss-muted */
  --line:     #b8c4d6;      /* ss-line */
  --line-soft:#dde5ef;      /* derived, hairlines */
  --paper:    #fefeff;      /* ss-white */
  --panel:    #f4f6f8;      /* ss-grey */
  --ground:   #f4f6f8;
  --dark:     #0f1723;

  /* --- Meaning ------------------------------------------------------- */
  --good:     #1d6b3a;
  --good-bg:  #e7f3ec;
  --warn:     #8a5a00;
  --warn-bg:  #fdf3e3;
  --bad:      #a3321c;
  --bad-bg:   var(--terra-tint);
  --star:     #e8a33d;

  /* --- Type ---------------------------------------------------------- */
  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    ui-monospace, SFMono-Regular, Menlo, monospace;

  --text-xs:   1rem;       /* 16, the smallest text on the site */
  --text-sm:   1.0625rem;  /* 17 */
  --text-base: 1.1rem;     /* 17.6, body copy */
  --text-md:   1.25rem;    /* 20, lead paragraphs */
  --text-lg:   1.5rem;     /* 24 */
  --text-xl:   1.875rem;   /* 30 */
  --text-2xl:  2.375rem;   /* 38 */
  --text-h5:   1.125rem;   /* 18, small card and sidebar titles */
  --text-hero: clamp(2.125rem, 4.6vw, 3.5rem);  /* H1 everywhere, hero included */
  --text-3xl:  var(--text-hero);

  --leading-tight: 1.15;
  --leading-snug:  1.35;
  --leading-body:  1.65;
  --tracking-wide: 0.14em;

  /* --- Space (4px step) ---------------------------------------------- */
  --s-1:  0.25rem;  /*  4 */
  --s-2:  0.5rem;   /*  8 */
  --s-3:  0.75rem;  /* 12 */
  --s-4:  1rem;     /* 16 */
  --s-5:  1.5rem;   /* 24 */
  --s-6:  2rem;     /* 32 */
  --s-7:  3rem;     /* 48 */
  --s-8:  4rem;     /* 64 */
  --s-9:  6rem;     /* 96 */
  --section-y: clamp(3rem, 7vw, 5.5rem);

  /* --- Radius -------------------------------------------------------- */
  --r-sm:   6px;
  --r-md:   12px;   /* default for buttons, inputs, chips */
  --r-lg:   16px;   /* cards */
  --r-xl:   24px;   /* images, big panels */
  --r-full: 999px;

  /* --- Shadow -------------------------------------------------------- */
  --shadow-sm: 0 2px 6px -2px rgba(16, 16, 40, .12);
  --shadow-md: 0 10px 26px -18px rgba(16, 16, 40, .55);
  --shadow-lg: 0 24px 60px -34px rgba(16, 16, 40, .65);

  /* --- Layout -------------------------------------------------------- */
  --container: 1600px;
  --container-narrow: 900px;
  --gutter: 1.5rem;        /* 24px between columns */
  --page-pad: 1.25rem;     /* side padding on small screens */

  /* --- Motion -------------------------------------------------------- */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --fast: .15s;
  --med:  .25s;
  --slow: .35s;
}

@media (min-width: 992px) {
  :root { --page-pad: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Base ------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  line-height: var(--leading-tight);
  text-wrap: balance;
  font-weight: 800;
}

h1 { font-size: var(--text-hero); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: var(--text-2xl); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: var(--text-lg); font-weight: 800; letter-spacing: -0.01em; }
h4 { font-size: var(--text-md); font-weight: 800; }
h5, .title-sm {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-h5);
  line-height: var(--leading-snug);
  color: var(--ink);
  margin: 0;
}
.title-xs {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

p  { margin: 0; }
p + p { margin-top: var(--s-4); }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img, video { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0; padding-left: 1.25rem; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

::selection { background: var(--tint); color: var(--ink); }

/* --- Text helpers ---------------------------------------------------- */

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--terra);
}

.lead      { font-size: var(--text-md); max-width: 62ch; }
.measure   { max-width: 66ch; }
.muted     { color: var(--muted); }
.small     { font-size: var(--text-sm); }
.nums      { font-variant-numeric: tabular-nums; }
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
/* ==========================================================================
   12 column grid
   Bootstrap style class names, no framework. Mobile first.
   Breakpoints: sm 576, md 768, lg 992, xl 1200
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

.container--narrow { max-width: var(--container-narrow); }
.container--wide   { max-width: 1400px; }

/* Vertical rhythm for a block of page */
.section        { padding-block: var(--section-y); }
.section--tight { padding-block: var(--s-6); }
.section--hero  { padding-block: clamp(3.25rem, 6vw, 5.5rem); }
.section--panel { background: var(--panel); }
.section--dark  { background: var(--ink); color: #c2cedd; }
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: #fff; }

/* --- Row and columns -------------------------------------------------- */

.row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}

.row--tight { gap: var(--s-3); }
.row--loose { gap: var(--s-6); }
.row--middle { align-items: center; }
.row--end    { align-items: end; }

/* every column is full width until a breakpoint says otherwise */
[class*="col-"] { grid-column: span 12; }

.col-1  { grid-column: span 1; }
.col-2  { grid-column: span 2; }
.col-3  { grid-column: span 3; }
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; }
.col-9  { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }

@media (min-width: 576px) {
  .col-sm-1  { grid-column: span 1; }
  .col-sm-2  { grid-column: span 2; }
  .col-sm-3  { grid-column: span 3; }
  .col-sm-4  { grid-column: span 4; }
  .col-sm-6  { grid-column: span 6; }
  .col-sm-8  { grid-column: span 8; }
  .col-sm-12 { grid-column: span 12; }
}

@media (min-width: 768px) {
  .col-md-1  { grid-column: span 1; }
  .col-md-2  { grid-column: span 2; }
  .col-md-3  { grid-column: span 3; }
  .col-md-4  { grid-column: span 4; }
  .col-md-5  { grid-column: span 5; }
  .col-md-6  { grid-column: span 6; }
  .col-md-7  { grid-column: span 7; }
  .col-md-8  { grid-column: span 8; }
  .col-md-9  { grid-column: span 9; }
  .col-md-12 { grid-column: span 12; }
}

@media (min-width: 992px) {
  .col-lg-1  { grid-column: span 1; }
  .col-lg-2  { grid-column: span 2; }
  .col-lg-3  { grid-column: span 3; }
  .col-lg-4  { grid-column: span 4; }
  .col-lg-5  { grid-column: span 5; }
  .col-lg-6  { grid-column: span 6; }
  .col-lg-7  { grid-column: span 7; }
  .col-lg-8  { grid-column: span 8; }
  .col-lg-9  { grid-column: span 9; }
  .col-lg-10 { grid-column: span 10; }
  .col-lg-12 { grid-column: span 12; }
}

/* Push a column across, e.g. an offset hero */
@media (min-width: 992px) {
  .start-lg-2 { grid-column-start: 2; }
  .start-lg-3 { grid-column-start: 3; }
  .start-lg-4 { grid-column-start: 4; }
}

/* Order swap, so an image can lead on desktop and follow on mobile */
.order-first { order: -1; }
.order-last  { order: 1; }
@media (min-width: 768px) {
  .order-md-first { order: -1; }
  .order-md-last  { order: 1; }
}

/* --- Simple auto grids, for card rows ---------------------------------- */

.grid      { display: grid; gap: var(--gutter); }
.grid--2   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3   { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4   { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--5   { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid--auto{ grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

@media (max-width: 991px) {
  .grid--4, .grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .grid--2, .grid--3, .grid--4, .grid--5 { grid-template-columns: 1fr; }
}

/* --- Stack and cluster -------------------------------------------------- */

.stack     { display: flex; flex-direction: column; gap: var(--s-4); }
.stack--sm { gap: var(--s-2); }
.stack--lg { gap: var(--s-6); }

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}
.cluster--between { justify-content: space-between; }

/* --- Spacing helpers ---------------------------------------------------- */

.mt-2 { margin-top: var(--s-2); }
.mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-6 { margin-bottom: var(--s-6); }
/* ==========================================================================
   Components
   Every site uses these. Bootstrap Icons are used inline as <i class="bi bi-x">.
   ========================================================================== */

/* --- Buttons ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 52px;
  min-width: 180px;
  padding: 0.75rem 1.6rem;
  border: 0;
  border-radius: var(--r-md);
  background: var(--gradient);
  color: #fff;
  font: 700 var(--text-sm) / 1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(16, 16, 40, 0);
  transition:
    transform var(--med) var(--ease),
    box-shadow var(--med) var(--ease),
    background-color var(--med) var(--ease),
    color var(--med) var(--ease),
    filter var(--med) var(--ease);
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -16px rgba(8, 87, 179, .8);
  filter: saturate(1.08);
}
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); transition-duration: var(--fast); }
.btn .bi { font-size: 1.2em; transition: transform var(--med) var(--ease); }
.btn:hover .bi { transform: translateX(2px); }

.btn--ghost { background: var(--line-soft); color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: var(--tint); box-shadow: 0 16px 30px -18px rgba(16, 16, 40, .6); }
.btn--light:hover { box-shadow: 0 16px 30px -18px rgba(16, 16, 40, .6); }
.btn--outline:hover { box-shadow: inset 0 0 0 1px var(--blue), 0 16px 30px -18px rgba(16, 16, 40, .6); color: var(--blue); }
/* Every button on the site is one size. --lg and --sm are kept only so old
   markup keeps working, they change nothing. */
.btn--lg, .btn--sm { min-height: 52px; min-width: 180px; padding: 0.75rem 1.6rem; font-size: var(--text-sm); }
.btn--block { width: 100%; }

/* --- Link with arrow --------------------------------------------------- */

.link-arrow { font-weight: 600; color: var(--terra); display: inline-flex; gap: .4rem; align-items: center; }
.link-arrow { font-size: var(--text-sm); }
.link-arrow .bi { font-size: 1.15em; }
.link-arrow .bi { transition: transform var(--fast) var(--ease); }
.link-arrow:hover .bi { transform: translateX(3px); }

/* --- Cards ------------------------------------------------------------- */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  box-shadow: var(--shadow-sm);
}
.card--flat { box-shadow: none; }
.card--panel { background: var(--panel); border-color: transparent; }
.card--feature .card__icon {
  width: 68px; height: 68px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--gradient-45);
  color: #fff;
  font-size: 2.1rem;
  margin-bottom: var(--s-3);
  box-shadow: 0 12px 24px -14px rgba(8, 87, 179, .9);
}
.icon-tint {
  width: 58px; height: 58px; display: grid; place-items: center;
  border-radius: 16px; background: var(--tint); color: var(--blue); font-size: 1.85rem;
}
.card__title { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: var(--text-md); letter-spacing: -0.01em; }
.card__text  { font-size: var(--text-sm); }

/* --- Price cards -------------------------------------------------------- */

.price {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.price--popular { border: 2px solid var(--blue-bright); }
.price__tag {
  position: absolute; top: -0.7rem; left: var(--s-5);
  background: var(--gradient); color: #fff;
  font: 700 var(--text-xs)/1 var(--font-body);
  letter-spacing: .06em; text-transform: uppercase;
  padding: .35rem .6rem; border-radius: var(--r-sm);
}
.price__amount { font-family: var(--font-display); font-size: var(--text-xl); color: var(--ink); font-weight: 800; letter-spacing: 0; font-variant-numeric: proportional-nums; }
.price__per    { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price__note   { font-size: var(--text-sm); color: var(--good); font-weight: 600; min-height: 1.4em; }
.price__list   { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-3); font-size: var(--text-sm); }
.price__list li { display: flex; align-items: flex-start; gap: .55rem; }
.price__list .bi { font-size: 1.35em; flex: 0 0 auto; margin-top: .05em; }
.price__list li { display: flex; gap: .5rem; align-items: flex-start; }
.price__list .bi { color: var(--blue-bright); font-size: 1.1rem; margin-top: .1rem; }
.price__fee { border-top: 1px dashed var(--line); padding-top: var(--s-3); font-size: var(--text-sm); color: var(--muted); }

/* --- Chips, pills, badges ----------------------------------------------- */

.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--tint); color: var(--blue);
  border-radius: var(--r-full);
  padding: .35rem .85rem;
  font-size: var(--text-xs); font-weight: 600;
}
.chip .bi { font-size: 1.25em; }
.pill { display: inline-block; border-radius: var(--r-full); padding: .2rem .7rem; font-size: var(--text-xs); font-weight: 700; }
.pill--good { background: var(--good-bg); color: var(--good); }
.pill--warn { background: var(--warn-bg); color: var(--warn); }

.badge-live {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--blue-bright);
  border-radius: var(--r-md);
  padding: .5rem .85rem;
  box-shadow: var(--shadow-md);
  line-height: 1.25;
}
.badge-live__dot {
  flex: none;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 0 0 rgba(10, 111, 224, .55);
  animation: pulse 2.4s infinite;
}
.badge-live__text {
  font-family: var(--font-display);
  font-size: var(--text-sm); font-weight: 700; color: var(--ink);
  display: block;
}
.badge-live__month {
  font-size: var(--text-xs); font-weight: 600; color: var(--muted);
  display: block;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(10, 111, 224, 0); } 100% { box-shadow: 0 0 0 0 rgba(10, 111, 224, 0); } }

/* one line variant, for tight spots */
.badge-live--inline { gap: .5rem; }
.badge-live--inline .badge-live__text { font-size: var(--text-xs); }
.badge-live--inline .badge-live__month { display: inline; margin-left: .35rem; }

/* --- Stat tiles ---------------------------------------------------------- */

.stat {
  display: flex; flex-direction: column; justify-content: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-3);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat__label {
  display: block;
  font-size: 1rem;                  /* site minimum */
  font-weight: 700;
  letter-spacing: 0;
  color: var(--muted);
}
.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-top: .15rem;
}
.stat--brand { background: var(--gradient-45); border-color: transparent; }
.stat--brand .stat__value, .stat--brand .stat__label { color: #fff; }

/* --- Stars ---------------------------------------------------------------- */

.stars { display: inline-flex; gap: .15rem; color: var(--star); font-size: 1.25rem; }

/* --- Hero image with overlay element -------------------------------------- */

.hero-shot { position: relative; }
.hero-shot__img { border-radius: var(--r-xl); width: 100%; }
.hero-shot__badge { position: absolute; top: var(--s-3); right: calc(var(--s-3) * -1); }
.hero-shot__stats {
  position: absolute; left: var(--s-3); right: var(--s-3); bottom: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: var(--s-2);
}
@media (max-width: 1199px) {
  .hero-shot__stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .hero-shot__stats { position: static; margin-top: var(--s-3); grid-template-columns: repeat(2, 1fr); }
  .hero-shot { padding-bottom: 0; }
  .hero-shot__badge { right: var(--s-3); }
}

/* --- Media and text side by side ------------------------------------------- */

.media-text__img { border-radius: var(--r-xl); box-shadow: var(--shadow-md); }

/* --- Carousel (portfolio) --------------------------------------------------- */

.carousel-wrap { position: relative; }
.carousel {
  display: grid;
  grid-auto-flow: column;
  /* 2.5 cards in view, so it is obvious there is more to the right */
  grid-auto-columns: calc((100% - 2 * var(--gutter)) / 2.5);
  gap: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* room for the drop shadow and the hover lift, the track clips what it holds */
  padding: var(--s-3) 0 var(--s-7);
}
.carousel > * { scroll-snap-align: start; }
.carousel::-webkit-scrollbar { display: none; }

.carousel__controls {
  display: flex; justify-content: flex-end; gap: var(--s-2);
  margin-bottom: var(--s-4);
}
@media (min-width: 768px) {
  /* sit level with the section heading, top right of the slider */
  .carousel__controls { position: absolute; top: -78px; right: 0; margin: 0; }
}
.carousel__btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line);
  font-size: 1.35rem; cursor: pointer;
  transition: background-color var(--med) var(--ease), color var(--med) var(--ease),
              border-color var(--med) var(--ease), box-shadow var(--med) var(--ease);
}
.carousel__btn:hover {
  background: var(--blue); color: #fff; border-color: var(--blue);
  box-shadow: 0 14px 26px -14px rgba(8, 87, 179, .9);
}

@media (max-width: 1199px) {
  .carousel { grid-auto-columns: calc((100% - var(--gutter)) / 1.6); }
}
@media (max-width: 767px) {
  .carousel { grid-auto-columns: 88%; }
}
.work { display: flex; flex-direction: column; }

/* browser mockup ------------------------------------------------------- */
.browser {
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 26px 50px -30px rgba(16, 16, 40, .7);
  transition: box-shadow var(--med) var(--ease), transform var(--med) var(--ease);
}
.work:hover .browser { transform: translateY(-4px); box-shadow: 0 32px 56px -30px rgba(16, 16, 40, .75); }
.browser__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 12px;
  background: var(--panel);
  border-bottom: 1px solid var(--line-soft);
}
.browser__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: 0 0 auto; }
.browser__bar span:first-child { background: #e6837a; }
.browser__bar span:nth-child(2) { background: #e8c06a; }
.browser__bar span:nth-child(3) { background: #87c196; }
.browser__url {
  flex: 1; height: 12px; margin-left: 8px;
  border-radius: var(--r-full);
  background: var(--line-soft);
}
.browser img {
  display: block; width: 100%;
  aspect-ratio: 16 / 10; object-fit: cover; object-position: top center;
  border: 0; border-radius: 0;
}

.work__name { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: var(--text-sm); }
.work__type { font-size: var(--text-xs); color: var(--muted); }

/* --- Process steps ------------------------------------------------------------ */

.step { gap: var(--s-3); }
.step__num {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--gradient); color: #fff;
  display: grid; place-items: center;
  font: 800 var(--text-md)/1 var(--font-display);
  box-shadow: 0 10px 20px -12px rgba(8, 87, 179, .9);
  margin-bottom: var(--s-1);
}

/* --- Reviews -------------------------------------------------------------------- */

.review { display: flex; flex-direction: column; gap: var(--s-3); }
.review__quote { font-size: var(--text-sm); }
.review__who { font-weight: 800; color: var(--ink); font-size: var(--text-sm); margin-top: auto; }
.review__firm { font-size: var(--text-xs); color: var(--muted); }

/* --- Accordion (FAQ) ------------------------------------------------------------- */

.faq { display: flex; flex-direction: column; gap: var(--s-3); }
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.faq details { transition: border-color var(--med) var(--ease), box-shadow var(--med) var(--ease); }
.faq details:hover { border-color: var(--blue-bright); box-shadow: var(--shadow-sm); }
.faq details[open] {
  border-color: transparent;
  box-shadow: var(--shadow-md), inset 0 0 0 2px var(--blue-bright);
  background: var(--paper);
}
.faq summary {
  list-style: none; cursor: pointer;
  padding: var(--s-4) var(--s-5);
  display: flex; align-items: center; gap: var(--s-4);
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-base);
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq__q {
  flex: 1;
}
.faq__mark {
  flex: none;
  color: var(--muted);
  font-size: 1.45rem;
  line-height: 1;
  transition: transform var(--fast) var(--ease), color var(--fast) var(--ease);
}
.faq__mark { transition: color var(--med) var(--ease), transform var(--med) var(--ease); }
.faq summary:hover .faq__mark { color: var(--blue-bright); }
.faq details[open] .faq__mark { color: var(--blue-bright); transform: rotate(180deg); }
.faq__answer {
  padding: 0 var(--s-5) var(--s-5) calc(var(--s-5));
  font-size: var(--text-sm);
  max-width: 72ch;
  color: var(--ink-soft);
}
.faq__answer p + p { margin-top: var(--s-3); }

/* numbered variant, for a short list of questions on a town page */
.faq--numbered summary { gap: var(--s-3); }
.faq--numbered .faq__n {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  font: 700 var(--text-xs)/1 var(--font-display);
}
.faq-cta {
  margin-top: var(--s-5);
  background: var(--tint);
  border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-5);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); flex-wrap: wrap;
}
.faq-cta p { font-size: var(--text-sm); color: var(--ink-soft); }

/* --- Forms ------------------------------------------------------------------------ */

.field { display: flex; flex-direction: column; gap: var(--s-1); }
.label { font-size: var(--text-sm); font-weight: 600; color: var(--ink); }
.input, .textarea, .select {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  font: 400 var(--text-base)/1.4 var(--font-body);
  color: var(--ink);
}
.input:focus, .textarea:focus, .select:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
.form-embed { width: 100%; border: 0; border-radius: var(--r-lg); min-height: 520px; }

/* Quote form card */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.form-card__head {
  background: var(--gradient-45);
  color: #fff;
  padding: var(--s-5);
  display: flex; align-items: center; gap: var(--s-4);
}
.form-card__head .bi { font-size: 1.9rem; }
.form-card__head h2, .form-card__head h3 { color: #fff; font-size: var(--text-lg); }
.form-card__head p  { font-size: var(--text-sm); color: rgba(255,255,255,.85); }
.form-card__body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-4); }
.form-card__foot {
  border-top: 1px solid var(--line-soft);
  padding: var(--s-4) var(--s-5);
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5);
  font-size: var(--text-xs); color: var(--muted);
}
.form-card__foot span { display: inline-flex; align-items: center; gap: .4rem; }
.form-card__foot .bi { color: var(--good); font-size: 1.25em; flex: 0 0 auto; }

.field--icon { position: relative; }
.field__control { position: relative; }
.field--icon .field__control .bi {
  position: absolute; left: .9rem; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 1.1rem; line-height: 1; pointer-events: none;
}
.field--icon .field__control--area .bi { top: 1.5rem; }
.field--icon .input, .field--icon .textarea, .field--icon .select { padding-left: 2.6rem; }
.input::placeholder, .textarea::placeholder { color: #9aa6b8; }
.input, .textarea, .select { transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease); }
.input:hover, .textarea:hover { border-color: var(--blue-bright); }
.hint { font-size: var(--text-xs); color: var(--muted); }

/* Contact details beside the form */
.contact-line { display: flex; align-items: flex-start; gap: var(--s-3); }
.contact-line .bi { color: var(--blue-bright); font-size: 1.65rem; margin-top: .05rem; flex: 0 0 auto; }
.contact-line b { display: block; color: var(--ink); font-size: var(--text-sm); }
.contact-line span { font-size: var(--text-sm); }

/* --- Header and nav ---------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding-block: var(--s-3); }
.logo { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: var(--text-base); }
.logo img { height: 60px; width: auto; }
.logo__img { height: 54px; width: auto; align-self: flex-start; }

.nav { display: flex; align-items: center; gap: var(--s-5); }
.nav__item { position: relative; padding-block: .35rem; }
/* invisible bridge, so the pointer can travel from the link to the menu
   without the menu closing on the way */
.nav__item::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: .9rem; }
.nav__link { color: var(--ink-soft); font-size: var(--text-sm); font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; }
.nav__link { transition: color var(--med) var(--ease); }
.nav__link:hover { color: var(--blue-bright); text-decoration: none; }
.nav__menu {
  position: absolute; top: calc(100% + .75rem); left: -1rem;
  min-width: 230px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--s-2);
  display: none;
  flex-direction: column;
}
.nav__item:hover .nav__menu,
.nav__item:focus-within .nav__menu { display: flex; }
.nav__menu a { padding: .5rem .75rem; border-radius: var(--r-sm); font-size: var(--text-sm); color: var(--ink-soft); }
.nav__menu a { transition: background-color var(--med) var(--ease), color var(--med) var(--ease); }
.nav__menu a:hover { background: var(--tint); text-decoration: none; }

.nav-toggle {
  display: none; background: none; border: 0; padding: .25rem;
  font-size: 2rem; line-height: 1; color: var(--ink); cursor: pointer;
  transition: color var(--med) var(--ease), transform var(--med) var(--ease);
}
.nav-toggle:hover { color: var(--blue-bright); }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-flex; }
.nav-toggle[aria-expanded="true"] { color: var(--blue); transform: rotate(90deg); }

@media (max-width: 991px) {
  .nav-toggle { display: block; }
  .logo img { height: 46px; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: var(--s-2);
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: var(--s-4) var(--page-pad);
  }
  .nav[data-open="true"] { display: flex; }
  .nav__menu { position: static; display: flex; border: 0; box-shadow: none; padding-left: var(--s-4); }
  .nav__item::after { display: none; }
}

/* --- Footer ----------------------------------------------------------------------- */

.site-footer { background: var(--ink); color: #9fadc2; padding-block: var(--s-7) var(--s-5); font-size: var(--text-sm); }
.site-footer .footer__title { color: #fff; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--s-3); }
.site-footer a { color: #cfdaea; }
.site-footer__links { display: flex; flex-direction: column; gap: var(--s-2); }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: var(--s-6); padding-top: var(--s-4); display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; font-size: var(--text-xs); }

/* --- CTA band ---------------------------------------------------------------------- */

.band {
  background: linear-gradient(115deg, var(--ink) 0%, #15304f 55%, var(--blue) 100%);
  color: #d7d8e6;
  border-radius: var(--r-xl);
  padding: var(--s-6);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-5); flex-wrap: wrap;
}
.band h2 { color: #fff; }

/* --- Breadcrumb -------------------------------------------------------------------- */

.crumbs { font-size: var(--text-xs); color: var(--muted); display: flex; gap: .4rem; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }

/* --- Prose (blog) ------------------------------------------------------------------- */

.prose { max-width: 70ch; font-size: var(--text-md); }
.prose h2 { font-size: var(--text-xl); margin-top: var(--s-7); margin-bottom: var(--s-3); }
.prose h3 { margin-top: var(--s-6); margin-bottom: var(--s-2); }
.prose p, .prose ul, .prose ol { margin-top: var(--s-4); }
.prose img { border-radius: var(--r-lg); margin-block: var(--s-6); }
.prose blockquote {
  margin: var(--s-6) 0; padding-left: var(--s-5);
  border-left: 3px solid var(--terra); color: var(--ink-soft); font-style: italic;
}
.prose code { font-family: var(--font-mono); font-size: .9em; background: var(--panel); padding: .1rem .35rem; border-radius: var(--r-sm); }

/* sticky header clearance */
.section, h2, h3, [id] { scroll-margin-top: 90px; }

/* --- Enquiry form states ------------------------------------------------ */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: var(--s-3) var(--s-4); border-radius: var(--r-md); font-weight: 600; }
.form-status--ok  { background: var(--good-bg); color: var(--good); }
.form-status--bad { background: var(--bad-bg);  color: var(--bad); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; box-shadow: none; }

/* --- Cookie banner ---------------------------------------------------------- */

.consent { position: fixed; left: var(--s-4); right: var(--s-4); bottom: var(--s-4); z-index: 60; max-width: 760px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; padding: var(--s-4) var(--s-5); background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-lg, 16px); box-shadow: 0 18px 44px -18px rgba(16, 16, 40, .45); font-size: var(--text-sm); }
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 320px; }
.consent a { color: inherit; text-decoration: underline; }
.consent__btns { display: flex; gap: var(--s-2); }
.consent .btn { min-width: 110px; min-height: 44px; }
.footer__linkbtn { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; opacity: .85; }
.footer__linkbtn:hover { opacity: 1; }
