/* null — site styles
   Palette (from null's moodboard, no red / orange / green):
   ink #07073D · blue #0000FF · indigo #2C008C · purple #A600FF
   cyan #00EAFF · yellow #FFF000 · pink #FF0077 · white            */

/* Headers: Coolvetica. Drop the font file into /fonts (see fonts/README.txt).
   Until it's there, Outfit stands in. */
@font-face {
  font-family: "Coolvetica";
  src: local("Coolvetica"), local("Coolvetica Rg"), local("CoolveticaRg-Regular"),
       url("../fonts/coolvetica.woff2") format("woff2"),
       url("../fonts/coolvetica.otf") format("opentype"),
       url("../fonts/coolvetica.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ink: #07073D;
  --ink-2: #0D0D5C;
  --blue: #0000FF;
  --indigo: #2C008C;
  --purple: #A600FF;
  --cyan: #00EAFF;
  --yellow: #FFF000;
  --pink: #FF0077;
  --white: #FFFFFF;
  --head: "Coolvetica", "Outfit", "Arial Black", Arial, sans-serif;
  --body: Arial, Helvetica, sans-serif;
  --wrap: 1180px;
  --r-lg: 28px;
  --r-md: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--cyan); }
p { margin: 0 0 1em; max-width: 62ch; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Headings: every letter takes the next palette colour ---------- */
.pop {
  font-family: var(--head);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.01em;
  margin: 0;
  text-shadow: .055em .055em 0 var(--blue);
}
.pop .c0 { color: var(--yellow); }
.pop .c1 { color: var(--cyan); }
.pop .c2 { color: var(--pink); }
.pop .c3 { color: var(--white); }
h2.pop { font-size: clamp(2.3rem, 6.2vw, 4.2rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .7em 1.4em;
  border: 0; border-radius: 999px;
  background: var(--yellow); color: var(--ink);
  font: 700 1rem/1.2 var(--body);
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--pink);
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--pink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--pink); }
.btn.cyan { background: var(--cyan); box-shadow: 4px 4px 0 var(--blue); }
.btn.cyan:hover { box-shadow: 6px 6px 0 var(--blue); }
.btn.ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px var(--white); }
.btn.ghost:hover { transform: none; background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 2px var(--white); }

/* ---------- Nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: block; }
.brand img { height: 34px; width: auto; filter: drop-shadow(3px 3px 0 var(--blue)); }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  padding: .45em 1em; border-radius: 999px;
  color: var(--white); text-decoration: none; font-weight: 700;
}
.nav-links a:hover { background: var(--ink-2); }
.nav-links a[aria-current="page"] { background: var(--yellow); color: var(--ink); }

/* ---------- Home hero (mouse-responsive stage) ---------- */
.hero-stage {
  position: relative;
  min-height: min(74vh, 680px);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--blue);
  display: grid; place-items: center;
  isolation: isolate;
}
.layer {
  --d: 0;
  transform: translate3d(calc(var(--mx, 0) * var(--d) * -90px), calc(var(--my, 0) * var(--d) * -60px), 0);
  will-change: transform;
}
.hero-dots {
  position: absolute; inset: -60px; z-index: -1;
  background-image: radial-gradient(var(--indigo) 3px, transparent 3.5px);
  background-size: 34px 34px;
  opacity: .8;
}
.sticker { position: absolute; }
.sticker > * {
  width: 100%; height: auto;
  filter: drop-shadow(5px 6px 0 rgba(7, 7, 61, .45));
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1);
  transform: rotate(var(--rot, 0deg));
}
.sticker:hover > * { transform: rotate(calc(var(--rot, 0deg) + 14deg)) scale(1.18); }
.hero-center { position: relative; text-align: center; padding: 60px 20px; }
.hero-word {
  display: inline-block; position: relative; margin: 0;
  padding: clamp(16px, 2.6vw, 30px) clamp(20px, 3.2vw, 38px);
}
/* null's logo (by Crucial), with offset shadows in the site palette */
.hero-word img {
  width: clamp(230px, 48vw, 600px); height: auto;
  filter: drop-shadow(7px 7px 0 var(--pink)) drop-shadow(7px 7px 0 var(--indigo));
}
/* design-tool selection box around the logo */
.hero-word::before { content: ""; position: absolute; inset: 0; border: 2px solid var(--white); pointer-events: none; }
.hero-word i { position: absolute; width: 12px; height: 12px; background: var(--white); border: 2px solid var(--blue); outline: 2px solid var(--white); }
.hero-word i:nth-of-type(1) { left: -6px; top: -6px; }
.hero-word i:nth-of-type(2) { right: -6px; top: -6px; }
.hero-word i:nth-of-type(3) { left: -6px; bottom: -6px; }
.hero-word i:nth-of-type(4) { right: -6px; bottom: -6px; }
.hero-role {
  margin: 14px auto 26px; max-width: none;
  font: 700 clamp(1.1rem, 2.4vw, 1.6rem)/1.2 var(--body);
}
.hero-center .btn { position: relative; z-index: 2; }

/* ---------- Home work previews (carousels) ---------- */
.preview { padding: 72px 0 0; }
.preview-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.preview-tools { display: flex; align-items: center; gap: 10px; }
.round {
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--white); background: transparent;
  display: grid; place-items: center; font-size: 1.2rem; font-weight: 700;
}
.round:hover { background: var(--white); color: var(--ink); }
.strip {
  display: flex; gap: 14px;
  overflow-x: auto; scroll-snap-type: x proximity;
  padding: 4px max(20px, calc((100vw - var(--wrap)) / 2)) 18px;
  scrollbar-width: none; cursor: grab;
}
.strip::-webkit-scrollbar { display: none; }
.strip.dragging { cursor: grabbing; scroll-snap-type: none; }
.strip.dragging * { pointer-events: none; }
.strip button {
  flex: none; height: clamp(190px, 26vw, 300px);
  padding: 0; border: 0; background: var(--ink-2);
  border-radius: var(--r-md); overflow: hidden; scroll-snap-align: center;
}
.strip img { height: 100%; width: auto; max-width: none; -webkit-user-drag: none; user-select: none; }

/* ---------- Portfolio: category picker ---------- */
.page-head { padding: 34px 0 30px; }
.page-head h1 { font-size: clamp(3.4rem, 11vw, 7.5rem); }
.page-head p { margin-top: 16px; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.cat-tile {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden;
  text-decoration: none; isolation: isolate;
  transition: transform .2s cubic-bezier(.3, 1.6, .5, 1);
}
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cat-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); opacity: .38; transition: opacity .2s; }
.cat-tile span {
  font: 800 clamp(1.3rem, 2.6vw, 2.1rem)/1 var(--head);
  color: var(--white); text-align: center; padding: 0 12px;
  text-shadow: 3px 3px 0 var(--ink), -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink);
}
.cat-grid li:nth-child(odd) .cat-tile:hover { transform: rotate(-2deg) scale(1.04); }
.cat-grid li:nth-child(even) .cat-tile:hover { transform: rotate(2deg) scale(1.04); }
.cat-tile:hover::after { opacity: .1; }
.empty { padding: 40px; border: 2px dashed var(--purple); border-radius: var(--r-md); max-width: none; }

/* ---------- Portfolio: one category ---------- */
.marquee { overflow: hidden; padding: 10px 0 18px; user-select: none; }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-track .pop { font-size: clamp(4rem, 13vw, 9.5rem); white-space: nowrap; padding-right: .35em; text-transform: uppercase; }
.cat-bar {
  position: sticky; top: 0; z-index: 4;   /* back button follows you down the page */
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 0; margin-bottom: 14px; pointer-events: none;
}
.cat-bar > * { pointer-events: auto; }
.cat-bar .btn.ghost { background: var(--ink); box-shadow: inset 0 0 0 2px var(--white), 0 6px 18px rgba(0, 0, 30, .55); }
.cat-bar .btn.ghost:hover { background: var(--white); }
.cat-bar p { margin: 0; padding: .35em .9em; border-radius: 999px; background: var(--ink); font-size: .95rem; }
.works { columns: 3; column-gap: 16px; }
.works button {
  display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0;
  background: var(--ink-2); border-radius: var(--r-md); overflow: hidden;
  break-inside: avoid; transition: transform .2s cubic-bezier(.3, 1.6, .5, 1);
}
.works button:hover { transform: scale(1.025); }
.works img { width: 100%; height: auto; }

/* ---------- Clients ---------- */
.clients { padding: 72px 0 0; }
.clients h2 { margin-bottom: 22px; }
.client-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); border-radius: var(--r-lg); overflow: hidden; }
.client-half { padding: clamp(20px, 3vw, 34px); }
.client-half.client { background: var(--ink-2); }
.client-half.org { background: var(--blue); }
.client-half h3 {
  margin: 0 0 16px;
  font: 800 clamp(1.6rem, 3.4vw, 2.4rem)/1 var(--head);
  color: var(--white); text-shadow: .06em .06em 0 var(--indigo);
}
.client-half.org .client-row a:hover { box-shadow: 0 0 0 3px var(--yellow); }
.client-row { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.client-row a, .client-row span.slot {
  display: block; width: 68px; height: 68px; border-radius: 16px; overflow: hidden;
  transition: transform .2s cubic-bezier(.3, 1.6, .5, 1);
}
.client-row a:hover { transform: translateY(-6px) rotate(-4deg); }
.client-row img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- About ---------- */
.about-cards { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; }
.card { border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); }
.card h2 { font: 800 clamp(1.8rem, 3.6vw, 2.6rem)/1 var(--head); margin: 0 0 .5em; }
.card.blue { background: var(--blue); }
.card.yellow { background: var(--yellow); color: var(--ink); }
.card.yellow a { color: var(--blue); }
.card ul { margin: 0; padding-left: 1.1em; }
.card li { margin-bottom: .4em; }
.avatar { width: 120px; height: 120px; border-radius: 50%; margin-bottom: 22px; border: 4px solid var(--white); object-fit: cover; }

/* ---------- About ---------- */
.story { max-width: none; }

.lede {
  max-width: 34ch; margin: 0 0 30px;
  font: 700 clamp(1.3rem, 2.6vw, 1.85rem)/1.38 var(--body);
}
.lede a { color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.quote {
  position: relative; margin: 0;
  background: var(--blue); border-radius: var(--r-lg);
  padding: clamp(46px, 6vw, 70px) clamp(24px, 5vw, 60px) clamp(26px, 4vw, 44px);
  font-size: clamp(1.02rem, 1.5vw, 1.14rem); line-height: 1.72;
}
.quote::before {
  content: "\201C"; position: absolute; top: -.18em; left: clamp(16px, 3vw, 40px);
  font: 800 clamp(6rem, 12vw, 9rem)/1 var(--head);
  color: var(--yellow); text-shadow: .05em .05em 0 var(--pink);
}
.quote {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38%;
  align-items: center;
  padding: clamp(12px, 1.6vw, 20px);
  font-size: 1rem;
}
.quote blockquote {
  margin: 0;
  padding: clamp(34px, 5vw, 52px) clamp(18px, 3vw, 36px) clamp(14px, 2.6vw, 26px) clamp(12px, 3.6vw, 42px);
}
.quote p { max-width: 70ch; }
/* null's photo: whole picture (never cropped), inset on the right of the blue card */
.portrait {
  position: relative; margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden; border-radius: var(--r-md);
}
.portrait img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
@media (max-width: 1219px) {
  .quote { grid-template-columns: minmax(0, 1fr) 45%; font-size: .95rem; }
}
@media (max-width: 999px) {
  .quote { grid-template-columns: 1fr; font-size: 1rem; }
  .portrait { width: min(420px, 100%); justify-self: center; }
}



.quote p:last-child { margin-bottom: 0; font-weight: 700; }
.notes {
  max-width: none; margin-top: 22px;
  padding: clamp(20px, 3vw, 30px);
  border: 2px dashed rgba(255, 255, 255, .28); border-radius: var(--r-md);
  font-size: .95rem; line-height: 1.55; color: rgba(255, 255, 255, .86);
}
.notes h2 { font: 800 1.3rem/1 var(--head); color: var(--cyan); margin: 0 0 14px; }
.notes > ul { columns: 2; column-gap: 36px; margin: 0; padding-left: 1.1em; }
.notes li { margin-bottom: .55em; break-inside: avoid; }
.notes li ul { margin: .4em 0 0; padding-left: 1.1em; }
.notes li li { margin-bottom: .3em; }
@media (max-width: 760px) { .notes > ul { columns: 1; } }

/* ---------- Shared footer: "Let's work together!" + contact ---------- */
.site-foot { margin-top: 96px; }
.together {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--indigo);
  padding: clamp(56px, 10vw, 120px) 20px;
  text-align: center;
  transform: rotate(-1.2deg) scale(1.03);
  border-block: 6px solid var(--pink);
}
.together::before {
  content: ""; position: absolute; inset: -80px; z-index: -1;
  background: repeating-linear-gradient(115deg, transparent 0 46px, rgba(166, 0, 255, .55) 46px 92px);
}
.together .pop { font-size: clamp(2.6rem, 9vw, 7rem); text-shadow: .05em .05em 0 var(--blue); position: relative; display: inline-block; }
/* null's animation drops in here: <video class="together-media" src="img/together.webm" autoplay muted loop playsinline> */
.together-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.contact { padding: 64px 0 40px; text-align: center; }
.contact p { margin-inline: auto; font-size: 1.1rem; }
.contact-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 26px 0 0; padding: 0; list-style: none; }
.contact-row .btn { flex-direction: column; gap: 2px; padding: .7em 1.6em; align-items: center; }
.contact-row small { font-weight: 400; font-size: .8rem; }
/* "Other links" button (opens null's Linktree) */
.more-links { margin: 30px auto 0; text-align: center; max-width: none; }
.more-links a {
  display: inline-block;
  padding: .55em 1.3em; border-radius: 999px;
  color: var(--white); text-decoration: none;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55);
  font-weight: 700; font-size: .95rem;
  transition: box-shadow .15s, background .15s, color .15s;
}
.more-links a:hover { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 2px var(--white); }

.foot-mark { width: min(240px, 60vw); height: auto; margin: 52px auto 0; opacity: .92; }
.fine { margin: 14px auto 0; opacity: .6; font-size: .85rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0; padding: 0; background: transparent; color: var(--white);
  max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
}
.lightbox::backdrop { background: rgba(7, 7, 61, .93); }
.lightbox-inner { width: 100%; height: 100%; display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; justify-items: center; padding: 20px 0; }
.lightbox figure { margin: 0; max-height: 100%; display: grid; gap: 10px; justify-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); border-radius: var(--r-md); }
.lightbox figcaption { font-weight: 700; min-height: 1.4em; }
.lightbox .close { position: absolute; top: 16px; right: 16px; }

/* ---------- Scroll animations (classes added by site.js) ---------- */
.rv {
  opacity: 0;
  transform: translateY(34px) scale(.96);
  transition: opacity .55s ease, transform .75s cubic-bezier(.2, .9, .25, 1.18);
}
.rv.in { opacity: 1; transform: none; }
.strip > button.rv { transform: translateX(40px) rotate(2deg); }
.strip > button.rv.in { transform: none; }
.client-row li.rv { transform: scale(.4) rotate(-12deg); }
.client-row li.rv.in { transform: none; }
/* the banner swings into its tilt */
.together.rv { transform: rotate(-5deg) scale(1.03) translateX(-8%); }
.together.rv.in { transform: rotate(-1.2deg) scale(1.03); }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .works { columns: 2; }
  .about-cards { grid-template-columns: 1fr; }
  .sticker.hide-s { display: none; }
  .hero-stage { min-height: 440px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand img { height: 26px; }
  .nav-links a { padding: .4em .7em; }
  .cat-grid { grid-template-columns: 1fr; }
  .works { column-gap: 10px; }
  .works button { margin-bottom: 10px; }
  .lightbox-inner { grid-template-columns: 50px 1fr 50px; }
  .round { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .layer { transform: none; }
  * { transition: none !important; }
}

.btn:disabled { opacity: .45; cursor: default; transform: none; }
