/* ==========================================================================
   Components — cursor, loader, header, buttons, mobile menu, intro splash
   ========================================================================== */

/* ---- custom cursor: the "smart pixel" (fine pointers only; see the bottom of this file) ----
   .cursor is a zero-size anchor at the pointer; ::before is the pixel itself, so it can stretch into a
   caret bar or a speed streak. The tag hangs off it; js/cursor.js switches the state classes. */
.cursor {
  --cc: var(--accent);                 /* pixel colour */
  --cc-soft: rgba(255, 90, 31, .14);   /* its soft fill when it is a ring */
  --ct: var(--white);                  /* label colour */
  position: fixed;
  top: 0;
  left: 0;
  z-index: 220;
  display: none;
  width: 0;
  height: 0;
  pointer-events: none;
  transform: translate3d(-200px, -200px, 0);
}
.cursor::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  box-sizing: border-box;
  width: 10px;
  height: 10px;
  background: var(--cc);
  border: 0 solid var(--cc);
  /* --sx/--sy: the speed streak, set by js; --press: the squeeze while the button is down */
  transform: translate(-50%, -50%) scale(var(--sx, 1), var(--sy, 1));
  transition:
    width .3s var(--ease-soft),
    height .3s var(--ease-soft),
    background-color .25s ease,
    opacity .2s ease,
    transform .12s ease-out;
}
.cursor.is-lock::before { width: 8px; height: 8px; }
.cursor.is-text::before { width: 2px; height: 26px; }
.cursor.is-down::before { transform: translate(-50%, -50%) scale(.6); }
.cursor.is-hidden::before { opacity: 0; }
/* the tag hangs off the pixel: a verb, and a real detail about what is under it */
.cursor__tag {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: stretch;
  height: 26px;
  white-space: nowrap;
  background: var(--cc);
  color: var(--ct);
  font-size: 12px;
  opacity: 0;
  transform: translate(14px, 14px);
  transition: opacity .18s ease, background-color .25s ease;
}
.cursor.is-tag .cursor__tag { opacity: 1; }
.cursor.is-hidden .cursor__tag { opacity: 0; }
.cursor__verb,
.cursor__meta {
  display: flex;
  align-items: center;
  padding: 0 9px;
  font-style: normal;
}
.cursor__verb { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.cursor__meta { font-weight: 500; letter-spacing: .02em; border-left: 1px solid rgba(255, 255, 255, .45); }
.cursor__meta:empty { display: none; }
/* over orange or dark surfaces the pixel turns white (and the tag ink) */
.cursor.is-light { --cc: #fff; --cc-soft: rgba(255, 255, 255, .2); --ct: var(--ink); }
.cursor.is-light .cursor__meta { border-left-color: rgba(10, 10, 10, .3); }


/* the echo: a hollow pixel drifting behind the real one */
.cursor-echo {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 219;
  display: none;
  box-sizing: border-box;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 1px solid var(--accent);
  opacity: .4;
  pointer-events: none;
  transform: translate3d(-200px, -200px, 0);
  transition: opacity .3s ease, border-color .25s ease;
}
.cursor-echo.is-light { border-color: #fff; }
.cursor-echo.is-away { opacity: 0; }

/* the click burst */
.cursor-bit {
  position: fixed;
  z-index: 221;
  width: 6px;
  height: 6px;
  background: var(--accent);
  pointer-events: none;
}
.cursor-bit.is-light { background: #fff; }

/* the system arrow is hidden only while the pixel is doing its job (js adds .dz-cursor) */
html.dz-cursor, html.dz-cursor * { cursor: none !important; }

/* ---- loader ---- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(20px, 5vw, 60px);
  background: var(--bg);
  transition: transform 1.05s cubic-bezier(.76, 0, .24, 1);
}
.loader.is-done { transform: translateY(-101%); }

.loader__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.loader__mark {
  height: clamp(30px, 7vw, 96px);
  width: auto;
  flex: none;
}
.loader__num {
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 300;
  letter-spacing: -.04em;
  color: var(--ink-40);
  font-variant-numeric: tabular-nums;
}
.loader__track {
  margin-top: 22px;
  height: 1px;
  background: var(--ink-14);
}
.loader__bar {
  height: 1px;
  width: 0;
  background: var(--accent);
}

/* ---- scroll progress ---- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  height: 2px;
  width: 0;
  background: var(--accent);
}

/* ---- header ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad-x);
  color: var(--ink);
  border-bottom: 1px solid var(--ink-10);   /* the line under the header is always there, at the top of the page too */
  transition:
    padding .5s var(--ease-soft),
    background .5s ease,
    backdrop-filter .5s ease,
    border-color .5s ease;
}
.site-header.is-scrolled {
  padding-top: 14px;
  padding-bottom: 14px;
  background: rgba(244, 241, 236, .82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.brand { display: flex; align-items: center; }
.brand img { height: 38px; width: auto; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__links {
  display: flex;
  gap: 26px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .1em;
}
.nav__links a { position: relative; display: block; padding: 4px 0; transition: color .3s ease; }
.nav__links a[aria-current="page"] { color: var(--accent); }

.nav__cta .pixbtn__label { text-transform: uppercase; letter-spacing: .2px; }

/* ---- Services drop-down (desktop): opens on hover, focus or the little arrow; Escape closes it ---- */
.nav__item--menu { position: relative; display: flex; align-items: center; gap: 4px; }
.nav__caret {
  display: grid;
  place-items: center;
  width: 20px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.nav__chev {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .3s var(--ease-soft), color .3s ease;
}
.nav__item--menu.is-open .nav__chev { transform: translateY(1px) rotate(-135deg); color: var(--accent); }
.nav__item--menu.is-open > a { color: var(--accent); }
.nav__panel {
  position: absolute;
  top: 100%;
  left: -18px;
  z-index: 5;
  width: 400px;
  padding-top: 24px;           /* a bridge, so the pointer can travel from the link into the panel */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .25s var(--ease-soft), visibility 0s .2s;
}
.nav__item--menu.is-open .nav__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .2s ease, transform .25s var(--ease-soft), visibility 0s;
}
.nav__panel-box {
  background: var(--bg);
  border: 1px solid var(--ink-14);
  box-shadow: 0 28px 48px -28px rgba(18, 16, 14, .35);
  letter-spacing: 0;
  text-transform: none;
}
.nav__panel-list { display: grid; }
.nav__links .nav__panel a {
  position: static;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ink-10);
  color: var(--ink);
  transition: background-color .25s ease, color .25s ease;
}
.nav__links .nav__panel a:hover,
.nav__links .nav__panel a:focus-visible { background: rgba(255, 90, 31, .07); color: var(--ink); }
.nav__panel-num { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--accent); }
.nav__panel-text { display: grid; gap: 2px; min-width: 0; }
.nav__panel-text b { font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.nav__panel-text small { font-size: 12.5px; font-weight: 400; letter-spacing: 0; color: var(--ink-60); }
.nav__panel-go { color: var(--ink-40); transition: transform .3s var(--ease-soft), color .25s ease; }
.nav__links .nav__panel a:hover .nav__panel-go,
.nav__links .nav__panel a:focus-visible .nav__panel-go { color: var(--accent); transform: translate(3px, -3px); }
.nav__links .nav__panel a:hover b,
.nav__links .nav__panel a:focus-visible b { color: var(--accent); }
.nav__links .nav__panel .nav__panel-all {
  display: flex;
  justify-content: space-between;
  border-bottom: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 0;
  padding: 11px 19px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .55s var(--ease-out), color .4s ease, border-color .5s ease;
}

.btn--dark,
.btn--dark:hover { background: var(--ink); color: var(--white); }
.btn--dark { --pix: var(--accent); }

.btn--accent,
.btn--accent:hover { background: var(--accent); color: var(--white); }
.btn--accent { --pix: var(--ink); }

.btn--lg { padding: 16px 26px; font-size: 13.5px; gap: 11px; }

.btn--outline {
  --pix: var(--accent);
  gap: 11px;
  border: 1px solid rgba(255, 255, 255, .24);
  background: transparent;
  color: var(--white);
  padding: 14px 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: opacity .85s ease, transform .7s var(--ease-out), border-color .35s ease;
}
.btn--outline:hover { color: var(--white); border-color: var(--accent); }

.btn--light {
  --pix: var(--accent);
  gap: 10px;
  border: 1px solid var(--ink-16);
  background: var(--white);
  padding: 13px 20px;
  color: var(--ink);
}
.btn--light:hover { border-color: var(--accent); }

/* Pixel-fill hover: JS (core.js) injects a 16x3 grid of <i> squares which
   scale up in a staggered wave. The label sits above it. */
.pixbtn { position: relative; overflow: hidden; isolation: isolate; }
.pixbtn__label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: inherit;
}
.pixbtn__pix {
  position: absolute;
  inset: -1px;
  z-index: -1;
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  grid-auto-rows: 1fr;
  color: var(--pix, var(--accent));
  pointer-events: none;
}
.pixbtn__pix i {
  display: block;
  transform: scale(0);
  transform-origin: center;
  background: currentColor;
  transition: transform .5s var(--ease-out);
}
.pixbtn:hover .pixbtn__pix i,
.pixbtn:focus-visible .pixbtn__pix i { transform: scale(1.12); }
.pixbtn--invert:hover,
.pixbtn--invert:focus-visible { color: var(--white); }

.menu-btn {
  display: none;
  font-size: 14px;
  letter-spacing: .1em;
  padding: 11px 18px;
}

/* ---- mobile menu ---- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 79;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 96px clamp(20px, 5vw, 56px) 34px;
  background: var(--bg);
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }

.mobile-menu__links { display: grid; }
.mobile-menu__links a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--ink-10);
  font-size: clamp(30px, 9vw, 46px);
  font-weight: 500;
  letter-spacing: -.045em;
}
.mobile-menu__links a[aria-current="page"] { color: var(--accent); }
/* the services under "Services" in the phone menu */
.mobile-menu__sub { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0 0 16px 46px; }
.mobile-menu__links .mobile-menu__sub a { display: inline; padding: 0; border: 0; font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--ink-60); }
.mobile-menu__num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--ink-40);
}
.mobile-menu .btn { justify-content: center; gap: 12px; padding: 18px 26px; font-size: 15px; }

body.is-locked { overflow: hidden; }

/* ---- intro splash ---- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--bg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 1.15s cubic-bezier(.65, 0, .35, 1), opacity 1.05s ease;
  will-change: transform, opacity;
}
.intro.is-leaving {
  transform: scale(3.4);
  opacity: 0;
  pointer-events: none;
}
.intro[hidden] { display: none; }

.intro__canvas {
  position: absolute;
  inset: 0;
  width: 80%;
  height: 100%;
  margin: 0 auto;
  pointer-events: none;
}

/* keyboard users can always get past the splash */
.intro__enter {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 12px 18px;
  border: 0;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform .3s var(--ease-out);
}
.intro__enter:focus { transform: none; }

.intro__meta {
  position: absolute;
  inset: auto 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-45);
}
.intro__where { display: flex; align-items: center; gap: 12px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding: clamp(34px, 6vh, 70px) var(--pad-x) 28px;
  border-top: 1px solid var(--ink-14);
}
.footer__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(0, .8fr);
  gap: clamp(30px, 5vw, 86px);
  align-items: start;
}
.footer__brand { min-width: 0; display: grid; gap: clamp(34px, 6.5vh, 64px); align-content: start; justify-items: start; }
.footer__brand img { width: 300px; max-width: 100%; height: auto; }
.footer__h {
  margin-bottom: clamp(16px, 2vh, 24px);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.footer__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px clamp(18px, 2.4vw, 50px);
}
.footer__links ul {
  display: grid;
  gap: clamp(9px, 1.2vh, 14px);
  padding-left: 16px;
  list-style: disc;
}
.footer__links li { font-size: 14px; color: rgba(18, 16, 14, .52); }
.footer__links a,
.footer__social a {
  font-size: 14px;
  color: var(--ink-72);
  transition: color .3s ease;
}
.footer__links a:hover,
.footer__social a:hover { color: var(--accent); }
.footer__address { max-width: 24ch; font-size: 14px; line-height: 1.65; color: var(--ink-72); }
.footer__social { display: grid; gap: clamp(9px, 1.2vh, 14px); margin-top: clamp(18px, 2.6vh, 30px); }
.footer__social a { display: inline-block; }

.footer__base {
  max-width: var(--max);
  margin: clamp(30px, 5vh, 60px) auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--ink-12);
  font-size: 13px;
  color: var(--ink-45);
}

/* ==========================================================================
   Shared responsive rules (header, cursor, footer)
   ========================================================================== */

/* custom cursor needs a fine pointer */
@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  .cursor { display: block; }
  .cursor-echo { display: block; }
}
@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-echo, .cursor-bit { display: none !important; }
}

/* header collapses into the menu button */
@media (max-width: 900px) {
  .nav__links,
  .nav__cta { display: none; }
  .menu-btn { display: inline-flex; }
}

/* footer stacks on narrow screens */
@media (max-width: 919px) {
  .footer__grid,
  .footer__links { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   Post card — journal teasers on the home page and the blog listing
   ========================================================================== */
.post { display: flex; flex-direction: column; gap: 10px; }
.post:hover { color: inherit; }
.post__media {
  position: relative;
  display: block;
  height: clamp(190px, 22vw, 280px);
  margin-bottom: 10px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--ink-10);
}
.post__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}

/* ---------- pixel veil: the hover on the Our Works cards, the blog cards and the featured post ----------
   Cells are built in js/core.js (8 x 6). The picture stays in colour; every square except the
   ".is-colour" ones lays a neutral grey over it in "color" blend mode, which takes the colour out and
   keeps the light and dark. Before hover the picture is a mosaic of black-and-white and coloured
   squares; on hover the grey squares clear one by one and the whole picture is in colour. */
.work-card__veil,
.post__veil {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-auto-rows: 1fr;
  pointer-events: none;
}
.work-card__veil i,
.post__veil i {
  display: block;
  background: #808080;
  mix-blend-mode: color;
  transition: opacity .5s ease;
  transition-delay: var(--d, 0ms);
}
.work-card__veil i.is-colour,
.post__veil i.is-colour { background: transparent; }

.post:hover .post__media img,
.post:focus-visible .post__media img,
.feature:hover .feature__media img,
.feature:focus-visible .feature__media img { transform: scale(1.05); }
.post:hover .post__veil i,
.post:focus-visible .post__veil i,
.feature:hover .post__veil i,
.feature:focus-visible .post__veil i { opacity: 0; }
@media (hover: none), (pointer: coarse) {
  .post__veil { display: none; }
}

/* project cards (Our Works, Selected work on a service page, the work list): the same squares and zoom, and a
   "View case" badge on the picture */
.work-card__cta {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
  pointer-events: none;
}
.sv-card:hover .work-card__veil i, .sv-card:focus-visible .work-card__veil i,
.case-card:hover .work-card__veil i, .case-card:focus-visible .work-card__veil i { opacity: 0; }
.sv-card:hover .work-card__cta, .sv-card:focus-visible .work-card__cta,
.case-card:hover .work-card__cta, .case-card:focus-visible .work-card__cta { opacity: 1; transform: none; }
@media (hover: none), (pointer: coarse) {
  .sv-card .work-card__veil, .case-card .work-card__veil { display: none; }
  .sv-card .work-card__cta, .case-card .work-card__cta { opacity: 1; transform: none; }
}
.post__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.post__meta span { color: var(--ink-40); }
.post__title {
  font-size: clamp(18px, 1.7vw, 25px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.22;
  text-wrap: pretty;
}
.post__excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(18, 16, 14, .58);
  text-wrap: pretty;
}
.post__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  padding: var(--sec-pad) var(--pad-x);
  border-top: 1px solid var(--ink-08);
}
.contact__layout {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(26px, 4vw, 60px);
  align-items: start;
}
.contact__title { margin-bottom: 18px; line-height: .96; letter-spacing: -.055em; }
.contact__lead {
  max-width: 30ch;
  margin-bottom: 30px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-60);
}
.contact__list { display: grid; gap: 16px; margin: 0; }
.contact__row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--ink-14);
}
.contact__row dt {
  min-width: 70px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-40);
}
.contact__row dd { font-size: 16px; font-weight: 500; }

.contact__card {
  padding: clamp(26px, 3.4vw, 48px);
  background: var(--white);
  border: 1px solid var(--ink-10);
}
.contact__done {
  display: grid;
  gap: 13px;
  place-content: center;
  min-height: 280px;
  text-align: center;
}
.contact__done[hidden] { display: none; }
.contact__tick {
  justify-self: center;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: var(--white);
  font-size: 20px;
}
.contact__done h3 { font-size: 24px; font-weight: 500; letter-spacing: -.035em; }
.contact__done p { font-size: 14px; color: var(--ink-55); }

.form { display: grid; gap: 20px; }
.form[hidden] { display: none; }
.form__pair { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.field { display: grid; gap: 8px; }
.field__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-45);
}
.field__input {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--ink-20);
  border-radius: 0;
  background: transparent;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color .4s ease, box-shadow .4s ease;
}
.field__input::placeholder { color: rgba(18, 16, 14, .38); }
.field__input:focus { border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.field__input--area { resize: none; }
.field__input.is-invalid { border-bottom-color: #b3261e; box-shadow: 0 1px 0 #b3261e; }

.form__needs { display: block; }
.form__needs legend { display: block; float: none; width: 100%; padding: 0; margin: 0 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-block; }
.chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.chip span {
  display: block;
  padding: 9px 15px;
  border: 1px solid var(--ink-20);
  background: transparent;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink-72);
  transition:
    background-color .35s var(--ease-out),
    border-color .35s var(--ease-out),
    color .35s var(--ease-out);
}
.chip input:checked + span { border-color: var(--accent); background: var(--accent); color: var(--white); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.form__error { font-size: 13px; color: #b3261e; }
.form__error[hidden] { display: none; }
.form__submit { justify-self: start; }

/* Contact form trap field: present for bots, invisible and unreachable for people. */
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; font-size: 12px; }

/* ---------- contact page, footer legal row, form note ---------- */
.contact--page { border-top: 0; padding-top: clamp(20px, 4vh, 48px); }
.contact__social { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.contact__social a { transition: color .3s ease; }
.contact__social a:hover { color: var(--accent); }
.form__note { font-size: 12px; line-height: 1.5; color: var(--ink-50); }
.form__note a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.footer__legal { display: inline-flex; gap: 18px; }
.footer__legal a { transition: color .3s ease; }
.footer__legal a:hover { color: var(--accent); }
.footer__social--contact { margin-bottom: clamp(10px, 1.6vh, 18px); }
.footer__address + .footer__social--contact { margin-top: clamp(14px, 2vh, 22px); }

/* service names on the home page are links; the whole row is clickable */
.svc-item__link { color: inherit; }
.svc-item__link::after { content: ""; position: absolute; inset: 0; }

/* ---------- social icons (footer, contact page) ---------- */
@media (max-width: 760px) { .footer__brand { gap: 24px; } }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink-20);
  color: var(--ink);
  transition: background .35s ease, border-color .35s ease, color .35s ease, transform .45s var(--ease-out);
}
.social a:hover { background: var(--accent); border-color: var(--accent); color: var(--white); transform: translateY(-3px); }
.social-ico { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.social-ico .f { fill: currentColor; stroke: none; }
.contact__row dd.contact__social { display: block; }
.contact__social .social a { width: 38px; height: 38px; }

/* client logos listed in a column (About page) */
.logo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.logo-list img { display: block; width: auto; height: 46px; max-width: none; }
.logo-list span { font-size: 15px; font-weight: 600; color: var(--ink-60); }

/* ==========================================================================
   Shared with the home page: the clients marquee and the FAQ accordion
   (the service pages use exactly the same markup, so they cannot drift apart)
   ========================================================================== */
.clients { padding: var(--sec-pad) 0; text-align: center; }
.clients__head { padding: 0 var(--pad-x) 22px; }
.clients__head-inner { max-width: var(--max); margin: 0 auto; }

.clients__marquee {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 2.4vw, 32px) 0;
  border-top: 1px solid var(--ink-10);
  border-bottom: 1px solid var(--ink-10);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.clients__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: dz-marquee var(--marquee-dur, 34s) linear infinite;
}
.client {
  margin-right: clamp(38px, 5vw, 84px);
  font-size: clamp(18px, 2vw, 30px);
  font-weight: 700;
  letter-spacing: -.04em;
  color: rgba(18, 16, 14, .34);
  white-space: nowrap;
  transition: color .35s ease;
}
.client:hover { color: var(--ink); }
.client img { display: block; width: auto; height: var(--client-h); max-width: none; }
/* logo tiles carry their own frame, so they sit close together; every logo has the same height */
.clients { --client-h: clamp(56px, 7vw, 80px); }   /* every logo the same height, never taller than 80px */
.client:has(> img) { margin-right: clamp(10px, 1.2vw, 18px); }

.faq { padding: var(--sec-pad) var(--pad-x); }
.faq__layout {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  gap: clamp(24px, 4vw, 70px);
  align-items: start;
}
.faq__title { line-height: 1.02; }
.faq__list { border-top: 1px solid var(--ink-14); }
.faq-item { border-bottom: 1px solid var(--ink-14); }

.faq-item__q { font-size: inherit; font-weight: inherit; }
.faq-item__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(18px, 2vw, 26px) 0;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 500;
  letter-spacing: -.03em;
  color: var(--ink);
  transition: color .35s ease;
}
.faq-item.is-open .faq-item__btn { color: var(--accent); }
.faq-item__icon {
  display: grid;
  place-items: center;
  min-width: 28px;
  width: 28px;
  height: 28px;
  background: var(--ink-08);
  color: var(--ink);
  font-size: 14px;
  transition:
    background-color .45s var(--ease-out),
    color .45s var(--ease-out),
    transform .45s var(--ease-out);
}
.faq-item.is-open .faq-item__icon {
  background: var(--accent);
  color: var(--white);
  transform: rotate(135deg);
}

.faq-item__a {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition:
    grid-template-rows .55s var(--ease-out),
    opacity .4s ease,
    visibility 0s linear .55s;
}
.faq-item__a > div { overflow: hidden; min-height: 0; }
.faq-item__a p {
  padding: 0 50px 24px 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-60);
  text-wrap: pretty;
}
.faq-item.is-open .faq-item__a {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

/* ---- touch screens ---- */
@media (pointer: coarse) {
  .field__input { font-size: 16px; }
  .footer__links a, .footer__social a, .footer__legal a { display: inline-block; padding: 10px 0; margin: -10px 0; }
  .plain-links a { padding: 8px 0; }
}
