/* Landing-page compound + ops modules, scoped for the portfolio case study */
.tl-landing {
  --white: #fcfcfc;
  --black: #181818;
  --border: #e5e5e5;
  --text-muted: #5c5c5c;
  --green: #3f5a24;
  --panel-bg: #f4f3ef;
  --body-size: 1.05rem;
  --mono: "SF Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  --vd5-grain-fine: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --vd5-grain-coarse: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.42' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  margin-top: 28px;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.tl-landing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-items: stretch;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.tl-landing-grid > * {
  min-width: 0;
  max-width: 100%;
}

.tl-landing .nl-compound-card__title,
.tl-landing .nl-ops-card__title {
  font-family: inherit;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.02em;
}

.tl-landing .nl-compound-card__body,
.tl-landing .nl-ops-card__body,
.tl-landing .nl-ops-mock__line,
.tl-landing .nl-ops-mock__name,
.tl-landing .nl-ops-mock__sub {
  font-family: inherit;
}

.nl-compound-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: none;
  justify-self: stretch;
  min-height: 520px;
  padding: 28px 28px 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel-bg);
  color: var(--black);
}

.nl-compound-card__num {
  position: absolute;
  top: 24px;
  left: 28px;
  z-index: 1;
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  pointer-events: none;
}

.nl-compound-card__illust {
  flex: 1;
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  min-height: 220px;
  margin: 36px 0 24px;
  padding: 0 8px;
  overflow: hidden;
}

.nl-compound-layers {
  overflow: visible;
  transform: translateY(16px);
}

.nl-compound-slab,
.nl-compound-dots {
  transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nl-compound-slab--base {
  transform: translate(0, 82.28px);
}

.nl-compound-slab--mid,
.nl-compound-dots--lower {
  transform: translate(0, 41.14px);
}

.nl-compound-slab--top,
.nl-compound-dots--upper {
  transform: translate(0, 0);
}

.nl-compound-layers:hover .nl-compound-slab--top,
.nl-compound-layers:hover .nl-compound-dots--upper {
  transform: translate(0, -16px);
}

.nl-compound-layers:hover .nl-compound-slab--mid,
.nl-compound-layers:hover .nl-compound-dots--lower {
  transform: translate(0, 32.14px);
}

.nl-compound-card__illust > svg,
.nl-compound-card__illust .vd8-agents,
.nl-compound-card__illust .vd8-agents svg {
  display: block;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 240px;
  min-width: 0;
  color: #8d8d87;
  transition: color 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nl-compound-card__illust .vd8-momentum {
  width: 100%;
  max-width: 100%;
  max-height: 220px;
  overflow: visible;
}

.nl-compound-card__illust :is(path, circle, line) {
  stroke: currentColor !important;
}

.nl-compound-layers:hover,
.nl-compound-agents:hover,
.nl-compound-card__illust .vd8-momentum:hover {
  color: var(--white);
}

.nl-compound-dex {
  fill: none;
  transition: fill 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nl-compound-layers:hover .nl-compound-dex {
  fill: var(--white);
}

.nl-compound-card__illust path[fill]:not([fill="none"]):not(.nl-compound-wash) {
  fill: var(--panel-bg) !important;
}

.nl-compound-card__illust path.nl-compound-wash {
  fill-opacity: 0;
  stroke: none !important;
  pointer-events: none;
  transition: fill-opacity 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nl-compound-layers:hover path.nl-compound-wash,
.nl-compound-agents:hover path.nl-compound-wash,
.nl-compound-card__illust .vd8-momentum:hover path.nl-compound-wash {
  fill-opacity: 0.72;
}

.nl-compound-card__illust g {
  filter: none !important;
}

.nl-compound-card__copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nl-compound-card__title {
  margin: 0;
  font-size: var(--body-size);
  font-weight: 500;
  line-height: 1.35;
  color: var(--black);
}

.nl-compound-card__body {
  margin: 0;
  min-height: calc(var(--body-size) * 1.5 * 4);
  font-size: var(--body-size);
  line-height: 1.5;
  color: var(--text-muted);
}

.nl-compound-card .vd8-agents {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  min-width: 0;
  perspective: 1000px;
}

.nl-compound-card .vd8-grid-loader {
  position: absolute;
  width: 5.26%;
  height: auto;
  opacity: 0.7;
  transform: rotateX(60deg) rotateY(3deg) scale(0.85) rotate(43deg);
  pointer-events: none;
}

.nl-compound-card .vd8-grid-loader--updown {
  bottom: 42%;
  left: 47.4%;
}

.nl-compound-card .vd8-grid-loader--pong {
  top: 19.9%;
  bottom: auto;
  left: 26.6%;
  transform: rotateX(60deg) rotateY(3deg) scale(0.87) rotate(43deg);
}

.nl-compound-card .vd8-grid-loader--agent {
  top: 1.4%;
  bottom: auto;
  left: 47.4%;
  transform: rotateX(60deg) rotateY(3deg) scale(0.9) rotate(43deg);
}

.nl-ops > .nl-section__title {
  max-width: none;
  margin-bottom: 36px;
  white-space: nowrap;
}

.nl-ops-card {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: none;
  justify-self: stretch;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
}

.nl-ops-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.nl-ops-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: var(--vd5-grain-fine), var(--vd5-grain-coarse);
  background-size: 72px 72px, 128px 128px;
  mix-blend-mode: overlay;
  opacity: 0.55;
  pointer-events: none;
}

.nl-ops-blur {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: visible;
  pointer-events: none;
  filter: blur(58px) saturate(1.04) contrast(1.04);
}

.nl-ops-blur__blob {
  position: absolute;
  display: block;
  border-radius: 50%;
}

.nl-ops-card__media--customer {
  background: #2a3824;
}

.nl-ops-card__media--customer .nl-ops-blur__blob[data-b="1"] {
  width: 68%;
  height: 72%;
  top: -18%;
  left: -22%;
  background: #5e9a8c;
  border-radius: 62% 38% 48% 52%;
}

.nl-ops-card__media--customer .nl-ops-blur__blob[data-b="2"] {
  width: 58%;
  height: 52%;
  top: -22%;
  left: 22%;
  background: #f6f1e4;
  border-radius: 48% 52% 40% 60%;
}

.nl-ops-card__media--customer .nl-ops-blur__blob[data-b="3"] {
  width: 62%;
  height: 58%;
  top: -16%;
  right: -20%;
  background: #efc97a;
  border-radius: 40% 60% 55% 45%;
}

.nl-ops-card__media--customer .nl-ops-blur__blob[data-b="4"] {
  width: 78%;
  height: 70%;
  bottom: -18%;
  left: 8%;
  background: #6f8c4a;
  border-radius: 55% 45% 48% 52%;
}

.nl-ops-card__media--customer .nl-ops-blur__blob[data-b="5"] {
  width: 48%;
  height: 56%;
  bottom: -22%;
  left: -16%;
  background: #1a2818;
  border-radius: 58% 42% 60% 40%;
}

.nl-ops-card__media--customer .nl-ops-blur__blob[data-b="6"] {
  width: 46%;
  height: 52%;
  bottom: -20%;
  right: -14%;
  background: #1e2c1c;
  border-radius: 42% 58% 50% 50%;
}

.nl-ops-card__media--customer .nl-ops-blur__blob[data-b="7"] {
  width: 42%;
  height: 38%;
  top: 28%;
  left: 28%;
  background: #7a8c48;
  border-radius: 60% 40% 55% 45%;
}

.nl-ops-card__media--revenue {
  background: #6a7a48;
}

.nl-ops-card__media--revenue .nl-ops-blur__blob[data-b="1"] {
  width: 42%;
  height: 58%;
  top: 12%;
  left: 30%;
  background: #7a9428;
  border-radius: 48% 52% 46% 54%;
}

.nl-ops-card__media--revenue .nl-ops-blur__blob[data-b="2"] {
  width: 40%;
  height: 44%;
  top: -14%;
  left: -4%;
  background: #6c902a;
  border-radius: 55% 45% 50% 50%;
}

.nl-ops-card__media--revenue .nl-ops-blur__blob[data-b="3"] {
  width: 54%;
  height: 50%;
  bottom: -8%;
  left: -14%;
  background: #5c9294;
  border-radius: 42% 58% 48% 52%;
}

.nl-ops-card__media--revenue .nl-ops-blur__blob[data-b="4"] {
  width: 52%;
  height: 48%;
  top: -10%;
  right: -12%;
  background: #7aa2a8;
  border-radius: 50% 50% 42% 58%;
}

.nl-ops-card__media--revenue .nl-ops-blur__blob[data-b="5"] {
  width: 62%;
  height: 54%;
  top: -8%;
  left: 22%;
  background: #d6d4b8;
  border-radius: 58% 42% 55% 45%;
}

.nl-ops-card__media--revenue .nl-ops-blur__blob[data-b="6"] {
  width: 78%;
  height: 50%;
  bottom: -24%;
  left: 16%;
  background: #20470f;
  border-radius: 48% 52% 40% 60%;
}

.nl-ops-card__media--revenue .nl-ops-blur__blob[data-b="7"] {
  width: 38%;
  height: 36%;
  top: 38%;
  left: 16%;
  background: #84a32a;
  border-radius: 60% 40% 48% 52%;
}

.nl-ops-card__media--recruiting {
  background: #3d5a52;
}

.nl-ops-card__media--recruiting .nl-ops-blur__blob[data-b="1"] {
  width: 42%;
  height: 58%;
  top: 12%;
  left: 30%;
  background: #4a7a58;
  border-radius: 48% 52% 46% 54%;
}

.nl-ops-card__media--recruiting .nl-ops-blur__blob[data-b="2"] {
  width: 40%;
  height: 44%;
  top: -14%;
  left: -4%;
  background: #3d6e62;
  border-radius: 55% 45% 50% 50%;
}

.nl-ops-card__media--recruiting .nl-ops-blur__blob[data-b="3"] {
  width: 54%;
  height: 50%;
  bottom: -8%;
  left: -14%;
  background: #5c9294;
  border-radius: 42% 58% 48% 52%;
}

.nl-ops-card__media--recruiting .nl-ops-blur__blob[data-b="4"] {
  width: 52%;
  height: 48%;
  top: -10%;
  right: -12%;
  background: #7aa2a8;
  border-radius: 50% 50% 42% 58%;
}

.nl-ops-card__media--recruiting .nl-ops-blur__blob[data-b="5"] {
  width: 62%;
  height: 54%;
  top: -8%;
  left: 22%;
  background: #d0d6d4;
  border-radius: 58% 42% 55% 45%;
}

.nl-ops-card__media--recruiting .nl-ops-blur__blob[data-b="6"] {
  width: 78%;
  height: 50%;
  bottom: -24%;
  left: 16%;
  background: #16382a;
  border-radius: 48% 52% 40% 60%;
}

.nl-ops-card__media--recruiting .nl-ops-blur__blob[data-b="7"] {
  width: 38%;
  height: 36%;
  top: 38%;
  left: 16%;
  background: #4e8a78;
  border-radius: 60% 40% 48% 52%;
}

.nl-ops-mock {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: max-content;
  max-width: calc(100% - 48px);
  margin: 0;
  box-sizing: border-box;
  transform: translate(-50%, -50%);
}

.nl-ops-mock--chat,
.nl-ops-mock--status {
  padding: 16px 16px 14px;
  border-radius: 12px;
  background: rgba(252, 252, 252, 0.92);
  box-shadow: 0 10px 28px rgba(24, 24, 24, 0.08);
}

.nl-ops-mock--chat {
  width: min(252px, calc(100% - 48px));
}

.nl-ops-mock__chrome {
  display: flex;
  gap: 5px;
  margin-bottom: 12px;
}

.nl-ops-mock__chrome span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(24, 24, 24, 0.42);
}

.nl-ops-mock__chrome span:nth-child(2) {
  background: rgba(24, 24, 24, 0.22);
}

.nl-ops-mock__chrome span:nth-child(3) {
  background: rgba(24, 24, 24, 0.1);
}

.nl-ops-mock__line {
  margin: 0 0 6px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--black);
  overflow-wrap: anywhere;
}

.nl-ops-mock__line:last-child {
  margin-bottom: 0;
}

.nl-ops-mock__line--muted,
.nl-ops-mock__sub {
  color: var(--text-muted);
}

.nl-ops-mock__prompt {
  margin-right: 0.35em;
  color: var(--green);
}

.nl-ops-mock--status {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(200px, calc(100% - 48px));
  text-align: center;
  padding: 22px 18px;
}

.nl-ops-mock__avatar {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: linear-gradient(160deg, #c2b45c, #3f5a24);
}

.nl-ops-mock__name {
  margin: 0 0 4px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--black);
}

.nl-ops-mock__sub {
  margin: 0;
  font-size: 0.78rem;
}

.nl-ops-mock--grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: min(216px, calc(100% - 48px));
}

.nl-ops-mock__tile {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 10px;
  background: rgba(24, 24, 24, 0.28);
  color: var(--white);
}

.nl-ops-mock__tile svg {
  width: 46%;
  height: 46%;
}

.nl-ops-card__copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 24px;
}

.nl-ops-card__title {
  margin: 0;
  font-size: var(--body-size);
  font-weight: 500;
  line-height: 1.35;
  color: var(--black);
}

.nl-ops-card__body {
  margin: 0;
  font-size: var(--body-size);
  line-height: 1.5;
  color: var(--text-muted);
}

@media (max-width: 1400px) {
  .tl-landing-grid {
    gap: 14px;
  }

  .tl-landing .nl-compound-card {
    min-height: 440px;
    padding: 22px 18px 14px;
  }

  .tl-landing .nl-compound-card__num {
    top: 18px;
    left: 18px;
  }

  .tl-landing .nl-compound-card__illust {
    min-height: 160px;
    margin: 28px 0 16px;
  }

  .tl-landing .nl-compound-card__illust > svg,
  .tl-landing .nl-compound-card__illust .vd8-agents,
  .tl-landing .nl-compound-card__illust .vd8-agents svg,
  .tl-landing .nl-compound-card__illust .vd8-momentum {
    max-height: 180px;
  }

  .tl-landing .nl-compound-card__body {
    min-height: 0;
  }

  .tl-landing .nl-ops-card__copy {
    padding: 16px 16px 18px;
  }

  .tl-landing .nl-ops-mock__line,
  .tl-landing .nl-ops-mock__sub {
    font-size: 0.7rem;
  }
}

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

  .tl-landing .nl-compound-card {
    min-height: 0;
  }

  .tl-landing .nl-compound-card__illust {
    min-height: 180px;
  }
}
