:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #0a0a0a;
  --soft: #d6d6d6;
  --muted: #969696;
  --tile: #f3f3f3;
  --fleur-cursor: url("./public/fleur-cursor.svg") 10 10;
}

@property --cursor-scale {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}

* {
  box-sizing: border-box;
  cursor: var(--fleur-cursor), auto;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
  overscroll-behavior: none;
  scrollbar-gutter: stable;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Outfit, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
  letter-spacing: 0;
  overscroll-behavior: none;
}

a {
  color: inherit;
  cursor: var(--fleur-cursor), pointer;
}

@media (hover: hover) and (pointer: fine) {
  html,
  html *,
  body,
  body * {
    cursor: none !important;
  }

  .fleur-cursor {
    --cursor-rotation: 0deg;
    --cursor-scale: 1;
    width: 21px;
    height: 21px;
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999999;
    background: url("./public/fleur-cursor.svg") center / contain no-repeat;
    filter: invert(1);
    mix-blend-mode: difference;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--cursor-rotation)) scale(var(--cursor-scale));
    transition:
      opacity 180ms ease,
      --cursor-scale 180ms ease;
    will-change: left, top, transform, opacity, filter;
  }

  .fleur-cursor.is-visible {
    opacity: 1;
  }

  .fleur-cursor.is-hovering {
    --cursor-scale: 1.4;
  }

  .fleur-cursor.is-pressed {
    --cursor-scale: 1.15;
  }
}

.site-header {
  height: 78px;
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: grid;
  grid-template-columns: 64px 1fr 76px;
  align-items: start;
  padding: 18px 0 0;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.94) 72%, rgba(255, 255, 255, 0));
}

.icon-link,
.contact-link {
  text-decoration: none;
}

.icon-link {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
}

.category-nav {
  justify-self: center;
  display: flex;
  max-width: 430px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 18px;
  color: var(--soft);
  font-size: 22px;
  font-weight: 300;
  line-height: 1.08;
  text-align: center;
}

.category-nav a {
  text-decoration: none;
}

.category-nav a:hover,
.category-nav a:focus-visible,
.category-nav .active {
  color: var(--ink);
  outline: none;
}

.contact-link {
  justify-self: end;
  min-width: 58px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding-right: 12px;
  font-size: 27px;
  font-weight: 300;
  line-height: 1;
}

.bag-icon {
  width: 18px;
  height: 19px;
  position: relative;
  display: inline-block;
  border: 2px solid var(--ink);
  border-radius: 5px 5px 4px 4px;
}

.bag-icon::before {
  content: "";
  width: 10px;
  height: 8px;
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translateX(-50%);
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.work-page {
  padding: 112px 0 54px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  row-gap: 0;
}

.work-card {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(116px, 13vw) clamp(54px, 5vw, 86px);
  align-items: center;
  justify-items: center;
  padding: 0 14px;
}

.work-code,
.work-card h2 {
  margin: 0;
  font-size: clamp(16px, 1.18vw, 23px);
  font-weight: 300;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.work-card h2 {
  display: none;
  color: var(--ink);
  font-size: clamp(11px, 0.72vw, 14px);
  font-weight: 300;
  opacity: 0;
  transition: opacity 160ms ease;
}

.work-card:hover h2,
.work-card:focus-within h2 {
  opacity: 1;
}

.work-visual {
  width: min(72%, 220px);
  height: min(64%, 210px);
  min-height: 108px;
  position: relative;
  display: grid;
  place-items: center;
  text-decoration: none;
  transform: scale(0.72);
  transform-origin: center;
  transition: transform 150ms ease, filter 150ms ease;
}

.work-visual:hover,
.work-visual:focus-visible {
  transform: translateY(-3px) scale(0.72);
  filter: contrast(1.08);
  outline: none;
}

.work-visual span,
.work-visual::before,
.work-visual::after {
  content: "";
  display: block;
  position: absolute;
}

.visual-launch span {
  width: 118px;
  height: 158px;
  border-radius: 48% 48% 9px 9px;
  background: linear-gradient(160deg, #151515 12%, #4c4c4c 46%, #111 78%);
  clip-path: polygon(16% 0, 88% 7%, 100% 76%, 48% 100%, 0 75%);
}

.visual-launch::before {
  width: 132px;
  height: 22px;
  top: 34px;
  border-radius: 999px;
  background: #111;
  transform: rotate(-4deg);
}

.visual-stage span {
  width: 168px;
  height: 118px;
  border-radius: 50% 50% 8px 8px;
  background: linear-gradient(180deg, #111 0 46%, #2b2b2b 47% 100%);
  clip-path: polygon(4% 18%, 100% 0, 88% 100%, 22% 86%);
}

.visual-stage::after {
  width: 184px;
  height: 6px;
  bottom: 44px;
  border-radius: 999px;
  background: #111;
}

.visual-content span {
  width: 142px;
  height: 176px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0 22%, rgba(255, 255, 255, 0.42) 22% 25%, transparent 25% 100%),
    linear-gradient(180deg, #111, #2c2c2c);
  box-shadow: 22px 8px 0 #1b1b1b, -22px 18px 0 #0f0f0f;
}

.visual-script span {
  width: 170px;
  height: 126px;
  border-radius: 6px;
  background:
    linear-gradient(#141414 0 0) 24px 28px / 112px 6px no-repeat,
    linear-gradient(#141414 0 0) 24px 54px / 88px 6px no-repeat,
    linear-gradient(#141414 0 0) 24px 80px / 122px 6px no-repeat,
    #eeeeee;
  box-shadow: 14px 14px 0 #d8d8d8;
}

.visual-event span {
  width: 178px;
  height: 132px;
  border-radius: 68px 68px 10px 10px;
  background:
    radial-gradient(circle at 50% 74%, #fff 0 9px, transparent 10px),
    linear-gradient(155deg, #111, #4b4b4b 54%, #171717);
  clip-path: polygon(12% 5%, 88% 0, 100% 100%, 0 92%);
}

.visual-media span {
  width: 166px;
  height: 138px;
  border: 12px solid #111;
  border-radius: 16px;
  background:
    linear-gradient(135deg, transparent 45%, #111 46% 52%, transparent 53%),
    #f1f1f1;
}

.visual-media::after {
  width: 56px;
  height: 42px;
  right: 26px;
  top: 42px;
  background: #111;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.visual-brand span {
  width: 136px;
  height: 184px;
  border-radius: 3px 3px 48px 48px;
  background: linear-gradient(90deg, #111 0 58%, #313131 58% 100%);
}

.visual-brand::after {
  width: 98px;
  height: 18px;
  bottom: 38px;
  border-radius: 999px;
  background: #111;
}

.visual-campaign span {
  width: 184px;
  height: 116px;
  border-radius: 999px 999px 16px 16px;
  background: linear-gradient(180deg, #e8e8e8, #bdbdbd);
  clip-path: polygon(8% 0, 100% 12%, 86% 100%, 0 76%);
}

.visual-campaign::before {
  width: 124px;
  height: 24px;
  top: 66px;
  border-radius: 999px;
  background: #111;
  transform: rotate(5deg);
}

.visual-artist span {
  width: 156px;
  height: 176px;
  border-radius: 76px 76px 18px 18px;
  background:
    linear-gradient(#111 0 0) center 84px / 88px 10px no-repeat,
    linear-gradient(180deg, #e9e9e9, #c7c7c7);
}

.visual-artist::before {
  width: 92px;
  height: 54px;
  top: 35px;
  border-radius: 50% 50% 0 0;
  background: #d7d7d7;
}

.visual-design span {
  width: 178px;
  height: 118px;
  border-radius: 4px;
  background:
    linear-gradient(90deg, #111 0 10px, transparent 10px 100%),
    linear-gradient(180deg, #e9e9e9, #cfcfcf);
  box-shadow: 18px 18px 0 #eeeeee, -14px -12px 0 #d5d5d5;
}

.visual-flow span {
  width: 170px;
  height: 142px;
  background:
    radial-gradient(circle at 18% 24%, #111 0 18px, transparent 19px),
    radial-gradient(circle at 76% 24%, #111 0 18px, transparent 19px),
    radial-gradient(circle at 50% 76%, #111 0 18px, transparent 19px),
    linear-gradient(#111 0 0) 35px 34px / 95px 6px no-repeat,
    linear-gradient(126deg, transparent 47%, #111 48% 52%, transparent 53%),
    linear-gradient(54deg, transparent 47%, #111 48% 52%, transparent 53%);
}

.visual-premium span {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 44%, #fff 0 22px, transparent 23px),
    conic-gradient(from 28deg, #111, #444, #111, #777, #111);
}

.visual-premium::after {
  width: 116px;
  height: 16px;
  bottom: 38px;
  border-radius: 999px;
  background: #111;
}

.sr-only {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px clamp(26px, 3.2vw, 48px);
  padding: clamp(58px, 7vw, 104px) 18px 30px;
  color: #777;
  font-size: clamp(13px, 1vw, 18px);
  font-weight: 300;
  line-height: 1;
  text-align: center;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--ink);
  outline: none;
}

@media (max-width: 1200px) {
  .work-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .work-card {
    grid-template-rows: minmax(108px, 17vw) 48px;
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 104px;
    grid-template-columns: 48px 1fr 56px;
    padding-top: 14px;
  }

  .category-nav {
    max-width: 250px;
    gap: 5px 12px;
    font-size: 17px;
  }

  .icon-link {
    width: 36px;
    height: 36px;
    font-size: 34px;
  }

  .contact-link {
    min-width: 48px;
    padding-right: 8px;
    font-size: 23px;
  }

  .work-page {
    padding-top: 118px;
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 0;
  }

  .work-card {
    grid-template-rows: 106px 42px;
    padding: 0 8px;
  }

  .work-code {
    font-size: 16px;
  }

  .work-card h2 {
    display: none;
  }

  .work-visual {
    width: min(80%, 148px);
    height: 132px;
    min-height: 96px;
    transform: scale(0.68);
  }

  .work-visual:hover,
  .work-visual:focus-visible {
    transform: translateY(-3px) scale(0.68);
  }

  .site-footer {
    gap: 14px 24px;
    padding-top: 48px;
    font-size: 12px;
  }
}
