/* Spectrum Mosaic Solutions */

:root {
  --orange: #fe8d08;
  --blue: #148efe;
  --purple: #f367fa;
  --green: #12c81d;

  --bg: #f6f4ef;
  --surface: #fffdf9;
  --ink: #15171b;
  --muted: #5d6169;
  --line: #e2ded4;
  --tile: #ffffff;
  --shadow: 0 1px 2px rgb(20 22 27 / 0.05), 0 8px 24px -12px rgb(20 22 27 / 0.12);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
  --max: 1120px;
  color-scheme: light;
}

/* Dark theme, chosen with the toggle in the top bar */
:root[data-theme="dark"] {
  --bg: #0e1013;
  --surface: #15181c;
  --ink: #f1efea;
  --muted: #9ba0a8;
  --line: #262a30;
  --tile: #f7f5f0;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 10px 30px -14px rgb(0 0 0 / 0.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  padding: env(safe-area-inset-top, 0) 0 env(safe-area-inset-bottom, 0);
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

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

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 10;
  background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* Top bar */

.theme {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted);
  cursor: pointer; transition: color .15s, border-color .15s;
}
.theme:hover { color: var(--ink); border-color: var(--muted); }
.theme svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme .sun, [data-theme="dark"] .theme .moon { display: none; }
[data-theme="dark"] .theme .sun { display: block; }

.bar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.bar.scrolled { border-bottom-color: var(--line); }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; }
/* Two turns that launch quickly and ease out to a stop, started by hovering the
   whole brand link. Both turns are whole, so the mark rests exactly where it began. */
.brand img.spinning { animation: logo-spin 1.8s cubic-bezier(0.2, 0.7, 0.2, 1); will-change: transform; }
@keyframes logo-spin { to { transform: rotate(720deg); } }

.bar nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.bar nav a:not(.btn) { text-decoration: none; color: var(--muted); transition: color .15s; }
.bar nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 720px) { .bar nav a:not(.btn) { display: none; } .bar nav { gap: 12px; } }
@media (max-width: 520px) { .bar nav .btn { display: none; } .brand { font-size: 15px; } }
.brand span, .btn { white-space: nowrap; }

/* Buttons and links */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font: 550 16px/1 var(--sans); text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 20px -10px rgb(20 22 27 / 0.6);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -12px rgb(20 22 27 / 0.7); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.btn:hover svg { transform: translateX(3px); }
.btn-small { padding: 10px 16px; font-size: 14px; }

.link { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; transition: color .15s, text-decoration-color .15s; }
.link:hover { color: var(--ink); text-decoration-color: currentColor; }

/* Hero */

.hero {
  position: relative; overflow: hidden;
  min-height: min(760px, 88svh);
  display: flex; align-items: center;
  padding: 72px var(--gutter) 96px;
}
.field {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 18%, #000 70%);
          mask-image: linear-gradient(90deg, transparent 18%, #000 70%);
}
@media (max-width: 820px) {
  .field {
    opacity: .55;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 65%);
            mask-image: linear-gradient(180deg, #000 0%, transparent 65%);
  }
}

.hero-copy { position: relative; width: 100%; max-width: var(--max); margin: 0 auto; }
.hero-copy > * { max-width: 640px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: var(--muted);
  padding: 6px 14px 6px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}
.dot {
  width: 10px; height: 10px; transform: rotate(45deg); border-radius: 2px;
  background: conic-gradient(var(--orange) 0 25%, var(--purple) 0 50%, var(--green) 0 75%, var(--blue) 0);
}

h1 {
  margin-top: 28px;
  font: 500 clamp(44px, 7vw, 86px)/1 var(--serif);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 em {
  font-style: italic;
  background: linear-gradient(100deg, var(--orange), var(--purple) 45%, var(--blue) 80%, var(--green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.lede { margin-top: 26px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 540px; text-wrap: pretty; }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; font-size: 15px; }

/* Sections */

.section { max-width: var(--max); margin: 0 auto; padding: 56px var(--gutter); }
.section + .section { border-top: 1px solid var(--line); }
@media (min-width: 1232px) { .section { padding-inline: 0; } }

.kicker {
  font: 500 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 28px;
}
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 32px; margin-bottom: 28px; }
.section-head .kicker { margin: 0; }
.note { color: var(--muted); font-size: 15px; max-width: 460px; }

/* What we do */

.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1080px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .tiles { grid-template-columns: 1fr; } }
.tile {
  position: relative; padding: 28px 26px 30px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 40%, var(--line)); }
.gem { display: block; width: 16px; height: 16px; border-radius: 3px; transform: rotate(45deg); background: var(--c); margin: 4px 0 22px 4px; box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 16%, transparent); }
.tile h3 { font: 500 25px/1.1 var(--serif); letter-spacing: -0.01em; margin-bottom: 10px; }
.tile p { color: var(--muted); font-size: 16px; }

.aside {
  margin-top: 16px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px 16px;
  padding: 18px 22px; border: 1px dashed var(--line); border-radius: 14px;
  color: var(--muted); font-size: 15px;
}
.flags { font: 600 12px/1 var(--sans); letter-spacing: .12em; color: var(--ink); padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; }

/* Client logos: a mosaic of white tiles, so every logo sits on the background it was made for */

.logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 12px; }
.logos li {
  flex: 0 0 calc((100% - 12px * 6) / 7);
  aspect-ratio: 4 / 3;
  position: relative;
  background: var(--tile); border-radius: 14px;
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
@media (max-width: 1000px) { .logos li { flex-basis: calc((100% - 12px * 3) / 4); } }
@media (max-width: 640px)  { .logos li { flex-basis: calc((100% - 12px) / 2); } }
.logos img {
  --py: 16px; --px: 14px;
  position: absolute; inset: var(--py) var(--px);
  width: calc(100% - 2 * var(--px)); height: calc(100% - 2 * var(--py)); object-fit: contain;
}
.logos img.wide { --py: 12px; --px: 14px; }
.logos img.badge { --py: 8px; --px: 8px; }
.logos li:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.logos .you { padding: 0; background: transparent; border: 1px dashed var(--muted); }
.logos .you a {
  width: 100%; height: 100%; display: grid; place-content: center; text-align: center; gap: 2px;
  text-decoration: none; border-radius: inherit; padding: 10px;
}
.logos .you span { font: italic 500 18px/1.15 var(--serif); }
.logos .you small { color: var(--muted); font-size: 13px; }
.logos .you:hover { border-style: solid; border-color: var(--ink); }

/* Team */

.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) { .people { grid-template-columns: 1fr; } }
.person {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start;
  padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
}
.avatar {
  width: 64px; height: 64px; margin: 10px;
  display: grid; place-items: center;
  transform: rotate(45deg); border-radius: 14px;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, var(--purple)));
}
.avatar span { transform: rotate(-45deg); color: #fff; font: 600 18px/1 var(--sans); letter-spacing: .02em; }
.person h3 { font: 500 27px/1.1 var(--serif); letter-spacing: -0.01em; }
.role { color: var(--muted); font-size: 14px; margin: 4px 0 12px; }
.person p:not(.role) { font-size: 16px; }
.person .link { display: inline-block; margin-top: 12px; font-size: 15px; }

/* How it starts */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 20px; } }
.steps li { display: grid; gap: 10px; }
.steps b { font: 400 40px/1 var(--serif); color: var(--muted); }
.steps span { font-size: 17px; max-width: 30ch; }

/* Footer: the business card */

.card-foot { padding: 40px var(--gutter) 40px; }
.card {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 20px 36px;
  padding: 28px 32px; border-radius: 22px;
  background: var(--ink); color: var(--bg);
  position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 4px;
  background: linear-gradient(90deg, var(--orange) 0 25%, var(--blue) 0 50%, var(--purple) 0 75%, var(--green) 0);
}
.card img { width: 64px; height: 64px; }
.card-id { display: grid; gap: 2px; }
.card-id strong { font: 500 24px/1.15 var(--serif); letter-spacing: -0.01em; }
.card-id span { opacity: .65; font-size: 14px; }
.card-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 15px; }
.card-lines a { text-decoration: none; opacity: .85; }
.card-lines a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.card .btn { background: var(--bg); color: var(--ink); }
@media (max-width: 900px) {
  .card { grid-template-columns: auto 1fr; }
  .card-lines, .card .btn { grid-column: 1 / -1; }
  .card .btn { justify-self: start; }
}
.legal { max-width: var(--max); margin: 18px auto 0; color: var(--muted); font-size: 13px; }

/* Entrance */

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* Easter egg */

/* He is drawn full length but only rises to just under the chest */
.obi {
  --h: 400px; --peek: 150px;
  position: fixed; left: 16px; bottom: 0; z-index: 30;
  display: flex; align-items: flex-start; gap: 6px;
  pointer-events: none;
  transform: translateY(105%);
  transition: transform .5s cubic-bezier(.2, .9, .3, 1.15);
}
.obi.show { transform: translateY(calc(var(--h) - var(--peek))); }
.obi img { display: block; flex: none; width: 222px; height: var(--h); }
.obi-say {
  margin: 6px 0 0 -46px; padding: 8px 14px; border-radius: 14px 14px 14px 4px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow);
  font: 500 15px/1.3 var(--sans); white-space: nowrap;
  display: grid; gap: 2px; pointer-events: none;
  opacity: 0; transition: opacity .25s ease;
}
.obi.show .obi-say { opacity: 1; transition-delay: .45s; pointer-events: auto; }
.obi-say a { font-size: 13px; font-weight: 400; color: var(--muted); text-underline-offset: 3px; }
.obi-say a:hover { color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .obi { opacity: 0; transition: opacity .2s; }
  .obi.show { opacity: 1; }
  .obi-say { transition: none; }
}
