/* N3XT site styles. Rebuilt from the Wix site (Nov 2026): same colours, Montserrat for headings,
   Nunito Sans standing in for Avenir (a paid font) in body text. Sizes are rem so they follow the
   visitor's browser font size; 1rem = 16px at the default. */

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("/assets/fonts/nunito-sans-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --red: #be1e2d;   /* the logo and red headings */
  --hover: #eb4141; /* Wix's hover colour: button fills and links */
  --ink: #000;
  --dark: #232323;
  --muted: #949494;
  --grey-text: #6b6b6b;
  --band: #f5f5f5;
  --line: #3a3a3a;
  --page: 57.5rem; /* 920px, the old site's content width */
  --gutter: 1.25rem;
  --head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --body: "Nunito Sans", "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 300 1.125rem/1.45 var(--body);
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 700; line-height: 1.12; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--ink); color: #fff; padding: .6rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---------- logo ---------- */
.logo {
  display: inline-flex; align-items: baseline;
  font: 2.5rem/1 var(--head); color: var(--red); text-decoration: none;
}
.logo span:nth-child(1) { font-weight: 300; }
.logo span:nth-child(2) { font-weight: 500; }
.logo span:nth-child(3) { font-weight: 700; letter-spacing: .05em; }
.logo span:nth-child(4) { font-weight: 900; letter-spacing: .05em; }

/* ---------- header and menu ---------- */
.site-header { background: #fff; position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 3.75rem; }
.menu-button {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-right: -.6rem;
  background: none; border: 0; cursor: pointer; color: #6f6f6f;
}
.menu-button svg { width: 1.6rem; height: 1.6rem; }

/* A dark panel over the top of the page with the footer's links (src/partials/site-links.html). */
.menu {
  position: fixed; inset: 0 0 auto; z-index: 40; max-height: 100dvh; overflow-y: auto;
  background: var(--dark); color: #fff; box-shadow: 0 8px 24px rgb(0 0 0 / .25);
  padding-top: calc(3rem + env(safe-area-inset-top, 0px));
  animation: menu-drop .35s ease-out;
}
@keyframes menu-drop { from { translate: 0 -100%; } }
@media (prefers-reduced-motion: reduce) { .menu { animation: none; } }
.menu .footer-grid { padding-bottom: 2.5rem; }
.menu-close {
  position: absolute; top: calc(.5rem + env(safe-area-inset-top, 0px));
  right: max(calc(var(--gutter) - .6rem), calc((100% - var(--page)) / 2 - .6rem)); color: #fff;
}

/* ---------- buttons (Wix's: 5px corners, red fill fading in over .4s on hover) ---------- */
.btn {
  display: inline-block; padding: .5rem 1rem; border: 1px solid var(--ink); border-radius: 5px;
  font: 300 1.25rem/1.4 var(--body); text-decoration: none; color: var(--ink); background: #fff; cursor: pointer;
  transition: border-color .4s, background-color .4s, color .4s;
}
.btn:hover { background: var(--hover); border-color: transparent; color: #fff; }
.btn-dark { background: #000; border-color: #fff; color: #fff; }
.btn-dark:hover { background: var(--hover); border-color: #000; }

/* ---------- type ---------- */
.display { font-size: clamp(2.5rem, 2rem + 2.6vw, 4rem); letter-spacing: -.005em; }
.lead { font: 400 clamp(1.15rem, 1rem + .6vw, 1.375rem)/1.35 var(--body); letter-spacing: .05em; max-width: 36rem; }
.page-head { padding-block: clamp(3rem, 7vw, 4.25rem) clamp(2.5rem, 6vw, 4rem); }
.page-head .lead { margin-top: clamp(1.5rem, 4vw, 2.75rem); }
.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section-tight { padding-block: 0 clamp(3rem, 8vw, 5rem); }
.justify { text-align: justify; hyphens: auto; }
@media (max-width: 40rem) { .justify { text-align: left; } }

/* ---------- home: hero ---------- */
.hero {
  position: relative; display: grid; place-items: center; overflow: hidden;
  min-height: clamp(30rem, 100svh - 3.75rem, 50rem);
  background: #000 url("/assets/img/hero-poster.jpg") center / cover no-repeat; color: #fff; text-align: center;
}
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-text { position: relative; padding: 4rem var(--gutter) 6rem; }
.hero h1 {
  font: 300 clamp(2.4rem, 1.2rem + 5vw, 5rem)/1.2 var(--head); letter-spacing: -.01em;
}
.hero h1 b { font-weight: 700; }
@media (max-width: 40rem) { .hero h1 br { display: none; } }
.hero .btn { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.hero-down { display: grid; place-items: center; width: 3rem; height: 2rem; margin: 2rem auto 0; color: #fff; }
.hero-down svg { width: 2.4rem; }

/* ---------- home: what we do ---------- */
.services { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(2rem, 5vw, 3rem); }
.service { display: flex; flex-direction: column; align-items: flex-start; }
.service:first-child { padding-right: clamp(1.5rem, 4vw, 2.5rem); }
.service:last-child { padding-left: clamp(1.5rem, 4vw, 2.5rem); }
.service-text { padding-bottom: 1.5rem; }
.service:first-child .service-text { border-right: 1px solid var(--ink); margin-right: calc(-1 * clamp(1.5rem, 4vw, 2.5rem)); padding-right: clamp(1.5rem, 4vw, 2.5rem); }
.service h3 { font: 400 clamp(1.4rem, 1.1rem + 1vw, 1.875rem)/1.2 var(--body); margin-bottom: 2rem; }
.service .lead { margin-bottom: 1.25rem; }
.service ul { list-style: none; margin: 0; padding: 0; font-size: 1.125rem; }
.service li { margin-bottom: .55rem; }
.service li::before { content: "- "; }
.service .btn { margin-top: 2rem; }
@media (max-width: 44rem) {
  .services { grid-template-columns: 1fr; gap: 3.5rem; }
  .service:first-child, .service:last-child { padding: 0; }
  .service:first-child .service-text { border-right: 0; margin-right: 0; padding-right: 0; }
}

/* ---------- home: who we help ---------- */
.help-section { padding-block: clamp(1rem, 4vw, 3.5rem) clamp(4rem, 9vw, 7rem); }
/* The logo sits beside the heading and text, centred on them, without making their rows taller (as on Wix). */
.help { display: grid; grid-template-columns: 1.6fr 1fr; column-gap: 3rem; }
.help h2 { grid-column: 1; }
.help p { grid-column: 1; font-size: 1.125rem; max-width: 34rem; margin: 2.5rem 0 0; }
.clients-cell { grid-column: 2; grid-row: 1 / 3; position: relative; }
.clients {
  position: absolute; right: 0; top: 50%; translate: 0 -50%;
  width: min(100%, 17.5rem); aspect-ratio: 1; margin: 0; padding: 0; list-style: none;
}
.clients li { position: absolute; inset: 0; opacity: 0; animation: client 24s infinite; }
.clients li:nth-child(2) { animation-delay: 4s; }
.clients li:nth-child(3) { animation-delay: 8s; }
.clients li:nth-child(4) { animation-delay: 12s; }
.clients li:nth-child(5) { animation-delay: 16s; }
.clients li:nth-child(6) { animation-delay: 20s; }
.clients img { width: 100%; height: 100%; object-fit: contain; }
@keyframes client { 0% { opacity: 0; } 3%, 15% { opacity: 1; } 18%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .clients { aspect-ratio: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; width: min(100%, 22rem); }
  .clients li { position: static; opacity: 1; animation: none; }
}
@media (max-width: 44rem) {
  .help { grid-template-columns: 1fr; }
  .clients-cell { grid-column: 1; grid-row: auto; position: static; margin-top: 2rem; }
  .clients { position: relative; inset: auto; translate: none; margin-inline: auto; width: min(70%, 15rem); }
}

/* ---------- contact band (home, people) ---------- */
.talk { background: var(--dark); color: #fff; }
.talk .display { color: #fff; }
.talk > .wrap > p { margin-top: 1.75rem; font-size: 1.125rem; }

/* ---------- forms ---------- */
.trap { position: absolute; left: -9999px; }
.form-foot { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; margin-top: .6rem; }
.form-foot.center { flex-direction: column; justify-content: center; margin-top: 2.5rem; }
.form-status { margin: 0; font-size: 1rem; }
.form-status:empty { display: none; }
input, textarea { font: inherit; color: var(--ink); }
textarea { resize: vertical; }

/* the band on Home and People: white fields with a soft shadow, a red Submit */
.form-band { margin-top: 3rem; }
.band-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; }
.band-fields input, .band-fields textarea {
  width: 100%; border: 0; border-radius: 5px; background: #fff; padding: .3rem .45rem;
  font-size: 1rem; box-shadow: 0 1px 4px rgb(0 0 0 / .6);
}
.band-fields textarea { grid-column: 2; grid-row: 1 / 3; min-height: 3.6rem; }
.band-fields ::placeholder { color: var(--muted); }
.btn-submit {
  padding: .25rem .8rem; border: 0; border-radius: 5px; background: var(--hover); color: #fff; cursor: pointer;
  font: 300 1rem/1.4 var(--body); box-shadow: 0 1px 4px rgb(0 0 0 / .6);
}
@media (max-width: 40rem) {
  .band-fields { grid-template-columns: 1fr; gap: .5rem; }
  .band-fields textarea { grid-column: 1; grid-row: auto; min-height: 7rem; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: #fff; border-top: 1px solid var(--line); padding-top: 3.25rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.75rem; }
.footer-nav ul, .footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: .75rem; }
.footer-nav a { font: 700 1.25rem/1.4 var(--head); text-decoration: none; }
.footer-links h2 { font: 300 .875rem/1.4 var(--body); color: var(--muted); margin: 0 0 .7rem; }
.footer-links ul + h2 { margin-top: 2rem; }
.footer-links li { margin-bottom: .3rem; }
.footer-links a { font: 600 .875rem/1.4 var(--head); text-decoration: none; }
.footer-contact .logo { color: #fff; }
.footer-contact address { font-style: normal; margin-top: 1.1rem; }
.footer-contact address a { display: block; font: 600 1rem/1.4 var(--head); color: var(--muted); text-decoration: none; }
.footer-grid a { transition: color .4s; }
.footer-grid a:hover { color: var(--hover); }
.footer-bottom { border-top: 1px solid #5a5a5a; }
.footer-bottom .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px)); }
.footer-bottom p { margin: 0; font: 700 .875rem/1.4 var(--body); letter-spacing: .04em; }
.social { display: block; width: 2rem; height: 2rem; color: #fff; }
.social svg { width: 100%; height: 100%; }
@media (max-width: 44rem) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
}

/* ---------- picture grids ---------- */
/* Wix's "Kennedy" filter, which the old site put on the training, team and founder photos: grey, 10% more
   contrast, 10% darker. The files themselves keep their colour. */
.bw { filter: grayscale(1) contrast(1.1) brightness(.9); }
.pics { display: grid; gap: .5rem; }
.pics img { width: 100%; height: 100%; object-fit: cover; }
.pics-bim { grid-template-columns: 519fr 393fr; }
.pics-bim .wide { grid-column: 1 / -1; aspect-ratio: 920 / 317; }
.pics-bim .left { aspect-ratio: 519 / 425; }
.pics-bim .right { aspect-ratio: 393 / 425; }
@media (max-width: 40rem) { .pics-bim { grid-template-columns: 1fr; } .pics-bim .right { aspect-ratio: 393 / 300; } }

.band { background: var(--band); padding-block: clamp(2rem, 5vw, 2.5rem); }
.band img { width: 100%; }

/* ---------- digital transformation ---------- */
.dt-banner { width: 100%; aspect-ratio: 920 / 256; object-fit: cover; }
.pains { max-width: 40rem; margin: 2.5rem auto 0; }
.pains h2 { font: 700 1.25rem/1.4 var(--body); letter-spacing: .05em; margin-bottom: 1.1rem; }
.pains ul { list-style: none; margin: 0 0 0 2.5rem; padding: 0; }
.pains li { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .6rem; margin-bottom: .55rem; }
.pains li svg { width: .95rem; height: .95rem; flex: none; translate: 0 .1rem; color: var(--red); }
.pains b { font: 600 1.25rem/1.4 var(--head); color: var(--red); letter-spacing: .05em; }
.pains span { color: var(--grey-text); letter-spacing: .05em; }
.leave-it { display: flex; align-items: center; gap: 1.25rem; margin: 1.5rem 0 0 2.5rem; font: 700 1.625rem/1.3 var(--head); }
.leave-it svg { width: 3rem; flex: none; }
.dt-tools { width: min(100%, 37.5rem); margin: 3rem auto 0; }
.slogan { text-align: center; font: 700 clamp(1.25rem, .8rem + 1.6vw, 1.875rem)/1.3 var(--head); margin-top: 3rem; }
@media (max-width: 40rem) { .pains ul, .leave-it { margin-left: 0; } }

/* ---------- vision ---------- */
.vision-hero { width: 100%; height: clamp(13rem, 28vw, 25rem); object-fit: cover; object-position: 50% 35%; }
.quote {
  position: relative; max-width: 45rem; margin: clamp(2.5rem, 6vw, 4rem) auto 0; padding: 1.5rem clamp(3rem, 9vw, 5.5rem) 3.5rem;
  text-align: center; color: var(--red); font: 700 clamp(1.6rem, 1rem + 2.2vw, 2.5rem)/1.25 var(--head);
}
.quote::before, .quote::after {
  position: absolute; font: 900 clamp(5rem, 3rem + 7vw, 8rem)/1 var(--head); color: #808080;
}
.quote::before { content: "\201C"; left: 0; top: -.05em; }
.quote::after { content: "\201D"; right: 0; bottom: -.55em; }

/* ---------- people ---------- */
.pics-team { grid-template-columns: 370fr 230fr 300fr; }
.pics-team .t1 { grid-column: 1 / -1; aspect-ratio: 920 / 290; }
.pics-team .t2 { grid-column: 1 / 3; aspect-ratio: 610 / 390; }
.pics-team .t5 { grid-column: 3; grid-row: 2 / 4; }
.pics-team .t3 { aspect-ratio: 370 / 300; }
.pics-team .t4 { aspect-ratio: 230 / 300; }
@media (max-width: 40rem) {
  .pics-team { grid-template-columns: 1fr 1fr; }
  .pics-team .t2 { grid-column: 1 / -1; }
  .pics-team .t5 { grid-column: 2; grid-row: 3 / 5; }
  .pics-team .t3 { grid-column: 1; grid-row: 3; aspect-ratio: 1; }
  .pics-team .t4 { grid-column: 1; grid-row: 4; aspect-ratio: 1; }
}
.founder { display: grid; grid-template-columns: minmax(0, 18.75rem) 1fr; gap: 1.5rem 2rem; margin-top: 2.5rem; align-items: start; }
.founder img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.founder ul { margin: .25rem 0 0; padding-left: 1.1rem; font-size: .9rem; line-height: 1.5; }
.founder li { margin-bottom: .45rem; }
.also { margin-top: 1.5rem; font-size: 1.125rem; line-height: 3.25rem; }
.also img { display: inline-block; vertical-align: middle; width: 2.5rem; height: auto; margin: 0 .3rem; }
.also .bim-vn { width: 2.75rem; }
.also b { font: 400 1.125rem/1.4 var(--head); color: var(--red); }
.bio h3 { font: 700 1.25rem/1.4 var(--head); margin: 2.25rem 0 .9rem; }
@media (max-width: 40rem) { .founder { grid-template-columns: 1fr; } .founder img { max-width: 18.75rem; } }
.together { width: 100%; aspect-ratio: 920 / 500; object-fit: cover; margin-top: 3rem; }

/* ---------- work ---------- */
.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: .625rem; margin: 0; padding: 0; list-style: none; }
.tile { position: relative; aspect-ratio: 1; overflow: hidden; margin: 0; background: #ddd; cursor: default; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile figcaption { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; }
.tile h2 {
  order: 2; margin: 0; padding: .3rem .65rem .35rem;
  background: rgb(232 232 232 / .82); font: 600 .95rem/1.35 var(--head); letter-spacing: -.01em; text-transform: uppercase;
  transition: background-color .25s, color .25s;
}
.tile dl {
  order: 1; margin: 0; padding: .65rem .65rem 0; color: #fff; font-size: 1.125rem; line-height: 1.5;
  opacity: 0; transition: opacity .25s;
}
.tile dl div { display: flex; gap: .3em; flex-wrap: wrap; }
.tile dt, .tile dd { margin: 0; }
.tile::after { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / .7); opacity: 0; transition: opacity .25s; pointer-events: none; }
.tile figcaption { z-index: 1; }
.tile:hover::after, .tile:focus-within::after, .tile:focus::after { opacity: 1; }
.tile:hover dl, .tile:focus dl { opacity: 1; }
.tile:hover h2, .tile:focus h2 { background: transparent; color: #fff; }
@media (max-width: 52rem) { .work { grid-template-columns: repeat(2, 1fr); } .tile dl { font-size: 1rem; } }
@media (max-width: 30rem) { .work { grid-template-columns: 1fr; } .tile dl { font-size: 1.125rem; } }
@media (hover: none) { .work-hint { display: block; } }
.work-hint { display: none; color: var(--grey-text); font-size: 1rem; margin: -1.5rem 0 1.5rem; }

/* ---------- contact ---------- */
.contact-card {
  max-width: 57.5rem; padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2rem) clamp(2rem, 5vw, 3rem);
  background: #fff; border-radius: 4px; box-shadow: 0 2px 14px rgb(0 0 0 / .12);
}
.contact-card h2 { font: 700 1.25rem/1.4 var(--head); margin-bottom: 1.75rem; }
.card-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem; }
.card-fields label { display: block; font-size: .875rem; }
.card-fields .wide { grid-column: 1 / -1; }
.card-fields input, .card-fields textarea {
  display: block; width: 100%; margin-top: .4rem; padding: .45rem .6rem;
  border: 1px solid transparent; border-radius: 4px; background: #eee; font-size: 1rem;
}
.card-fields input:focus, .card-fields textarea:focus { border-color: var(--ink); outline: none; }
.card-fields textarea { min-height: 8.5rem; }
.contact-card .btn { min-width: 8.75rem; }
@media (max-width: 40rem) { .card-fields { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.not-found { min-height: 50vh; }
.not-found p { margin-top: 1.5rem; }
