/* ========================================================================
   ALGRTHM — skeleton stylesheet
   Brand: anti agency / pro business. Bloomberg terminal x creative director.
   ======================================================================== */

:root {
  --bg: #F4F2EE;
  --fg: #0A0A0A;
  --blue: #1E40AF;     /* cobalt — manifesto bg + secondary accent */
  --orange: #EA580C;   /* burnt orange — feed bg + primary accent */
  --rule: rgba(10, 10, 10, 0.12);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: 'Fraunces', 'Times New Roman', serif;
  --nav-h: 56px;
  --marquee-h: 36px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); color: var(--fg); overflow-x: clip; } /* hard stop on horizontal overflow (sticky-safe, unlike overflow:hidden) */
body {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  cursor: none;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

/* ---- shared atoms ---- */
.mono-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}

h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(40px, 7vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
}

em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ---- canvas (persistent Three.js scene) ---- */
#scene {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* ---- custom cube cursor ---- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 20px; height: 20px;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width 120ms ease, height 120ms ease;
}
.cursor__cube {
  width: 100%; height: 100%;
  border: 1px solid #fff;
  transform: rotate(0deg);
}
.cursor.is-hover { width: 44px; height: 44px; }
@media (hover: none) { .cursor { display: none; } body { cursor: auto; } }

/* ---- loader ---- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 24px;
  font-family: var(--mono);
  pointer-events: none;
}
.loader.is-done { opacity: 0; transition: opacity 400ms ease 100ms; pointer-events: none; }
.loader__counter {
  font-size: clamp(80px, 18vw, 240px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-weight: 300;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.loader__pct { font-size: 0.4em; opacity: 0.6; }
.loader__label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
/* loader logo mark — draws itself on, matching the ALGRTHM animated logo */
.loader__mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.loader__mark svg { width: min(40vw, 240px); height: auto; overflow: visible; }
.loader__draw {
  fill: none;
  stroke: var(--fg);
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: loader-draw 1.5s cubic-bezier(0.45, 0, 0.2, 1) forwards;
}
polygon.loader__draw, .loader__draw--thick { stroke-width: 3.5; }
.loader__draw--thin { stroke-width: 1.2; animation-delay: 0.45s; }
@keyframes loader-draw { to { stroke-dashoffset: 0; } }
.reduced-motion .loader__draw { animation: none; stroke-dashoffset: 0; }

/* ---- nav ---- */
.nav {
  position: fixed;
  top: var(--marquee-h);
  left: 0; right: 0;
  height: var(--nav-h);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  mix-blend-mode: difference;
  color: #fff;
}
.nav__brand {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.nav__list {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav__list a:hover, .nav__list button:hover { color: var(--orange); }
.nav__toggle {
  display: none; /* desktop: inline links; mobile: this becomes the menu button */
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---- mobile nav: hamburger → full-height menu (inline links don't fit a phone) ---- */
@media (max-width: 760px) {
  .nav {
    mix-blend-mode: normal;
    color: var(--fg);
    background: var(--bg); /* solid — no backdrop-filter, or it'd trap the fixed menu panel in the nav's box */
    border-bottom: 1px solid var(--rule);
  }
  .nav__brand { color: var(--fg); }
  .nav__toggle { display: inline-block; color: var(--fg); }
  .nav__list {
    position: fixed;
    top: calc(var(--marquee-h) + var(--nav-h));
    left: 0; right: 0; bottom: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 8px 24px 24px;
    background: var(--fg);
    color: var(--bg);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 240ms ease, transform 240ms ease;
    z-index: 45;
  }
  .nav.is-open .nav__list { opacity: 1; transform: none; pointer-events: auto; }
  .nav__list li { border-bottom: 1px solid rgba(244, 242, 238, 0.14); }
  .nav__list li a, .nav__list li button {
    display: block;
    width: 100%;
    padding: 20px 2px;
    font-size: 20px;
    letter-spacing: 0.04em;
    text-align: left;
  }
}

/* ---- marquees ---- */
.marquee {
  position: fixed;
  left: 0; right: 0;
  height: var(--marquee-h);
  overflow: hidden;
  display: flex;
  align-items: center;
  z-index: 40;
  background: var(--bg);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.marquee--top { top: 0; }
.marquee--mid {
  position: relative; /* in-flow strip between hero and manifesto */
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.marquee__track {
  display: inline-flex;
  gap: 24px;
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-left: 24px;
  will-change: transform;
  animation: marquee-left 24s linear infinite;
}
.marquee[data-direction="right"] .marquee__track { animation-name: marquee-right; }
.marquee__track i { font-style: normal; opacity: 0.5; }
.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* ---- hero ---- */
main { position: relative; z-index: 10; }

.hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--marquee-h) + var(--nav-h));
  touch-action: pan-y; /* vertical swipes scroll the page; horizontal swipes spin the cube */
}
.hero__words {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.floater {
  position: absolute;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  opacity: 0.7;
  white-space: nowrap;
  transition: transform 220ms cubic-bezier(.2,.7,.2,1), opacity 220ms ease;
  will-change: transform;
}
.hero__meta {
  position: absolute;
  inset: calc(var(--marquee-h) + var(--nav-h) + 8px) 24px 24px 24px;
  pointer-events: none;
}
.hero__corner { position: absolute; display: flex; flex-direction: column; gap: 4px; }
.hero__corner--tl { top: 0; left: 0; }
.hero__corner--tr { top: 0; right: 0; text-align: right; }
.hero__corner--bl { bottom: 0; left: 0; }
.hero__corner--br { bottom: 0; right: 0; text-align: right; }
/* on a phone the bottom corners collide; the tagline is already in the marquee, so drop it here */
@media (max-width: 760px) {
  .hero__words { display: none; } /* mobile: just the (bigger) cube — no floating words */
  .hero__corner--br { display: none; }
  .hero__corner--bl { right: 0; } /* let the clock/weather use the full width if needed */
}

/* ---- manifesto ---- */
.manifesto {
  background: var(--blue);
  color: var(--bg);
  padding: 18vh 8vw;
  position: relative;
  z-index: 10;
}
.manifesto__tag { color: var(--bg); opacity: 1; margin-bottom: 6vh; }
.manifesto__line {
  font-family: var(--mono);
  font-size: clamp(28px, 4.5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0.4em 0;
  opacity: 0;
  transform: translateX(40px);
  will-change: transform, opacity;
}
.manifesto__line em { font-family: var(--display); font-style: italic; }
.manifesto__line[data-strike] { display: flex; flex-direction: column; gap: 8px; }
.manifesto__line--hero {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(40px, 6.5vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 1em 0 0.5em 0;
  color: var(--orange);
}
.manifesto__line--hero em {
  font-family: var(--display);
  font-style: normal;
  color: var(--bg);
  background: var(--orange);
  padding: 0 0.08em 0.04em 0.08em;
  margin: 0 0.04em;
}
.strike-out {
  opacity: 0.55;
  text-decoration: line-through;
  text-decoration-thickness: 3px;
  text-decoration-color: transparent;
  -webkit-text-decoration-color: transparent;
  /* line-through follows the text across wraps, so it renders correctly on mobile */
  transition: text-decoration-color 500ms ease, -webkit-text-decoration-color 500ms ease;
}
.manifesto__line.is-struck .strike-out {
  text-decoration-color: var(--orange);
  -webkit-text-decoration-color: var(--orange);
}
.strike-in {
  color: var(--orange);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 400ms ease 500ms, transform 400ms ease 500ms;
}
.manifesto__line.is-struck .strike-in { opacity: 1; transform: translateY(0); }

/* ---- services (pinned cube unfold) ---- */
.services { position: relative; }
.services__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  z-index: 12;
}
.services__panel {
  width: min(560px, 50vw);
  padding: 24px 24px 64px 24px;
}
.services__face {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 4px 8px;
  border: 1px solid var(--fg);
}
.services__label h2 {
  font-family: var(--display);
  font-size: clamp(56px, 8vw, 140px);
  line-height: 0.92;
  margin: 8px 0 24px 0;
}
.services__label p {
  font-family: var(--mono);
  font-size: 15px;
  max-width: 38ch;
  margin: 0 0 24px 0;
  line-height: 1.5;
}
.services__stack { font-size: 12px; letter-spacing: 0.06em; margin-bottom: 24px; opacity: 0.7; }
.services__metric { display: flex; flex-direction: column; gap: 4px; }
.services__metric span:last-child { font-family: var(--display); font-size: 22px; }
.services__progress {
  position: absolute;
  top: calc(var(--marquee-h) + var(--nav-h) + 24px);
  right: 24px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.services__progress-bar {
  width: 200px; height: 2px; background: var(--rule);
}
.services__progress-bar div {
  height: 100%; width: 0%; background: var(--fg);
  transition: width 80ms linear;
}
.services__scroll-track { height: 500vh; } /* long pin */

@media (max-width: 760px) {
  .services__pin { align-items: flex-end; }
  .services__panel {
    width: 100%;
    padding: 20px 16px 28px 16px;
    background: rgba(244, 242, 238, 0.94);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-top: 1px solid var(--rule);
  }
  .services__label h2 { font-size: 44px; margin: 6px 0 14px; }
  .services__label p { font-size: 14px; max-width: none; margin-bottom: 14px; }
  .services__metric span:last-child { font-size: 18px; }
  .services__stack { font-size: 11px; margin-bottom: 14px; }
  .services__face { font-size: 11px; padding: 3px 6px; margin-bottom: 10px; }
  .services__progress {
    top: calc(var(--marquee-h) + var(--nav-h) + 8px);
    right: 16px;
  }
  .services__progress-bar { width: 110px; }
}

/* ---- work (horizontal scroll) ---- */
.work { position: relative; }
.work__head { padding: 18vh 24px 24px 24px; display: flex; flex-direction: column; gap: 24px; }
.work__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.work__row {
  display: flex;
  gap: 24px;
  padding: 0 24px;
  will-change: transform;
}
.tile {
  flex: 0 0 70vw;
  max-width: 720px;
  aspect-ratio: 4/3;
  background: var(--bg, var(--bg));
  color: var(--fg, var(--fg));
  border: 1px solid var(--bd, transparent);
  padding: 24px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 16px;
  transition: transform 240ms ease;
}
.tile:hover { transform: translateY(-6px); }
.tile__meta {
  display: flex; justify-content: space-between;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0.8;
}
.tile__brand {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 16px;
  align-self: end;
}
.tile__metric {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.tile__caption {
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

/* ---- results ---- */
.results {
  background: #000;
  color: var(--bg);
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 80px 24px;
}
.results__inner { width: 100%; }
.results .mono-eyebrow { color: var(--bg); opacity: 0.6; margin-bottom: 48px; }
.results__list { display: flex; flex-direction: column; gap: 16px; }
.results__list li {
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px solid rgba(244, 242, 238, 0.15);
  padding-bottom: 8px;
}
.results__pre { font-size: clamp(24px, 3vw, 44px); opacity: 0.6; }
.results__num {
  font-family: var(--mono);
  font-weight: 300;
  font-size: clamp(72px, 13vw, 220px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.results__unit { font-size: clamp(36px, 5vw, 80px); opacity: 0.8; }
.results__label {
  grid-column: 4;      /* always sit in the last column so all three labels right-align (the $ row was the only one doing this) */
  justify-self: end;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.6;
}

/* ---- feed the algorithm ---- */
.feed {
  background: var(--orange);
  color: var(--fg);
  padding: 14vh 24px;
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.feed__head { display: flex; flex-direction: column; gap: 24px; }
.feed__title {
  font-family: var(--mono); /* mono on purpose — keeps the joke deadpan */
  font-weight: 500;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}
.feed__title em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
}
.feed__sub {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  opacity: 0.75;
  margin: 0;
  min-height: 1.6em;
}
.feed__cabinet {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.feed__screen {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  max-width: 560px;
  background: #0A0A0A;
  border: 14px solid #1a1a1a;
  border-radius: 18px;
  box-shadow:
    inset 0 0 60px rgba(0,0,0,0.6),
    0 18px 40px rgba(0,0,0,0.25);
  overflow: hidden;
}
#feed-canvas {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
}
.feed__hud {
  position: absolute;
  inset: 12px 12px auto 12px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #F4F2EE;
  text-shadow: 0 0 4px rgba(244, 242, 238, 0.85);
  pointer-events: none;
}
.feed__hud-row { display: flex; gap: 8px; }
.feed__hud-row span:last-child { font-variant-numeric: tabular-nums; min-width: 24px; text-align: right; }
.feed__scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,0.18) 3px,
    rgba(0,0,0,0) 4px
  );
  mix-blend-mode: multiply;
}
.feed__crt {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.5) 100%);
}
.feed__rail { display: flex; flex-direction: column; gap: 16px; }
.feed__inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.feed__input {
  font-family: var(--mono);
  padding: 14px 16px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--fg);
  cursor: grab;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none; /* the chip owns the touch gesture, so dragging it doesn't scroll the page */
  white-space: nowrap;
  position: relative;
  min-width: 140px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.feed__input::before {
  content: "DRAG ↗";
  position: absolute;
  top: 4px; right: 8px;
  font-size: 9px;
  letter-spacing: 0.18em;
  opacity: 0.4;
}
.feed__input:hover { transform: translateY(-2px); box-shadow: 4px 4px 0 var(--fg); }
.feed__input-sym {
  grid-row: 1 / span 2;
  font-family: var(--display);
  font-size: 32px;
  line-height: 1;
}
.feed__input-name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.feed__input-hint {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
}
.feed__input--money .feed__input-sym    { color: var(--blue); }
.feed__input--creative .feed__input-sym { color: var(--orange); }
.feed__input--data .feed__input-sym     { color: var(--fg); }

.feed__input.is-dragging {
  position: fixed;
  z-index: 9000;
  margin: 0;
  cursor: grabbing;
  transition: none;
  pointer-events: none;
  will-change: transform;
  box-shadow: 8px 8px 0 var(--fg);
}
.feed__input.is-eaten {
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 200ms ease, transform 200ms ease;
}
.feed__input.is-locked {
  pointer-events: none;
  opacity: 0.35;
  cursor: not-allowed;
}

/* floating "+points" indicators rising out of the cabinet on eat */
.feed__floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}
.feed__float {
  position: absolute;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--bg);
  text-shadow: 2px 2px 0 var(--fg);
  animation: feed-float 900ms ease-out forwards;
  will-change: transform, opacity;
}
.feed__float--big { font-size: 36px; color: var(--orange); text-shadow: 2px 2px 0 var(--fg), -2px -2px 0 var(--fg); }
@keyframes feed-float {
  0%   { transform: translate(-50%, -10%) scale(0.6); opacity: 0; }
  20%  { transform: translate(-50%, -40%) scale(1.1); opacity: 1; }
  100% { transform: translate(-50%, -180%) scale(1);   opacity: 0; }
}

.feed__reset {
  position: absolute;
  inset: auto auto 16px 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 22px;
  background: var(--bg);
  color: var(--fg);
  border: 2px solid var(--fg);
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--fg);
  z-index: 50;
}
.feed__reset:hover { transform: translate(calc(-50% - 2px), -2px); box-shadow: 6px 6px 0 var(--fg); }

.feed__screen.is-won { animation: feed-win-flash 2.4s ease-out; }
@keyframes feed-win-flash {
  0%, 100% { box-shadow: inset 0 0 60px rgba(0,0,0,0.6), 0 18px 40px rgba(0,0,0,0.25); }
  20%      { box-shadow: inset 0 0 0 6px var(--orange), inset 0 0 60px rgba(0,0,0,0.6), 0 18px 40px rgba(0,0,0,0.25); }
  40%      { box-shadow: inset 0 0 0 6px var(--blue),   inset 0 0 60px rgba(0,0,0,0.6), 0 18px 40px rgba(0,0,0,0.25); }
  60%      { box-shadow: inset 0 0 0 6px var(--orange), inset 0 0 60px rgba(0,0,0,0.6), 0 18px 40px rgba(0,0,0,0.25); }
}
.feed__screen.is-targeted { box-shadow: inset 0 0 0 4px var(--orange), inset 0 0 60px rgba(0,0,0,0.6); }
.feed__instruction {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  opacity: 0.8;
  margin: 0;
}
.feed__instruction span { display: block; opacity: 0.55; font-style: italic; }

@media (max-width: 900px) {
  .feed { grid-template-columns: 1fr; }
}

/* ---- clients ---- */
.clients {
  background: var(--bg);
  padding: 18vh 24px;
  position: relative;
  z-index: 10;
}
.clients__tag { margin-bottom: 6vh; }
.clients__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  position: relative;
}
.logo {
  background: var(--bg);
  aspect-ratio: 3/2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  text-align: center;
  font-family: var(--mono);
  font-size: clamp(10px, 1.05vw, 13px);
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
  will-change: transform;
  transition: transform 240ms cubic-bezier(.2,.7,.2,1);
}
.logo--filler { pointer-events: none; } /* empty cell that completes the last grid row */
.logo--lower { text-transform: none; }   /* brands styled lowercase (e.g. smart) */
@media (max-width: 900px) { .clients__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---- contact ---- */
.contact {
  background: var(--bg);
  padding: 18vh 24px;
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact__inner { display: contents; }
.contact .mono-eyebrow { grid-column: 1 / -1; }
.contact__cta {
  font-family: var(--display);
  font-size: clamp(56px, 10vw, 180px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-weight: 300;
}
.contact__mail {
  align-self: end;
  font-family: var(--mono);
  font-size: 18px;
  border-bottom: 1px solid var(--fg);
  padding-bottom: 4px;
  width: max-content;
}
.contact__mail:hover { color: var(--orange); border-color: var(--orange); }
.contact__faces {
  grid-column: 2;
  grid-row: 2 / span 2;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  align-self: end;
}
.contact__faces li {
  background: var(--bg);
  padding: 24px;
  min-height: 120px;
  display: flex; flex-direction: column; justify-content: center;
  transition: background 200ms ease, color 200ms ease;
}
.contact__faces li:hover { background: var(--fg); color: var(--bg); }
.contact__faces a { font-family: var(--display); font-size: 20px; }
@media (max-width: 800px) {
  .contact { grid-template-columns: 1fr; }
  .contact__cta { font-size: clamp(40px, 12vw, 64px); }
  .contact__cta br { display: none; } /* wrap the heading instead of forcing a too-wide line */
  .contact__faces {
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: 1fr 1fr;
  }
  .contact__faces li { min-width: 0; padding: 16px; min-height: 88px; }
  .contact__faces a { font-size: 16px; }
}

/* ---- footer ---- */
.footer {
  background: var(--fg);
  color: var(--bg);
  padding: 16px 24px;
  display: flex; justify-content: space-between;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  position: relative;
  z-index: 10;
}
.footer__socials { display: flex; gap: 16px; }
@media (max-width: 600px) {
  .footer { flex-wrap: wrap; gap: 6px 16px; letter-spacing: 0.1em; }
  .footer > span { white-space: nowrap; } /* keep each item intact instead of splitting words */
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .floater { transition: none; }
  .strike-out { transition: none; }
  body { cursor: auto; }
  .cursor { display: none; }
}
