/* design4uk home — bold cobalt + lime. Palette is tunable here. */
:root {
  /* --blue:#2B44FF;--ink:#0B0F2A;--paper:#F3EFE6;--lime:#D4FF3A; */
  --blue: #5e0f1d;
  --lime: #ffb58a;
  --ink: #1a0508;
  --paper: #f4ebdd;
  --f: "Bricolage Grotesque", system-ui, sans-serif;
  --s: "Instrument Serif", Georgia, serif;
  --g: clamp(1.2rem, 4vw, 4rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  background: var(--ink);
}
body {
  font: 400 clamp(1rem, 1.1vw, 1.15rem)/1.5 var(--f);
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
em {
  font-family: var(--s);
  font-style: italic;
  font-weight: 400;
}
:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}
.skip {
  position: fixed;
  left: -999px;
  top: 8px;
  z-index: 999;
  background: var(--lime);
  padding: 0.6rem 1rem;
}
.skip:focus {
  left: 8px;
}
.sec {
  padding: clamp(5rem, 14vh, 10rem) var(--g);
}
.eyebrow {
  font: 600 0.9rem var(--f);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}
/* preloader UK: four nations, 1 · 2 · 3 · 4 (the 4 flies into the hero) */
.pre {
  --P: min(44svh, 46vw); /* numeral size */
  --A: min(34vw, 50svh); /* illustration size */
  --nx: 30vw;
  --ny: 50svh;
  --ax: 70vw;
  --ay: 50svh;
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--ink);
  color: var(--paper);
  display: none;
  overflow: hidden;
}
.js .pre {
  display: block;
}
.pre-nums {
  position: absolute;
  left: var(--nx);
  top: var(--ny);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  font: 800 var(--P) / 0.8 var(--f);
}
.pre-nums span {
  grid-area: 1/1;
  opacity: 0;
  will-change: transform, opacity;
}
.pre-place {
  position: absolute;
  left: var(--ax);
  top: var(--ay);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.pre-art {
  width: var(--A);
  aspect-ratio: 1;
  display: grid;
  color: var(--lime);
}
.pre-art svg {
  grid-area: 1/1;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}
.pre-art .k {
  stroke: var(--paper);
  stroke-width: 2.4;
}
.pre-art .dash {
  stroke-dasharray: 2 9;
}
.pre-labels {
  display: grid;
  text-align: center;
}
.pre-labels p {
  grid-area: 1/1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  opacity: 0;
}
.pre-labels b {
  font: 800 clamp(1.5rem, 2.6vw, 2.4rem) / 1 var(--f);
  letter-spacing: -0.045em;
}
.pre-labels small {
  font: 600 0.78rem var(--f);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}
.pre-hud {
  position: absolute;
  left: var(--g);
  right: var(--g);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 600 0.78rem var(--f);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pre-top {
  top: 1.3rem;
}
.pre-bot {
  bottom: 1.4rem;
}
.pre-brand {
  font: 800 1.25rem var(--f);
  letter-spacing: -0.05em;
  text-transform: none;
}
.pre-brand i {
  font: italic 400 1.1em var(--s);
  color: var(--lime);
}
.pre-pct {
  font-variant-numeric: tabular-nums;
}
.pre-pct b {
  font-weight: 800;
  color: var(--lime);
}
.pre-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.pre-skip {
  position: fixed;
  right: var(--g);
  bottom: 1rem;
  z-index: 910;
  display: none;
  background: none;
  color: var(--paper);
  border: 1px solid rgba(244, 235, 221, 0.35);
  border-radius: 99px;
  padding: 0.4rem 1rem;
  font: 600 0.78rem var(--f);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    background 0.3s,
    color 0.3s;
}
.js .pre-skip {
  display: block;
}
.pre-skip:hover {
  background: var(--lime);
  color: var(--ink);
}
/* the numeral that flies: same font/size as .hero-4, scaled down while it sits in the preloader */
.fly4 {
  --fc: rgba(244, 235, 221, 1);
  --sc: rgba(243, 239, 230, 0);
  position: fixed;
  left: 0;
  top: 0;
  z-index: 905;
  display: none;
  font: 800 52vw / 0.8 var(--f);
  color: var(--fc);
  -webkit-text-stroke: 2px var(--sc);
  white-space: nowrap;
  pointer-events: none;
  will-change: transform;
  transform-origin: 50% 50%;
  opacity: 0;
}
.js .fly4 {
  display: block;
}
/* safety net: if the script never runs, the overlay still goes away */
@keyframes preGone {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
.js .pre,
.js .fly4,
.js .pre-skip {
  animation: preGone 0.4s 14s forwards;
}
@media (max-aspect-ratio: 1/1) {
  .pre {
    --P: min(30svh, 52vw);
    --A: min(62vw, 28svh);
    --nx: 50vw;
    --ny: 34svh;
    --ax: 50vw;
    --ay: 72svh;
  }
}
/* header */
.bar {
  position: fixed;
  inset: 0 0 auto;
  display: flex;
  justify-content: space-between;
  padding: 1.1rem var(--g);
  z-index: 700;
  pointer-events: none;
}
.bar > * {
  pointer-events: auto;
}
.logo {
  background: var(--paper);
  color: var(--ink);
  padding: 0.65rem 1.3rem;
  border-radius: 99px;
  font: 800 1.25rem var(--f);
  letter-spacing: -0.05em;
  transition: transform 0.6s var(--ease);
}
.logo i,
.foot-mark i {
  font: italic 400 1.1em var(--s);
  color: var(--blue);
}
.bar.hide .logo {
  transform: translateY(-220%);
}
.menu-btn {
  background: var(--lime);
  color: var(--ink);
  border: 0;
  border-radius: 99px;
  padding: 0.7rem 1.6rem;
  font-weight: 700;
}
/* menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem var(--g) 3rem;
  clip-path: circle(0 at 100% 0);
  visibility: hidden;
}
.menu ul {
  list-style: none;
}
.menu a {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  font: 800 clamp(2.6rem, 6.4vw, 5.5rem)/1.02 var(--f);
  letter-spacing: -0.05em;
  transition:
    opacity 0.3s,
    transform 0.6s var(--ease),
    color 0.3s;
}
.menu a small {
  font: 600 1rem var(--f);
  color: var(--lime);
  letter-spacing: 0;
}
.menu ul:hover a {
  opacity: 0.22;
}
.menu ul a:hover,
.menu ul a:focus-visible {
  opacity: 1;
  color: var(--lime);
  transform: translateX(2.2vw);
}
.menu-foot {
  margin-top: 2rem;
  opacity: 0.7;
}
/* hero */
.hero {
  min-height: 100svh;
  background: var(--blue);
  color: var(--paper);
  padding: 9rem var(--g) 4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}
.hero .eyebrow {
  position: relative;
  z-index: 2; /* was covered by the hero 4's box on narrow screens */
}
.hero h1 {
  font: 800 clamp(3.2rem, 10.4vw, 12rem)/0.9 var(--f);
  letter-spacing: -0.05em;
  position: relative;
  z-index: 2;
}
.hero h1 em {
  color: var(--lime);
  font-size: 1.06em;
}
.w {
  display: inline-block;
  white-space: nowrap;
}
.c {
  display: inline-block;
  color: var(--paper);
  color: color-mix(in srgb, var(--lime) calc(var(--t, 0) * 100%), var(--paper));
  transition: color 0.3s;
}
.hero em .c {
  color: var(--lime);
  color: color-mix(in srgb, #fff calc(var(--t, 0) * 100%), var(--lime));
}
.hero-4 {
  position: absolute;
  right: -3vw;
  top: 2vh;
  font: 800 52vw/0.8 var(--f);
  color: transparent;
  --hs: 0.25; /* outline alpha: matches the flying 4 at hand-off, then fades to 0 once the video shows (see showVideo) */
  -webkit-text-stroke: 2px rgba(243, 239, 230, var(--hs));
  pointer-events: none;
  z-index: 1;
}
.h4-line {
  display: block;
  position: relative;
  z-index: 2;
}
/* video lives ONLY inside the 4: video -> multiply by a white "4" on black -> add a burgundy field with a black "4" */
.h4-vid {
  position: absolute;
  inset: -0.1em;
  z-index: 1;
  isolation: isolate;
  /* clip-path, not overflow:hidden: the anti-aliased overflow clip let the video/blend layers bleed through at the box edge as a thin line (visible on fractional-pixel viewports) */
  clip-path: inset(0);
  opacity: 0;
  -webkit-text-stroke: 0;
  background: linear-gradient(135deg, var(--lime), #e8785f, var(--blue), var(--lime));
  background-size: 300% 300%;
  animation: h4flow 9s ease-in-out infinite alternate; /* shows only if the video file is missing */
}
/* the layers overshoot the clipped box by --b on every side, so their own anti-aliased edges fall outside the clip (nothing can fringe at the box edge) */
.h4-vid {
  --b: 4px;
}
.h4-vid video {
  position: absolute;
  inset: calc(var(--b) * -1);
  width: calc(100% + var(--b) * 2);
  height: calc(100% + var(--b) * 2);
  object-fit: cover;
}
.h4-vid i {
  position: absolute;
  inset: calc(var(--b) * -1);
  padding: calc(0.1em + var(--b));
  display: block;
  font-style: normal;
  white-space: nowrap;
}
.h4-vid .m {
  background: #000;
  color: #fff;
  mix-blend-mode: multiply;
}
.h4-vid .n {
  background: var(--blue);
  color: #000;
  mix-blend-mode: lighten;
  mix-blend-mode: plus-lighter;
}
@keyframes h4flow {
  to {
    background-position: 100% 100%;
  }
}
.hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  margin-top: 1.5rem;
}
.hero-sub {
  max-width: 34ch;
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
}
.btn {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  background: var(--lime);
  color: var(--ink);
  padding: 1.1rem 2.1rem;
  border-radius: 99px;
  font-weight: 700;
  font-size: 1.05rem;
  transition:
    background 0.3s,
    color 0.3s;
}
.btn:hover {
  background: var(--paper);
}
.badge {
  width: 150px;
  color: var(--lime);
  animation: spin 16s linear infinite;
  margin-left: auto;
}
.badge text {
  font: 700 12.4px var(--f);
  letter-spacing: 0.14em;
  fill: currentColor;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* marquee */
.band {
  background: var(--lime);
  color: var(--ink);
  overflow: hidden;
  white-space: nowrap;
  padding: 1.4rem 0;
  transform: rotate(-1.6deg) scale(1.04);
  margin: -2.2rem 0 -1.4rem;
  position: relative;
  z-index: 3;
}
.band div {
  display: inline-flex;
}
.band span {
  font: 800 clamp(2.4rem, 6vw, 5.5rem)/1 var(--f);
  letter-spacing: -0.045em;
  padding-right: 2.2rem;
}
/* statement */
.state p {
  font: 600 clamp(2rem, 5.4vw, 5.6rem)/1.04 var(--f);
  letter-spacing: -0.04em;
  max-width: 24em;
  margin-top: 4vh;
}
.state em {
  color: var(--blue);
}
.sw {
  opacity: 0.14;
}
/* services showcase: base = static stacked list (no JS / reduced motion); .svc--live = pinned 3-stage version */
.svc {
  --s4: min(74vh, 46vw);
  background: var(--ink);
  color: var(--paper);
  padding: clamp(5rem, 14vh, 10rem) var(--g);
  position: relative;
}
.svc-h,
.cta h2 {
  font: 800 clamp(3rem, 9vw, 9rem)/0.92 var(--f);
  letter-spacing: -0.05em;
}
.svc-h em {
  color: var(--lime);
}
.svc-stage {
  margin-top: 3rem;
}
.svc ol {
  list-style: none;
}
.svc-row {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: clamp(0.8rem, 2vw, 2rem);
  padding: clamp(0.5rem, 1.6vh, 1.1rem) 0;
  font: 800 clamp(2rem, min(5.6vw, 10.5vh), 6.2rem)/1 var(--f);
  letter-spacing: -0.05em;
}
.svc-idx {
  font: 600 0.8rem var(--f);
  letter-spacing: 0.14em;
  color: var(--lime);
  min-width: 2.2em;
}
.svc-mask {
  display: block;
  overflow: hidden;
  padding: 0.06em 0 0.17em;
  margin: -0.06em 0 -0.17em;
}
.svc-nm {
  display: block;
  white-space: nowrap;
}
.svc-rule {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: rgba(243, 239, 230, 0.22);
  transform-origin: 0 50%;
}
.svc-4,
.svc-prog {
  display: none;
}
.svc--live {
  height: 100svh;
  padding: 0;
  overflow: hidden;
}
.svc--live .svc-h {
  position: absolute;
  left: var(--g);
  top: clamp(5.2rem, 12vh, 7rem);
  z-index: 3;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1;
}
.svc--live .svc-stage {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0 var(--g);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
  z-index: 2;
}
.svc--live .svc-stage[data-side="right"] {
  justify-content: flex-end;
}
.svc--live .svc-stage ol {
  width: 52%;
}
.svc--live .svc-4 {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  font: 800 var(--s4)/0.8 var(--f);
  color: var(--lime);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.svc--live .svc-prog {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: absolute;
  left: var(--g);
  right: var(--g);
  bottom: 1.5rem;
  z-index: 3;
  font: 600 0.78rem var(--f);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.svc-cnt b {
  color: var(--lime);
  font-weight: 800;
}
.svc-bar {
  flex: 1;
  height: 1px;
  background: rgba(243, 239, 230, 0.22);
  position: relative;
  overflow: hidden;
}
.svc-bar i {
  position: absolute;
  inset: 0;
  background: var(--lime);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
@media (max-width: 700px) {
  /* narrow screens: labels sit in the upper part, the 4 travels left <-> right in the lower part (no overlap) */
  .svc {
    --s4: min(56vw, 34vh);
  }
  .svc--live .svc-stage {
    align-items: flex-start;
    padding-top: 24svh;
  }
  .svc--live .svc-stage ol {
    width: 82%;
  }
  .svc--live .svc-4 {
    top: 73%;
  }
  .svc-row {
    font-size: clamp(1.5rem, min(8.6vw, 8vh), 3rem);
  }
  .svc-idx {
    font-size: 0.66rem;
  }
}
/* work */
.work {
  background: var(--paper);
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 2rem 0;
  border-top: 2px solid var(--ink);
  font: 800 clamp(2.4rem, 8.4vw, 8.5rem)/1 var(--f);
  letter-spacing: -0.05em;
  transition:
    padding 0.6s var(--ease),
    background 0.3s,
    color 0.3s;
}
.row:last-child {
  border-bottom: 2px solid var(--ink);
}
.row small {
  font: 600 1rem var(--f);
  letter-spacing: 0;
  opacity: 0.7;
}
.row:hover,
.row:focus-visible {
  background: var(--blue);
  color: var(--paper);
  padding-inline: 2rem;
}
.work .eyebrow {
  margin-bottom: 2.5rem;
}
.peek {
  position: fixed;
  left: 0;
  top: 0;
  width: clamp(200px, 24vw, 380px);
  aspect-ratio: 4/5;
  border-radius: 16px;
  overflow: hidden;
  pointer-events: none;
  z-index: 500;
  opacity: 0;
}
.peek div {
  position: absolute;
  inset: 0;
  display: none;
  align-items: flex-end;
  padding: 1.3rem;
  font: 800 clamp(2rem, 3.4vw, 3.2rem)/1 var(--f);
  letter-spacing: -0.05em;
}
.peek .on {
  display: flex;
}
.p-a {
  background: var(--blue);
  color: var(--paper);
}
.p-b {
  background: var(--lime);
  color: var(--ink);
}
.p-c {
  background: var(--ink);
  color: var(--lime);
}
.p-d {
  background: var(--paper);
  color: var(--blue);
  box-shadow: inset 0 0 0 3px var(--blue);
}
/* cta + footer */
.cta {
  background: var(--lime);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2.5rem;
}
.cta em {
  color: var(--blue);
}
.btn.big {
  background: var(--ink);
  color: var(--lime);
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  padding: 1.6rem 3.2rem;
}
.btn.big:hover {
  background: var(--blue);
  color: var(--paper);
}
.cta-mail {
  font-weight: 600;
}
.foot {
  background: var(--ink);
  color: var(--paper);
  padding: 5rem var(--g) 2rem;
  overflow: hidden;
}
.foot-mark {
  font: 800 clamp(4rem, 19vw, 22rem)/0.85 var(--f);
  letter-spacing: -0.07em;
  white-space: nowrap;
}
.foot-mark i {
  color: var(--lime);
}
.foot p {
  margin-top: 2rem;
  opacity: 0.6;
}
/* cursor */
.cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 999;
  display: none;
  transition:
    width 0.35s var(--ease),
    height 0.35s var(--ease),
    margin 0.35s var(--ease);
}
.fc .cursor {
  display: block;
}
.fc,
.fc * {
  cursor: none !important;
}
.cursor.big {
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
}
.cursor4,
.c4fly {
  position: fixed;
  left: 0;
  top: 0;
  font: 800 34px/0.8 var(--f);
  color: #fff;
  mix-blend-mode: difference;
  white-space: nowrap;
  pointer-events: none;
  display: none;
  opacity: 0;
  user-select: none;
}
.cursor4 {
  z-index: 999;
}
.c4fly {
  z-index: 998;
}
.fc .cursor4,
.fc .c4fly {
  display: block;
}
@media (max-width: 700px) {
  .badge {
    width: 110px;
  }
  .hero-4 {
    font-size: 90vw;
  }
  .band {
    margin-top: -1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  .pre,
  .fly4,
  .pre-skip,
  .cursor4,
  .c4fly {
    display: none !important;
  }
}
@media (max-width: 700px) {
  .bar {
    padding: 0.8rem 1.1rem;
  }
  .logo {
    padding: 0.58rem 1rem;
    font-size: 1.1rem;
  }
  .menu {
    justify-content: flex-start;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: max(5.5rem, 12svh) 1.25rem 1.5rem;
  }
  .menu ul {
    width: 100%;
    margin: auto 0;
  }
  .menu a {
    gap: 0.8rem;
    font-size: clamp(2.5rem, 12vw, 4rem);
    line-height: 1;
  }
  .menu a small {
    font-size: 0.7rem;
  }
  .menu-foot {
    margin-top: 1rem;
    font-size: 0.8rem;
  }
}
@media (max-height: 620px) {
  .menu {
    justify-content: flex-start;
    overflow-y: auto;
  }
}
